summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /mail-client/squirrelmail
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'mail-client/squirrelmail')
-rw-r--r--mail-client/squirrelmail/Manifest10
-rw-r--r--mail-client/squirrelmail/files/ldapuserdata-0.4-gentoo.patch20
-rw-r--r--mail-client/squirrelmail/files/postinstall-en.txt18
-rw-r--r--mail-client/squirrelmail/metadata.xml12
-rw-r--r--mail-client/squirrelmail/squirrelmail-1.4.23_pre20140426.ebuild209
5 files changed, 269 insertions, 0 deletions
diff --git a/mail-client/squirrelmail/Manifest b/mail-client/squirrelmail/Manifest
new file mode 100644
index 000000000000..53a0a99de2c8
--- /dev/null
+++ b/mail-client/squirrelmail/Manifest
@@ -0,0 +1,10 @@
+DIST admin_add.0.1-1.4.0.tar.gz 2388 SHA256 25ec999eea098a509f7d49cfe368b0557b64c698f86b2a2c951617f67735dabc SHA512 c8abb5a29b815ad2a4591ed965d60d1f75deea17d64c5eaa85ba4fec11d7d1ac1aa5beb8d39228e02b1377782d507b0fb55c47bb8ad10b9b958af8c207c6b627 WHIRLPOOL 94d26bd55e1e859f583db0cd39e4ae9b1ef778139302a24af1a10a671b44989354180c837e9eb74b0d58cef0adb345e65a2421c7777ddf77bcb48795133ce534
+DIST all_locales-1.4.18-20090526.tar.bz2 3898341 SHA256 b9198127084407950ad6158e030c76fdf9be5fd0d0abd69c606fb7757ae246c6 SHA512 082317a7b443db11236a5fa5771fa68535200b212cf0471ea37013f54c4b3979a3ee3d289aa3e6eed0988febd2188ab7a6054508068d972dd19c49fa700c9492 WHIRLPOOL 66b2eb3f4353f03280b45d1a14d00d924af38b6558997ca667b1672144dfcbfb5731e4df7b910f80a3aec11bc6fbcc2b28ff5a56fff6a3b8d1bfee86cd51ba1b
+DIST amavisnewsql-0.8.0-1.4.tar.gz 101008 SHA256 f9ef453f80e0a44a22c695712b44af935f6d1a505239bd0cb6470fc27608041c
+DIST compatibility-2.0.16-1.0.tar.gz 41497 SHA256 bf179d29223fc76ff6609fdf5146d8f488c603314a343ef70e41f77267de0261 SHA512 478b921da90679022da8790183a651c91bcc879e2ec42db9982e3fef7d3f7e92cd23703ac81a7e8e465889348b28597feba8aaa60943cdbe518a076c4723cf3c WHIRLPOOL 6248e48123484d29c299f88485342b612ecfd72f1ea21a67e988b8d379fcc54bc1262095ed75a3ee238bc60e527d5177e1252a370d0e32f0640b227a4e5e69c2
+DIST ldapuserdata-0.4.tar.gz 67439 SHA256 ee10b97e99c35b0656e7e87f60785408f3d26a53ee2a0107d8aa04f7947c3ff7 SHA512 89cb6740865a6b48dbdae8b6ded49bfdac1946f0a76538dd874db104d01ddbbd022f1819a7f94d9ade599d9583dc4b4a1e3f4981bdd6d3dbd86c673bb1d388ac WHIRLPOOL 0c69741b1abbdd51dad33e284fafe148e29c66e6fe20351763bee1d400f980a52ec95eb59d6d9a10afa1a4baf1e7d27843c3b51ccd296c1eae47723cee4ff5ab
+DIST retrieveuserdata.0.9-1.4.0.tar.gz 10448 SHA256 086796d858e781c518b538b37e9ec011d51a2aebd6d14aeba1aa330b58626b8d SHA512 77588d0dafc603837cff7c33f8e487ee9b322d9ba875077fce1c5ef85b6e57fe9239680f1b9cf805e0940ae4f1a34c0dcd03e3d26706ac44732ea679ccaf8896 WHIRLPOOL b0121dac6146659fce80b9653084b92efb44fb4cc5ee986ebde91c46e581a721c775c8791e5f38bad10fba5b2369ab0f9e72c8749eeec102d1006a93e5f9d13a
+DIST secure_login-1.4-1.2.8.tar.gz 16993 SHA256 b6ede807a79c9b5300b43565c920570c583a1cc4d339bcea715c32196518837e SHA512 3246bf3e3f058d73e33a3f2e33166aa57061be0210fcc939f3a881bdb569d049fb95d8ad5c141de9ff7f2014feff40bcc5c72f4ca9acf9c30937c484977e15db WHIRLPOOL 86e5361ec0e0df994c2bd80346fc54126f77d463f642bb23e1fa39daf31488d2abab71cf81c8b290059e9acba1032b160b87a2d92f1295fb6b8b0ee22a477707
+DIST show_ssl_link-2.2-1.2.8.tar.gz 13193 SHA256 70ecefc01003fd5dddc13e6dd7bf4e6ab4663426a9990c894e353fb96ebb4a1a SHA512 5e2579a6d55924e5b92ee558379e88f7a5ffd4702009fa00c9a99a2a5bec750cf7b1de7b78ac05c0cdb5f59248c73bde15404e8b27a408766c96fc24ecc4b9c8 WHIRLPOOL d99dc6a04ef026b3faf8029b695ad5bb374009c1e19866661f3b32f5d2b46f27e231cd82f59130cbd15ca3caac3496b132b8c79b5229f5ed558b05e8743e7b8e
+DIST squirrelmail-20140426_0200-SVN.stable.tar.bz2 552464 SHA256 1ace525d0e19ed2df9bc294027b4f1c189fb6b454c434abd0ea700e5abefe9ec SHA512 bf0853a878c4a6fe01083090e0fb9cda2c5620248ffcd2e77f728c66480ae9161c6aba9798002b0c4f63d595dc5efa07ec1d5ec2b281d9cfe74096ed51db4850 WHIRLPOOL 29313fa14ec648f93728f2e37727aaa519bcb502b4ecc6fd4100df863b1276233f8a2c28d96d3b83af2a2fe85114b2e567b0ba0f818536a2a40b9f60ae338d86
+DIST squirrelmail-decode-1.2.tar.bz2 333942 SHA256 72750301b83ee23fffe32ae40a3dec33ad4f39abf81c5abdd38f235aab3fcb26 SHA512 f804d7e4bf8814fc00ea076b388a106820df6cb22e0d6c76305fef414f159238578a31e13787a932f9e832dc4b31eb4a7ef5da481f2abbcb164b81673e68698b WHIRLPOOL 735695b9f78068542b1db65cb1d35c06eb5c7d94b699fb176d6c5c82cb2b2f38725a83c6bff355ec7035916a55493666e5f839356369b923d2a6b8f9bd5688da
diff --git a/mail-client/squirrelmail/files/ldapuserdata-0.4-gentoo.patch b/mail-client/squirrelmail/files/ldapuserdata-0.4-gentoo.patch
new file mode 100644
index 000000000000..46ebc04cff51
--- /dev/null
+++ b/mail-client/squirrelmail/files/ldapuserdata-0.4-gentoo.patch
@@ -0,0 +1,20 @@
+--- plugins/ldapuserdata/setup.php.orig 2004-01-15 23:40:41.000000000 -0800
++++ plugins/ldapuserdata/setup.php 2004-01-15 23:40:52.000000000 -0800
+@@ -92,7 +92,7 @@
+ global $ldap_bind_dn, $ldap_host;
+
+ /* fill $ldap_prefs_cache with data from LDAP. */
+- $ldap_prefs_cache = retrieve_data($login_username);
++ $ldap_prefs_cache = ldap_retrieve_data($login_username);
+
+ /*
+ print "<pre>";
+@@ -121,7 +121,7 @@
+ }
+
+
+-function retrieve_data ($uid) {
++function ldap_retrieve_data ($uid) {
+ global $ldap_host, $username, $ldap_base_dn, $ldap_bind_dn, $ldap_bind_pw;
+ global $ldap_manager_dn, $ldap_manager_pw;
+ global $ldap_objectclass, $prefs_default, $ldap_attributes, $boolean_attrs, $multivalue_attrs;
diff --git a/mail-client/squirrelmail/files/postinstall-en.txt b/mail-client/squirrelmail/files/postinstall-en.txt
new file mode 100644
index 000000000000..dc9c64a86119
--- /dev/null
+++ b/mail-client/squirrelmail/files/postinstall-en.txt
@@ -0,0 +1,18 @@
+ * You must edit the following configuration files to setup your server.
+ * Note that not all of them may be present depending on USE flags.
+ *
+ * config/config.php
+ * plugins/retrieveuserdata/config.php
+ * plugins/virus_scan/config.php
+ * plugins/gpg/gpg_local_prefs.txt
+ * plugins/ldapuserdata/config.php
+ * plugins/show_ssl_link/config.php
+ * plugins/secure_login/config.php
+ *
+ * You should also create the file 'config/admins'
+ * containing the users who should have access to administrative options.
+ * Put each login on its own line, and be sure to leave a newline at the
+ * end of the file.
+ *
+ * You can use the console based configuration tool by executing:
+ * cd config; perl conf.pl
diff --git a/mail-client/squirrelmail/metadata.xml b/mail-client/squirrelmail/metadata.xml
new file mode 100644
index 000000000000..7d41afda0934
--- /dev/null
+++ b/mail-client/squirrelmail/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-mail</herd>
+ <use>
+ <flag name="filter">Enable <pkg>mail-filter/amavisd-new</pkg>
+ filtering</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">squirrelmail</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/mail-client/squirrelmail/squirrelmail-1.4.23_pre20140426.ebuild b/mail-client/squirrelmail/squirrelmail-1.4.23_pre20140426.ebuild
new file mode 100644
index 000000000000..80b6b1a55f67
--- /dev/null
+++ b/mail-client/squirrelmail/squirrelmail-1.4.23_pre20140426.ebuild
@@ -0,0 +1,209 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit webapp eutils
+
+IUSE="ldap spell ssl filter mysql postgres nls"
+DESCRIPTION="Webmail for nuts!"
+
+# Plugin Versions
+COMPATIBILITY_VER=2.0.16-1.0
+USERDATA_VER=0.9-1.4.0
+ADMINADD_VER=0.1-1.4.0
+AMAVIS_VER=0.8.0-1.4
+LDAP_USERDATA_VER=0.4
+SECURELOGIN_VER=1.4-1.2.8
+SHOWSSL_VER=2.2-1.2.8
+LOCALES_VER=1.4.18-20090526
+DECODING_VER=1.2
+
+#MY_P=${PN}-webmail-${PV}
+MY_P=${PN}-${PVR##*_pre}_0200-SVN.stable
+#S="${WORKDIR}/${MY_P}"
+S="${WORKDIR}/${PN}.stable/${PN}"
+
+PLUGINS_LOC="http://www.squirrelmail.org/plugins"
+SRC_URI="http://snapshots.squirrelmail.org/${MY_P}.tar.bz2
+ mirror://sourceforge/${PN}/squirrelmail-decode-${DECODING_VER}.tar.bz2
+ mirror://sourceforge/retruserdata/retrieveuserdata.${USERDATA_VER}.tar.gz
+ ${PLUGINS_LOC}/compatibility-${COMPATIBILITY_VER}.tar.gz
+ ssl? ( ${PLUGINS_LOC}/secure_login-${SECURELOGIN_VER}.tar.gz )
+ ssl? ( ${PLUGINS_LOC}/show_ssl_link-${SHOWSSL_VER}.tar.gz )
+ ${PLUGINS_LOC}/admin_add.${ADMINADD_VER}.tar.gz
+ filter? ( ${PLUGINS_LOC}/amavisnewsql-0.8.0-1.4.tar.gz )
+ ldap? ( ${PLUGINS_LOC}/ldapuserdata-${LDAP_USERDATA_VER}.tar.gz )
+ nls? ( mirror://sourceforge/${PN}/all_locales-${LOCALES_VER}.tar.bz2 )"
+
+HOMEPAGE="http://www.squirrelmail.org/"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~ppc ~ppc64 sparc x86"
+
+DEPEND=""
+
+RDEPEND="dev-lang/php[session]
+ virtual/perl-DB_File
+ ldap? ( net-nds/openldap )
+ spell? ( app-text/aspell )
+ filter? ( mail-filter/amavisd-new dev-php/PEAR-Log dev-php/PEAR-DB dev-php/PEAR-Net_SMTP )
+ postgres? ( dev-php/PEAR-DB )
+ mysql? ( dev-php/PEAR-DB )"
+
+src_unpack() {
+ unpack ${MY_P}.tar.bz2
+ unpack squirrelmail-decode-${DECODING_VER}.tar.bz2
+
+ cd "${S}" || die
+
+ mv config/config_default.php config/config.php || die
+
+ # Now do the plugins
+ cd "${S}/plugins" || die
+
+ unpack compatibility-${COMPATIBILITY_VER}.tar.gz
+
+ unpack admin_add.${ADMINADD_VER}.tar.gz
+
+ unpack retrieveuserdata.${USERDATA_VER}.tar.gz
+
+ use filter &&
+ unpack amavisnewsql-${AMAVIS_VER}.tar.gz &&
+ mv amavisnewsql/config.php.dist amavisnewsql/config.php
+
+ use ldap &&
+ unpack ldapuserdata-${LDAP_USERDATA_VER}.tar.gz
+
+ use ssl &&
+ unpack secure_login-${SECURELOGIN_VER}.tar.gz &&
+ mv secure_login/config.sample.php secure_login/config.php &&
+ unpack show_ssl_link-${SHOWSSL_VER}.tar.gz &&
+ mv show_ssl_link/config.php.sample show_ssl_link/config.php
+
+ use nls &&
+ cd "${S}" &&
+ unpack all_locales-${LOCALES_VER}.tar.bz2
+}
+
+src_prepare() {
+ sed -i "s:'/var/local/squirrelmail/data/':SM_PATH . 'data/':" \
+ config/config.php || die
+
+ cd "${S}/plugins" || die
+ if use ldap; then
+ epatch "${FILESDIR}"/ldapuserdata-${LDAP_USERDATA_VER}-gentoo.patch
+ mv ldapuserdata/config_sample.php ldapuserdata/config.php || die
+ fi
+}
+
+src_configure() {
+ #we need to have this empty function ...
+ echo "Nothing to configure"
+}
+
+src_compile() {
+ #we need to have this empty function ... default compile hangs
+ echo "Nothing to compile"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ # handle documentation files
+ #
+ # NOTE that doc files go into /usr/share/doc as normal; they do NOT
+ # get installed per vhost!
+
+ dodoc README
+
+ docinto compatibility
+ for doc in plugins/compatibility/docs/INSTALL plugins/compatibility/docs/README; do
+ dodoc ${doc}
+ rm -f ${doc}
+ done
+
+ docinto admin_add
+ for doc in plugins/admin_add/README; do
+ dodoc ${doc}
+ rm -f ${doc}
+ done
+
+ docinto retrieveuserdata
+ for doc in plugins/retrieveuserdata/INSTALL plugins/retrieveuserdata/changelog plugins/retrieveuserdata/users_example.txt; do
+ dodoc ${doc}
+ rm -f ${doc}
+ done
+
+ if use filter; then
+ docinto amavisnewsql
+ for doc in plugins/amavisnewsql/{CHANGELOG,README,UPGRADE}; do
+ dodoc ${doc}
+ rm -f ${doc}
+ done
+ fi
+
+ if use ldap; then
+ rm plugins/ldapuserdata/README
+ docinto ldapuserdata
+ for doc in plugins/ldapuserdata/doc/README; do
+ dodoc ${doc}
+ rm -f ${doc}
+ done
+ fi
+
+ if use ssl; then
+ docinto secure_login
+ for doc in plugins/secure_login/INSTALL plugins/secure_login/README; do
+ dodoc ${doc}
+ rm -f ${doc}
+ done
+
+ docinto show_ssl_link
+ for doc in plugins/show_ssl_link/INSTALL plugins/show_ssl_link/README; do
+ dodoc ${doc}
+ rm -f ${doc}
+ done
+ fi
+
+ # Copy the app's main files
+ einfo "Installing squirrelmail files."
+ cp -r . "${D}${MY_HTDOCSDIR}" || die
+
+ cp "${WORKDIR}"/squirrelmail-decode-${DECODING_VER}/*/*.php \
+ "${D}${MY_HTDOCSDIR}/functions/decode" || die
+
+ # Identify the configuration files that this app uses
+ local configs="config/config.php config/config_local.php plugins/retrieveuserdata/config.php"
+ use filter && configs="${configs} plugins/amavisnewsql/config.php"
+ use ldap && configs="${configs} plugins/ldapuserdata/config.php"
+ use ssl && configs="${configs} plugins/show_ssl_link/config.php plugins/secure_login/config.php"
+
+ for file in ${configs}; do
+ webapp_configfile ${MY_HTDOCSDIR}/${file}
+ done
+
+ # Identify any script files that need #! headers adding to run under
+ # a CGI script (such as PHP/CGI)
+ #
+ # for phpmyadmin, we *assume* that all .php files that don't end in
+ # .inc.php need to have CGI/BIN support added
+
+ #for x in `find . -name '*.php' -print | grep -v 'inc.php'` ; do
+ # webapp_runbycgibin php ${MY_HTDOCSDIR}/$x
+ #done
+
+ local server_owned="data index.php"
+ for file in ${server_owned}; do
+ webapp_serverowned ${MY_HTDOCSDIR}/${file}
+ done
+
+ # add the post-installation instructions
+ webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
+
+ # all done
+ #
+ # now we let the eclass strut its stuff ;-)
+
+ webapp_src_install
+}