aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-12-01 19:14:04 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-12-01 19:14:04 +0800
commit8b19616c3b3645f65f1b45148989d64ed47e9036 (patch)
treed13158e6fccb2da052453351a430c6a8699a83dc
parentcd9bccc1530a9c36fb5410652f5740525af10f6c (diff)
downloadfreebsd-ports-gnome-8b19616c3b3645f65f1b45148989d64ed47e9036.tar.gz
freebsd-ports-gnome-8b19616c3b3645f65f1b45148989d64ed47e9036.tar.zst
freebsd-ports-gnome-8b19616c3b3645f65f1b45148989d64ed47e9036.zip
- Add LICENSE
- Switch to options helpers - Simplify Makefile
-rw-r--r--net-mgmt/braa/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/net-mgmt/braa/Makefile b/net-mgmt/braa/Makefile
index 743c85be917b..fab3a3d95ea2 100644
--- a/net-mgmt/braa/Makefile
+++ b/net-mgmt/braa/Makefile
@@ -9,6 +9,9 @@ MASTER_SITES= http://s-tech.elsat.net.pl/braa/
MAINTAINER= ports@FreeBSD.org
COMMENT= Tool for making SNMP queries
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
USES= gmake
@@ -21,15 +24,15 @@ PLIST_FILES= bin/braa
OPTIONS_DEFINE= DOCS
post-patch:
-.for file in Makefile
@${REINPLACE_CMD} -e \
's|CFLAGS =|CFLAGS+=${CFLAGS}|g ; \
s|LDFLAGS =|LDFLAGS?=${LDFLAGS}|g ; \
- s|strip $$(OUT)||g' ${WRKSRC}/${file}
-.endfor
+ s|strip $$(OUT)||g' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}