summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-11-02 15:31:00 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-11-02 15:31:00 +0000
commita01779c01ac83d06626bb7d7ef81177ce21eca12 (patch)
tree17318d35b380b6206149d89295b7f3694193bdc9 /net-mail/squirrelmail
parentweb-apps usage (diff)
downloadgentoo-2-a01779c01ac83d06626bb7d7ef81177ce21eca12.tar.gz
gentoo-2-a01779c01ac83d06626bb7d7ef81177ce21eca12.tar.bz2
gentoo-2-a01779c01ac83d06626bb7d7ef81177ce21eca12.zip
web-apps usage
Diffstat (limited to 'net-mail/squirrelmail')
-rw-r--r--net-mail/squirrelmail/ChangeLog9
-rw-r--r--net-mail/squirrelmail/Manifest4
-rw-r--r--net-mail/squirrelmail/files/digest-squirrelmail-1.4.2-r11
-rw-r--r--net-mail/squirrelmail/squirrelmail-1.4.2-r1.ebuild75
4 files changed, 86 insertions, 3 deletions
diff --git a/net-mail/squirrelmail/ChangeLog b/net-mail/squirrelmail/ChangeLog
index d1a459890ef7..021196db5ffa 100644
--- a/net-mail/squirrelmail/ChangeLog
+++ b/net-mail/squirrelmail/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-mail/squirrelmail
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/squirrelmail/ChangeLog,v 1.27 2003/10/15 17:52:02 brad_mssw Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/squirrelmail/ChangeLog,v 1.28 2003/11/02 15:30:54 mholzer Exp $
+
+*squirrelmail-1.4.2-r1 (02 Nov 2003)
+
+ 02 Nov 2003; Martin Holzer <mholzer@gentoo.org>
+ squirrelmail-1.4.2-r1.ebuild:
+ making use of webapps.eclass
+ Patch submitted by Adrian Almenar <strider@gentoo.org> In #30405.
15 Oct 2003; Brad House <brad_mssw@gentoo.org> squirrelmail-1.4.2.ebuild:
add ~amd64 flag
diff --git a/net-mail/squirrelmail/Manifest b/net-mail/squirrelmail/Manifest
index c5ceeef956a0..608264e27ff5 100644
--- a/net-mail/squirrelmail/Manifest
+++ b/net-mail/squirrelmail/Manifest
@@ -1,10 +1,10 @@
-MD5 05704c95a9e6784112f52995d7c23595 ChangeLog 4559
+MD5 90de7137df54a34fe5ff3212d84ac540 ChangeLog 4777
MD5 70afb5f382d1a431afcb8b73e9d2cc01 squirrelmail-1.2.11.ebuild 1573
MD5 c937d4107ed3eac1daa9daff5e3bfe54 squirrelmail-1.4.0-r1.ebuild 1640
MD5 b056818f0b150e806edb75d8bae139d0 squirrelmail-1.4.1.ebuild 1634
MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
MD5 b0d4e1ec1bac1c5cb76cb743718f490e squirrelmail-1.4.2.ebuild 1639
-MD5 bd25b63a69d10fc80fe1b8113d9866ab squirrelmail-1.4.2-r1.ebuild 1939
+MD5 1c8bd818edc8c07ad0752da97cc09633 squirrelmail-1.4.2-r1.ebuild 2154
MD5 8eeb77a0af1734942ad728fc29c84441 files/digest-squirrelmail-1.2.11 73
MD5 61d48932b92d626923fd5db1dae0c7b4 files/digest-squirrelmail-1.4.0-r1 72
MD5 92831f98ddb4e63a5f42fb451f59518a files/digest-squirrelmail-1.4.1 72
diff --git a/net-mail/squirrelmail/files/digest-squirrelmail-1.4.2-r1 b/net-mail/squirrelmail/files/digest-squirrelmail-1.4.2-r1
new file mode 100644
index 000000000000..ce95a20a55bf
--- /dev/null
+++ b/net-mail/squirrelmail/files/digest-squirrelmail-1.4.2-r1
@@ -0,0 +1 @@
+MD5 8d8271c704a9f23d53138a4ceea38fb4 squirrelmail-1.4.2.tar.bz2 1888703
diff --git a/net-mail/squirrelmail/squirrelmail-1.4.2-r1.ebuild b/net-mail/squirrelmail/squirrelmail-1.4.2-r1.ebuild
new file mode 100644
index 000000000000..55b9673b03d9
--- /dev/null
+++ b/net-mail/squirrelmail/squirrelmail-1.4.2-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/squirrelmail/squirrelmail-1.4.2-r1.ebuild,v 1.1 2003/11/02 15:30:54 mholzer Exp $
+
+inherit webapp-apache
+
+DESCRIPTION="Webmail for nuts!"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+RESTRICT="nomirror"
+HOMEPAGE="http://www.squirrelmail.org/"
+
+LICENSE="GPL-2"
+SLOT="1"
+KEYWORDS="x86 ~ppc sparc ~alpha ~amd64"
+
+RDEPEND="virtual/php
+ dev-perl/DB_File"
+DEPEND="${RDEPEND}"
+
+webapp-detect || NO_WEBSERVER=1
+
+HTTPD_USER="apache"
+HTTPD_GROUP="apache"
+
+pkg_setup() {
+ if [ -L ${HTTPD_ROOT}/${PN} ] ; then
+ ewarn "You need to unmerge your old SquirrelMail version first."
+ ewarn "SquirrelMail will be installed into ${HTTPD_ROOT}/${PN}"
+ ewarn "directly instead of a version-dependant directory."
+ die "need to unmerge old version first"
+ fi
+ webapp-pkg_setup "${NO_WEBSERVER}"
+ einfo "Installing into ${ROOT}${HTTPD_ROOT}."
+}
+
+src_compile() {
+ #we need to have this empty function ... default compile hangs
+ echo "Nothing to compile"
+}
+
+src_install() {
+ local DocumentRoot=${HTTPD_ROOT}
+ local destdir=${DocumentRoot}/${PN}
+ dodir ${destdir}
+ cp -r . ${D}/${HTTPD_ROOT}/${PN}
+ cd ${D}/${HTTPD_ROOT}
+ chown -R ${HTTPD_USER}.${HTTPD_GROUP} ${PN}/data
+ # Fix permissions
+ find ${D}${destdir} -type d | xargs chmod 755
+ find ${D}${destdir} -type f | xargs chmod 644
+}
+
+pkg_postinst() {
+ local DocumentRoot=${HTTPD_ROOT}
+ local destdir=${DocumentRoot}/${PN}
+
+ einfo "Squirrelmail NO LONGER requires PHP to have"
+ einfo "'register_globals = On' !!!"
+ einfo
+ einfo "now copy ${destdir}/config/config_default.php to"
+ einfo "${destdir}/config/config.php"
+ einfo "and edit your settings"
+ einfo
+ old_ver=`ls ${HTTPD_ROOT}/${PN}-[0-9]* 2>/dev/null`
+ if [ ! -z "${old_ver}" ]; then
+ einfo ""
+ einfo "You will also want to move old SquirrelMail data to"
+ einfo "the new location:"
+ einfo ""
+ einfo "\tmv ${HTTPD_ROOT}/${PN}-OLDVERSION/data/* \\"
+ einfo "\t\t${HTTPD_ROOT}/${PN}/data"
+ einfo "\tmv ${HTTPD_ROOT}/${PN}-OLDVERSION/config/config.php \\"
+ einfo "\t\t${HTTPD_ROOT}/${PN}/config"
+ fi
+}