version bump - bug #299090. Ebuild thanks to Tom Hendrikx
authorEray Aslan <eras@gentoo.org>
Fri, 5 Aug 2011 06:46:32 +0000 (06:46 +0000)
committerEray Aslan <eras@gentoo.org>
Fri, 5 Aug 2011 06:46:32 +0000 (06:46 +0000)
Package-Manager: portage-2.1.10.9/cvs/Linux x86_64

mail-filter/dspam/dspam-3.10.0.ebuild
mail-filter/dspam/files/dspam.cron-r4 [moved from mail-filter/dspam/files/dspam.cron with 100% similarity]
mail-filter/dspam/files/dspam.initd [new file with mode: 0644]
mail-filter/dspam/files/dspam.logrotate [new file with mode: 0644]
mail-filter/dspam/metadata.xml

index 86ec13a1801e05b6f329c0d022d8139ffe7220de..3c2067bfe14de0ea65f95e64e55118c669cbd9aa 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/dspam-3.10.0.ebuild,v 1.1 2011/08/05 06:42:42 eras Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/dspam-3.10.0.ebuild,v 1.2 2011/08/05 06:46:32 eras Exp $
 
 EAPI=4
 
@@ -192,7 +192,7 @@ src_install() {
        exeinto /usr/bin
        newexe contrib/dspam_maintenance/dspam_maintenance.sh dspam_maintenance
        exeinto /etc/cron.daily
-       newexe "${FILESDIR}/dspam.cron" dspam
+       newexe "${FILESDIR}/dspam.cron-r4" dspam
 
        insinto /etc/logrotate.d
        newins "${FILESDIR}/dspam.logrotate" dspam
diff --git a/mail-filter/dspam/files/dspam.initd b/mail-filter/dspam/files/dspam.initd
new file mode 100644 (file)
index 0000000..b0e05ae
--- /dev/null
@@ -0,0 +1,45 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/files/dspam.initd,v 1.1 2011/08/05 06:42:42 eras Exp $
+
+opts="${opts} reload"
+PIDFILE=${PID_FILE:-/var/run/dspam/dspam.pid}
+
+depend() {
+       use logger
+       before mta
+       after postgresql mysql ldap
+}
+
+checkconfig() {
+       local PIDDIR
+       PIDDIR=${PIDFILE%/*}
+       if [ ! -d "${PIDDIR:-/var/run/dspam}" ]; then
+               checkpath -q -d -o dspam:dspam -m 0770 "${PIDDIR}" || return 1
+       fi
+}
+
+start() {
+       checkconfig || return 1
+       ebegin "Starting dspam"
+       start-stop-daemon --start \
+               --user ${DAEMON_USER_GROUP} \
+               --pidfile ${PIDFILE} \
+               --exec /usr/bin/dspam -- --daemon
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping dspam"
+       start-stop-daemon --stop \
+               --pidfile ${PIDFILE} \
+               --exec /usr/bin/dspam
+       eend $?
+}
+
+reload() {
+       ebegin "Reloading dspam"
+       start-stop-daemon --signal SIGHUP /usr/bin/dspam 
+       eend $?
+}
diff --git a/mail-filter/dspam/files/dspam.logrotate b/mail-filter/dspam/files/dspam.logrotate
new file mode 100644 (file)
index 0000000..f5e1306
--- /dev/null
@@ -0,0 +1,10 @@
+/var/log/dspam/bnr.log
+/var/log/dspam/dspam.debug 
+/var/log/dspam/dspam.log 
+/var/log/dspam/dspam.messages
+/var/log/dspam/sql.errors {
+       weekly
+       compress
+       missingok
+       copytruncate
+}
index 0d5f01f1dd936a92416dd22fe35181bd701a2be0..28c56e67dbe273330bcec1cd9c72f5feda75a84d 100644 (file)
        <flag name='virtual-users'>
                Build with virtual-users support
        </flag>
+       <flag name='domain-scale'>
+               Build with domain scale setups
+       </flag>
+       <flag name='large-scale'>
+               Build with large scale setups
+       </flag>
+       <flag name='hash'>
+               Enable support for the file-orientated hash driver
+       </flag>
 </use>
 </pkgmetadata>