summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache>2010-03-08 11:59:54 +0000
committerobache <obache>2010-03-08 11:59:54 +0000
commitc89a254298865f7136a28051026eb4287b6c3938 (patch)
tree3efdcb755adee4c892ad6d5226420e69d880d3f6
parent1fd778c338a170df56a124e83555f914a0238996 (diff)
downloadpkgsrc-c89a254298865f7136a28051026eb4287b6c3938.tar.gz
Add user-destdir installation support.
-rw-r--r--net/dante/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/dante/Makefile b/net/dante/Makefile
index 9ee852c8bbf..a512f36bb45 100644
--- a/net/dante/Makefile
+++ b/net/dante/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2007/12/04 13:30:06 abs Exp $
+# $NetBSD: Makefile,v 1.22 2010/03/08 11:59:54 obache Exp $
DISTNAME= dante-1.1.19
PKGREVISION= 1
@@ -11,6 +11,8 @@ COMMENT= BSD-licensed socks 4/5 proxy suite
CONFLICTS= socks4-[0-9]*
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-socks-conf=${PKG_SYSCONFDIR}/socks.conf
@@ -20,10 +22,11 @@ CHECK_PORTABILITY_SKIP= contrib/StartupItems.Dante
RCD_SCRIPTS= sockd
+INSTALLATION_DIRS+= share/examples/dante
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dante
.for cfg in sockd.conf socks-simple.conf socks.conf
- ${INSTALL_DATA} ${WRKSRC}/example/${cfg} ${PREFIX}/share/examples/dante
+ ${INSTALL_DATA} ${WRKSRC}/example/${cfg} ${DESTDIR}${PREFIX}/share/examples/dante
.endfor
.include "../../mk/bsd.pkg.mk"