pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/spamd Initial import of spamd-20050624 (from Open...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2bfcfb57db56
branches: trunk
changeset: 496419:2bfcfb57db56
user: peter <peter%pkgsrc.org@localhost>
date: Tue Jun 28 12:43:57 2005 +0000
description:
Initial import of spamd-20050624 (from OpenBSD 3.7 sources).
spamd is a fake sendmail(8)-like daemon which rejects false mail. If the
pf packet filter (security/pflkm) is configured to redirect port 25 (SMTP)
to this daemon, it will attempt to waste the time and resources of
the spam sender.
Approved by Thomas Klausner.
diffstat:
mail/spamd/DESCR | 4 +++
mail/spamd/MESSAGE | 9 +++++++
mail/spamd/Makefile | 52 +++++++++++++++++++++++++++++++++++++++++++++
mail/spamd/PLIST | 18 +++++++++++++++
mail/spamd/distinfo | 5 ++++
mail/spamd/files/pfspamd.sh | 23 +++++++++++++++++++
6 files changed, 111 insertions(+), 0 deletions(-)
diffs (135 lines):
diff -r 682bf4980057 -r 2bfcfb57db56 mail/spamd/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/spamd/DESCR Tue Jun 28 12:43:57 2005 +0000
@@ -0,0 +1,4 @@
+spamd is a fake sendmail(8)-like daemon which rejects false mail. If the
+pf packet filter (security/pflkm) is configured to redirect port 25 (SMTP)
+to this daemon, it will attempt to waste the time and resources of
+the spam sender. Imported from the OpenBSD 3.7 sources.
diff -r 682bf4980057 -r 2bfcfb57db56 mail/spamd/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/spamd/MESSAGE Tue Jun 28 12:43:57 2005 +0000
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/06/28 12:43:57 peter Exp $
+
+Don't forget to add the spamd ports to /etc/services:
+
+spamd 8025/tcp # spamd(8)
+spamd-cfg 8026/tcp # spamd(8) configuration
+
+===========================================================================
diff -r 682bf4980057 -r 2bfcfb57db56 mail/spamd/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/spamd/Makefile Tue Jun 28 12:43:57 2005 +0000
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/06/28 12:43:57 peter Exp $
+
+DISTNAME= spamd-20050624
+CATEGORIES= mail
+MASTER_SITES= http://nedbsd.nl/~ppostma/pf/
+
+MAINTAINER= peter%pointless.nl@localhost
+HOMEPAGE= http://www.benzedrine.cx/relaydb.html
+COMMENT= OpenBSD spam deferral daemon
+
+ONLY_FOR_PLATFORM= NetBSD-[2-9]*-*
+
+USE_PKGINSTALL= yes
+NO_CONFIGURE= yes
+
+PKG_USERS= _spamd:_spamd::Spam\\ Daemon:${VARBASE}/chroot/spamd:/sbin/nologin
+PKG_GROUPS= _spamd
+
+OWN_DIRS= ${VARBASE}/chroot/spamd
+RCD_SCRIPTS= pfspamd
+
+CONF_FILES= ${PREFIX}/share/examples/spamd/spamd.conf \
+ ${PKG_SYSCONFDIR}/spamd.conf
+
+SUBST_CLASSES= fix
+SUBST_STAGE.fix= post-patch
+SUBST_FILES.fix= spamd/spamd.8
+SUBST_FILES.fix+= spamd-setup/spamd-setup.c spamd-setup/spamd-setup.8
+SUBST_SED.fix= -e 's,/etc/spamd.conf,${PKG_SYSCONFDIR}/spamd.conf,g'
+SUBST_MESSAGE.fix= "Fixing configuration paths."
+
+do-install:
+ ${INSTALL_MAN} ${WRKSRC}/man/spamd.conf.5 ${PREFIX}/man/man5
+ ${INSTALL_MAN} ${WRKSRC}/man/spamd.conf.cat5 ${PREFIX}/man/cat5/spamd.conf.0
+ ${INSTALL_MAN} ${WRKSRC}/spamd/spamd.8 ${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/spamd/spamd.cat8 ${PREFIX}/man/cat8/spamd.0
+ ${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.8 ${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.cat8 ${PREFIX}/man/cat8/spamd-setup.0
+ ${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.8 ${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.cat8 ${PREFIX}/man/cat8/spamdb.0
+ ${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.8 ${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.cat8 ${PREFIX}/man/cat8/spamlogd.0
+
+ ${INSTALL_PROGRAM} ${WRKSRC}/spamd-setup/spamd-setup ${PREFIX}/libexec
+ ${INSTALL_PROGRAM} ${WRKSRC}/spamd/spamd ${PREFIX}/libexec
+ ${INSTALL_PROGRAM} ${WRKSRC}/spamdb/spamdb ${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/spamlogd/spamlogd ${PREFIX}/libexec
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/spamd
+ ${INSTALL_DATA} ${WRKSRC}/etc/spamd.conf ${PREFIX}/share/examples/spamd
+
+.include "../../security/pflkm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 682bf4980057 -r 2bfcfb57db56 mail/spamd/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/spamd/PLIST Tue Jun 28 12:43:57 2005 +0000
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/06/28 12:43:57 peter Exp $
+libexec/spamd
+libexec/spamd-setup
+libexec/spamlogd
+man/cat5/spamd.conf.0
+man/cat8/spamd-setup.0
+man/cat8/spamd.0
+man/cat8/spamdb.0
+man/cat8/spamlogd.0
+man/man5/spamd.conf.5
+man/man8/spamd-setup.8
+man/man8/spamd.8
+man/man8/spamdb.8
+man/man8/spamlogd.8
+sbin/spamdb
+share/examples/rc.d/spamd
+share/examples/spamd/spamd.conf
+@dirrm share/examples/spamd
diff -r 682bf4980057 -r 2bfcfb57db56 mail/spamd/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/spamd/distinfo Tue Jun 28 12:43:57 2005 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/06/28 12:43:57 peter Exp $
+
+SHA1 (spamd-20050624.tar.gz) = 744a62d2fc3e4049debafad5e4069c987d80fcd7
+RMD160 (spamd-20050624.tar.gz) = cfbdafbc344f07b5f106ffdddd2a9702b8312c75
+Size (spamd-20050624.tar.gz) = 33152 bytes
diff -r 682bf4980057 -r 2bfcfb57db56 mail/spamd/files/pfspamd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/spamd/files/pfspamd.sh Tue Jun 28 12:43:57 2005 +0000
@@ -0,0 +1,23 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: pfspamd.sh,v 1.1.1.1 2005/06/28 12:43:57 peter Exp $
+#
+# PROVIDE: pfspamd
+# REQUIRE: DAEMON
+#
+
+. /etc/rc.subr
+
+name="pfspamd"
+rcvar=$name
+command="@PREFIX@/libexec/spamd"
+
+pfspamd_postcmd()
+{
+ if [ -x @PREFIX@/libexec/spamd-setup ]; then
+ @PREFIX@/libexec/spamd-setup
+ fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index