diff options
Diffstat (limited to 'mail/smfsav')
-rw-r--r-- | mail/smfsav/Makefile | 53 | ||||
-rw-r--r-- | mail/smfsav/distinfo | 4 | ||||
-rw-r--r-- | mail/smfsav/files/patch-readme | 28 | ||||
-rw-r--r-- | mail/smfsav/files/patch-smf-sav.c | 57 | ||||
-rw-r--r-- | mail/smfsav/files/patch-smf-sav.conf | 28 | ||||
-rw-r--r-- | mail/smfsav/files/pkg-message.in | 9 | ||||
-rw-r--r-- | mail/smfsav/files/smfsav.in | 24 | ||||
-rw-r--r-- | mail/smfsav/pkg-deinstall | 27 | ||||
-rw-r--r-- | mail/smfsav/pkg-descr | 11 | ||||
-rw-r--r-- | mail/smfsav/pkg-install | 32 |
10 files changed, 0 insertions, 273 deletions
diff --git a/mail/smfsav/Makefile b/mail/smfsav/Makefile deleted file mode 100644 index 5efbf5b0849c..000000000000 --- a/mail/smfsav/Makefile +++ /dev/null @@ -1,53 +0,0 @@ -# Created by: Anton Lysenok <bart@tapolsky.net.ua> -# $FreeBSD$ - -PORTNAME= smfsav -PORTVERSION= 1.4.0 -PORTREVISION= 1 -CATEGORIES= mail -MASTER_SITES= SF/smfs -DISTNAME= smf-sav-${PORTVERSION} -DIST_SUBDIR= ${PORTNAME} - -MAINTAINER= ports@FreeBSD.org -COMMENT= Sendmail Sender Address Validator - -LICENSE= GPLv2 - -OPTIONS_DEFINE= DOCS - -USE_RC_SUBR= smfsav - -CPPFLAGS+= -D_REENTRANT ${PTHREAD_CFLAGS} -LDFLAGS+= -lmilter ${PTHREAD_LIBS} - -SUB_FILES= pkg-message - -PORTDOCS= CHANGES README -PLIST_FILES= sbin/smfsav \ - etc/smfsav.conf-dist - -NO_STAGE= yes -.include <bsd.port.pre.mk> - -post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/readme - -do-build: - (cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o smf-sav smf-sav.c \ - ${LDFLAGS}) - -do-install: - (cd ${WRKSRC} \ - && ${INSTALL_PROGRAM} smf-sav ${PREFIX}/sbin/smfsav \ - && ${INSTALL_DATA} smf-sav.conf ${PREFIX}/etc/smfsav.conf-dist) -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - (cd ${WRKSRC} \ - && ${INSTALL_DATA} ChangeLog ${DOCSDIR}/CHANGES \ - && ${INSTALL_DATA} readme ${DOCSDIR}/README) -.endif - ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - @${CAT} ${PKGMESSAGE} - -.include <bsd.port.post.mk> diff --git a/mail/smfsav/distinfo b/mail/smfsav/distinfo deleted file mode 100644 index 3f12422dac3c..000000000000 --- a/mail/smfsav/distinfo +++ /dev/null @@ -1,4 +0,0 @@ -SHA256 (smfsav/smf-sav-1.4.0.tar.gz) = 77a28d012330581b5ecaf126a153f049731c399e294aab0ded53c1b0abab68cc -SIZE (smfsav/smf-sav-1.4.0.tar.gz) = 21968 -SHA256 (smfsav/bind-src.tar.gz) = a0ef8506227797ee57a6c9488fc9ef355ba2fc1fa4616fe68abf0ed6cd009b68 -SIZE (smfsav/bind-src.tar.gz) = 1484718 diff --git a/mail/smfsav/files/patch-readme b/mail/smfsav/files/patch-readme deleted file mode 100644 index 37a0ed97d447..000000000000 --- a/mail/smfsav/files/patch-readme +++ /dev/null @@ -1,28 +0,0 @@ ---- readme.orig 2006-10-25 23:15:10.000000000 +0300 -+++ readme 2008-02-17 14:50:09.000000000 +0200 -@@ -38,21 +38,18 @@ - make - make install - -- Inspect and edit the /etc/mail/smfs/smf-sav.conf file. -+ Inspect and edit the %%PREFIX%%/etc/smfsav.conf file. - --/usr/local/sbin/smf-sav -+%%PREFIX%%/sbin/smfsav - or --/usr/local/sbin/smf-sav -c /etc/mail/smfs/smf-sav.conf -+%%PREFIX%%/sbin/smfsav -c %%PREFIX%%/etc/smfsav.conf - - Add this milter to start-up scripts before starting a Sendmail daemon. - Look at the contributed samples of start-up scripts. - - Add these lines to your Sendmail configuration file (usually sendmail.mc): - define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`, {verify}')dnl --INPUT_MAIL_FILTER(`smf-sav', `S=unix:/var/run/smfs/smf-sav.sock, T=S:30s;R:4m')dnl -- --IMPORTANT: make sure that /var/run is not a group writable directory! If so, --or chmod 755 /var/run, or if it's impossible switch to another directory. -+INPUT_MAIL_FILTER(`smfsav', `S=unix:/var/run/smfsav/smfsav.sock, T=S:30s;R:4m')dnl - - IMPORTANT: make sure that libmilter is compiled with BROKEN_PTHREAD_SLEEP defined. - If this symbol is not defined, libmilter will use sleep() in signal-handler thread, diff --git a/mail/smfsav/files/patch-smf-sav.c b/mail/smfsav/files/patch-smf-sav.c deleted file mode 100644 index 6c1bbc21004a..000000000000 --- a/mail/smfsav/files/patch-smf-sav.c +++ /dev/null @@ -1,57 +0,0 @@ ---- smf-sav.c.orig Wed Oct 25 23:15:10 2006 -+++ smf-sav.c Wed Aug 29 15:54:13 2007 -@@ -20,11 +20,7 @@ - #endif - - #include <arpa/inet.h> --#if __linux__ || __sun__ - #include <arpa/nameser.h> --#else --#include <bind/arpa/nameser.h> --#endif - #include <ctype.h> - #include <errno.h> - #include <fcntl.h> -@@ -33,20 +29,12 @@ - #endif - #include <grp.h> - #include <libmilter/mfapi.h> --#if __linux__ || __sun__ - #include <netdb.h> --#else --#include <bind/netdb.h> --#endif - #include <netinet/in.h> - #include <pthread.h> - #include <pwd.h> - #include <regex.h> --#if __linux__ || __sun__ - #include <resolv.h> --#else --#include <bind/resolv.h> --#endif - #include <signal.h> - #include <stdio.h> - #include <stdlib.h> -@@ -68,7 +56,7 @@ - #define hash_size(x) ((unsigned long) 1 << x) - #define hash_mask(x) (hash_size(x) - 1) - --#define CONFIG_FILE "/etc/mail/smfs/smf-sav.conf" -+#define CONFIG_FILE "/usr/local/etc/smfsav.conf" - #define PUBLIC_NAME "yourhost.yourdomain.tld" - #define SAFE_CALLBACK "postmaster@yourdomain.tld" - #define SYSLOG_FACILITY LOG_MAIL -@@ -81,9 +69,9 @@ - #define TO_PASS_TTL 3600 - #define TO_TEMPFAIL_TTL 300 - #define TO_FAIL_TTL 3600 --#define WORK_SPACE "/var/run/smfs" --#define OCONN "unix:" WORK_SPACE "/smf-sav.sock" --#define USER "smfs" -+#define WORK_SPACE "/var/run/smfsav" -+#define OCONN "unix:" WORK_SPACE "/smfsav.sock" -+#define USER "smfsav" - - #define DNS_RETRANS 7 - #define DNS_RETRY 4 diff --git a/mail/smfsav/files/patch-smf-sav.conf b/mail/smfsav/files/patch-smf-sav.conf deleted file mode 100644 index e2d4aa44bb1f..000000000000 --- a/mail/smfsav/files/patch-smf-sav.conf +++ /dev/null @@ -1,28 +0,0 @@ ---- smf-sav.conf.orig 2006-10-25 23:15:10.000000000 +0300 -+++ smf-sav.conf 2008-02-17 14:25:26.000000000 +0200 -@@ -1,4 +1,4 @@ --# /etc/mail/smfs/smf-sav.conf -+# /usr/local/etc/smfsav.conf - # - # smf-sav configuration file v1.4.0 (it's read at start) - # -@@ -97,15 +97,15 @@ - - # Run as a selected user (smf-sav must be started by root) - # --# Default: smfs -+# Default: smfsav - # --#User smfs -+#User smfsav - - # Socket used to communicate with a Sendmail daemon - # --# Default: unix:/var/run/smfs/smf-sav.sock -+# Default: unix:/var/run/smfsav/smfsav.sock - # --#Socket unix:/var/run/smfs/smf-sav.sock -+#Socket unix:/var/run/smfsav/smfsav.sock - - # Facility for logging via a Syslog daemon - # diff --git a/mail/smfsav/files/pkg-message.in b/mail/smfsav/files/pkg-message.in deleted file mode 100644 index 8bfaf8488b02..000000000000 --- a/mail/smfsav/files/pkg-message.in +++ /dev/null @@ -1,9 +0,0 @@ - -===================================================================================== -1. Inspect and edit the %%PREFIX%%/etc/smfsav.conf file -2. Add these lines to your Sendmail configuration file (usually sendmail.mc): - define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`, {verify}')dnl - INPUT_MAIL_FILTER(`smfsav', `S=unix:/var/run/smfsav/smfsav.sock, T=S:30s;R:4m')dnl -3. Put line smfsav_enable="YES" to /etc/rc.conf file -4. Run %%PREFIX%%/etc/rc.d/smfsav start -===================================================================================== diff --git a/mail/smfsav/files/smfsav.in b/mail/smfsav/files/smfsav.in deleted file mode 100644 index 8ebddd4e9e90..000000000000 --- a/mail/smfsav/files/smfsav.in +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -# PROVIDE: smfsav -# REQUIRE: NETWORKING -# BEFORE: sendmail - -# Written for FreeBSD. -# -# $FreeBSD$ -# -# Copy this file into /usr/local/etc/rc.d as /usr/local/etc/rc.d/smfsav -# Add this line to /etc/rc.conf: -# -# smfsav_enable="YES" - -. /etc/rc.subr - -name="smfsav" -rcvar=smfsav_enable -command="%%PREFIX%%/sbin/smfsav" - -load_rc_config ${name} -run_rc_command "$1" - diff --git a/mail/smfsav/pkg-deinstall b/mail/smfsav/pkg-deinstall deleted file mode 100644 index f24af6e46af3..000000000000 --- a/mail/smfsav/pkg-deinstall +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -# -# $FreeBSD$ -# - -PATH=$PATH:/bin:/usr/sbin -export PATH - -if [ "$2" = "POST-DEINSTALL" ]; then - - if pw group show -g 666 2>&1 >/dev/null; then - echo "[*] Removing group \"smfsav\"" - pw groupdel -g 666 - fi - - if pw user show -u 666 2>&1 >/dev/null; then - echo "[*] Removing user \"smfsav\"" - pw userdel -u 666 - fi - - if [ -d /var/run/smfsav ]; then - echo "[*] Removing directory \"/var/run/smfsav\"" - rmdir /var/run/smfsav - fi - -fi diff --git a/mail/smfsav/pkg-descr b/mail/smfsav/pkg-descr deleted file mode 100644 index 77a6b0ac559b..000000000000 --- a/mail/smfsav/pkg-descr +++ /dev/null @@ -1,11 +0,0 @@ - It's a lightweight, fast and reliable Sendmail milter that implements -a real-time Sender e-Mail Address Verification technology. This technology -can stop some kinds of SPAM with a spoofed sender's e-Mail address. - Also it implements a real-time Recipient e-Mail Address Verification -technology. It can be useful if your machine is a backup MX for the recipient's -domains or if your machine forwards all e-Mail messages as a relay host for your -domains to another internal or external e-Mail servers. - It's a lite alternative for the spamilter, milter-sender and milter-ahead -milters. - -WWW: http://smfs.sourceforge.net/ diff --git a/mail/smfsav/pkg-install b/mail/smfsav/pkg-install deleted file mode 100644 index 90e611687f93..000000000000 --- a/mail/smfsav/pkg-install +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -# -# $FreeBSD$ -# - -PATH=$PATH:/bin:/usr/sbin -export PATH - - -if [ "$2" = "POST-INSTALL" ]; then - - if grep "^smfsav:" /etc/group > /dev/null; then - : - else - echo "[*] Adding group \"smfsav\"" - pw groupadd -n smfsav -g 666 - fi - - if grep "^smfsav:" /etc/passwd > /dev/null; then - : - else - echo "[*] Adding user \"smfsav\"" - pw useradd -c SMFSAV -g smfsav -n smfsav -d /nonexistent -s /usr/sbin/nologin -u 666 - fi - - echo "[*] Creating directory \"/var/run/smfsav\"" - mkdir /var/run/smfsav - chown smfsav:smfsav /var/run/smfsav - chmod 700 /var/run/smfsav - -fi |