aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/whowatch/Makefile10
-rw-r--r--sysutils/whowatch/files/patch-aa4
2 files changed, 11 insertions, 3 deletions
diff --git a/sysutils/whowatch/Makefile b/sysutils/whowatch/Makefile
index cc67c4cee1ba..07cb78e91e87 100644
--- a/sysutils/whowatch/Makefile
+++ b/sysutils/whowatch/Makefile
@@ -12,8 +12,16 @@ MASTER_SITES= http://wizard.ae.krakow.pl/~mike/download/
MAINTAINER= dannyboy@FreeBSD.org
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500014
+pre-patch:
+ @${PERL} -pi -e 's/kp_.?proc\.._/ki_/ ; \
+ s/pcred\.p_//' ${WRKSRC}/proc????.c
+.endif
+
GNU_CONFIGURE= yes
MAN1= whowatch.1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/sysutils/whowatch/files/patch-aa b/sysutils/whowatch/files/patch-aa
index 053c3914337b..dd0f8649825f 100644
--- a/sysutils/whowatch/files/patch-aa
+++ b/sysutils/whowatch/files/patch-aa
@@ -6,8 +6,8 @@
install: whowatch
- $(INSTALL) -m 755 whowatch $(bindir)/whowatch
- $(INSTALL) -m 644 whowatch.1 $(mandir)/man1/whowatch.1
-+ $(BSD_INSTALL_PROGRAM) whowatch $(bindir)/whowatch
-+ $(BSD_INSTALL_MAN) whowatch.1 $(mandir)/man1/whowatch.1
++ $(INSTALL_PROGRAM) whowatch $(bindir)/whowatch
++ $(INSTALL_MAN) whowatch.1 $(mandir)/man1/whowatch.1
distclean:
make clean