- Add LICENSE

- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2015-12-31 10:58:05 +00:00
parent 00644457cb
commit 950dba335e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404925
2 changed files with 9 additions and 4 deletions

View File

@ -10,23 +10,30 @@ MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Monitor status of network nodes using fping
LICENSE= GPLv2 # only
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${LOCALBASE}/sbin/fping:${PORTSDIR}/net/fping
GNU_CONFIGURE= yes
PORTDOCS= COPYING CREDITS ChangeLog INSTALL README TODO
EXAMPLES= alarm.sh sntoprc.EXAMPLE
PORTEXAMPLES= alarm.sh sntoprc.EXAMPLE
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS EXAMPLES
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sntop
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for example in ${EXAMPLES}
.for example in ${PORTEXAMPLES}
${INSTALL_DATA} ${WRKSRC}/${example} ${STAGEDIR}${EXAMPLESDIR}
.endfor

View File

@ -1,5 +1,3 @@
bin/sntop
@sample etc/sntoprc.sample
man/man1/sntop.1.gz
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alarm.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sntoprc.EXAMPLE