aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-07-08 03:52:11 +0800
committerpawel <pawel@FreeBSD.org>2014-07-08 03:52:11 +0800
commit1f3885c4314ab013a99ccec89b306e97d8e9d71e (patch)
tree51d88c3116162730b6662c401dab4fee6862062f /sysutils
parent3f82272b6ad5fdc5640a0bc2c08e9921020baf1f (diff)
downloadfreebsd-ports-gnome-1f3885c4314ab013a99ccec89b306e97d8e9d71e.tar.gz
freebsd-ports-gnome-1f3885c4314ab013a99ccec89b306e97d8e9d71e.tar.zst
freebsd-ports-gnome-1f3885c4314ab013a99ccec89b306e97d8e9d71e.zip
- Add staging support
- Fix perl shebang - Use SUB_FILES for pkg-message substitutions
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/apcpwr/Makefile18
-rw-r--r--sysutils/apcpwr/files/pkg-message.in (renamed from sysutils/apcpwr/pkg-message)0
2 files changed, 11 insertions, 7 deletions
diff --git a/sysutils/apcpwr/Makefile b/sysutils/apcpwr/Makefile
index c360209586f5..a35bd7e592fa 100644
--- a/sysutils/apcpwr/Makefile
+++ b/sysutils/apcpwr/Makefile
@@ -3,6 +3,7 @@
PORTNAME= apcpwr
PORTVERSION= 1.3
+PORTREVISION= 1
CATEGORIES= sysutils net
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= jwd
@@ -12,13 +13,16 @@ COMMENT= Control APC 9211 MasterSwitchs via snmp
RUN_DEPENDS= snmpwalk:${PORTSDIR}/net-mgmt/net-snmp
-PLIST_FILES= bin/apcpwr etc/apcpwr.conf.dist
-MAN8= apcpwr.8
+USES= shebangfix
+SHEBANG_FILES= apcpwr.pl
-NO_STAGE= yes
-post-install:
- @ ${ECHO}
- @ ${SED} -e "s:%%PREFIX%%:${PREFIX}:g" pkg-message | fmt
- @ ${ECHO}
+SUB_FILES= pkg-message
+
+PLIST_FILES= bin/apcpwr etc/apcpwr.conf.dist man/man8/apcpwr.8.gz
+
+do-install:
+ ${INSTALL} -m 4555 ${WRKSRC}/apcpwr ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL} -m 600 ${WRKSRC}/apcpwr.conf.dist ${STAGEDIR}${PREFIX}/etc
+ ${INSTALL_MAN} ${WRKSRC}/apcpwr.8 ${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.mk>
diff --git a/sysutils/apcpwr/pkg-message b/sysutils/apcpwr/files/pkg-message.in
index 44320d5c8b2e..44320d5c8b2e 100644
--- a/sysutils/apcpwr/pkg-message
+++ b/sysutils/apcpwr/files/pkg-message.in