aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-06-05 19:11:50 +0800
committerpawel <pawel@FreeBSD.org>2014-06-05 19:11:50 +0800
commit4b3f906ff95371367c1868ad5460a9d72cd63ae4 (patch)
treeda12402210b3ddf2e3c8dd28d1e2dc7eb21776b6 /mail
parent4076b918337cf5b52e5fde74870634245b963e5f (diff)
downloadfreebsd-ports-gnome-4b3f906ff95371367c1868ad5460a9d72cd63ae4.tar.gz
freebsd-ports-gnome-4b3f906ff95371367c1868ad5460a9d72cd63ae4.tar.zst
freebsd-ports-gnome-4b3f906ff95371367c1868ad5460a9d72cd63ae4.zip
- Add staging support
- Use @sample for config file
Diffstat (limited to 'mail')
-rw-r--r--mail/pop3proxy/Makefile16
-rw-r--r--mail/pop3proxy/pkg-plist4
2 files changed, 7 insertions, 13 deletions
diff --git a/mail/pop3proxy/Makefile b/mail/pop3proxy/Makefile
index 1985a187d27a..b42cf1077ea7 100644
--- a/mail/pop3proxy/Makefile
+++ b/mail/pop3proxy/Makefile
@@ -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>
diff --git a/mail/pop3proxy/pkg-plist b/mail/pop3proxy/pkg-plist
index b3292cee9d51..eae67d99f282 100644
--- a/mail/pop3proxy/pkg-plist
+++ b/mail/pop3proxy/pkg-plist
@@ -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