[arch-commits] Commit in squirrelmail/repos (3 files)

Eric Bélanger eric at archlinux.org
Wed Oct 12 20:25:33 UTC 2011


    Date: Wednesday, October 12, 2011 @ 16:25:33
  Author: eric
Revision: 140403

archrelease: copy trunk to testing-any

Added:
  squirrelmail/repos/testing-any/
  squirrelmail/repos/testing-any/PKGBUILD
    (from rev 140402, squirrelmail/trunk/PKGBUILD)
  squirrelmail/repos/testing-any/squirrelmail.install
    (from rev 140402, squirrelmail/trunk/squirrelmail.install)

----------------------+
 PKGBUILD             |   50 +++++++++++++++++++++++++++++++++++++++++++++++++
 squirrelmail.install |   17 ++++++++++++++++
 2 files changed, 67 insertions(+)

Copied: squirrelmail/repos/testing-any/PKGBUILD (from rev 140402, squirrelmail/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2011-10-12 20:25:33 UTC (rev 140403)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Paul Mattal <paul at archlinux.org>
+# Contributor: Manolis Tzanidakis <manolis at archlinux.org>
+
+pkgname=squirrelmail
+pkgver=1.4.22
+pkgrel=1
+pkgdesc="Webmail for Nuts!"
+arch=('any')
+license=('GPL')
+url="http://www.squirrelmail.org"
+depends=('php' 'perl' 'imap-server')
+backup=(srv/http/squirrelmail/.htaccess srv/http/squirrelmail/config/config.php)
+install=$pkgname.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-webmail-$pkgver.tar.bz2{,.sig})
+md5sums=('494016b82762e57dca009fd9cc77ac2e'
+         'eddabb7071e008c41308d957ff8c3e32')
+
+package() {
+  # install
+  mkdir -p "$pkgdir"/srv/http/squirrelmail
+  cd "$pkgdir"/srv/http/squirrelmail
+  cp -a "$srcdir"/squirrelmail-webmail-$pkgver/* .
+
+  # remove CVS dirs
+  find "$pkgdir" -type d -name CVS -exec rm -rf {} \;
+
+  # customize config (data and attachments in /var/lib/squirrelmail)
+  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 "$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" >"$pkgdir"/srv/http/squirrelmail/.htaccess
+}
+
+# vim: ts=2 sw=2 et ft=sh

Copied: squirrelmail/repos/testing-any/squirrelmail.install (from rev 140402, squirrelmail/trunk/squirrelmail.install)
===================================================================
--- testing-any/squirrelmail.install	                        (rev 0)
+++ testing-any/squirrelmail.install	2011-10-12 20:25:33 UTC (rev 140403)
@@ -0,0 +1,17 @@
+post_install() {
+  /bin/cat <<THEEND
+
+NOTE
+----
+To configure squirrelmail :
+$ cd /srv/http/squirrelmail/config
+$ perl conf.pl
+
+Make sure to check the documentation on its webpage for more details,
+especially about securing your setup.  The default attachments dir
+has been placed in /var/lib/squirrelmail/attachments.
+
+Also make sure your php module is loaded in your Apache config.
+
+THEEND
+}




More information about the arch-commits mailing list