Create a gist now

Instantly share code, notes, and snippets.

@thomascube /Makefile
Last active Sep 27, 2016

Roundcube release scripts
--- composer.json.orig 2015-11-16 21:34:50.000000000 +0100
+++ composer.json 2015-11-16 21:35:22.000000000 +0100
@@ -28,14 +28,12 @@
"pear-pear.php.net/mail_mime": "~1.10.0",
"pear-pear.php.net/net_smtp": "~1.7.1",
"pear-pear.php.net/crypt_gpg": "~1.4.2",
+ "pear-pear.php.net/net_ldap2": "~2.2.0",
+ "kolab/Net_LDAP3": "dev-master",
"roundcube/net_sieve": "~1.5.0"
},
"require-dev": {
"phpunit/phpunit": "*"
},
- "suggest": {
- "pear-pear.php.net/net_ldap2": "~2.2.0 required for connecting to LDAP address books",
- "kolab/Net_LDAP3": "dev-master required for connecting to LDAP address books"
- },
"minimum-stability": "dev"
}
--- INSTALL.orig 2015-01-04 17:24:34.000000000 +0100
+++ INSTALL 2015-01-04 17:25:06.000000000 +0100
@@ -39,29 +39,22 @@
or SQLite support in PHP
* One of the above databases with permission to create tables
* An SMTP server (recommended) or PHP configured for mail delivery
-* Composer installed either locally or globally (https://getcomposer.org)
+* Composer installed either locally or globally (optional, for plugin installation)
INSTALLATION
============
1. Decompress and put this folder somewhere inside your document root
-2. Install dependencies using composer:
- - get composer from https://getcomposer.org/download/
- - rename the composer.json-dist file into composer.json
- - if you want to use LDAP address books, enable the LDAP libraries in your
- composer.json file by moving the items from "suggest" to the "require"
- section (remove the explanation texts after the version!).
- - run `php composer.phar install --no-dev`
-3. Make sure that the following directories (and the files within)
+2. Make sure that the following directories (and the files within)
are writable by the webserver
- /temp
- /logs
-4. Create a new database and a database user for Roundcube (see DATABASE SETUP)
-5. Point your browser to http://url-to-roundcube/installer/
-6. Follow the instructions of the install script (or see MANUAL CONFIGURATION)
-7. After creating and testing the configuration, remove the installer directory
-8. Check Known Issues section of this file
+3. Create a new database and a database user for Roundcube (see DATABASE SETUP)
+4. Point your browser to http://url-to-roundcube/installer/
+5. Follow the instructions of the install script (or see MANUAL CONFIGURATION)
+6. After creating and testing the configuration, remove the installer directory
+7. Check Known Issues section of this file
CONFIGURATION HINTS
--- composer.json.orig 2015-08-21 15:07:48.000000000 +0200
+++ composer.json 2015-08-21 15:12:02.000000000 +0200
@@ -24,15 +24,13 @@
"pear-pear.php.net/net_sieve": "~1.3.4",
"pear-pear.php.net/mail_mime": "~1.9.0",
"pear-pear.php.net/net_smtp": "~1.7.1",
+ "pear-pear.php.net/net_ldap2": "~2.1.0",
+ "kolab/Net_LDAP3": "dev-master",
"patchwork/utf8": "~1.2.3"
},
"require-dev": {
"pear-pear.php.net/crypt_gpg": "*",
"phpunit/phpunit": "*"
},
- "suggest": {
- "pear-pear.php.net/net_ldap2": "~2.1.0 required for connecting to LDAP address books",
- "kolab/Net_LDAP3": "dev-master required for connecting to LDAP address books"
- },
"minimum-stability": "dev"
}
--- INSTALL.orig 2015-01-04 17:24:34.000000000 +0100
+++ INSTALL 2015-01-04 17:25:06.000000000 +0100
@@ -39,29 +39,22 @@
or SQLite support in PHP
* One of the above databases with permission to create tables
* An SMTP server (recommended) or PHP configured for mail delivery
-* Composer installed either locally or globally (https://getcomposer.org)
+* Composer installed either locally or globally (optional, for plugin installation)
INSTALLATION
============
1. Decompress and put this folder somewhere inside your document root
-2. Install dependencies using composer:
- - get composer from https://getcomposer.org/download/
- - rename the composer.json-dist file into composer.json
- - if you want to use LDAP address books, enable the LDAP libraries in your
- composer.json file by moving the items from "suggest" to the "require"
- section (remove the explanation texts after the version!).
- - run `php composer.phar install --no-dev`
-3. Make sure that the following directories (and the files within)
+2. Make sure that the following directories (and the files within)
are writable by the webserver
- /temp
- /logs
-4. Create a new database and a database user for Roundcube (see DATABASE SETUP)
-5. Point your browser to http://url-to-roundcube/installer/
-6. Follow the instructions of the install script (or see MANUAL CONFIGURATION)
-7. After creating and testing the configuration, remove the installer directory
-8. Check Known Issues section of this file
+3. Create a new database and a database user for Roundcube (see DATABASE SETUP)
+4. Point your browser to http://url-to-roundcube/installer/
+5. Follow the instructions of the install script (or see MANUAL CONFIGURATION)
+6. After creating and testing the configuration, remove the installer directory
+7. Check Known Issues section of this file
CONFIGURATION HINTS
GITREMOTE=git://github.com/roundcube/roundcubemail.git
GITBRANCH=release-1.2
GPGKEY=devs@roundcube.net
VERSION=1.2.1
all: clean complete dependent framework
complete: roundcubemail-git toolchain
cp -RH roundcubemail-git roundcubemail-$(VERSION)
(cd roundcubemail-$(VERSION); cp composer.json-dist composer.json)
(cd roundcubemail-$(VERSION); patch -p0 < ../dist.diff)
(cd roundcubemail-$(VERSION); php /tmp/composer.phar install --prefer-dist --no-dev)
(cd roundcubemail-$(VERSION); rm composer.json composer.lock *.orig; rm -rf vendor/pear/*/tests vendor/*/*/.git*)
(cd roundcubemail-$(VERSION); sed -i '' -E "s#'.+/Console_CommandLine/data' \. DIRECTORY_SEPARATOR#__DIR__ \. '/../../data' \. DIRECTORY_SEPARATOR#" vendor/pear-pear.php.net/Console_CommandLine/Console/CommandLine/XmlParser.php)
tar czf roundcubemail-$(VERSION)-complete.tar.gz roundcubemail-$(VERSION)
rm -rf roundcubemail-$(VERSION)
dependent: roundcubemail-git
cp -RH roundcubemail-git roundcubemail-$(VERSION)
tar czf roundcubemail-$(VERSION).tar.gz roundcubemail-$(VERSION)
rm -rf roundcubemail-$(VERSION)
framework: roundcubemail-git
cp -r roundcubemail-git/program/lib/Roundcube roundcube-framework-$(VERSION)
phpdoc -d roundcube-framework-$(VERSION) -t roundcube-framework-$(VERSION)/doc --title="Roundcube Framework" --defaultpackagename="Framework" --template=responsive-twig
rm -rf roundcube-framework-$(VERSION)/doc/phpdoc-cache*
tar czf roundcube-framework-$(VERSION).tar.gz roundcube-framework-$(VERSION)
rm -rf roundcube-framework-$(VERSION)
sign:
gpg -u $(GPGKEY) -a --detach-sig roundcubemail-$(VERSION).tar.gz
gpg -u $(GPGKEY) -a --detach-sig roundcubemail-$(VERSION)-complete.tar.gz
gpg -u $(GPGKEY) -a --detach-sig roundcube-framework-$(VERSION).tar.gz
verify:
gpg -v --verify roundcubemail-$(VERSION).tar.gz{.asc,}
gpg -v --verify roundcubemail-$(VERSION)-complete.tar.gz{.asc,}
gpg -v --verify roundcube-framework-$(VERSION).tar.gz{.asc,}
shasum:
shasum -a 256 roundcubemail-$(VERSION).tar.gz roundcubemail-$(VERSION)-complete.tar.gz roundcube-framework-$(VERSION).tar.gz
toolchain: /tmp/composer.phar
rm -f dist.diff
wget --no-check-certificate 'https://gist.github.com/thomascube/2725894/raw/dist.diff'
roundcubemail-git: /tmp/yuicompressor.jar
git clone $(GITREMOTE) roundcubemail-git
(cd roundcubemail-git; git checkout $(GITBRANCH))
(cd roundcubemail-git; bin/jsshrink.sh; bin/updatecss.sh; bin/cssshrink.sh)
(cd roundcubemail-git/bin; rm transifexpull.sh package2composer.sh importgettext.sh exportgettext.sh)
(cd roundcubemail-git; rm -rf tests .git* .tx* index-test.php Dockerfile)
/tmp/yuicompressor.jar:
# FIXME: remove --no-check-certificate or verify source
wget --no-check-certificate https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.zip -O "/tmp/yui.zip"
(cd /tmp && unzip "/tmp/yui.zip" && mv "yuicompressor-2.4.8.jar" "yuicompressor.jar")
/tmp/composer.phar:
curl -sS https://getcomposer.org/installer | php -- --install-dir=/tmp/
clean:
rm -rf roundcubemail-git
GITREMOTE=git://github.com/roundcube/roundcubemail.git
GITBRANCH=release-1.1
VERSION=1.1.5
all: clean dist dependent framework
dist: roundcubemail-git toolchain
cp -r roundcubemail-git roundcubemail-$(VERSION)
(cd roundcubemail-$(VERSION); cp composer.json-dist composer.json)
(cd roundcubemail-$(VERSION); patch -p0 < ../dist.v11.diff)
(cd roundcubemail-$(VERSION); php /tmp/composer.phar install --prefer-dist --no-dev)
(cd roundcubemail-$(VERSION); rm composer.json composer.lock *.orig; rm -rf vendor/pear/*/tests vendor/*/*/.git*)
tar czf roundcubemail-$(VERSION)-complete.tar.gz roundcubemail-$(VERSION)
rm -rf roundcubemail-$(VERSION)
dependent: roundcubemail-git
cp -r roundcubemail-git roundcubemail-$(VERSION)
tar czf roundcubemail-$(VERSION).tar.gz roundcubemail-$(VERSION)
rm -rf roundcubemail-$(VERSION)
framework: roundcubemail-git
cp -r roundcubemail-git/program/lib/Roundcube roundcube-framework-$(VERSION)
phpdoc -d roundcube-framework-$(VERSION) -t roundcube-framework-$(VERSION)/doc --title="Roundcube Framework" --defaultpackagename="Framework" --template=responsive-twig
rm -rf roundcube-framework-$(VERSION)/doc/phpdoc-cache*
tar czf roundcube-framework-$(VERSION).tar.gz roundcube-framework-$(VERSION)
rm -rf roundcube-framework-$(VERSION)
toolchain: /tmp/composer.phar
rm -f dist.diff
wget 'https://gist.githubusercontent.com/thomascube/2725894/raw/9b9c20456f2b6b106333394573fe09922e177261/dist.v11.diff' -O dist.diff
roundcubemail-git: /tmp/yuicompressor.jar
git clone $(GITREMOTE) roundcubemail-git
(cd roundcubemail-git; git checkout $(GITBRANCH))
(cd roundcubemail-git; patch -p1 < ../readme.diff)
(cd roundcubemail-git; bin/jsshrink.sh; bin/updatecss.sh; bin/cssshrink.sh)
(cd roundcubemail-git/bin; rm transifexpull.sh package2composer.sh importgettext.sh exportgettext.sh)
(cd roundcubemail-git; rm -rf tests public_html .git* .tx* index-test.php Dockerfile)
(cd roundcubemail-git; sed -i '' 's/1.2-git/$(VERSION)/' index.php program/include/iniset.php program/lib/Roundcube/bootstrap.php)
/tmp/yuicompressor.jar:
# FIXME: remove --no-check-certificate or verify source
wget --no-check-certificate https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.zip -O "/tmp/yui.zip"
(cd /tmp && unzip "/tmp/yui.zip" && mv "yuicompressor-2.4.8.jar" "yuicompressor.jar")
/tmp/composer.phar:
curl -sS https://getcomposer.org/installer | php -- --install-dir=/tmp/
clean:
rm -rf roundcubemail-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment