Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 2017 01:18:16 +0000 (UTC)
From:      "Danilo G. Baio" <dbaio@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r448747 - in head/mail: . smfsav smfsav-devel smfsav-devel/files
Message-ID:  <201708260118.v7Q1IGxA078692@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dbaio
Date: Sat Aug 26 01:18:16 2017
New Revision: 448747
URL: https://svnweb.freebsd.org/changeset/ports/448747

Log:
  New port: mail/smfsav-devel
  
  mail/smfsav -> mail/smfsav-devel
  
  This is a fork of smf-sav which was originally written by Eugene Kurmanin.
  It is a "reloaded" version with heavy bugfixes maintained by Gabriele
  Maria Plutzar.
  
  WWW: http://smf-sav.anw.at/
  
  PR:		216669
  Submitted by:	Kan Sasaki <sasaki@fcc.ad.jp>

Added:
  head/mail/smfsav-devel/
     - copied from r448744, head/mail/smfsav/
Modified:
  head/mail/Makefile
  head/mail/smfsav-devel/Makefile
  head/mail/smfsav-devel/distinfo
  head/mail/smfsav-devel/files/patch-readme
  head/mail/smfsav-devel/files/patch-smf-sav.c
  head/mail/smfsav-devel/files/patch-smf-sav.conf
  head/mail/smfsav-devel/files/pkg-message.in
  head/mail/smfsav-devel/pkg-descr
  head/mail/smfsav/Makefile

Modified: head/mail/Makefile
==============================================================================
--- head/mail/Makefile	Sat Aug 26 00:49:33 2017	(r448746)
+++ head/mail/Makefile	Sat Aug 26 01:18:16 2017	(r448747)
@@ -643,6 +643,7 @@
     SUBDIR += slapd-cyrus
     SUBDIR += sma
     SUBDIR += smfsav
+    SUBDIR += smfsav-devel
     SUBDIR += smtp-cli
     SUBDIR += smtp-gated
     SUBDIR += smtpfeed

Modified: head/mail/smfsav-devel/Makefile
==============================================================================
--- head/mail/smfsav/Makefile	Fri Aug 25 23:32:36 2017	(r448744)
+++ head/mail/smfsav-devel/Makefile	Sat Aug 26 01:18:16 2017	(r448747)
@@ -2,17 +2,16 @@
 # $FreeBSD$
 
 PORTNAME=	smfsav
-PORTVERSION=	1.4.0
-PORTREVISION=	3
+PORTVERSION=	2.1
 CATEGORIES=	mail
-MASTER_SITES=	SF/smfs
-DISTNAME=	smf-sav-${PORTVERSION}
-DIST_SUBDIR=	${PORTNAME}
+MASTER_SITES=	http://smf-sav.anw.at/
+PKGNAMESUFFIX=	-devel
+DISTNAME=	smf-sav-reloaded-${PORTVERSION}
 
 MAINTAINER=	sasaki@fcc.ad.jp
 COMMENT=	Sendmail Sender Address Validator
 
-LICENSE=	GPLv2
+LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 USERS=		smfs
@@ -28,6 +27,9 @@ LDFLAGS+=	-lmilter -lpthread
 SMFSAV_RUN_DIR?=/var/run/smfs
 PLIST_SUB=	SMFSAV_RUN_DIR=${SMFSAV_RUN_DIR}
 SUB_FILES+=	pkg-message
+SUB_LIST=	${PLIST_SUB}
+
+CONFLICTS=	smfsav
 
 .include <bsd.port.pre.mk>
 .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"

Modified: head/mail/smfsav-devel/distinfo
==============================================================================
--- head/mail/smfsav/distinfo	Fri Aug 25 23:32:36 2017	(r448744)
+++ head/mail/smfsav-devel/distinfo	Sat Aug 26 01:18:16 2017	(r448747)
@@ -1,2 +1,3 @@
-SHA256 (smfsav/smf-sav-1.4.0.tar.gz) = 77a28d012330581b5ecaf126a153f049731c399e294aab0ded53c1b0abab68cc
-SIZE (smfsav/smf-sav-1.4.0.tar.gz) = 21968
+TIMESTAMP = 1503277712
+SHA256 (smf-sav-reloaded-2.1.tar.gz) = 3e3fd5deed7ea30204b8ed1be0bba7da8bd0b5af055aa72e9094e2a6b5891760
+SIZE (smf-sav-reloaded-2.1.tar.gz) = 23356

Modified: head/mail/smfsav-devel/files/patch-readme
==============================================================================
--- head/mail/smfsav/files/patch-readme	Fri Aug 25 23:32:36 2017	(r448744)
+++ head/mail/smfsav-devel/files/patch-readme	Sat Aug 26 01:18:16 2017	(r448747)
@@ -1,6 +1,6 @@
---- readme.orig	2006-10-26 05:15:10.000000000 +0900
-+++ readme	2015-06-02 13:24:39.167974000 +0900
-@@ -38,11 +38,11 @@
+--- readme.orig	2012-04-08 16:07:48 UTC
++++ readme
+@@ -50,18 +50,18 @@ Under FreeBSD the BIND v8 is required (p
  make
  make install
  
@@ -15,3 +15,11 @@
  
    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
++INPUT_MAIL_FILTER(`smf-sav', `S=unix:%%SMFSAV_RUN_DIR%%/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.

Modified: head/mail/smfsav-devel/files/patch-smf-sav.c
==============================================================================
--- head/mail/smfsav/files/patch-smf-sav.c	Fri Aug 25 23:32:36 2017	(r448744)
+++ head/mail/smfsav-devel/files/patch-smf-sav.c	Sat Aug 26 01:18:16 2017	(r448747)
@@ -1,5 +1,5 @@
---- smf-sav.c.orig	2006-10-26 05:15:10.000000000 +0900
-+++ smf-sav.c	2015-06-02 13:30:44.250725000 +0900
+--- smf-sav.c.orig	2013-05-25 11:48:52 UTC
++++ smf-sav.c
 @@ -20,11 +20,7 @@
  #endif
  
@@ -42,3 +42,12 @@
  #define PUBLIC_NAME		"yourhost.yourdomain.tld"
  #define SAFE_CALLBACK		"postmaster@yourdomain.tld"
  #define SYSLOG_FACILITY		LOG_MAIL
+@@ -81,7 +69,7 @@
+ #define TO_PASS_TTL		3600
+ #define TO_TEMPFAIL_TTL		300
+ #define TO_FAIL_TTL		3600
+-#define WORK_SPACE		"/var/run/smfs"
++#define WORK_SPACE		"%%SMFSAV_RUN_DIR%%"
+ #define OCONN			"unix:" WORK_SPACE "/smf-sav.sock"
+ #define USER			"smfs"
+ 

Modified: head/mail/smfsav-devel/files/patch-smf-sav.conf
==============================================================================
--- head/mail/smfsav/files/patch-smf-sav.conf	Fri Aug 25 23:32:36 2017	(r448744)
+++ head/mail/smfsav-devel/files/patch-smf-sav.conf	Sat Aug 26 01:18:16 2017	(r448747)
@@ -1,8 +1,20 @@
---- smf-sav.conf.orig	2006-10-26 05:15:10.000000000 +0900
-+++ smf-sav.conf	2015-06-02 13:32:07.814150000 +0900
+--- smf-sav.conf.orig	2012-04-08 17:04:38 UTC
++++ smf-sav.conf
 @@ -1,4 +1,4 @@
 -# /etc/mail/smfs/smf-sav.conf
 +# %%PREFIX%%/etc/smf-sav.conf
  #
- # smf-sav configuration file v1.4.0 (it's read at start)
+ # smf-sav configuration file v2.0
+ # pre initialisised with useful values
+@@ -173,9 +173,9 @@ ToFailTTL	10h	# recipients that did not 
+ 
+ # Socket used to communicate with a Sendmail daemon
+ #
+-# Default: unix:/var/run/smfs/smf-sav.sock
++# Default: unix:%%SMFSAV_RUN_DIR%%/smf-sav.sock
+ #
+-Socket		unix:/var/run/smfs/smf-sav.sock
++Socket		unix:%%SMFSAV_RUN_DIR%%/smf-sav.sock
+ 
+ # Facility for logging via a Syslog daemon
  #

Modified: head/mail/smfsav-devel/files/pkg-message.in
==============================================================================
--- head/mail/smfsav/files/pkg-message.in	Fri Aug 25 23:32:36 2017	(r448744)
+++ head/mail/smfsav-devel/files/pkg-message.in	Sat Aug 26 01:18:16 2017	(r448747)
@@ -3,7 +3,7 @@
 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(`smf-sav', `S=unix:/var/run/smfs/smf-sav.sock, T=S:30s;R:4m')dnl
+    INPUT_MAIL_FILTER(`smf-sav', `S=unix:%%SMFSAV_RUN_DIR%%/smf-sav.sock, T=S:30s;R:4m')dnl
 3. Put line smfsav_enable="YES" to /etc/rc.conf file
 4. Run `service smfsav start`
 =====================================================================================

Modified: head/mail/smfsav-devel/pkg-descr
==============================================================================
--- head/mail/smfsav/pkg-descr	Fri Aug 25 23:32:36 2017	(r448744)
+++ head/mail/smfsav-devel/pkg-descr	Sat Aug 26 01:18:16 2017	(r448747)
@@ -1,11 +1,15 @@
-  It's a lightweight, fast and reliable Sendmail milter that implements
+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
+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
+It's a lite alternative for the spamilter, milter-sender and milter-ahead
 milters.
 
-WWW: http://smfs.sourceforge.net/
+This is a fork of smf-sav which was originally written by Eugene Kurmanin.
+It is a "reloaded" version with heavy bugfixes maintained by Gabriele
+Maria Plutzar.
+
+WWW: http://smf-sav.anw.at/

Modified: head/mail/smfsav/Makefile
==============================================================================
--- head/mail/smfsav/Makefile	Sat Aug 26 00:49:33 2017	(r448746)
+++ head/mail/smfsav/Makefile	Sat Aug 26 01:18:16 2017	(r448747)
@@ -29,6 +29,8 @@ SMFSAV_RUN_DIR?=/var/run/smfs
 PLIST_SUB=	SMFSAV_RUN_DIR=${SMFSAV_RUN_DIR}
 SUB_FILES+=	pkg-message
 
+CONFLICTS=	smfsav-devel
+
 .include <bsd.port.pre.mk>
 .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708260118.v7Q1IGxA078692>