summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-10-12 14:54:52 +0000
committerantoine <antoine@FreeBSD.org>2014-10-12 14:54:52 +0000
commitbf8efadc964565c7c1de018100453c1ff252fc1d (patch)
tree225b8ab12ab795ab545f75d21ee03ef47efb41bc
parentfa30d340bc1ec1851b8d10f91fc34e4ab2c4f499 (diff)
downloadFreeBSD-ports-bf8efadc964565c7c1de018100453c1ff252fc1d.zip
FreeBSD-ports-bf8efadc964565c7c1de018100453c1ff252fc1d.tar.gz
Allow stripping as a regular user
-rw-r--r--net-mgmt/ipfm/Makefile3
-rw-r--r--net-mgmt/ipfm/files/patch-Makefile.in8
-rw-r--r--net-mgmt/ipfm/pkg-plist3
3 files changed, 5 insertions, 9 deletions
diff --git a/net-mgmt/ipfm/Makefile b/net-mgmt/ipfm/Makefile
index 56c14cd..77b8e52 100644
--- a/net-mgmt/ipfm/Makefile
+++ b/net-mgmt/ipfm/Makefile
@@ -13,7 +13,4 @@ COMMENT= Bandwidth analysis tool
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var
-post-install:
- @${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/ipfm
-
.include <bsd.port.mk>
diff --git a/net-mgmt/ipfm/files/patch-Makefile.in b/net-mgmt/ipfm/files/patch-Makefile.in
index c3c56cc..3629a0d 100644
--- a/net-mgmt/ipfm/files/patch-Makefile.in
+++ b/net-mgmt/ipfm/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig 2014-07-29 21:06:10.045210973 +0800
-+++ Makefile.in 2014-07-29 21:07:11.227205493 +0800
-@@ -15,17 +15,17 @@ docs: Makefile doc/Makefile
+--- Makefile.in.orig 2002-10-06 16:39:42 UTC
++++ Makefile.in
+@@ -15,17 +15,17 @@
@cd doc && $(MAKE) && cd ..
install: all
@@ -16,7 +16,7 @@
- $(INSTALL) -d -m 755 $(LOGDIR)/ipfm
- $(INSTALL) -d -m 755 $(VARRUNDIR)
+ $(INSTALL) -d -m 755 $(DESTDIR)$(SBINDIR)
-+ $(INSTALL) -m 555 source/ipfm $(DESTDIR)$(SBINDIR)/ipfm
++ $(BSD_INSTALL_PROGRAM) source/ipfm $(DESTDIR)$(SBINDIR)/ipfm
+ $(INSTALL) -d -m 755 $(DESTDIR)$(ETCDIR)
+ [ -f $(DESTDIR)$(CONFIGFILE) ] || \
+ $(INSTALL) -m 644 ipfm.conf.sample $(DESTDIR)$(CONFIGFILE)
diff --git a/net-mgmt/ipfm/pkg-plist b/net-mgmt/ipfm/pkg-plist
index 241356b..44bde25 100644
--- a/net-mgmt/ipfm/pkg-plist
+++ b/net-mgmt/ipfm/pkg-plist
@@ -2,5 +2,4 @@ etc/ipfm.conf
man/man5/ipfm.conf.5.gz
man/man8/ipfm.8.gz
sbin/ipfm
-@exec mkdir -p /var/log/ipfm
-@unexec rmdir /var/log/ipfm 2>/dev/null || echo "The logs will be left in /var/log/ipfm after the port is deinstalled."
+@dir /var/log/ipfm
OpenPOWER on IntegriCloud