- Add LICENSE

- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2015-11-20 12:05:02 +00:00
parent fb2672d05c
commit 4e5d900e03
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=402070

View file

@ -12,7 +12,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
MAINTAINER= ports@FreeBSD.org
COMMENT= Uptimes project client
OPTIONS_DEFINE= DOCS
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gettext
USE_RC_SUBR= upclient
@ -28,6 +29,8 @@ DOC_FILES= AUTHORS COPYING FAQ HISTORY INSTALL README TODO
DOC_FILES+= doc/UptimesProtocol5
DOC_FILES+= HISTORY-BETA
OPTIONS_DEFINE= DOCS
post-extract:
@${MV} ${WRKSRC}/doc/"Uptimes Protocol 5" ${WRKSRC}/doc/UptimesProtocol5
@ -48,6 +51,8 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/upchk ${WRKSRC}/scripts/clientchk \
${STAGEDIR}${PREFIX}/sbin
@(cd ${WRKSRC}/src; ${MAKE_CMD} destdir=${STAGEDIR} install-locales)
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}