- Add staging support, allow it as regular user

- Switch to PLIST_FILES, PORTDOCS
This commit is contained in:
Pawel Pekala 2014-07-11 09:07:40 +00:00
parent 8523f42dfc
commit a2d3da4471
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361514
2 changed files with 7 additions and 22 deletions

View file

@ -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 account information retrieval utility
BUILD_DEPENDS= courierauthconfig:${PORTSDIR}/security/courier-authlib-base
@ -17,23 +17,16 @@ USES= gmake
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN8= courieruserinfo.8
PLIST_FILES= sbin/courieruserinfo man/man8/courieruserinfo.8.gz
PORTDOCS= AUTHORS ChangeLog COPYING INSTALL NEWS README
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
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>

View file

@ -1,8 +0,0 @@
sbin/courieruserinfo
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%