diff options
author | marino <marino> | 2012-08-13 17:28:24 +0000 |
---|---|---|
committer | marino <marino> | 2012-08-13 17:28:24 +0000 |
commit | c578715ced53e21d091c6860efbc6124b68ce54f (patch) | |
tree | 08f3278c7e1795fbbeb4246f9425f9593fff84aa /net/xymonclient | |
parent | cac75b147e7d026b01664a972231658488aefadc (diff) | |
download | pkgsrc-c578715ced53e21d091c6860efbc6124b68ce54f.tar.gz |
net/xymonclient: Add DragonFly support / fix FreeBSD
* Add Makefile.DragonFly
* Add xymonclient-dragonfly.sh
* Fix sha2.c #include <stdint.h>.
On last, nothing sets HAVE_STDINT_H and passing -DHAVE_STDINT_H through
cflags fails. Just switch it based on __FreeBSD__ and __DragonFly__.
There is a placeholder for dragonfly-meminfo. It's possible that
freebsd-meminfo.c can be used without modification, but it needs
verification before building it.
Diffstat (limited to 'net/xymonclient')
-rw-r--r-- | net/xymonclient/Makefile | 12 | ||||
-rw-r--r-- | net/xymonclient/distinfo | 3 | ||||
-rw-r--r-- | net/xymonclient/patches/patch-lib_sha2.c | 13 |
3 files changed, 25 insertions, 3 deletions
diff --git a/net/xymonclient/Makefile b/net/xymonclient/Makefile index 5f00f278886..4ad585b9ee6 100644 --- a/net/xymonclient/Makefile +++ b/net/xymonclient/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2012/08/07 06:51:58 sbd Exp $ +# $NetBSD: Makefile,v 1.14 2012/08/13 17:28:24 marino Exp $ # DISTNAME= xymon-4.3.7 @@ -93,7 +93,7 @@ USE_TOOLS+= awk:run cat:run cp:run USE_TOOLS+= cut:run date:run egrep:run USE_TOOLS+= expr:run find:run grep:run USE_TOOLS+= head:run id:run ls:run -USE_TOOLS+= mv:run rm:run sed:run +USE_TOOLS+= mv:run rm:run sed USE_TOOLS+= sort:run tail:run touch:run USE_TOOLS+= tr:run wc:run @@ -129,4 +129,12 @@ PLIST_VARS+= meminfo PLIST.meminfo= yes .endif +post-patch: + ${CP} ${WRKSRC}/build/Makefile.FreeBSD \ + ${WRKSRC}/build/Makefile.DragonFly + # Add dragonfly-meminfo support later (placeholder) + ${SED} -e 's|freebsd-meminfo|dragonfly-meminfo|' \ + ${WRKSRC}/client/xymonclient-freebsd.sh > \ + ${WRKSRC}/client/xymonclient-dragonfly.sh + .include "../../mk/bsd.pkg.mk" diff --git a/net/xymonclient/distinfo b/net/xymonclient/distinfo index ba869a0d810..c49fa18e87b 100644 --- a/net/xymonclient/distinfo +++ b/net/xymonclient/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2012/08/07 06:51:58 sbd Exp $ +$NetBSD: distinfo,v 1.9 2012/08/13 17:28:24 marino Exp $ SHA1 (xymon-4.3.7.tar.gz) = 29339157a1a6155d134ed1ad9985391d43034ee8 RMD160 (xymon-4.3.7.tar.gz) = 9547eac47a5893f978cace54b5761e9cabe75941 @@ -12,3 +12,4 @@ SHA1 (patch-af) = ae5d0acde8e2cd05527253c41e31a806b04614f6 SHA1 (patch-ag) = 11f03fba971ef26c2f95104615178a619d9ff159 SHA1 (patch-client_xymonclient-netbsd.sh) = 10d77fd722ecaaed7170b2ae6d51e6429a96d686 SHA1 (patch-configure) = 7b71ed7a567124a2aa36d9bf9188209649e88a4d +SHA1 (patch-lib_sha2.c) = 363b1680bfb70acfd5a4f768fb9688f4511846be diff --git a/net/xymonclient/patches/patch-lib_sha2.c b/net/xymonclient/patches/patch-lib_sha2.c new file mode 100644 index 00000000000..f9060d0d6c8 --- /dev/null +++ b/net/xymonclient/patches/patch-lib_sha2.c @@ -0,0 +1,13 @@ +$NetBSD: patch-lib_sha2.c,v 1.1 2012/08/13 17:28:25 marino Exp $ + +--- lib/sha2.c.orig 2011-03-08 17:20:28.000000000 +0000 ++++ lib/sha2.c +@@ -51,7 +51,7 @@ + #define SHA384_BLOCK_SIZE SHA512_BLOCK_SIZE + #define SHA224_BLOCK_SIZE SHA256_BLOCK_SIZE + +-#ifdef HAVE_STDINT_H ++#if defined(__FreeBSD__) || defined(__DragonFly__) + #include <stdint.h> + #else + typedef unsigned char uint8_t; |