diff options
author | ache <ache@FreeBSD.org> | 2001-10-04 06:15:01 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-10-04 06:15:01 +0800 |
commit | 5b09767a7fb25793f0524a61cd3aea5c1dba07d3 (patch) | |
tree | 830b50456f6f1bf5cca3d2d2f36ba3d1286a2c0b /security | |
parent | 80681e5e0a7fa838f28dc392fc3e2614e9b1f841 (diff) | |
download | freebsd-ports-graphics-5b09767a7fb25793f0524a61cd3aea5c1dba07d3.tar.gz freebsd-ports-graphics-5b09767a7fb25793f0524a61cd3aea5c1dba07d3.tar.zst freebsd-ports-graphics-5b09767a7fb25793f0524a61cd3aea5c1dba07d3.zip |
Add WITH_DRWEBSFM_SENDMAIL_DIR configuration knob
Add example*.sh to DOC_DIR
Use local version of libsmutil Makefile with FFR_MILTER always turned on
Diffstat (limited to 'security')
-rw-r--r-- | security/drweb-sendmail/Makefile | 28 | ||||
-rw-r--r-- | security/drweb-sendmail/files/Makefile.libmilter (renamed from security/drweb-sendmail/files/Makefile) | 0 | ||||
-rw-r--r-- | security/drweb-sendmail/files/Makefile.libsmutil | 20 | ||||
-rw-r--r-- | security/drweb-sendmail/pkg-plist | 2 |
4 files changed, 35 insertions, 15 deletions
diff --git a/security/drweb-sendmail/Makefile b/security/drweb-sendmail/Makefile index 9a401addbe1..e3b90ed159a 100644 --- a/security/drweb-sendmail/Makefile +++ b/security/drweb-sendmail/Makefile @@ -7,7 +7,7 @@ PORTNAME= drweb_sendmail PORTVERSION= 4.26 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= security mail MASTER_SITES= http://www.drweb.ru/ftp/web_pub/ DISTNAME= drwebd-${PORTVERSION}-freebsd4 @@ -22,7 +22,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/clients/drwebdc .include <bsd.port.pre.mk> INST_PREFIX= ${PREFIX}/${PORTNAME} -SENDMAIL_DIR= /usr/src/contrib/sendmail +WITH_DRWEBSMF_SENDMAIL_DIR= /usr/src/contrib/sendmail LIBSMUTIL_DIR= /usr/src/lib/libsmutil DOC_DIR= ${PREFIX}/share/doc/drweb-sendmail @@ -34,9 +34,9 @@ WITH_DRWEBSMF_HOSTNAME!=hostname .endif .endif -.if exists( ${SENDMAIL_DIR}/include/libmilter/mfapi.h ) +.if exists( ${WITH_DRWEBSMF_SENDMAIL_DIR}/include/libmilter/mfapi.h ) -SENDMAIL_VERSION!= ${AWK} '/^sendmail [0-9.]+$$/{print $$2}' ${SENDMAIL_DIR}/FREEBSD-upgrade +SENDMAIL_VERSION!= ${AWK} '/^sendmail [0-9.]+$$/{print $$2}' ${WITH_DRWEBSMF_SENDMAIL_DIR}/FREEBSD-upgrade SENDMAIL_MAJOR!= ${ECHO} ${SENDMAIL_VERSION} | ${AWK} 'BEGIN{ FS="." }{ print $$1 }' SENDMAIL_MINOR!= ${ECHO} ${SENDMAIL_VERSION} | ${AWK} 'BEGIN{ FS="." }{ print $$2 }' .if ${SENDMAIL_MAJOR} > 8 || ${SENDMAIL_MAJOR} == 8 && ${SENDMAIL_MINOR} >= 12 @@ -48,7 +48,7 @@ IGNORE= "uses Sendmail sources that are expected to have version 8.10.0 or newer .endif .else -IGNORE= "depends on the system sources. Please place them under /usr/src first" +IGNORE= "depends on the Sendmail sources. Please place them somewhere first and point WITH_DRWEBSMF_SENDMAIL_DIR there" .endif post-extract: @@ -56,25 +56,23 @@ post-extract: post-configure: ${MKDIR} ${WRKSRC}/libmilter ${WRKSRC}/libsmutil - ${CP} ${FILESDIR}/Makefile ${WRKSRC}/libmilter - ${CP} ${LIBSMUTIL_DIR}/Makefile ${WRKSRC}/libsmutil + ${CP} ${FILESDIR}/Makefile.libmilter ${WRKSRC}/libmilter/Makefile + ${CP} ${FILESDIR}/Makefile.libsmutil ${WRKSRC}/libsmutil/Makefile .if ${SENDMAIL_VERSION} == "8.11.1" - ${CP} ${SENDMAIL_DIR}/libmilter/listener.c ${WRKSRC}/libmilter - ${LN} -s ${SENDMAIL_DIR}/libmilter/libmilter.h ${WRKSRC}/libmilter + ${CP} ${WITH_DRWEBSMF_SENDMAIL_DIR}/libmilter/listener.c ${WRKSRC}/libmilter cd ${WRKSRC}/libmilter && ${PATCH} < ${WRKSRC}/../sendmail/listener-8.11.1.patch .elif ${SENDMAIL_VERSION} == "8.12.0" - ${CP} ${SENDMAIL_DIR}/libmilter/listener.c ${WRKSRC}/libmilter - ${LN} -s ${SENDMAIL_DIR}/libmilter/libmilter.h ${WRKSRC}/libmilter + ${CP} ${WITH_DRWEBSMF_SENDMAIL_DIR}/libmilter/listener.c ${WRKSRC}/libmilter cd ${WRKSRC}/libmilter && ${PATCH} < ${WRKSRC}/../sendmail/listener-8.12.0.patch .endif - cd ${WRKSRC}/libmilter && ${MAKE} clean && ${MAKE} - cd ${WRKSRC}/libsmutil && ${MAKE} clean && ${MAKE} SENDMAIL_DIR=${SENDMAIL_DIR} + cd ${WRKSRC}/libmilter && ${MAKE} clean && ${MAKE} SENDMAIL_DIR=${WITH_DRWEBSMF_SENDMAIL_DIR} + cd ${WRKSRC}/libsmutil && ${MAKE} clean && ${MAKE} SENDMAIL_DIR=${WITH_DRWEBSMF_SENDMAIL_DIR} cd ${WRKSRC} && { \ ${ECHO} y; \ ${ECHO} n; \ ${ECHO} y; \ ${ECHO} ${SENDMAIL8_12} ; \ - ${ECHO} ${SENDMAIL_DIR} ; \ + ${ECHO} ${WITH_DRWEBSMF_SENDMAIL_DIR} ; \ ${ECHO} ${CFLAGS} ; \ ${ECHO} y; \ } | ./configure @@ -113,7 +111,7 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/drweb-smf ${PREFIX}/sbin/ ${INSTALL_PROGRAM} ${WRKSRC}/drwebdc ${PREFIX}/drweb/ cd ${WRKSRC}/../sendmail; \ - ${INSTALL_DATA} readme.* sendmail.*.addon ${DOC_DIR} + ${INSTALL_DATA} example* readme.* sendmail.*.addon ${DOC_DIR} cd ${WRKSRC}/../sendmail; \ ${INSTALL_DATA} drweb-sendmail.sh \ ${PREFIX}/etc/rc.d/drweb-sendmail.sh-dist diff --git a/security/drweb-sendmail/files/Makefile b/security/drweb-sendmail/files/Makefile.libmilter index b891e9bc2b9..b891e9bc2b9 100644 --- a/security/drweb-sendmail/files/Makefile +++ b/security/drweb-sendmail/files/Makefile.libmilter diff --git a/security/drweb-sendmail/files/Makefile.libsmutil b/security/drweb-sendmail/files/Makefile.libsmutil new file mode 100644 index 00000000000..2e73a9a789a --- /dev/null +++ b/security/drweb-sendmail/files/Makefile.libsmutil @@ -0,0 +1,20 @@ +# $FreeBSD$ +# +SENDMAIL_DIR=/usr/src/contrib/sendmail +.PATH: ${SENDMAIL_DIR}/libsmutil + +CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include +CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL -D_FFR_MILTER=1 + +# User customizations to the sendmail build environment +CFLAGS+=${SENDMAIL_CFLAGS} + +LIB= smutil + +SRCS+= debug.c errstring.c lockfile.c safefile.c snprintf.c strl.c + +INTERNALLIB= true +NOPIC= true +INTERNALSTATICLIB= true + +.include <bsd.lib.mk> diff --git a/security/drweb-sendmail/pkg-plist b/security/drweb-sendmail/pkg-plist index d93acb19b3c..5c86d385683 100644 --- a/security/drweb-sendmail/pkg-plist +++ b/security/drweb-sendmail/pkg-plist @@ -3,6 +3,8 @@ drweb/drwebdc etc/rc.d/drweb-sendmail.sh-dist @exec if [ ! -f %D/etc/rc.d/drweb-sendmail.sh ] ; then cp -p %D/%F %B/drweb-sendmail.sh; chmod 555 %B/drweb-sendmail.sh; fi sbin/drweb-smf +share/doc/drweb-sendmail/example.sh +share/doc/drweb-sendmail/example-rus.sh share/doc/drweb-sendmail/readme.sendmail share/doc/drweb-sendmail/readme.sendmail.rus share/doc/drweb-sendmail/sendmail.cf.addon |