1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add staging support

- Use @sample for config file
This commit is contained in:
Pawel Pekala 2014-06-05 11:11:50 +00:00
parent 4046d351b2
commit dc67ff2fe0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356627
2 changed files with 7 additions and 13 deletions

View File

@ -11,18 +11,14 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= POP3 Proxy Server derived from UP IMAP Proxy
GNU_CONFIGURE= YES
GNU_CONFIGURE= yes
USE_AUTOTOOLS= autoconf213
USE_RC_SUBR= pop3proxyd
SAMPLE_EXT= sample
NO_STAGE= yes
post-install:
if [ ! -f ${PREFIX}/etc/pop3proxyd.conf ]; then \
${INSTALL} -c ${WRKSRC}/pop3proxyd.conf ${PREFIX}/etc/pop3proxyd.conf ; \
fi
${INSTALL} -c ${WRKSRC}/pop3proxyd.conf ${PREFIX}/etc/pop3proxyd.conf.${SAMPLE_EXT} ;
@${CAT} ${PKGMESSAGE}
do-install:
(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} pop3proxystat pop3proxyd \
${STAGEDIR}${PREFIX}/sbin)
${INSTALL} -c ${WRKSRC}/pop3proxyd.conf \
${STAGEDIR}${PREFIX}/etc/pop3proxyd.conf.sample
.include <bsd.port.mk>

View File

@ -1,5 +1,3 @@
sbin/pop3proxystat
sbin/pop3proxyd
@unexec if cmp -s %D/etc/pop3proxyd.conf.sample %D/etc/pop3proxyd.conf; then rm -f %D/etc/pop3proxyd.conf; fi
etc/pop3proxyd.conf.sample
@exec if [ ! -f %D/etc/pop3proxyd.conf ] ; then cp -p %D/%F %B/pop3proxyd.conf; fi
@sample etc/pop3proxyd.conf.sample