diff options
author | joerg <joerg@pkgsrc.org> | 2008-06-20 01:09:05 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-06-20 01:09:05 +0000 |
commit | 3b0d97b0de8516db29699676c860489da3f7f0e1 (patch) | |
tree | bb388f6b2532587595653e67cce25229ed050cb8 /net/gkrellm-multiping | |
parent | 10abca39942a8f34d088f39ccc073fee44271274 (diff) | |
download | pkgsrc-3b0d97b0de8516db29699676c860489da3f7f0e1.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'net/gkrellm-multiping')
-rw-r--r-- | net/gkrellm-multiping/Makefile | 6 | ||||
-rw-r--r-- | net/gkrellm-multiping/distinfo | 4 | ||||
-rw-r--r-- | net/gkrellm-multiping/patches/patch-aa | 14 |
3 files changed, 16 insertions, 8 deletions
diff --git a/net/gkrellm-multiping/Makefile b/net/gkrellm-multiping/Makefile index 3df3b442d4d..9482d0894d6 100644 --- a/net/gkrellm-multiping/Makefile +++ b/net/gkrellm-multiping/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2008/01/18 05:08:41 tnn Exp $ +# $NetBSD: Makefile,v 1.16 2008/06/20 01:09:30 joerg Exp $ # DISTNAME= gkrellm-multiping-2.0.8 @@ -11,6 +11,8 @@ MAINTAINER= cube@NetBSD.org HOMEPAGE= http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/index.html COMMENT= Pings several machines and prints out stats +PKG_DESTDIR_SUPPORT= user-destdir + SPECIAL_PERMS+= ${PREFIX}/lib/gkrellm2/plugins/pinger ${SETUID_ROOT_PERMS} USE_TOOLS+= pkg-config @@ -18,6 +20,8 @@ USE_TOOLS+= pkg-config PTHREAD_OPTS+= require PTHREAD_AUTO_VARS= yes +INSTALLATION_DIRS= lib/gkrellm2/plugins + post-patch: ${SED} -e s,@@PREFIX@@,${PREFIX}, ${WRKSRC}/multiping.c > ${WRKSRC}/multiping.c.sed ${CP} ${WRKSRC}/multiping.c.sed ${WRKSRC}/multiping.c diff --git a/net/gkrellm-multiping/distinfo b/net/gkrellm-multiping/distinfo index f273ef21f0b..bc5d3f28c58 100644 --- a/net/gkrellm-multiping/distinfo +++ b/net/gkrellm-multiping/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.4 2006/05/29 14:06:27 joerg Exp $ +$NetBSD: distinfo,v 1.5 2008/06/20 01:09:30 joerg Exp $ SHA1 (gkrellm-multiping-2.0.8.tgz) = 88de3cda0e55ba33ed5c0d0c2d0aaa2c56ebf69d RMD160 (gkrellm-multiping-2.0.8.tgz) = 6d8d9d4b2379a48f15c1b654efd3149320a6b8a1 Size (gkrellm-multiping-2.0.8.tgz) = 14377 bytes -SHA1 (patch-aa) = a4da915eccae50d254deb8c67d1c398df6189662 +SHA1 (patch-aa) = 76600d28a9b87dcad39487b001911a98e9d06674 SHA1 (patch-ab) = 465567eb777db1d144d23e7fc457fb63db8ff23c SHA1 (patch-ac) = d8979ef7d975ec19c71a72bfc9e19e6c82a16a83 diff --git a/net/gkrellm-multiping/patches/patch-aa b/net/gkrellm-multiping/patches/patch-aa index 781a4458e04..dec02f75943 100644 --- a/net/gkrellm-multiping/patches/patch-aa +++ b/net/gkrellm-multiping/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.2 2004/11/12 06:39:20 jlam Exp $ +$NetBSD: patch-aa,v 1.3 2008/06/20 01:09:30 joerg Exp $ ---- Makefile.orig 2004-01-16 08:48:09.000000000 +0100 +--- Makefile.orig 2004-01-16 07:48:09.000000000 +0000 +++ Makefile -@@ -1,26 +1,27 @@ +@@ -1,28 +1,29 @@ -INSTALLDIR = /usr/local/lib/gkrellm2/plugins +INSTALLDIR = $(PREFIX)/lib/gkrellm2/plugins VERSION = 2.0.8 @@ -32,7 +32,11 @@ $NetBSD: patch-aa,v 1.2 2004/11/12 06:39:20 jlam Exp $ install: pinger multiping.so - install -d $(INSTALLDIR) +- install -c -s -m 644 multiping.so $(INSTALLDIR) +- install -c -s -m 4755 pinger $(INSTALLDIR) +# install -d $(INSTALLDIR) - install -c -s -m 644 multiping.so $(INSTALLDIR) - install -c -s -m 4755 pinger $(INSTALLDIR) ++ install -c -s -m 644 multiping.so ${DESTDIR}$(INSTALLDIR) ++ install -c -s -m 4755 pinger ${DESTDIR}$(INSTALLDIR) echo "pinger helper is installed suid root" + + dist: |