diff options
author | joerg <joerg@pkgsrc.org> | 2008-10-10 23:30:59 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-10-10 23:30:59 +0000 |
commit | 0ce28fe39270a283fe6610d5e83a249b161760a7 (patch) | |
tree | 6d6682500ea7be3d86cbd5fab7987530d7864ee1 /sysutils/usbutil | |
parent | f0ae7519aacf003d9282e7b009cf63d3d25488ff (diff) | |
download | pkgsrc-0ce28fe39270a283fe6610d5e83a249b161760a7.tar.gz |
DESTDIR support.
Diffstat (limited to 'sysutils/usbutil')
-rw-r--r-- | sysutils/usbutil/Makefile | 4 | ||||
-rw-r--r-- | sysutils/usbutil/patches/patch-ad | 7 | ||||
-rw-r--r-- | sysutils/usbutil/patches/patch-ae | 12 |
3 files changed, 14 insertions, 9 deletions
diff --git a/sysutils/usbutil/Makefile b/sysutils/usbutil/Makefile index 0b1840aa91b..2cc522ad234 100644 --- a/sysutils/usbutil/Makefile +++ b/sysutils/usbutil/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2007/02/26 11:54:55 drochner Exp $ +# $NetBSD: Makefile,v 1.12 2008/10/10 23:30:59 joerg Exp $ # DISTNAME= usbutil-0.5 @@ -9,4 +9,6 @@ MASTER_SITES= ftp://ftp.augustsson.net/pub/netbsd/ MAINTAINER= lennart@augustsson.net COMMENT= USB developer utilities +PKG_DESTDIR_SUPPORT= user-destdir + .include "../../mk/bsd.pkg.mk" diff --git a/sysutils/usbutil/patches/patch-ad b/sysutils/usbutil/patches/patch-ad index d708463c406..549e09c1c7b 100644 --- a/sysutils/usbutil/patches/patch-ad +++ b/sysutils/usbutil/patches/patch-ad @@ -1,13 +1,14 @@ -$NetBSD: patch-ad,v 1.1 2005/12/18 17:31:22 joerg Exp $ +$NetBSD: patch-ad,v 1.2 2008/10/10 23:30:59 joerg Exp $ ---- usbstats.c.orig 2005-12-18 17:23:45.000000000 +0000 +--- usbstats.c.orig 2002-02-25 01:55:56.000000000 +0100 +++ usbstats.c -@@ -26,10 +26,15 @@ +@@ -26,10 +26,16 @@ #include <stdio.h> #include <sys/types.h> +#include <sys/ioctl.h> #include <fcntl.h> ++#include <stdlib.h> #include <unistd.h> #include <err.h> +#ifdef __DragonFly__ diff --git a/sysutils/usbutil/patches/patch-ae b/sysutils/usbutil/patches/patch-ae index 550bf7a0c9f..05e3b62c734 100644 --- a/sysutils/usbutil/patches/patch-ae +++ b/sysutils/usbutil/patches/patch-ae @@ -1,12 +1,14 @@ -$NetBSD: patch-ae,v 1.1 2007/09/14 13:31:04 gson Exp $ +$NetBSD: patch-ae,v 1.2 2008/10/10 23:30:59 joerg Exp $ ---- Makefile.orig 1999-05-20 00:05:31.000000000 +0300 +--- Makefile.orig 1999-05-19 23:05:31.000000000 +0200 +++ Makefile -@@ -19,6 +19,7 @@ usbgen: usbgen.c +@@ -19,7 +19,8 @@ usbgen: usbgen.c cc $(CFLAGS) usbgen.c -o usbgen install: $(PROGS) -+ install -d $(PREFIX)/sbin - install usbctl usbdebug usbstats usbgen $(PREFIX)/sbin +- install usbctl usbdebug usbstats usbgen $(PREFIX)/sbin ++ install -d ${DESTDIR}$(PREFIX)/sbin ++ install usbctl usbdebug usbstats usbgen ${DESTDIR}$(PREFIX)/sbin clean: + rm -f $(PROGS) |