- Take maintainership

- rename [files/milter-greylist.sh -> files/milter-greylist.in, pkg-message -> files/pkg-message.in]
- Bump PORTREVISION
- drop 5.x support
- use SUB_FILES for pkg-message processing
- make use of @dirrmtry in pkg-plist

PR:             ports/125657
Approved by:    araujo (mentor, implicit)
This commit is contained in:
Philip M. Gollucci 2008-12-25 15:27:02 +00:00
parent f0a0c99098
commit e8da354a45
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=224747
4 changed files with 10 additions and 61 deletions

View file

@ -7,12 +7,13 @@
PORTNAME= milter-greylist-devel
DISTVERSION= 2.0b1
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.espci.fr/pub/milter-greylist/
DISTNAME= milter-greylist-${DISTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
MAINTAINER= pgollucci@p6m7g8.com
COMMENT= Easy-to-use greylist milter for sendmail (development)
MAN5= greylist.conf.5
@ -27,15 +28,11 @@ CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LIBS="${LIBS}"
ALL_TARGET= milter-greylist
USE_RC_SUBR= yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
USE_RC_SUBR= milter-greylist
SUB_FILES+= pkg-message
CONFLICTS= milter-greylist-[1-9]*.*
post-extract:
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/milter-greylist.sh > ${WRKSRC}/milter-greylist.sh
do-install:
@${MKDIR} ${PREFIX}/etc/mail
@${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/bin
@ -43,18 +40,18 @@ do-install:
@${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8
@${INSTALL_DATA} ${WRKSRC}/greylist.conf \
${PREFIX}/etc/mail/greylist.conf.sample
@${INSTALL_SCRIPT} ${WRKSRC}/milter-greylist.sh ${PREFIX}/etc/rc.d/
post-install:
@${MKDIR} /var/milter-greylist
@${CHOWN} smmsp /var/milter-greylist
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.if !defined (NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/greylist.conf ${EXAMPLESDIR}
.endif
@${TEST} -f /var/db/milter-greylist/greylist.db && ( \
${ECHO} "***********************************************************"; \
${ECHO} "***********************************************************"; \
@ -68,7 +65,6 @@ post-install:
${ECHO} "***********************************************************"; \
${ECHO} "***********************************************************"; \
) || ${TRUE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View file

@ -1,32 +0,0 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/mail/milter-greylist-devel/files/Attic/milter-greylist.sh,v 1.1 2005-02-03 18:42:24 ume Exp $
# PROVIDE: miltergreylist
# REQUIRE: LOGIN
# BEFORE: sendmail
# KEYWORD: milter-greylist
# Define these miltergreylist_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/miltergreylist
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
miltergreylist_enable=${miltergreylist_enable-"NO"}
miltergreylist_runas=${miltergreylist_runas-"smmsp"}
miltergreylist_pidfile=${miltergreylist_pidfile-"/var/run/milter-greylist.pid"}
miltergreylist_sockfile=${miltergreylist_sockfile-"/var/milter-greylist/milter-greylist.sock"}
miltergreylist_cfgfile=${miltergreylist_cfgfile-"%%PREFIX%%/etc/mail/greylist.conf"}
miltergreylist_flags=${miltergreylist_flags-"-P $miltergreylist_pidfile \
-f $miltergreylist_cfgfile -p $miltergreylist_sockfile -u $miltergreylist_runas"}
. %%RC_SUBR%%
name="miltergreylist"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/milter-greylist"
load_rc_config $name
run_rc_command "$1"

View file

@ -1,14 +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.
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.
------------------------------------------------------------------------

View file

@ -1,12 +1,11 @@
bin/milter-greylist
etc/mail/greylist.conf.sample
etc/rc.d/milter-greylist.sh
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%EXAMPLESDIR%%/greylist.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/greylist.conf
@exec /bin/mkdir -p /var/milter-greylist
@exec /usr/sbin/chown smmsp /var/milter-greylist
@exec [ -f /var/db/milter-greylist/greylist.db ] && printf '\n*\n************************************************************\n************************************************************\n*** **\n*** WARNING **\n*** **\n*** The default dump file location has changed. **\n*** Please move greylist.db from /var/db/milter-greylist/ **\n*** to /var/milter-greylist/ **\n*** **\n************************************************************\n************************************************************\n' ||true
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
@unexec /bin/rmdir %D/etc/mail 2>/dev/null || true
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrmtry etc/mail
@unexec [ -f /var/milter-greylist/greylist.db ] || /bin/rmdir /var/milter-greylist || true