aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-07-11 17:05:53 +0800
committerpawel <pawel@FreeBSD.org>2014-07-11 17:05:53 +0800
commit05a07d8655c15bfd88d6ec27efe76f8f97ba38f0 (patch)
tree690e77068103d966f4ece0da923c79711f534894 /security
parent68b52315409a73afb5b66c933b0ed848e82816b4 (diff)
downloadfreebsd-ports-gnome-05a07d8655c15bfd88d6ec27efe76f8f97ba38f0.tar.gz
freebsd-ports-gnome-05a07d8655c15bfd88d6ec27efe76f8f97ba38f0.tar.zst
freebsd-ports-gnome-05a07d8655c15bfd88d6ec27efe76f8f97ba38f0.zip
- Add staging support, allow it as regular user
- Switch to PLIST_FILES, PORTDOCS
Diffstat (limited to 'security')
-rw-r--r--security/courierpasswd/Makefile23
-rw-r--r--security/courierpasswd/pkg-plist8
2 files changed, 8 insertions, 23 deletions
diff --git a/security/courierpasswd/Makefile b/security/courierpasswd/Makefile
index e70b157a5aba..e08877c0726e 100644
--- a/security/courierpasswd/Makefile
+++ b/security/courierpasswd/Makefile
@@ -6,7 +6,7 @@ PORTVERSION= 1.1.2
CATEGORIES= security mail
MASTER_SITES= http://www.arda.homeunix.net/software-downloads/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= User authentication and password changing utility
BUILD_DEPENDS= courierauthconfig:${PORTSDIR}/security/courier-authlib-base
@@ -21,13 +21,11 @@ MINUID?= 100
CONFIGURE_ARGS+= --with-minuid=${MINUID}
-MAN8= courierpasswd.8
+PLIST_FILES= sbin/courierpasswd man/man8/courierpasswd.8.gz
+PORTDOCS= AUTHORS ChangeLog COPYING INSTALL NEWS README
OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
pre-fetch:
@${ECHO} ""
@${ECHO} "#############################################################"
@@ -41,16 +39,11 @@ pre-fetch:
@${ECHO} "#############################################################"
@${ECHO} ""
+post-patch:
+ @${REINPLACE_CMD} '/chown root/d' ${WRKSRC}/Makefile.in
+
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
- @${CAT} ${PKGMESSAGE}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/security/courierpasswd/pkg-plist b/security/courierpasswd/pkg-plist
deleted file mode 100644
index d5e7560e6cab..000000000000
--- a/security/courierpasswd/pkg-plist
+++ /dev/null
@@ -1,8 +0,0 @@
-sbin/courierpasswd
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%