Date: Saturday, July 2, 2011 @ 02:16:57 Author: dan Revision: 130083 upgpkg: squirrelmail 1.4.21-1 minor version bump and PKGBUILD cleanup
Modified: squirrelmail/trunk/PKGBUILD ----------+ PKGBUILD | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2011-07-02 04:53:11 UTC (rev 130082) +++ PKGBUILD 2011-07-02 06:16:57 UTC (rev 130083) @@ -3,10 +3,10 @@ # Contributor: Manolis Tzanidakis <[email protected]> pkgname=squirrelmail -pkgver=1.4.20 +pkgver=1.4.21 pkgrel=1 pkgdesc="Webmail for Nuts!" -arch=(i686 x86_64) +arch=('any') license=('GPL') url="http://www.squirrelmail.org" depends=('php' 'perl' 'imap-server') @@ -14,37 +14,37 @@ backup=(srv/http/squirrelmail/.htaccess srv/http/squirrelmail/config/config.php) install=$pkgname.install source=(http://superb-sea2.dl.sf.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz) -md5sums=('60ffedc61b295650c7695c2b74209294') +md5sums=('1e53a47b0544c37705079cb961ef05dc') -build() { +package() { # install - mkdir -p $startdir/pkg/srv/http/squirrelmail || return 1 - cd $startdir/pkg/srv/http/squirrelmail || return 1 - cp -a $startdir/src/squirrelmail-$pkgver/* . || return 1 + mkdir -p "$pkgdir"/srv/http/squirrelmail + cd "$pkgdir"/srv/http/squirrelmail + cp -a "$srcdir"/squirrelmail-$pkgver/* . # remove CVS dirs - find $startdir/pkg -type d -name CVS -exec rm -rf {} \; || return 1 + find "$pkgdir" -type d -name CVS -exec rm -rf {} \; # customize config (data and attachments in /var/lib/squirrelmail) - cd config || return 1 - cp -p config_default.php config.php || return 1 - sed -i 's|^$attachment_dir = $data_dir;|$attachment_dir = "/var/lib/squirrelmail/attachments";|' config.php || return 1 - sed -i 's|^$data_dir = "/var/local/squirrelmail/data";|$data_dir = "/var/lib/squirrelmail/data";|' config.php || return 1 + cd config + cp -p config_default.php config.php + sed -i 's|^$attachment_dir = $data_dir;|$attachment_dir = "/var/lib/squirrelmail/attachments";|' config.php + sed -i 's|^$data_dir = "/var/local/squirrelmail/data";|$data_dir = "/var/lib/squirrelmail/data";|' config.php # create data and attachments directories, set ownership/permissions # ideally we would set attachments differently to root:-1 with 0730, but # I don't know how to get chgrp to take "-1" properly; perhaps someday # I'll figure out how to make this work - mkdir -p $startdir/pkg/var/lib/squirrelmail/{data,attachments} || return 1 - chown -R http:http $startdir/pkg/var/lib/squirrelmail/data \ - || return 1 - chown -R http:http $startdir/pkg/var/lib/squirrelmail/attachments \ - || return 1 - chmod 0700 $startdir/pkg/var/lib/squirrelmail/data || return 1 - chmod 0300 $startdir/pkg/var/lib/squirrelmail/attachments || return 1 + mkdir -p "$pkgdir"/var/lib/squirrelmail/{data,attachments} + chown -R http:http "$pkgdir"/var/lib/squirrelmail/data + + chown -R http:http "$pkgdir"/var/lib/squirrelmail/attachments + + chmod 0700 "$pkgdir"/var/lib/squirrelmail/data + chmod 0300 "$pkgdir"/var/lib/squirrelmail/attachments # restrict access to squirrelmail by default - echo "deny from all" >$startdir/pkg/srv/http/squirrelmail/.htaccess \ - || return 1 + echo "deny from all" >"$pkgdir"/srv/http/squirrelmail/.htaccess } + # vim: ts=2 sw=2 et ft=sh
