diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-10-27 19:35:41 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-10-27 19:35:41 +0000 |
commit | a895297c71689339d41c587d614cece9e308a4e8 (patch) | |
tree | b2bbe18d2f56ff5a51cbab9049d37a31621614c2 /mail/milter-spamc | |
parent | a6b9ddac1dc97f1f02a8001a5dda77fb63ada322 (diff) | |
download | ports-a895297c71689339d41c587d614cece9e308a4e8.tar.gz ports-a895297c71689339d41c587d614cece9e308a4e8.zip |
Notes
Diffstat (limited to 'mail/milter-spamc')
-rw-r--r-- | mail/milter-spamc/Makefile | 49 | ||||
-rw-r--r-- | mail/milter-spamc/files/milter-spamc.sh | 6 | ||||
-rw-r--r-- | mail/milter-spamc/files/patch-ba | 10 | ||||
-rw-r--r-- | mail/milter-spamc/files/patch-bb | 11 | ||||
-rw-r--r-- | mail/milter-spamc/files/patch-lib-makefile.in | 11 |
5 files changed, 62 insertions, 25 deletions
diff --git a/mail/milter-spamc/Makefile b/mail/milter-spamc/Makefile index 91ce052fa582..beb67376c51e 100644 --- a/mail/milter-spamc/Makefile +++ b/mail/milter-spamc/Makefile @@ -9,6 +9,7 @@ PORTNAME= milter-spamc PORTVERSION= 0.25 CATEGORIES= mail MASTER_SITES= http://www.snert.com/Software/download/ +PKGNAMESUFFIX?= ${BERKELEYDB_SUFFIX} DISTFILES= libsnert-1.40.tgz milter-spamc-${PORTVERSION}.tgz MAINTAINER= mike@tric.tomsk.gov.ru @@ -22,6 +23,14 @@ GNU_CONFIGURE= yes WRKSRC= ${WRKDIR}/com/snert/src/milter-spamc MAKEFILE= makefile +# Options to define Features: +# WITH_DEBUG=yes +# SENDMAIL_WITH_BERKELEYDB_VER=2 +# SENDMAIL_WITH_BERKELEYDB_VER=3 +# SENDMAIL_WITH_BERKELEYDB_VER=4 +# SENDMAIL_WITH_BERKELEYDB_VER=41 +# SENDMAIL_WITH_BERKELEYDB_VER=42 + .include <bsd.port.pre.mk> .if ( ${OSVERSION} < 440000 ) @@ -43,11 +52,49 @@ DOCS= CHANGES.TXT index.shtml style.css mailto.js \ CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" -CONFIGURE_ARGS+=--with-db --localstatedir=/var/spool +CONFIGURE_ARGS+=--localstatedir=/var/spool .if !defined(WITH_DEBUG) CONFIGURE_ARGS+=--disable-debug .endif +.if defined(SENDMAIL_WITH_BERKELEYDB_VER) +.if ${SENDMAIL_WITH_BERKELEYDB_VER} == "2" +BERKELEYDB_SUFFIX= +db2 +BERKELEYDB_PORT?= databases/db2 +BERKELEYDB_LIB?= db2 +BERKELEYDB_INCLUDE?= ${LOCALBASE}/include/db2 +.endif +.if ${SENDMAIL_WITH_BERKELEYDB_VER} == "3" +BERKELEYDB_SUFFIX= +db3 +BERKELEYDB_PORT?= databases/db3 +BERKELEYDB_LIB?= db3 +BERKELEYDB_INCLUDE?= ${LOCALBASE}/include/db3 +.endif +.if ${SENDMAIL_WITH_BERKELEYDB_VER} == "4" +BERKELEYDB_SUFFIX= +db4 +BERKELEYDB_PORT?= databases/db4 +BERKELEYDB_LIB?= db4 +BERKELEYDB_INCLUDE?= ${LOCALBASE}/include/db4 +.endif +.if ${SENDMAIL_WITH_BERKELEYDB_VER} == "41" +BERKELEYDB_SUFFIX= +db41 +BERKELEYDB_PORT?= databases/db41 +BERKELEYDB_LIB?= db41 +BERKELEYDB_INCLUDE?= ${LOCALBASE}/include/db41 +.endif +.if ${SENDMAIL_WITH_BERKELEYDB_VER} == "42" +BERKELEYDB_SUFFIX= +db42 +BERKELEYDB_PORT?= databases/db42 +BERKELEYDB_LIB?= db-4.2 +BERKELEYDB_INCLUDE?= ${LOCALBASE}/include/db42 +.endif +LIB_DEPENDS+= ${BERKELEYDB_LIB}:${PORTSDIR}/${BERKLEYDB_PORT} +RUN_DEPENDS+= ${LOCALBASE}/sbin/makemap:${PORTSDIR}/mail/sendmail +CONFIGURE_ARGS+= --with-db=${BERKELEYDB_INCLUDE} +.else +CONFIGURE_ARGS+= --with-db +.endif + USE_RC_SUBR= yes RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} NAME=milter_spamc diff --git a/mail/milter-spamc/files/milter-spamc.sh b/mail/milter-spamc/files/milter-spamc.sh index ea6f35555024..49fd6ce6a855 100644 --- a/mail/milter-spamc/files/milter-spamc.sh +++ b/mail/milter-spamc/files/milter-spamc.sh @@ -28,16 +28,16 @@ rcvar=`set_rcvar` %%NAME%%_flags=${%%NAME%%_flags:-"-f /etc/mail/sendmail.cf unix:$%%NAME%%_chdir/socket"} command=%%PREFIX%%/sbin/milter-spamc +command_args="&" required_dirs="$%%NAME%%_chdir" -start_cmd=start_cmd -start_cmd() +start_precmd=start_precmd +start_precmd() { if [ -s "$%%NAME%%_chdir/mutex" ]; then ipcrm -s `cat $%%NAME%%_chdir/mutex` fi rm -f $%%NAME%%_chdir/{mutex,socket} $%%NAME%%_pidfile - cd $%%NAME%%_chdir && $command $%%NAME%%_flags >/dev/null & } load_rc_config $name diff --git a/mail/milter-spamc/files/patch-ba b/mail/milter-spamc/files/patch-ba deleted file mode 100644 index 5a57ac6865ee..000000000000 --- a/mail/milter-spamc/files/patch-ba +++ /dev/null @@ -1,10 +0,0 @@ ---- ../tools/here-i-am.c~ Thu Oct 21 03:50:12 2004 -+++ ../tools/here-i-am.c Thu Oct 21 04:01:48 2004 -@@ -34,6 +34,7 @@ - *** You can change the stuff below if the configure script doesn't work. - ***********************************************************************/ - -+#define HAVE_INET_NTOP 1 - - /*********************************************************************** - *** No configuration below this point. diff --git a/mail/milter-spamc/files/patch-bb b/mail/milter-spamc/files/patch-bb deleted file mode 100644 index 8940be7dcc31..000000000000 --- a/mail/milter-spamc/files/patch-bb +++ /dev/null @@ -1,11 +0,0 @@ ---- ../tools/where-are-you.c~ Thu Oct 21 03:55:49 2004 -+++ ../tools/where-are-you.c Thu Oct 21 03:56:28 2004 -@@ -42,6 +42,8 @@ - #define DEFAULT_TIMEOUT 3000 - #endif - -+#define HAVE_INET_NTOP 1 -+ - /*********************************************************************** - *** No configuration below this point. - ***********************************************************************/ diff --git a/mail/milter-spamc/files/patch-lib-makefile.in b/mail/milter-spamc/files/patch-lib-makefile.in new file mode 100644 index 000000000000..60b04dcba2c4 --- /dev/null +++ b/mail/milter-spamc/files/patch-lib-makefile.in @@ -0,0 +1,11 @@ +--- ../lib/makefile.in.orig Mon Oct 25 12:44:54 2004 ++++ ../lib/makefile.in Fri Aug 13 20:34:36 2004 +@@ -60,7 +60,7 @@ + + OBJS = LibSnert$O + +-SUBDIRS = crc type util mail sys io ../tools ++SUBDIRS = crc type util mail sys io + + all: build + |