aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/lmmon
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2006-10-03 21:25:37 +0800
committerstas <stas@FreeBSD.org>2006-10-03 21:25:37 +0800
commit9959934e42f01f51bd1c037f5f2a29a16fa663cb (patch)
tree5e80a114d63e0a869751628b1ea45e4d23982131 /sysutils/lmmon
parent19d4ac4aab8378b27788f65e7a0e4baed49bcaa3 (diff)
downloadfreebsd-ports-gnome-9959934e42f01f51bd1c037f5f2a29a16fa663cb.tar.gz
freebsd-ports-gnome-9959934e42f01f51bd1c037f5f2a29a16fa663cb.tar.zst
freebsd-ports-gnome-9959934e42f01f51bd1c037f5f2a29a16fa663cb.zip
- Fix port to configure correctly on OSVERSION > 5.x (smb.h include file has
changed it's location) PR: ports/103718 Submitted by: Ulrich Spoerlein <uspoerlein@gmail.com> (based on) Approved by: sem (mentor)
Diffstat (limited to 'sysutils/lmmon')
-rw-r--r--sysutils/lmmon/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/sysutils/lmmon/Makefile b/sysutils/lmmon/Makefile
index 329b06de6931..cd90cc7ed25b 100644
--- a/sysutils/lmmon/Makefile
+++ b/sysutils/lmmon/Makefile
@@ -7,6 +7,7 @@
PORTNAME= lmmon
PORTVERSION= 0.65
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.fxp.org/~jedgar/lmmon/
@@ -20,4 +21,14 @@ MAN8= lmmon.8
MANCOMPRESSED= yes
PLIST_FILES= bin/lmmon
-.include <bsd.port.mk>
+FIXFILES= configure configure.in lmmon.c
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${OSVERSION} > 500000
+ @${REINPLACE_CMD} -e 's,machine/smb.h,dev/smbus/smb.h,' \
+ ${FIXFILES:S,^,${WRKSRC}/,}
+.endif
+
+.include <bsd.port.post.mk>