aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/geomWatch
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-05-21 01:18:31 +0800
committerjbeich <jbeich@FreeBSD.org>2015-05-21 01:18:31 +0800
commitaa401052069c2b29c4bcdf5236d5332f50ca7de5 (patch)
treed4be85518cdaf6df436159367363926b917a726b /sysutils/geomWatch
parentcce3df5206130b005dd1f6f83e7a4c45d234c4c6 (diff)
downloadfreebsd-ports-gnome-aa401052069c2b29c4bcdf5236d5332f50ca7de5.tar.gz
freebsd-ports-gnome-aa401052069c2b29c4bcdf5236d5332f50ca7de5.tar.zst
freebsd-ports-gnome-aa401052069c2b29c4bcdf5236d5332f50ca7de5.zip
sysutils/geomWatch: unbreak on 11.0C and ignore on DragonFly
/tmp/geomWatch-4db8f7.o: In function `ZPool::update()': geomWatch.cpp:(.text+0x4a92): undefined reference to `nvlist_free' geomWatch.cpp:(.text+0x5046): undefined reference to `nvlist_free' geomWatch.cpp:(.text+0x537f): undefined reference to `nvlist_free' geom.hpp:33:21: fatal error: libgeom.h: No such file or directory Reported by: pkg-fallout, DPorts Approved by: portmgr blanket
Diffstat (limited to 'sysutils/geomWatch')
-rw-r--r--sysutils/geomWatch/Makefile22
-rw-r--r--sysutils/geomWatch/distinfo2
2 files changed, 22 insertions, 2 deletions
diff --git a/sysutils/geomWatch/Makefile b/sysutils/geomWatch/Makefile
index a79626eeb3d9..776a356f0b8c 100644
--- a/sysutils/geomWatch/Makefile
+++ b/sysutils/geomWatch/Makefile
@@ -6,18 +6,36 @@ PORTVERSION= 1.3.0
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://isis.poly.edu/~bk/${PORTNAME}/ \
- http://bk.macroblock.net/${PORTNAME}/
-EXTRACT_SUFX= .tbz
+ http://bk.macroblock.net/${PORTNAME}/ \
+ http://svnweb.freebsd.org/base/head/sys/cddl/compat/opensolaris/sys/:nvpair
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ nvpair.h\?revision=279437\&view=co:nvpair
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= spawk@acm.poly.edu
COMMENT= Watches for and e-mails admins about GEOM/ZFS state changes
LIB_DEPENDS= libesmtp.so:${PORTSDIR}/mail/libesmtp
+USES= tar:tbz
+
SUB_FILES= pkg-message
USE_RC_SUBR= ${PORTNAME}
MAKE_ARGS= WITH_ZFS=28
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == DragonFly
+IGNORE= requires geom(4) support
+.endif
+
+post-extract:
+# base r279437 renamed libnvpair symbols
+.if ${OSVERSION} > 1100062
+ ${CP} ${_DISTDIR}/${DISTFILES:M*\:nvpair:C/:.*//} \
+ ${WRKSRC}/zfs/v28/sys/cddl/compat/opensolaris/sys/nvpair.h
+.endif
+
.include <bsd.port.mk>
diff --git a/sysutils/geomWatch/distinfo b/sysutils/geomWatch/distinfo
index 7bc2c957e05b..fad63712a691 100644
--- a/sysutils/geomWatch/distinfo
+++ b/sysutils/geomWatch/distinfo
@@ -1,2 +1,4 @@
SHA256 (geomWatch-1.3.0.tbz) = ef81cbaf27558d9e957f924697e681d20cc2e44fafa0eff6c192fd2c1c242570
SIZE (geomWatch-1.3.0.tbz) = 128787
+SHA256 (nvpair.h?revision=279437&view=co) = dbd19f3d9bff31a9c44e0ad807a020e7a38827626ebe5b882a05f32017413700
+SIZE (nvpair.h?revision=279437&view=co) = 13424