summaryrefslogtreecommitdiff
path: root/net/whoson/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/whoson/Makefile')
-rw-r--r--net/whoson/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/whoson/Makefile b/net/whoson/Makefile
index 3627f080734..246a12d17be 100644
--- a/net/whoson/Makefile
+++ b/net/whoson/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2007/02/22 19:27:01 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2008/06/20 01:09:32 joerg Exp $
#
DISTNAME= whoson-2.03
@@ -10,6 +10,8 @@ MAINTAINER= abs@NetBSD.org
HOMEPAGE= http://whoson.sourceforge.net/
COMMENT= Check if (dynamic) IP address is connected
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_PKGLOCALEDIR= yes
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
@@ -21,13 +23,14 @@ OWN_DIRS+= ${WHOSOND_CHROOT}
EXDIR= ${PREFIX}/share/examples/whoson
CONF_FILES= ${EXDIR}/whoson.conf ${PKG_SYSCONFDIR}/whoson.conf
+INSTALLATION_DIRS= ${EXDIR}
+
# Run this here as whoson's 'install' target will install if not present
pre-build:
${SED} 's:@@CHROOTDIR@@:${WHOSOND_CHROOT}:g' < ${FILESDIR}/whoson.conf \
> ${WRKSRC}/whoson.conf
post-install:
- ${INSTALL_DATA_DIR} ${EXDIR}
- ${INSTALL_DATA} ${WRKSRC}/whoson.conf ${EXDIR}/whoson.conf
+ ${INSTALL_DATA} ${WRKSRC}/whoson.conf ${DESTDIR}${EXDIR}/whoson.conf
.include "../../mk/bsd.pkg.mk"