FreeBSD Bugzilla – Attachment 155077 Details for
Bug 199081
[revive port] mail/smfsav: Add staging support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
smfsav.shar
smfsav.shar (text/plain), 8.07 KB, created by
Kan Sasaki
on 2015-04-01 08:26:12 UTC
(
hide
)
Description:
smfsav.shar
Filename:
MIME Type:
Creator:
Kan Sasaki
Created:
2015-04-01 08:26:12 UTC
Size:
8.07 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># . ># ./files ># ./files/smfsav.in ># ./files/pkg-message.in ># ./files/patch-readme ># ./files/patch-smf-sav.c ># ./files/patch-smf-sav.conf ># ./Makefile ># ./distinfo ># ./pkg-descr ># ./pkg-plist ># >echo c - . >mkdir -p . > /dev/null 2>&1 >echo c - ./files >mkdir -p ./files > /dev/null 2>&1 >echo x - ./files/smfsav.in >sed 's/^X//' >./files/smfsav.in << '23f91cfd5280f37baad6fac7dab9660f' >X#!/bin/sh >X >X# PROVIDE: smfsav >X# REQUIRE: NETWORKING >X# BEFORE: sendmail >X >X# Written for FreeBSD. >X# >X# $FreeBSD: head/mail/smfsav/files/smfsav.in 340872 2014-01-24 00:14:07Z mat $ >X# >X# Copy this file into /usr/local/etc/rc.d as /usr/local/etc/rc.d/smfsav >X# Add this line to /etc/rc.conf: >X# >X# smfsav_enable="YES" >X >X. /etc/rc.subr >X >Xname="smfsav" >Xrcvar=smfsav_enable >Xcommand="%%PREFIX%%/sbin/smfsav" >X >Xload_rc_config ${name} >Xrun_rc_command "$1" >23f91cfd5280f37baad6fac7dab9660f >echo x - ./files/pkg-message.in >sed 's/^X//' >./files/pkg-message.in << 'f63be51668f70461c30a5539f7c148ef' >X >X===================================================================================== >X1. Inspect and edit the %%PREFIX%%/etc/smfsav.conf file >X2. Add these lines to your Sendmail configuration file (usually sendmail.mc): >X define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`, {verify}')dnl >X INPUT_MAIL_FILTER(`smfsav', `S=unix:/var/run/smfsav/smfsav.sock, T=S:30s;R:4m')dnl >X3. Put line smfsav_enable="YES" to /etc/rc.conf file >X4. Run service smfsav start >X===================================================================================== >f63be51668f70461c30a5539f7c148ef >echo x - ./files/patch-readme >sed 's/^X//' >./files/patch-readme << 'f042bc4cdbd5fc70869b61c729928704' >X--- readme.orig 2006-10-25 23:15:10.000000000 +0300 >X+++ readme 2008-02-17 14:50:09.000000000 +0200 >X@@ -38,21 +38,18 @@ >X make >X make install >X >X- Inspect and edit the /etc/mail/smfs/smf-sav.conf file. >X+ Inspect and edit the %%PREFIX%%/etc/smfsav.conf file. >X >X-/usr/local/sbin/smf-sav >X+%%PREFIX%%/sbin/smfsav >X or >X-/usr/local/sbin/smf-sav -c /etc/mail/smfs/smf-sav.conf >X+%%PREFIX%%/sbin/smfsav -c %%PREFIX%%/etc/smfsav.conf >X >X Add this milter to start-up scripts before starting a Sendmail daemon. >X Look at the contributed samples of start-up scripts. >X >X Add these lines to your Sendmail configuration file (usually sendmail.mc): >X define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`, {verify}')dnl >X-INPUT_MAIL_FILTER(`smf-sav', `S=unix:/var/run/smfs/smf-sav.sock, T=S:30s;R:4m')dnl >X- >X-IMPORTANT: make sure that /var/run is not a group writable directory! If so, >X-or chmod 755 /var/run, or if it's impossible switch to another directory. >X+INPUT_MAIL_FILTER(`smfsav', `S=unix:/var/run/smfsav/smfsav.sock, T=S:30s;R:4m')dnl >X >X IMPORTANT: make sure that libmilter is compiled with BROKEN_PTHREAD_SLEEP defined. >X If this symbol is not defined, libmilter will use sleep() in signal-handler thread, >f042bc4cdbd5fc70869b61c729928704 >echo x - ./files/patch-smf-sav.c >sed 's/^X//' >./files/patch-smf-sav.c << 'c2ba766d46fdd21862abb74830cf12b6' >X--- smf-sav.c.orig Wed Oct 25 23:15:10 2006 >X+++ smf-sav.c Wed Aug 29 15:54:13 2007 >X@@ -20,11 +20,7 @@ >X #endif >X >X #include <arpa/inet.h> >X-#if __linux__ || __sun__ >X #include <arpa/nameser.h> >X-#else >X-#include <bind/arpa/nameser.h> >X-#endif >X #include <ctype.h> >X #include <errno.h> >X #include <fcntl.h> >X@@ -33,20 +29,12 @@ >X #endif >X #include <grp.h> >X #include <libmilter/mfapi.h> >X-#if __linux__ || __sun__ >X #include <netdb.h> >X-#else >X-#include <bind/netdb.h> >X-#endif >X #include <netinet/in.h> >X #include <pthread.h> >X #include <pwd.h> >X #include <regex.h> >X-#if __linux__ || __sun__ >X #include <resolv.h> >X-#else >X-#include <bind/resolv.h> >X-#endif >X #include <signal.h> >X #include <stdio.h> >X #include <stdlib.h> >X@@ -68,7 +56,7 @@ >X #define hash_size(x) ((unsigned long) 1 << x) >X #define hash_mask(x) (hash_size(x) - 1) >X >X-#define CONFIG_FILE "/etc/mail/smfs/smf-sav.conf" >X+#define CONFIG_FILE "/usr/local/etc/smfsav.conf" >X #define PUBLIC_NAME "yourhost.yourdomain.tld" >X #define SAFE_CALLBACK "postmaster@yourdomain.tld" >X #define SYSLOG_FACILITY LOG_MAIL >X@@ -81,9 +69,9 @@ >X #define TO_PASS_TTL 3600 >X #define TO_TEMPFAIL_TTL 300 >X #define TO_FAIL_TTL 3600 >X-#define WORK_SPACE "/var/run/smfs" >X-#define OCONN "unix:" WORK_SPACE "/smf-sav.sock" >X-#define USER "smfs" >X+#define WORK_SPACE "/var/run/smfsav" >X+#define OCONN "unix:" WORK_SPACE "/smfsav.sock" >X+#define USER "smfsav" >X >X #define DNS_RETRANS 7 >X #define DNS_RETRY 4 >c2ba766d46fdd21862abb74830cf12b6 >echo x - ./files/patch-smf-sav.conf >sed 's/^X//' >./files/patch-smf-sav.conf << 'b5cfa1f6c7e2ef6b4b09981ede57eeca' >X--- smf-sav.conf.orig 2006-10-25 23:15:10.000000000 +0300 >X+++ smf-sav.conf 2008-02-17 14:25:26.000000000 +0200 >X@@ -1,4 +1,4 @@ >X-# /etc/mail/smfs/smf-sav.conf >X+# /usr/local/etc/smfsav.conf >X # >X # smf-sav configuration file v1.4.0 (it's read at start) >X # >X@@ -97,15 +97,15 @@ >X >X # Run as a selected user (smf-sav must be started by root) >X # >X-# Default: smfs >X+# Default: smfsav >X # >X-#User smfs >X+#User smfsav >X >X # Socket used to communicate with a Sendmail daemon >X # >X-# Default: unix:/var/run/smfs/smf-sav.sock >X+# Default: unix:/var/run/smfsav/smfsav.sock >X # >X-#Socket unix:/var/run/smfs/smf-sav.sock >X+#Socket unix:/var/run/smfsav/smfsav.sock >X >X # Facility for logging via a Syslog daemon >X # >b5cfa1f6c7e2ef6b4b09981ede57eeca >echo x - ./Makefile >sed 's/^X//' >./Makefile << '464ef7c6571951809b23e262cbe26e19' >X# Created by: Anton Lysenok <bart@tapolsky.net.ua> >X# $FreeBSD: head/mail/smfsav/Makefile 340722 2014-01-22 17:00:46Z mat $ >X >XPORTNAME= smfsav >XPORTVERSION= 1.4.0 >XPORTREVISION= 1 >XCATEGORIES= mail >XMASTER_SITES= SF/smfs >XDISTNAME= smf-sav-${PORTVERSION} >XDIST_SUBDIR= ${PORTNAME} >X >XMAINTAINER= ports@FreeBSD.org >XCOMMENT= Sendmail Sender Address Validator >X >XLICENSE= GPLv2 >X >XUSERS= smfsav >XGROUPS= smfsav >X >XOPTIONS_DEFINE= DOCS >X >X.include <bsd.port.options.mk> >X >XUSE_RC_SUBR= smfsav >X >XCPPFLAGS+= -D_REENTRANT >XLDFLAGS+= -lmilter -pthread >X >XSMFSAV_RUN_DIR?=/var/run/smfsav >XSUB_FILES+= pkg-message >X >Xpost-patch: >X @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/readme >X >Xdo-build: >X cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o smf-sav smf-sav.c ${LDFLAGS} >X >Xdo-install: >X ${INSTALL_PROGRAM} ${WRKSRC}/smf-sav ${STAGEDIR}${PREFIX}/sbin/smfsav >X ${INSTALL_DATA} ${WRKSRC}/smf-sav.conf ${STAGEDIR}${PREFIX}/etc/smfsav.conf.sample >X >Xpost-install: >X @${MKDIR} ${STAGEDIR}${SMFSAV_RUN_DIR} >X.if ${PORT_OPTIONS:MDOCS} >X @${MKDIR} ${STAGEDIR}${DOCSDIR} >X cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog readme ${STAGEDIR}${DOCSDIR} >X.endif >X >X.include <bsd.port.mk> >464ef7c6571951809b23e262cbe26e19 >echo x - ./distinfo >sed 's/^X//' >./distinfo << 'aec8793adfd5b7c3f00e62ae41a09ac2' >XSHA256 (smfsav/smf-sav-1.4.0.tar.gz) = 77a28d012330581b5ecaf126a153f049731c399e294aab0ded53c1b0abab68cc >XSIZE (smfsav/smf-sav-1.4.0.tar.gz) = 21968 >aec8793adfd5b7c3f00e62ae41a09ac2 >echo x - ./pkg-descr >sed 's/^X//' >./pkg-descr << '0e313719ff012ceaf97a028d51caa8f5' >X It's a lightweight, fast and reliable Sendmail milter that implements >Xa real-time Sender e-Mail Address Verification technology. This technology >Xcan stop some kinds of SPAM with a spoofed sender's e-Mail address. >X Also it implements a real-time Recipient e-Mail Address Verification >Xtechnology. It can be useful if your machine is a backup MX for the recipient's >Xdomains or if your machine forwards all e-Mail messages as a relay host for your >Xdomains to another internal or external e-Mail servers. >X It's a lite alternative for the spamilter, milter-sender and milter-ahead >Xmilters. >X >XWWW: http://smfs.sourceforge.net/ >0e313719ff012ceaf97a028d51caa8f5 >echo x - ./pkg-plist >sed 's/^X//' >./pkg-plist << 'ef3e7f63841ae908ba397c2bef1fbad6' >Xsbin/smfsav >Xetc/smfsav.conf.sample >X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog >X%%PORTDOCS%%%%DOCSDIR%%/readme >X@dir(smfsav,smfsav,700) /var/run/smfsav >ef3e7f63841ae908ba397c2bef1fbad6 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 199081
: 155077 |
155078
|
155079
|
157320
|
157366