Version bump, bugfix bump and fix of URL
authorLim Swee Tat <st_lim@gentoo.org>
Wed, 5 Jan 2005 01:11:53 +0000 (01:11 +0000)
committerLim Swee Tat <st_lim@gentoo.org>
Wed, 5 Jan 2005 01:11:53 +0000 (01:11 +0000)
www-apps/dspam-web/ChangeLog
www-apps/dspam-web/Manifest
www-apps/dspam-web/dspam-web-3.0.0.ebuild
www-apps/dspam-web/dspam-web-3.2.0.ebuild
www-apps/dspam-web/dspam-web-3.2.1.ebuild
www-apps/dspam-web/dspam-web-3.2.2.ebuild
www-apps/dspam-web/dspam-web-3.2.3.ebuild
www-apps/dspam-web/dspam-web-3.2.4.ebuild [new file with mode: 0644]
www-apps/dspam-web/dspam-web-3.3.8.ebuild [new file with mode: 0644]
www-apps/dspam-web/files/digest-dspam-web-3.2.4 [new file with mode: 0644]
www-apps/dspam-web/files/digest-dspam-web-3.3.8 [new file with mode: 0644]

index f0a644e31de9e532e33c65f4efad9dcecbd96de9..ef12b2800d4d3d04c43ef919fa31777cd434db44 100644 (file)
@@ -1,6 +1,15 @@
 # ChangeLog for www-apps/dspam-web
-# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/ChangeLog,v 1.9 2004/12/09 00:56:17 st_lim Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/ChangeLog,v 1.10 2005/01/05 01:11:53 st_lim Exp $
+
+  05 Jan 2005; Lim Swee Tat <st_lim@gentoo.org> :
+  Fixed URL for dspam
+
+*dspam-web-3.3.8 (05 Jan 2005)
+
+  05 Jan 2005; Lim Swee Tat <st_lim@gentoo.org> +dspam-web-3.2.4.ebuild,
+  +dspam-web-3.3.8.ebuild:
+  Version bump and stable version bugfix bump.
 
   09 Dec 2004; Lim Swee Tat <st_lim@gentoo.org> :
   Version bump
index a3436d93c97d3223df6e9cf7c521501c4bda5cbb..c9b5a9037b61e0c087936bc288d2acb1139f52fb 100644 (file)
@@ -1,9 +1,11 @@
-MD5 956f517d5b50fbf0de1c9cb6f508598b ChangeLog 1747
-MD5 4692761753a5e1a98e276b526d94012e dspam-web-3.0.0.ebuild 2466
-MD5 15fea5e0579a78f28af532687fef2dfb dspam-web-3.2.0.ebuild 5249
-MD5 627c90d46d2502411088ed40ca694015 dspam-web-3.2.1.ebuild 5249
-MD5 fcb07899c10e8e3662af241f6987bd6d dspam-web-3.2.2.ebuild 5249
-MD5 674e05a7965d9ec8aa276eea006fa863 dspam-web-3.2.3.ebuild 5249
+MD5 0f3b71b132bf69e7f260228f1fadd5d9 ChangeLog 2001
+MD5 6f624c5ba6e07c74866d0780bb937d70 dspam-web-3.0.0.ebuild 2430
+MD5 66070c4788e54aa226de2fd190c411c3 dspam-web-3.2.0.ebuild 5213
+MD5 3be63da6da0e6552a618053bef877845 dspam-web-3.2.1.ebuild 5213
+MD5 2fa40922ea315e62c500d6864a92322b dspam-web-3.2.2.ebuild 5213
+MD5 88547cff57689e4f3f2ca3fd12a3e508 dspam-web-3.2.3.ebuild 5213
+MD5 200f508058004a98dd2c61761111d363 dspam-web-3.2.4.ebuild 5213
+MD5 02b8d404199d28d7c1c185280ced86a8 dspam-web-3.3.8.ebuild 5213
 MD5 f1ea445d6b4ddf81c55a4e886bc04218 metadata.xml 341
 MD5 ffdfc8d816078f4c58b75b9bed07503f files/htaccess 135
 MD5 b4099a94a52af9abd4ade48d82914c3c files/htpasswd 19
@@ -12,3 +14,5 @@ MD5 4b7bb6bbede742676e3e7017210104c5 files/digest-dspam-web-3.2.0 63
 MD5 4d666bbdf8092d4bd49428ea31eadbfb files/digest-dspam-web-3.2.1 63
 MD5 5e423ac033f04ebc7dcc1d61e77c34fa files/digest-dspam-web-3.2.2 63
 MD5 e8b69a8c4c9e136977f8b1485a914d18 files/digest-dspam-web-3.2.3 63
+MD5 ea56d34fd80be48f9b308655b5620c2f files/digest-dspam-web-3.2.4 63
+MD5 ad704c9a2372dd9ab4d112a8c687873e files/digest-dspam-web-3.3.8 63
index 82e8cfb63b171b6c4eb8535ba3e303582046c88b..dbfc9d27594189815ab1dacec7be966665731660 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.0.0.ebuild,v 1.1 2004/08/23 14:14:01 st_lim Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.0.0.ebuild,v 1.2 2005/01/05 01:11:53 st_lim Exp $
 
 inherit webapp
 
@@ -8,9 +8,9 @@ MY_PN=${PN/-web/}
 MY_P=${MY_PN}-${PV}
 
 DESCRIPTION="Web based administration and user controls for dspam"
-SRC_URI="http://www.nuclearelephant.com/projects/dspam/sources/${MY_P}.tar.gz"
+SRC_URI="http://dspam.nuclearelephant.com/sources/${MY_P}.tar.gz"
 
-HOMEPAGE="http://www.nuclearelephant.com/projects/dspam/index.html"
+HOMEPAGE="http://dspam.nuclearelephant.com/"
 LICENSE="GPL-2"
 DEPEND=">=mail-filter/dspam-3.1.0_beta11
        >=net-www/apache-1.3
index ab8cb5cd172694ecfd95f1265ff4e297a8798dc9..25d6f4b37a2721754e64e850ce9e97dd4584f634 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.2.0.ebuild,v 1.1 2004/11/04 17:37:58 st_lim Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.2.0.ebuild,v 1.2 2005/01/05 01:11:53 st_lim Exp $
 
 inherit webapp eutils
 
@@ -9,9 +9,9 @@ MY_PV=${PV/_rc3/.pr1}
 MY_P=${MY_PN}-${MY_PV}
 
 DESCRIPTION="Web based administration and user controls for dspam"
-SRC_URI="http://www.nuclearelephant.com/projects/dspam/sources/${MY_P}.tar.gz"
+SRC_URI="http://dspam.nuclearelephant.com/sources/${MY_P}.tar.gz"
 
-HOMEPAGE="http://www.nuclearelephant.com/projects/dspam/index.html"
+HOMEPAGE="http://dspam.nuclearelephant.com/"
 LICENSE="GPL-2"
 DEPEND=">=mail-filter/dspam-3.2_rc3
        >=net-www/apache-1.3
index 805c91a0054c87f43f682fa3de93b48538b9f589..0251a37f9d5597d29f3cb87187d41a12cbf5020d 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.2.1.ebuild,v 1.1 2004/11/04 17:37:58 st_lim Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.2.1.ebuild,v 1.2 2005/01/05 01:11:53 st_lim Exp $
 
 inherit webapp eutils
 
@@ -9,9 +9,9 @@ MY_PV=${PV/_rc3/.pr1}
 MY_P=${MY_PN}-${MY_PV}
 
 DESCRIPTION="Web based administration and user controls for dspam"
-SRC_URI="http://www.nuclearelephant.com/projects/dspam/sources/${MY_P}.tar.gz"
+SRC_URI="http://dspam.nuclearelephant.com/sources/${MY_P}.tar.gz"
 
-HOMEPAGE="http://www.nuclearelephant.com/projects/dspam/index.html"
+HOMEPAGE="http://dspam.nuclearelephant.com/"
 LICENSE="GPL-2"
 DEPEND=">=mail-filter/dspam-3.2_rc3
        >=net-www/apache-1.3
index fa9848048bf2f5fadbdb85464ef53262cf2b64d9..5b98d2f56095e4c6a09cd9e6efa6abfed0947191 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.2.2.ebuild,v 1.1 2004/11/18 11:17:49 st_lim Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.2.2.ebuild,v 1.2 2005/01/05 01:11:53 st_lim Exp $
 
 inherit webapp eutils
 
@@ -9,9 +9,9 @@ MY_PV=${PV/_rc3/.pr1}
 MY_P=${MY_PN}-${MY_PV}
 
 DESCRIPTION="Web based administration and user controls for dspam"
-SRC_URI="http://www.nuclearelephant.com/projects/dspam/sources/${MY_P}.tar.gz"
+SRC_URI="http://dspam.nuclearelephant.com/sources/${MY_P}.tar.gz"
 
-HOMEPAGE="http://www.nuclearelephant.com/projects/dspam/index.html"
+HOMEPAGE="http://dspam.nuclearelephant.com/"
 LICENSE="GPL-2"
 DEPEND=">=mail-filter/dspam-3.2_rc3
        >=net-www/apache-1.3
index 430d9a7f33fdac504230ab280f97b0bb889849e2..169c77193d022208b94d303fa507ecb7a412b69f 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.2.3.ebuild,v 1.1 2004/12/09 00:56:17 st_lim Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.2.3.ebuild,v 1.2 2005/01/05 01:11:53 st_lim Exp $
 
 inherit webapp eutils
 
@@ -9,9 +9,9 @@ MY_PV=${PV/_rc3/.pr1}
 MY_P=${MY_PN}-${MY_PV}
 
 DESCRIPTION="Web based administration and user controls for dspam"
-SRC_URI="http://www.nuclearelephant.com/projects/dspam/sources/${MY_P}.tar.gz"
+SRC_URI="http://dspam.nuclearelephant.com/sources/${MY_P}.tar.gz"
 
-HOMEPAGE="http://www.nuclearelephant.com/projects/dspam/index.html"
+HOMEPAGE="http://dspam.nuclearelephant.com/"
 LICENSE="GPL-2"
 DEPEND=">=mail-filter/dspam-3.2_rc3
        >=net-www/apache-1.3
diff --git a/www-apps/dspam-web/dspam-web-3.2.4.ebuild b/www-apps/dspam-web/dspam-web-3.2.4.ebuild
new file mode 100644 (file)
index 0000000..ae252a5
--- /dev/null
@@ -0,0 +1,169 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.2.4.ebuild,v 1.1 2005/01/05 01:11:53 st_lim Exp $
+
+inherit webapp eutils
+
+MY_PN=${PN/-web/}
+MY_PV=${PV/_rc3/.pr1}
+MY_P=${MY_PN}-${MY_PV}
+
+DESCRIPTION="Web based administration and user controls for dspam"
+SRC_URI="http://dspam.nuclearelephant.com/sources/${MY_P}.tar.gz"
+
+HOMEPAGE="http://dspam.nuclearelephant.com/"
+LICENSE="GPL-2"
+DEPEND=">=mail-filter/dspam-3.2_rc3
+       >=net-www/apache-1.3
+       >=dev-lang/perl-5.8.2
+       >=dev-perl/GD-2.0
+       dev-perl/GD-Graph3d
+       dev-perl/GDGraph
+       dev-perl/GDTextUtil"
+KEYWORDS="~x86 ~ppc"
+S=${WORKDIR}/${MY_P}
+HOMEDIR=/etc/mail/dspam
+
+src_compile() {
+       local myconf
+
+       # these are the default settings
+       myconf="${myconf} --with-signature-life=14"
+       myconf="${myconf} --enable-broken-return-codes"
+       myconf="${myconf} --enable-experimental"
+       myconf="${myconf} --enable-long-username"
+       myconf="${myconf} --enable-robinson"
+       #myconf="${myconf} --enable-chi-square"
+       myconf="${myconf} --enable-robinson-pvalues"
+       #myconf="${myconf} --enable-broken-mta"
+       myconf="${myconf} --enable-large-scale"
+       #myconf="${myconf} --enable-domain-scale"
+
+       # ${HOMEDIR}/data is a symlink to ${DATADIR}
+       myconf="${myconf} --with-dspam-mode=4755"
+       myconf="${myconf} --with-dspam-owner=dspam"
+       myconf="${myconf} --with-dspam-group=dspam"
+       myconf="${myconf} --enable-homedir --with-dspam-home=${HOMEDIR} --sysconfdir=${HOMEDIR}"
+       myconf="${myconf} --with-logdir=/var/log/dspam"
+
+       # enables support for debugging (touch /etc/dspam/.debug to turn on)
+       # optional: even MORE debugging output, use with extreme caution!
+       use debug && myconf="${myconf} --enable-debug --enable-verbose-debug"
+
+       # select storage driver
+       if use mysql || use mysql41; then
+               myconf="${myconf} --with-storage-driver=mysql_drv"
+               myconf="${myconf} --with-mysql-includes=/usr/include/mysql"
+               myconf="${myconf} --with-mysql-libraries=/usr/lib/mysql"
+               myconf="${myconf} --with-client-compression"
+               myconf="${myconf} --enable-virtual-users"
+               myconf="${myconf} --enable-preferences-extension"
+
+               # an experimental feature available with MySQL and PgSQL backend
+               if use neural ; then
+                       myconf="${myconf} --enable-neural-networking"
+               fi
+       elif use postgres ; then
+               myconf="${myconf} --with-storage-driver=pgsql_drv"
+               myconf="${myconf} --with-pgsql-includes=/usr/include/postgresql"
+               myconf="${myconf} --with-pgsql-libraries=/usr/lib/postgresql"
+               myconf="${myconf} --enable-virtual-users"
+               myconf="${myconf} --enable-preferences-extension"
+
+               # an experimental feature available with MySQL and PgSQL backend
+               if use neural ; then
+                       myconf="${myconf} --enable-neural-networking"
+               fi
+       elif use oci8 ; then
+               myconf="${myconf} --with-storage-driver=ora_drv"
+               myconf="${myconf} --with-oracle-home=${ORACLE_HOME}"
+               myconf="${myconf} --enable-virtual-users"
+               myconf="${myconf} --enable-preferences-extension"
+
+               # I am in no way a Oracle specialist. If someone knows
+               # how to query the version of Oracle, then let me know.
+               if (expr ${ORACLE_HOME/*\/} : 10 1>/dev/null 2>&1)
+               then
+                       --with-oracle-version=MAJOR
+                       myconf="${myconf} --with-oracle-version=10"
+               fi
+       elif use sqlite ; then
+               myconf="${myconf} --with-storage-driver=sqlite_drv"
+               myconf="${myconf} --enable-virtual-users"
+               myconf="${myconf} --enable-preferences-extension"
+
+       else
+               myconf="${myconf} --with-storage-driver=libdb4_drv"
+       fi
+
+       econf ${myconf} || die
+       cd ${S}/cgi
+       make
+}
+
+src_install () {
+       cd ${S}/cgi
+       webapp_src_preinst
+
+       sed -e 's,/var/dspam,/etc/mail/dspam,' \
+               -e 's,/usr/local,/usr,' \
+               -i admin.cgi
+       sed -e 's,/var/dspam,/etc/mail/dspam,' \
+               -e 's,/usr/local,/usr,' \
+               -i dspam.cgi
+
+       insinto ${MY_HTDOCSDIR}
+       insopts -m644 -o apache -g apache
+       doins *.css
+       doins *.gif
+       doins rgb.txt
+       doins default.prefs
+       doins admins
+       doins configure.pl
+
+       newins ${FILESDIR}/htaccess .htaccess
+       newins ${FILESDIR}/htpasswd .htpasswd
+
+       insopts -m755 -o apache -g apache
+       doins *.cgi
+
+       for CGI_SCRIPT in admin.cgi  admingraph.cgi  dspam.cgi  graph.cgi; do
+               webapp_runbycgibin perl ${MY_HTDOCSDIR}/${CGI_SCRIPT}
+       done
+
+       dodir ${MY_HTDOCSDIR}/templates
+
+       insinto ${MY_HTDOCSDIR}/templates
+       doins templates/*.html
+
+       #All files must be owned by server
+       cd ${D}${MY_HTDOCSDIR}
+       for x in `find . -type f -print` ; do
+               webapp_serverowned ${MY_HTDOCSDIR}/$x
+       done
+
+       webapp_src_install
+}
+
+pkg_config () {
+       # add apache to the dspam group so the CGIs can access the data
+
+       local groups
+       groups=`groups apache`
+       groups=`echo ${groups} | sed -e 's/ /,/g'`
+       usermod -G "${groups},dspam" apache
+}
+
+pkg_postinst () {
+       einfo "The CGIs need to be executed as group dspam in order to write"
+       einfo "to the dspam data directory. You will need to configure apache"
+       einfo "manually to do this. Another option is to add the user apache"
+       einfo "to the dspam group. You can do this automatically by running:"
+       echo
+       einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
+       echo
+       einfo "This app requires basic auth in order to operate properly."
+       einfo "You will need to add dspam users to the .htpasswd file or"
+       einfo "configure a different authentication mechanism for the user"
+       einfo "accounts."
+}
diff --git a/www-apps/dspam-web/dspam-web-3.3.8.ebuild b/www-apps/dspam-web/dspam-web-3.3.8.ebuild
new file mode 100644 (file)
index 0000000..ad3edf6
--- /dev/null
@@ -0,0 +1,169 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.3.8.ebuild,v 1.1 2005/01/05 01:11:53 st_lim Exp $
+
+inherit webapp eutils
+
+MY_PN=${PN/-web/}
+MY_PV=${PV/_rc3/.pr1}
+MY_P=${MY_PN}-${MY_PV}
+
+DESCRIPTION="Web based administration and user controls for dspam"
+SRC_URI="http://dspam.nuclearelephant.com/sources/${MY_P}.tar.gz"
+
+HOMEPAGE="http://dspam.nuclearelephant.com/"
+LICENSE="GPL-2"
+DEPEND=">=mail-filter/dspam-3.2_rc3
+       >=net-www/apache-1.3
+       >=dev-lang/perl-5.8.2
+       >=dev-perl/GD-2.0
+       dev-perl/GD-Graph3d
+       dev-perl/GDGraph
+       dev-perl/GDTextUtil"
+KEYWORDS="~x86 ~ppc"
+S=${WORKDIR}/${MY_P}
+HOMEDIR=/etc/mail/dspam
+
+src_compile() {
+       local myconf
+
+       # these are the default settings
+       myconf="${myconf} --with-signature-life=14"
+       myconf="${myconf} --enable-broken-return-codes"
+       myconf="${myconf} --enable-experimental"
+       myconf="${myconf} --enable-long-username"
+       myconf="${myconf} --enable-robinson"
+       #myconf="${myconf} --enable-chi-square"
+       myconf="${myconf} --enable-robinson-pvalues"
+       #myconf="${myconf} --enable-broken-mta"
+       myconf="${myconf} --enable-large-scale"
+       #myconf="${myconf} --enable-domain-scale"
+
+       # ${HOMEDIR}/data is a symlink to ${DATADIR}
+       myconf="${myconf} --with-dspam-mode=4755"
+       myconf="${myconf} --with-dspam-owner=dspam"
+       myconf="${myconf} --with-dspam-group=dspam"
+       myconf="${myconf} --enable-homedir --with-dspam-home=${HOMEDIR} --sysconfdir=${HOMEDIR}"
+       myconf="${myconf} --with-logdir=/var/log/dspam"
+
+       # enables support for debugging (touch /etc/dspam/.debug to turn on)
+       # optional: even MORE debugging output, use with extreme caution!
+       use debug && myconf="${myconf} --enable-debug --enable-verbose-debug"
+
+       # select storage driver
+       if use mysql || use mysql41; then
+               myconf="${myconf} --with-storage-driver=mysql_drv"
+               myconf="${myconf} --with-mysql-includes=/usr/include/mysql"
+               myconf="${myconf} --with-mysql-libraries=/usr/lib/mysql"
+               myconf="${myconf} --with-client-compression"
+               myconf="${myconf} --enable-virtual-users"
+               myconf="${myconf} --enable-preferences-extension"
+
+               # an experimental feature available with MySQL and PgSQL backend
+               if use neural ; then
+                       myconf="${myconf} --enable-neural-networking"
+               fi
+       elif use postgres ; then
+               myconf="${myconf} --with-storage-driver=pgsql_drv"
+               myconf="${myconf} --with-pgsql-includes=/usr/include/postgresql"
+               myconf="${myconf} --with-pgsql-libraries=/usr/lib/postgresql"
+               myconf="${myconf} --enable-virtual-users"
+               myconf="${myconf} --enable-preferences-extension"
+
+               # an experimental feature available with MySQL and PgSQL backend
+               if use neural ; then
+                       myconf="${myconf} --enable-neural-networking"
+               fi
+       elif use oci8 ; then
+               myconf="${myconf} --with-storage-driver=ora_drv"
+               myconf="${myconf} --with-oracle-home=${ORACLE_HOME}"
+               myconf="${myconf} --enable-virtual-users"
+               myconf="${myconf} --enable-preferences-extension"
+
+               # I am in no way a Oracle specialist. If someone knows
+               # how to query the version of Oracle, then let me know.
+               if (expr ${ORACLE_HOME/*\/} : 10 1>/dev/null 2>&1)
+               then
+                       --with-oracle-version=MAJOR
+                       myconf="${myconf} --with-oracle-version=10"
+               fi
+       elif use sqlite ; then
+               myconf="${myconf} --with-storage-driver=sqlite_drv"
+               myconf="${myconf} --enable-virtual-users"
+               myconf="${myconf} --enable-preferences-extension"
+
+       else
+               myconf="${myconf} --with-storage-driver=libdb4_drv"
+       fi
+
+       econf ${myconf} || die
+       cd ${S}/cgi
+       make
+}
+
+src_install () {
+       cd ${S}/cgi
+       webapp_src_preinst
+
+       sed -e 's,/var/dspam,/etc/mail/dspam,' \
+               -e 's,/usr/local,/usr,' \
+               -i admin.cgi
+       sed -e 's,/var/dspam,/etc/mail/dspam,' \
+               -e 's,/usr/local,/usr,' \
+               -i dspam.cgi
+
+       insinto ${MY_HTDOCSDIR}
+       insopts -m644 -o apache -g apache
+       doins *.css
+       doins *.gif
+       doins rgb.txt
+       doins default.prefs
+       doins admins
+       doins configure.pl
+
+       newins ${FILESDIR}/htaccess .htaccess
+       newins ${FILESDIR}/htpasswd .htpasswd
+
+       insopts -m755 -o apache -g apache
+       doins *.cgi
+
+       for CGI_SCRIPT in admin.cgi  admingraph.cgi  dspam.cgi  graph.cgi; do
+               webapp_runbycgibin perl ${MY_HTDOCSDIR}/${CGI_SCRIPT}
+       done
+
+       dodir ${MY_HTDOCSDIR}/templates
+
+       insinto ${MY_HTDOCSDIR}/templates
+       doins templates/*.html
+
+       #All files must be owned by server
+       cd ${D}${MY_HTDOCSDIR}
+       for x in `find . -type f -print` ; do
+               webapp_serverowned ${MY_HTDOCSDIR}/$x
+       done
+
+       webapp_src_install
+}
+
+pkg_config () {
+       # add apache to the dspam group so the CGIs can access the data
+
+       local groups
+       groups=`groups apache`
+       groups=`echo ${groups} | sed -e 's/ /,/g'`
+       usermod -G "${groups},dspam" apache
+}
+
+pkg_postinst () {
+       einfo "The CGIs need to be executed as group dspam in order to write"
+       einfo "to the dspam data directory. You will need to configure apache"
+       einfo "manually to do this. Another option is to add the user apache"
+       einfo "to the dspam group. You can do this automatically by running:"
+       echo
+       einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
+       echo
+       einfo "This app requires basic auth in order to operate properly."
+       einfo "You will need to add dspam users to the .htpasswd file or"
+       einfo "configure a different authentication mechanism for the user"
+       einfo "accounts."
+}
diff --git a/www-apps/dspam-web/files/digest-dspam-web-3.2.4 b/www-apps/dspam-web/files/digest-dspam-web-3.2.4
new file mode 100644 (file)
index 0000000..8908e58
--- /dev/null
@@ -0,0 +1 @@
+MD5 30885376c7300c5abde37896b0ccf89a dspam-3.2.4.tar.gz 620924
diff --git a/www-apps/dspam-web/files/digest-dspam-web-3.3.8 b/www-apps/dspam-web/files/digest-dspam-web-3.3.8
new file mode 100644 (file)
index 0000000..b682107
--- /dev/null
@@ -0,0 +1 @@
+MD5 528149acf47072c0d65bc24ae827d94d dspam-3.3.8.tar.gz 655110