summaryrefslogtreecommitdiff
path: root/net/arping
diff options
context:
space:
mode:
authorjoerg <joerg>2008-06-20 01:09:05 +0000
committerjoerg <joerg>2008-06-20 01:09:05 +0000
commitd8368bbc25c90072a19b5e48f0fba26251b6877f (patch)
treebb388f6b2532587595653e67cce25229ed050cb8 /net/arping
parentf1b924fda77b6920565e56f54c9391b4dc68f8ca (diff)
downloadpkgsrc-d8368bbc25c90072a19b5e48f0fba26251b6877f.tar.gz
Add DESTDIR support.
Diffstat (limited to 'net/arping')
-rw-r--r--net/arping/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/arping/Makefile b/net/arping/Makefile
index 949c3fce118..aa82eccb5f5 100644
--- a/net/arping/Makefile
+++ b/net/arping/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2007/02/22 17:15:21 rillig Exp $
+# $NetBSD: Makefile,v 1.13 2008/06/20 01:09:29 joerg Exp $
#
DISTNAME= arping-2.05
@@ -10,6 +10,8 @@ MAINTAINER= cube@NetBSD.org
HOMEPAGE= http://www.habets.pp.se/synscan/programs.php?prog=arping
COMMENT= ARP-level ping utility
+PKG_DESTDIR_SUPPORT= user-destdir
+
LIBS+= -lnet -lpcap
LIBS.SunOS+= -lsocket -lnsl
INSTALLATION_DIRS= bin ${PKGMANDIR}/man8
@@ -19,8 +21,8 @@ do-build:
cd ${WRKSRC} && cc ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${LIBS} -o arping arping-2/arping.c
do-install:
- ${INSTALL_MAN} ${WRKSRC}/arping.8 ${PREFIX}/${PKGMANDIR}/man8
- ${INSTALL_PROGRAM} ${WRKSRC}/arping ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/arping.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+ ${INSTALL_PROGRAM} ${WRKSRC}/arping ${DESTDIR}${PREFIX}/bin
.include "../../devel/libnet11/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"