aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-07-29 21:10:24 +0800
committervanilla <vanilla@FreeBSD.org>2014-07-29 21:10:24 +0800
commit5dedaf35b6b61e7ef9fca93f22456072c1e914d2 (patch)
tree5902683a2959e98ba9a2dd12c90715817f6bf384
parentf92909aadcc5acb0e8ff8bfc5ddbf34be441444d (diff)
downloadfreebsd-ports-gnome-5dedaf35b6b61e7ef9fca93f22456072c1e914d2.tar.gz
freebsd-ports-gnome-5dedaf35b6b61e7ef9fca93f22456072c1e914d2.tar.zst
freebsd-ports-gnome-5dedaf35b6b61e7ef9fca93f22456072c1e914d2.zip
Stagify.
-rw-r--r--net-mgmt/ipfm/Makefile6
-rw-r--r--net-mgmt/ipfm/files/patch-Makefile.in31
-rw-r--r--net-mgmt/ipfm/pkg-plist4
3 files changed, 35 insertions, 6 deletions
diff --git a/net-mgmt/ipfm/Makefile b/net-mgmt/ipfm/Makefile
index 3a185a26d65f..56c14cd0bf7d 100644
--- a/net-mgmt/ipfm/Makefile
+++ b/net-mgmt/ipfm/Makefile
@@ -13,11 +13,7 @@ COMMENT= Bandwidth analysis tool
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var
-MAN5= ipfm.conf.5
-MAN8= ipfm.8
-
-NO_STAGE= yes
post-install:
- @${STRIP_CMD} ${PREFIX}/sbin/ipfm
+ @${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
new file mode 100644
index 000000000000..c3c56cc8382e
--- /dev/null
+++ b/net-mgmt/ipfm/files/patch-Makefile.in
@@ -0,0 +1,31 @@
+--- 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
+ @cd doc && $(MAKE) && cd ..
+
+ install: all
+- $(INSTALL) -d -m 755 $(SBINDIR)
+- $(INSTALL) -m 555 source/ipfm $(SBINDIR)/ipfm
+- $(INSTALL) -d -m 755 $(ETCDIR)
+- [ -f $(CONFIGFILE) ] || \
+- $(INSTALL) -m 644 ipfm.conf.sample $(CONFIGFILE)
+- $(INSTALL) -d -m 755 $(MANDIR)/man5
+- $(INSTALL) -d -m 755 $(MANDIR)/man8
+- $(INSTALL) -m 444 doc/ipfm.conf.5 $(MANDIR)/man5/ipfm.conf.5
+- $(INSTALL) -m 444 doc/ipfm.8 $(MANDIR)/man8/ipfm.8
+- $(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
++ $(INSTALL) -d -m 755 $(DESTDIR)$(ETCDIR)
++ [ -f $(DESTDIR)$(CONFIGFILE) ] || \
++ $(INSTALL) -m 644 ipfm.conf.sample $(DESTDIR)$(CONFIGFILE)
++ $(INSTALL) -d -m 755 $(DESTDIR)$(MANDIR)/man5
++ $(INSTALL) -d -m 755 $(DESTDIR)$(MANDIR)/man8
++ $(INSTALL) -m 444 doc/ipfm.conf.5 $(DESTDIR)$(MANDIR)/man5/ipfm.conf.5
++ $(INSTALL) -m 444 doc/ipfm.8 $(DESTDIR)$(MANDIR)/man8/ipfm.8
++ $(INSTALL) -d -m 755 $(DESTDIR)$(LOGDIR)/ipfm
++ $(INSTALL) -d -m 755 $(DESTDIR)$(VARRUNDIR)
+
+ clean:
+ @cd source && $(MAKE) clean && cd .. && \
diff --git a/net-mgmt/ipfm/pkg-plist b/net-mgmt/ipfm/pkg-plist
index 51974749b2b9..241356b29513 100644
--- a/net-mgmt/ipfm/pkg-plist
+++ b/net-mgmt/ipfm/pkg-plist
@@ -1,4 +1,6 @@
-sbin/ipfm
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."