[Midnightbsd-cvs] mports: mail/milter-greylist: Use SUB_FILES to build the pkg-message
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Sun May 18 17:24:39 EDT 2008
Log Message:
-----------
Use SUB_FILES to build the pkg-message this is the right way to fix this.
(If the subfiles framework doesn't work for you, and you need the real
envirement, do it in {post,pre}-fake)
Modified Files:
--------------
mports/mail/milter-greylist:
Makefile (r1.5 -> r1.6)
Added Files:
-----------
mports/mail/milter-greylist/files:
pkg-message.in (r1.1)
Removed Files:
-------------
mports/mail/milter-greylist:
pkg-message
-------------- next part --------------
--- mail/milter-greylist/pkg-message
+++ /dev/null
@@ -1,20 +0,0 @@
-===> IMPORTANT NOTE
-
- A sample configuration file has been installed in %%PREFIX%%/etc/mail
- directory. Copy and edit it to suit your needs before launching
- milter-greylist.
-
- Add following lines
-
-dnl j,{if_addr},{cert_subject},i,{auth_authen} are already enabled by default
-define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO``, {verify}'')
-define(`confMILTER_MACROS_ENVRCPT', confMILTER_MACROS_ENVRCPT``, {greylist}'')
-INPUT_MAIL_FILTER(`greylist', `S=local:/var/milter-greylist/milter-greylist.sock, F=T, T=R:30s')
-
- to your /etc/mail/<your_host>.mc configuration.
-
- To run milter-greylist from startup, add miltergreylist_enable="YES"
- in your /etc/rc.conf or your /etc/rc.conf.local
-
- See %%DOCSDIR%%/README for operation details.
-
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/mail/milter-greylist/Makefile,v
retrieving revision 1.5
retrieving revision 1.6
diff -L mail/milter-greylist/Makefile -L mail/milter-greylist/Makefile -u -r1.5 -r1.6
--- mail/milter-greylist/Makefile
+++ mail/milter-greylist/Makefile
@@ -18,8 +18,6 @@
LICENSE= bsd4
# well bsd3 but it's advertising... be conservative
-PKGMESSAGE= ${WRKDIR}/pkg-message
-
OPTIONS= LIBSPF2 "Enable SPF checks" Off \
GEOIP "Enable GEOIP" Off \
CURL " Enable CURL for URL checks" Off
@@ -38,6 +36,8 @@
MAN5= greylist.conf.5
MAN8= milter-greylist.8
+SUB_FILES= pkg-message
+
.include <bsd.port.pre.mk>
.if !defined(WITH_SENDMAIL_BASE) && \
@@ -98,9 +98,6 @@
@${INSTALL_DATA} ${WRKSRC}/greylist.conf \
${PREFIX}/etc/mail/greylist.conf.sample
@${INSTALL_SCRIPT} ${WRKSRC}/milter-greylist.sh ${PREFIX}/etc/rc.d/
- @${SED} -e "s,%%DOCSDIR%%,${LOCALBASE}/share/doc/milter-greylist,g" \
- -e "s,%%PREFIX%%,${LOCALBASE},g" \
- ${.CURDIR}/pkg-message > ${PKGMESSAGE}
post-install:
@${MKDIR} /var/milter-greylist
--- /dev/null
+++ mail/milter-greylist/files/pkg-message.in
@@ -0,0 +1,20 @@
+===> IMPORTANT NOTE
+
+ A sample configuration file has been installed in %%PREFIX%%/etc/mail
+ directory. Copy and edit it to suit your needs before launching
+ milter-greylist.
+
+ Add following lines
+
+dnl j,{if_addr},{cert_subject},i,{auth_authen} are already enabled by default
+define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO``, {verify}'')
+define(`confMILTER_MACROS_ENVRCPT', confMILTER_MACROS_ENVRCPT``, {greylist}'')
+INPUT_MAIL_FILTER(`greylist', `S=local:/var/milter-greylist/milter-greylist.sock, F=T, T=R:30s')
+
+ to your /etc/mail/<your_host>.mc configuration.
+
+ To run milter-greylist from startup, add miltergreylist_enable="YES"
+ in your /etc/rc.conf or your /etc/rc.conf.local
+
+ See %%DOCSDIR%%/README for operation details.
+
More information about the Midnightbsd-cvs
mailing list