FreeBSD Bugzilla – Attachment 179466 Details for
Bug 216669
[NEW PORT] mail/smfsav-devel: Sendmail Sender Address Validator smf-sav reloaded
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
smfsav-devel.shar
smfsav-devel.shar (text/plain), 8.54 KB, created by
Kan Sasaki
on 2017-01-31 07:06:45 UTC
(
hide
)
Description:
smfsav-devel.shar
Filename:
MIME Type:
Creator:
Kan Sasaki
Created:
2017-01-31 07:06:45 UTC
Size:
8.54 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: ># ># smfsav-devel ># smfsav-devel/files ># smfsav-devel/files/pkg-message.in ># smfsav-devel/files/smfsav.in ># smfsav-devel/files/patch-smf-sav.conf ># smfsav-devel/files/patch-readme ># smfsav-devel/files/patch-smf-sav.c ># smfsav-devel/pkg-plist ># smfsav-devel/distinfo ># smfsav-devel/pkg-descr ># smfsav-devel/Makefile ># >echo c - smfsav-devel >mkdir -p smfsav-devel > /dev/null 2>&1 >echo c - smfsav-devel/files >mkdir -p smfsav-devel/files > /dev/null 2>&1 >echo x - smfsav-devel/files/pkg-message.in >sed 's/^X//' >smfsav-devel/files/pkg-message.in << '5c7fd0bfbda02a106fce391f574db578' >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(`smf-sav', `S=unix:%%SMFSAV_RUN_DIR%%/smf-sav.sock, T=S:30s;R:4m')dnl >X3. Put line smfsav_enable="YES" to /etc/rc.conf file >X4. Run `service smfsav start` >X===================================================================================== >5c7fd0bfbda02a106fce391f574db578 >echo x - smfsav-devel/files/smfsav.in >sed 's/^X//' >smfsav-devel/files/smfsav.in << 'ce22b7dfe92cd7cfaca3d24c0c8a3d79' >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 388358 2015-06-02 13:47:20Z amdmi3 $ >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 >X >Xload_rc_config ${name} >X >Xrequired_files=${smfsav_config:="%%PREFIX%%/etc/smf-sav.conf"} >Xcommand="%%PREFIX%%/sbin/smf-sav" >Xcommand_args="-c ${required_files}" >X >Xrun_rc_command "$1" >ce22b7dfe92cd7cfaca3d24c0c8a3d79 >echo x - smfsav-devel/files/patch-smf-sav.conf >sed 's/^X//' >smfsav-devel/files/patch-smf-sav.conf << 'fa8ea7c82ef5d8d52a428a397cadb716' >X--- smf-sav.conf.orig 2012-04-08 17:04:38 UTC >X+++ smf-sav.conf >X@@ -1,4 +1,4 @@ >X-# /etc/mail/smfs/smf-sav.conf >X+# %%PREFIX%%/etc/smf-sav.conf >X # >X # smf-sav configuration file v2.0 >X # pre initialisised with useful values >X@@ -173,9 +173,9 @@ ToFailTTL 10h # recipients that did not >X >X # Socket used to communicate with a Sendmail daemon >X # >X-# Default: unix:/var/run/smfs/smf-sav.sock >X+# Default: unix:%%SMFSAV_RUN_DIR%%/smf-sav.sock >X # >X-Socket unix:/var/run/smfs/smf-sav.sock >X+Socket unix:%%SMFSAV_RUN_DIR%%/smf-sav.sock >X >X # Facility for logging via a Syslog daemon >X # >fa8ea7c82ef5d8d52a428a397cadb716 >echo x - smfsav-devel/files/patch-readme >sed 's/^X//' >smfsav-devel/files/patch-readme << 'c7516a4ccf7ad801a632fa781f16ceb3' >X--- readme.orig 2012-04-08 16:07:48 UTC >X+++ readme >X@@ -50,18 +50,18 @@ Under FreeBSD the BIND v8 is required (p >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/smf-sav.conf file. >X >X-/usr/local/sbin/smf-sav >X+%%PREFIX%%/sbin/smf-sav >X or >X-/usr/local/sbin/smf-sav -c /etc/mail/smfs/smf-sav.conf >X+%%PREFIX%%/sbin/smf-sav -c %%PREFIX%%/etc/smf-sav.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+INPUT_MAIL_FILTER(`smf-sav', `S=unix:%%SMFSAV_RUN_DIR%%/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. >c7516a4ccf7ad801a632fa781f16ceb3 >echo x - smfsav-devel/files/patch-smf-sav.c >sed 's/^X//' >smfsav-devel/files/patch-smf-sav.c << 'b8750f1fec8d35078a136166a0d311bd' >X--- smf-sav.c.orig 2013-05-25 11:48:52 UTC >X+++ smf-sav.c >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 "%%PREFIX%%/etc/smf-sav.conf" >X #define PUBLIC_NAME "yourhost.yourdomain.tld" >X #define SAFE_CALLBACK "postmaster@yourdomain.tld" >X #define SYSLOG_FACILITY LOG_MAIL >X@@ -81,7 +69,7 @@ >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 WORK_SPACE "%%SMFSAV_RUN_DIR%%" >X #define OCONN "unix:" WORK_SPACE "/smf-sav.sock" >X #define USER "smfs" >X >b8750f1fec8d35078a136166a0d311bd >echo x - smfsav-devel/pkg-plist >sed 's/^X//' >smfsav-devel/pkg-plist << '8fae9b37f6ee03b214a8d71100c8a3dd' >Xsbin/smf-sav >X@sample etc/smf-sav.conf.sample >X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog >X%%PORTDOCS%%%%DOCSDIR%%/readme >X@dir(smfs,smfs,700) %%SMFSAV_RUN_DIR%% >8fae9b37f6ee03b214a8d71100c8a3dd >echo x - smfsav-devel/distinfo >sed 's/^X//' >smfsav-devel/distinfo << 'a69dfb90c7e924a0d55c4f2b7b5aa577' >XTIMESTAMP = 1485761367 >XSHA256 (smfsav/smf-sav-reloaded-2.1.tar.gz) = 3e3fd5deed7ea30204b8ed1be0bba7da8bd0b5af055aa72e9094e2a6b5891760 >XSIZE (smfsav/smf-sav-reloaded-2.1.tar.gz) = 23356 >a69dfb90c7e924a0d55c4f2b7b5aa577 >echo x - smfsav-devel/pkg-descr >sed 's/^X//' >smfsav-devel/pkg-descr << '68a14c0008babc8c11715793dcdc162e' >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 >XThis is a fork of smf-sav which was originally written by Eugene Kurmanin. >XIt is a "reloaded" version with heavy bugfixes maintained by Gabriele >XMaria Plutzar. >X >XWWW: http://smf-sav.anw.at/ >68a14c0008babc8c11715793dcdc162e >echo x - smfsav-devel/Makefile >sed 's/^X//' >smfsav-devel/Makefile << '3cf280519b012492ebeb4d12883488b3' >X# Created by: Anton Lysenok <bart@tapolsky.net.ua> >X# $FreeBSD: head/mail/smfsav/Makefile 431152 2017-01-11 01:53:11Z ler $ >X >XPORTNAME= smfsav >XPORTVERSION= 2.1 >XCATEGORIES= mail >XMASTER_SITES= http://smf-sav.anw.at/ >XPKGNAMESUFFIX= -devel >XDISTNAME= smf-sav-reloaded-${PORTVERSION} >XDIST_SUBDIR= ${PORTNAME} >X >XMAINTAINER= sasaki@fcc.ad.jp >XCOMMENT= Sendmail Sender Address Validator >X >XLICENSE= GPLv2 >XLICENSE_FILE= ${WRKSRC}/COPYING >X >XUSERS= smfs >XGROUPS= smfs >X >XOPTIONS_DEFINE= DOCS >X >XUSE_RC_SUBR= smfsav >X >XCPPFLAGS+= -D_REENTRANT >XLDFLAGS+= -lmilter -lpthread >X >XSMFSAV_RUN_DIR?=/var/run/smfs >XPLIST_SUB= SMFSAV_RUN_DIR=${SMFSAV_RUN_DIR} >XSUB_FILES+= pkg-message >XSUB_LIST:= ${PLIST_SUB} >X >XCONFLICTS= smfsav-[0-9]* >X >X.include <bsd.port.pre.mk> >X.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" >X >Xpost-patch: >X.for f in readme smf-sav.c smf-sav.conf >X @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ >X -e 's|%%SMFSAV_RUN_DIR%%|${SMFSAV_RUN_DIR}|g' ${WRKSRC}/${f} >X.endfor >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 >X ${INSTALL_DATA} ${WRKSRC}/smf-sav.conf ${STAGEDIR}${PREFIX}/etc/smf-sav.conf.sample >X @${MKDIR} ${STAGEDIR}${SMFSAV_RUN_DIR} >X @${MKDIR} ${STAGEDIR}${DOCSDIR} >X cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog readme ${STAGEDIR}${DOCSDIR} >X >X.include <bsd.port.post.mk> >3cf280519b012492ebeb4d12883488b3 >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
Flags:
sasaki12
:
maintainer-approval+
Actions:
View
Attachments on
bug 216669
:
179466
|
179467
|
185624