summaryrefslogtreecommitdiff
path: root/net/gofish
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-20 01:09:05 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-20 01:09:05 +0000
commit80f8f7c3b3aa5f5f64de1111703eed75cf2b333b (patch)
treebb388f6b2532587595653e67cce25229ed050cb8 /net/gofish
parentdf12796d2c7ff30316099a62cbdf43f49006d442 (diff)
downloadpkgsrc-80f8f7c3b3aa5f5f64de1111703eed75cf2b333b.tar.gz
Add DESTDIR support.
Diffstat (limited to 'net/gofish')
-rw-r--r--net/gofish/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/net/gofish/Makefile b/net/gofish/Makefile
index 2dffe5849f9..e78cc8fa467 100644
--- a/net/gofish/Makefile
+++ b/net/gofish/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2007/10/09 19:19:14 martti Exp $
+# $NetBSD: Makefile,v 1.11 2008/06/20 01:09:30 joerg Exp $
DISTNAME= gofish-1.1
PKGREVISION= 2
@@ -9,6 +9,8 @@ MAINTAINER= emil@math.su.se
HOMEPAGE= http://gofish.sourceforge.net/
COMMENT= Gopher server
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/gofish
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
@@ -43,11 +45,11 @@ SUBST_MESSAGE.user= Fixing name of gopher user in files.
SUBST_FILES.user= gofish.conf
SUBST_SED.user= -e "s/;user = gopher/user = ${GOPHER_USER}/g"
+INSTALLATION_DIRS= share/examples/gofish share/doc/gofish
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gofish
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gofish
- ${INSTALL_DATA} ${WRKSRC}/gofish.conf ${EGDIR}
- ${INSTALL_DATA} ${WRKSRC}/gofish-www.conf ${EGDIR}
- ${INSTALL_DATA} ${WRKSRC}/Configure_GoFish ${PREFIX}/share/doc/gofish
+ ${INSTALL_DATA} ${WRKSRC}/gofish.conf ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/gofish-www.conf ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/Configure_GoFish ${DESTDIR}${PREFIX}/share/doc/gofish
.include "../../mk/bsd.pkg.mk"