summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-10-29 18:16:13 +0000
committerAlin Năstac <mrness@gentoo.org>2006-10-29 18:16:13 +0000
commit54615ea8c172b61dacad48ac9998d51df387d61d (patch)
treebf4b36f7ad6f9088f5658c5deba0ae5cbba9df24 /www-apps/dspam-web
parentBlock on virtual/tetex, not just app-text/tetex. (diff)
downloadgentoo-2-54615ea8c172b61dacad48ac9998d51df387d61d.tar.gz
gentoo-2-54615ea8c172b61dacad48ac9998d51df387d61d.tar.bz2
gentoo-2-54615ea8c172b61dacad48ac9998d51df387d61d.zip
Take over the maintainership. Version bump. Fix bug #113210. Remove obsolete versions.
(Portage version: 2.1.1)
Diffstat (limited to 'www-apps/dspam-web')
-rw-r--r--www-apps/dspam-web/ChangeLog11
-rw-r--r--www-apps/dspam-web/dspam-web-3.6.8.ebuild64
-rw-r--r--www-apps/dspam-web/files/digest-dspam-web-3.6.86
-rw-r--r--www-apps/dspam-web/files/postinst-en.txt32
-rw-r--r--www-apps/dspam-web/files/setperms9
-rw-r--r--www-apps/dspam-web/metadata.xml4
6 files changed, 125 insertions, 1 deletions
diff --git a/www-apps/dspam-web/ChangeLog b/www-apps/dspam-web/ChangeLog
index 7b0c75f9c74b..d7579f53998f 100644
--- a/www-apps/dspam-web/ChangeLog
+++ b/www-apps/dspam-web/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for www-apps/dspam-web
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/ChangeLog,v 1.24 2006/08/23 03:03:35 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/ChangeLog,v 1.25 2006/10/29 18:16:13 mrness Exp $
+
+*dspam-web-3.6.8 (29 Oct 2006)
+
+ 29 Oct 2006; Alin Nastac <mrness@gentoo.org> +files/postinst-en.txt,
+ +files/setperms, metadata.xml, -dspam-web-3.2.7.ebuild,
+ -dspam-web-3.4.9-r1.ebuild, -dspam-web-3.6.0.ebuild,
+ -dspam-web-3.6.1.ebuild, -dspam-web-3.6.3.ebuild, +dspam-web-3.6.8.ebuild:
+ Take over the maintainership. Version bump. Fix bug #113210. Remove obsolete
+ versions.
23 Aug 2006; Jason Wever <weeve@gentoo.org> dspam-web-3.6.4.ebuild:
Added ~sparc keyword wrt bug #144621.
diff --git a/www-apps/dspam-web/dspam-web-3.6.8.ebuild b/www-apps/dspam-web/dspam-web-3.6.8.ebuild
new file mode 100644
index 000000000000..e43cc9200554
--- /dev/null
+++ b/www-apps/dspam-web/dspam-web-3.6.8.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2006 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.6.8.ebuild,v 1.1 2006/10/29 18:16:13 mrness Exp $
+
+inherit webapp eutils autotools
+
+DESCRIPTION="Web based administration and user controls for dspam"
+HOMEPAGE="http://dspam.nuclearelephant.com/"
+SRC_URI="http://dspam.nuclearelephant.com/sources/dspam-${PV}.tar.gz
+ mirror://gentoo/dspam-${PV}-patches-20061029.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=mail-filter/dspam-${PV}"
+RDEPEND="${DEPEND}
+ >=dev-perl/GD-2.0
+ dev-perl/GD-Graph3d
+ dev-perl/GDGraph
+ dev-perl/GDTextUtil"
+
+# some FHS-like structure
+HOMEDIR="/var/spool/dspam"
+CONFDIR="/etc/mail/dspam"
+
+S="${WORKDIR}/dspam-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ EPATCH_SUFFIX="patch"
+ epatch "${WORKDIR}"/patches
+
+ AT_M4DIR="${S}/m4"
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ --with-dspam-home=${HOMEDIR} \
+ --sysconfdir=${CONFDIR} || die "econf failed"
+ cd "${S}/webui"
+ emake || die "emake failed"
+}
+
+src_install () {
+ webapp_src_preinst
+
+ cd "${S}/webui"
+ insinto "${MY_HTDOCSDIR}"
+ insopts -m644
+ doins htdocs/*.{css,gif}
+ insinto "${MY_CGIBINDIR}/templates"
+ doins cgi-bin/templates/*.html
+ insinto "${MY_CGIBINDIR}"
+ doins cgi-bin/{admins,configure.pl,default.prefs,rgb.txt,*.cgi}
+
+ webapp_hook_script "${FILESDIR}/setperms"
+ webapp_postinst_txt en "${FILESDIR}/postinst-en.txt"
+
+ webapp_src_install
+}
diff --git a/www-apps/dspam-web/files/digest-dspam-web-3.6.8 b/www-apps/dspam-web/files/digest-dspam-web-3.6.8
new file mode 100644
index 000000000000..d6f8d22a7ebd
--- /dev/null
+++ b/www-apps/dspam-web/files/digest-dspam-web-3.6.8
@@ -0,0 +1,6 @@
+MD5 1111971fe18d1cd9c8117870f7363b78 dspam-3.6.8-patches-20061029.tar.gz 5030
+RMD160 cfc2d2c8f896b1e17b8ceed2f51d2c74640e3a58 dspam-3.6.8-patches-20061029.tar.gz 5030
+SHA256 841e93b6347dd3f96f536e9fab3717b5b1c7aa21f0acf04f524fe4c1bb8e903a dspam-3.6.8-patches-20061029.tar.gz 5030
+MD5 c4b1a7079690ee16d8b0f36b2a2a90a4 dspam-3.6.8.tar.gz 743275
+RMD160 93a70db14070cb61bd2ef1b0ca55a18be1dbfd7b dspam-3.6.8.tar.gz 743275
+SHA256 88c7b41fb81e90ba8a260885a1d14bce39f2ef4a06cc2c6b8bfa0b99ba1aec34 dspam-3.6.8.tar.gz 743275
diff --git a/www-apps/dspam-web/files/postinst-en.txt b/www-apps/dspam-web/files/postinst-en.txt
new file mode 100644
index 000000000000..490fa75866d3
--- /dev/null
+++ b/www-apps/dspam-web/files/postinst-en.txt
@@ -0,0 +1,32 @@
+Define your virtual host like this:
+<VirtualHost *:80>
+ DocumentRoot ${VHOST_HTDOCSDIR}
+ ServerName ${VHOST_HOSTNAME}
+
+ #Use dspam.cgi as main index
+ RewriteEngine On
+ RewriteRule ^/?$ /cgi-bin/dspam.cgi [redirect,last]
+
+ SuexecUserGroup dspam dspam
+ ScriptAlias /cgi-bin/ ${VHOST_CGIBINDIR}
+
+ <Directory "${VHOST_CGIBINDIR}">
+ Options FollowSymLinks ExecCGI
+ SetHandler cgi-script
+
+ AllowOverride None
+ Order deny,allow
+ Deny from all
+
+ AuthType basic
+ AuthName "DSPAM Control Center"
+ #For those lucky enough to have a LDAP authentication database
+ AuthLDAPURL ldap://localhost:389/ou=People,dc=yourdomain,dc=com?uid?sub?(objectClass=posixAccount)
+ Require valid-user
+ </Directory>
+</VirtualHost>
+
+The configuration files are:
+ - ${VHOST_CGIBINDIR}/configure.pl
+ - ${VHOST_CGIBINDIR}/admins (super-users of this service)
+ - ${VHOST_CGIBINDIR}/default.prefs (not used by those who use MySQL or PostgreSQL backend)
diff --git a/www-apps/dspam-web/files/setperms b/www-apps/dspam-web/files/setperms
new file mode 100644
index 000000000000..91c4fcf10fdf
--- /dev/null
+++ b/www-apps/dspam-web/files/setperms
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [[ "$1" = "install" ]]; then
+ chgrp -R dspam "${VHOST_CGIBINDIR}"
+ chown dspam "${VHOST_CGIBINDIR}" "${VHOST_CGIBINDIR}"/*.cgi
+ chmod -R ugo+r "${VHOST_CGIBINDIR}"
+ chmod 0755 "${VHOST_CGIBINDIR}"
+ chmod ugo+rx "${VHOST_CGIBINDIR}"/*.cgi
+fi
diff --git a/www-apps/dspam-web/metadata.xml b/www-apps/dspam-web/metadata.xml
index 246710b65f6b..d6adf782d8f5 100644
--- a/www-apps/dspam-web/metadata.xml
+++ b/www-apps/dspam-web/metadata.xml
@@ -3,6 +3,10 @@
<pkgmetadata>
<herd>web-apps</herd>
<maintainer>
+ <email>mrness@gentoo.org</email>
+ <name>Alin Nastac</name>
+</maintainer>
+<maintainer>
<email>st_lim@gentoo.org</email>
</maintainer>
<longdescription>Web Administrative interface for a statistical-algorithmic hybrid anti-spam filter</longdescription>