mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Option MILTER fixed.
- Allow to build without milter-support
This commit is contained in:
parent
f99c2697c1
commit
24f64fc37d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48564
4 changed files with 26 additions and 0 deletions
|
@ -69,6 +69,9 @@ SITE+= ${FILESDIR}/site.config.m4.sasl
|
|||
.if defined(SENDMAIL_WITH_LDAP)
|
||||
SITE+= ${FILESDIR}/site.config.m4.ldap
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_MILTER)
|
||||
SITE+= ${FILESDIR}/site.config.m4.milter
|
||||
.endif
|
||||
.if exists(${FILESDIR}/site.config.m4.local)
|
||||
SITE+= ${FILESDIR}/site.config.m4.local
|
||||
.endif
|
||||
|
@ -89,12 +92,16 @@ do-configure:
|
|||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${SITE} > ${WCONF}/site.config.m4
|
||||
|
||||
.if defined(SENDMAIL_WITH_MILTER)
|
||||
post-build:
|
||||
( cd ${WRKSRC}/libmilter && ${MAKE} )
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
@${CAT} ${PKGDIR}/pkg-plist >${PLIST}
|
||||
.if defined(SENDMAIL_WITH_MILTER)
|
||||
@${CAT} ${FILESDIR}/pkg-milter >>${PLIST}
|
||||
.endif
|
||||
if ! pw groupshow smmsp; then pw groupadd smmsp -g 90; fi
|
||||
if ! pw usershow smmsp; then pw useradd smmsp -g smmsp -u 90 \
|
||||
-h - -d /nonexistent -s /nonexistent -c "Sendmail Queue"; fi
|
||||
|
@ -116,6 +123,7 @@ pre-install:
|
|||
post-install:
|
||||
( cd ${WRKSRC}/mail.local && ${MAKE} force-install )
|
||||
( cd ${WRKSRC}/rmail && ${MAKE} force-install )
|
||||
.if defined(SENDMAIL_WITH_MILTER)
|
||||
${MKDIR} ${PREFIX}/include/libmilter
|
||||
${INSTALL_DATA} ${WRKSRC}/include/libmilter/mfapi.h \
|
||||
${PREFIX}/include/libmilter/
|
||||
|
@ -125,6 +133,7 @@ post-install:
|
|||
${INSTALL_DATA} \
|
||||
${WRKSRC}/obj.`${WRKSRC}/devtools/bin/Build -A`/libsmutil/libsmutil.a \
|
||||
${PREFIX}/lib/
|
||||
.endif
|
||||
${INSTALL_DATA} ${WRKSRC}/sm-client.sh \
|
||||
${PREFIX}/etc/rc.d/sm-client.sh.sample
|
||||
${CHOWN} smmsp:smmsp /var/spool/clientmqueue
|
||||
|
@ -154,9 +163,11 @@ post-install:
|
|||
${PREFIX}/share/doc/sendmail/MAIL.LOCAL
|
||||
${INSTALL_DATA} ${WRKSRC}/smrsh/README \
|
||||
${PREFIX}/share/doc/sendmail/SMRSH
|
||||
.if defined(SENDMAIL_WITH_MILTER)
|
||||
${INSTALL_DATA} ${WRKSRC}/libmilter/README \
|
||||
${PREFIX}/share/doc/sendmail/MILTER
|
||||
.endif
|
||||
.endif
|
||||
.if exists(${DESTDIR}/etc/mail/mailer.conf)
|
||||
@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGMESSAGE}
|
||||
|
||||
|
|
2
mail/sendmail/files/site.config.m4.milter
Normal file
2
mail/sendmail/files/site.config.m4.milter
Normal file
|
@ -0,0 +1,2 @@
|
|||
APPENDDEF(`conf_libmilter_ENVDEF', `-DMILTER')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
|
|
@ -69,6 +69,9 @@ SITE+= ${FILESDIR}/site.config.m4.sasl
|
|||
.if defined(SENDMAIL_WITH_LDAP)
|
||||
SITE+= ${FILESDIR}/site.config.m4.ldap
|
||||
.endif
|
||||
.if defined(SENDMAIL_WITH_MILTER)
|
||||
SITE+= ${FILESDIR}/site.config.m4.milter
|
||||
.endif
|
||||
.if exists(${FILESDIR}/site.config.m4.local)
|
||||
SITE+= ${FILESDIR}/site.config.m4.local
|
||||
.endif
|
||||
|
@ -89,12 +92,16 @@ do-configure:
|
|||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
|
||||
${SITE} > ${WCONF}/site.config.m4
|
||||
|
||||
.if defined(SENDMAIL_WITH_MILTER)
|
||||
post-build:
|
||||
( cd ${WRKSRC}/libmilter && ${MAKE} )
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
@${CAT} ${PKGDIR}/pkg-plist >${PLIST}
|
||||
.if defined(SENDMAIL_WITH_MILTER)
|
||||
@${CAT} ${FILESDIR}/pkg-milter >>${PLIST}
|
||||
.endif
|
||||
if ! pw groupshow smmsp; then pw groupadd smmsp -g 90; fi
|
||||
if ! pw usershow smmsp; then pw useradd smmsp -g smmsp -u 90 \
|
||||
-h - -d /nonexistent -s /nonexistent -c "Sendmail Queue"; fi
|
||||
|
@ -116,6 +123,7 @@ pre-install:
|
|||
post-install:
|
||||
( cd ${WRKSRC}/mail.local && ${MAKE} force-install )
|
||||
( cd ${WRKSRC}/rmail && ${MAKE} force-install )
|
||||
.if defined(SENDMAIL_WITH_MILTER)
|
||||
${MKDIR} ${PREFIX}/include/libmilter
|
||||
${INSTALL_DATA} ${WRKSRC}/include/libmilter/mfapi.h \
|
||||
${PREFIX}/include/libmilter/
|
||||
|
@ -125,6 +133,7 @@ post-install:
|
|||
${INSTALL_DATA} \
|
||||
${WRKSRC}/obj.`${WRKSRC}/devtools/bin/Build -A`/libsmutil/libsmutil.a \
|
||||
${PREFIX}/lib/
|
||||
.endif
|
||||
${INSTALL_DATA} ${WRKSRC}/sm-client.sh \
|
||||
${PREFIX}/etc/rc.d/sm-client.sh.sample
|
||||
${CHOWN} smmsp:smmsp /var/spool/clientmqueue
|
||||
|
@ -154,9 +163,11 @@ post-install:
|
|||
${PREFIX}/share/doc/sendmail/MAIL.LOCAL
|
||||
${INSTALL_DATA} ${WRKSRC}/smrsh/README \
|
||||
${PREFIX}/share/doc/sendmail/SMRSH
|
||||
.if defined(SENDMAIL_WITH_MILTER)
|
||||
${INSTALL_DATA} ${WRKSRC}/libmilter/README \
|
||||
${PREFIX}/share/doc/sendmail/MILTER
|
||||
.endif
|
||||
.endif
|
||||
.if exists(${DESTDIR}/etc/mail/mailer.conf)
|
||||
@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGMESSAGE}
|
||||
|
||||
|
|
2
mail/sendmail812/files/site.config.m4.milter
Normal file
2
mail/sendmail812/files/site.config.m4.milter
Normal file
|
@ -0,0 +1,2 @@
|
|||
APPENDDEF(`conf_libmilter_ENVDEF', `-DMILTER')
|
||||
APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
|
Loading…
Add table
Reference in a new issue