summaryrefslogtreecommitdiff
path: root/chat/unrealircd
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 01:50:26 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 01:50:26 +0000
commit2e614fcea0b247bbc54200c2ed35e943cca37125 (patch)
tree594c159848c0679d80316a52bfc121f8d7c1bf18 /chat/unrealircd
parentf61cf6906a47ea29db5a98128c49cd6db98ee0e9 (diff)
downloadpkgsrc-2e614fcea0b247bbc54200c2ed35e943cca37125.tar.gz
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'chat/unrealircd')
-rw-r--r--chat/unrealircd/Makefile48
1 files changed, 27 insertions, 21 deletions
diff --git a/chat/unrealircd/Makefile b/chat/unrealircd/Makefile
index fe7cab1a7ba..9b1c198b4a9 100644
--- a/chat/unrealircd/Makefile
+++ b/chat/unrealircd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2007/09/13 19:24:13 adrianp Exp $
+# $NetBSD: Makefile,v 1.22 2008/03/03 02:19:52 jlam Exp $
DISTNAME= Unreal3.2.7
PKGNAME= unrealircd-3.2.7
@@ -14,6 +14,8 @@ COMMENT= Advanced IRC server with IPv6 and SSL support
CONFLICTS+= ircu-[0-9]*
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= YES
USE_TOOLS+= pkg-config gmake
TRE_NEEDED= 0.7.5
@@ -119,29 +121,33 @@ post-build:
.endif
do-install:
- ${INSTALL_DATA_DIR} ${IRCD_SHARE}
- ${INSTALL_DATA_DIR} ${IRCD_SHARE:Q}/networks
- ${INSTALL_DATA_DIR} ${IRCD_SHARE:Q}/aliases
- ${INSTALL_DATA_DIR} ${IRCD_SHARE:Q}/modules
- ${INSTALL_DATA_DIR} ${IRCD_DOCS:Q}
- ${INSTALL_DATA_DIR} ${IRCD_EG:Q}
-
- ${INSTALL_PROGRAM} ${WRKSRC:Q}/src/ircd ${PREFIX:Q}/sbin
- ${INSTALL_DATA} ${WRKSRC:Q}/networks/*.network ${IRCD_SHARE:Q}/networks
+ ${INSTALL_DATA_DIR} ${DESTDIR}${IRCD_SHARE}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${IRCD_SHARE:Q}/networks
+ ${INSTALL_DATA_DIR} ${DESTDIR}${IRCD_SHARE:Q}/aliases
+ ${INSTALL_DATA_DIR} ${DESTDIR}${IRCD_SHARE:Q}/modules
+ ${INSTALL_DATA_DIR} ${DESTDIR}${IRCD_DOCS:Q}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${IRCD_EG:Q}
+
+ ${INSTALL_PROGRAM} ${WRKSRC:Q}/src/ircd ${DESTDIR}${PREFIX:Q}/sbin
+ ${INSTALL_DATA} ${WRKSRC:Q}/networks/*.network \
+ ${DESTDIR}${IRCD_SHARE:Q}/networks
${INSTALL_DATA} ${WRKSRC:Q}/networks/networks.ndx \
- ${IRCD_SHARE:Q}/networks
- ${INSTALL_SCRIPT} ${WRKSRC:Q}/networks/makenet ${IRCD_SHARE:Q}/networks
- ${INSTALL_DATA} ${WRKSRC:Q}/aliases/*.conf ${IRCD_SHARE:Q}/aliases
- ${INSTALL_DATA} ${WRKSRC:Q}/badwords*.conf ${IRCD_SHARE:Q}
- ${INSTALL_DATA} ${WRKSRC:Q}/help.* ${IRCD_SHARE:Q}
- ${INSTALL_DATA} ${WRKSRC:Q}/doc/help.* ${IRCD_SHARE:Q}
- ${INSTALL_DATA} ${WRKSRC:Q}/spamfilter.conf ${IRCD_SHARE:Q}
- ${INSTALL_DATA} ${WRKSRC:Q}/src/modules/*.so ${IRCD_SHARE:Q}/modules
- ${INSTALL_DATA} ${WRKSRC:Q}/doc/unreal32docs.* ${IRCD_DOCS:Q}
- ${INSTALL_DATA} ${WRKSRC:Q}/doc/example.* ${IRCD_EG:Q}
+ ${DESTDIR}${IRCD_SHARE:Q}/networks
+ ${INSTALL_SCRIPT} ${WRKSRC:Q}/networks/makenet \
+ ${DESTDIR}${IRCD_SHARE:Q}/networks
+ ${INSTALL_DATA} ${WRKSRC:Q}/aliases/*.conf \
+ ${DESTDIR}${IRCD_SHARE:Q}/aliases
+ ${INSTALL_DATA} ${WRKSRC:Q}/badwords*.conf ${DESTDIR}${IRCD_SHARE:Q}
+ ${INSTALL_DATA} ${WRKSRC:Q}/help.* ${DESTDIR}${IRCD_SHARE:Q}
+ ${INSTALL_DATA} ${WRKSRC:Q}/doc/help.* ${DESTDIR}${IRCD_SHARE:Q}
+ ${INSTALL_DATA} ${WRKSRC:Q}/spamfilter.conf ${DESTDIR}${IRCD_SHARE:Q}
+ ${INSTALL_DATA} ${WRKSRC:Q}/src/modules/*.so \
+ ${DESTDIR}${IRCD_SHARE:Q}/modules
+ ${INSTALL_DATA} ${WRKSRC:Q}/doc/unreal32docs.* ${DESTDIR}${IRCD_DOCS:Q}
+ ${INSTALL_DATA} ${WRKSRC:Q}/doc/example.* ${DESTDIR}${IRCD_EG:Q}
. for f in ${DOC_FILES}
- ${INSTALL_DATA} ${WRKSRC:Q}/${f:Q} ${IRCD_DOCS:Q}
+ ${INSTALL_DATA} ${WRKSRC:Q}/${f:Q} ${DESTDIR}${IRCD_DOCS:Q}
. endfor
.include "../../mk/bsd.pkg.mk"