pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/chat/unrealircd More chroot build fixes from Michael S...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ba5442d63b42
branches: trunk
changeset: 543319:ba5442d63b42
user: adrianp <adrianp%pkgsrc.org@localhost>
date: Fri Jun 13 23:15:33 2008 +0000
description:
More chroot build fixes from Michael Stapelberg.
diffstat:
chat/unrealircd/Makefile | 21 ++++++++++++++-------
chat/unrealircd/options.mk | 9 +++++++--
2 files changed, 21 insertions(+), 9 deletions(-)
diffs (82 lines):
diff -r a8daf0b9782f -r ba5442d63b42 chat/unrealircd/Makefile
--- a/chat/unrealircd/Makefile Fri Jun 13 22:57:08 2008 +0000
+++ b/chat/unrealircd/Makefile Fri Jun 13 23:15:33 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2008/04/07 18:21:29 joerg Exp $
+# $NetBSD: Makefile,v 1.24 2008/06/13 23:15:33 adrianp Exp $
DISTNAME= Unreal3.2.7
PKGNAME= unrealircd-3.2.7
@@ -38,7 +38,6 @@
CONFIGURE_ARGS+= --with-dpath=${UIRCD_HOME:Q}
CONFIGURE_ARGS+= --with-spath=${PREFIX:Q}/sbin/ircd
CONFIGURE_ARGS+= --with-permissions=0660
-CONFIGURE_ARGS+= --enable-dynamic-linking
CONFIGURE_ARGS+= --with-hostname=${UIRCD_HOST:Q}
CONFIGURE_ARGS+= --with-listen=${UIRCD_LISTEN:Q}
@@ -81,8 +80,8 @@
PKG_USERS_VARS+= UIRCD_USER
PKG_GROUPS_VARS+= UIRCD_GROUP
-PKG_GROUPS= ${UIRCD_GROUP:Q}
-PKG_USERS= ${UIRCD_USER:Q}:${UIRCD_GROUP:Q}
+PKG_GROUPS= ${UIRCD_GROUP:Q}
+PKG_USERS= ${UIRCD_USER:Q}:${UIRCD_GROUP:Q}
PKG_GECOS.${UIRCD_USER}= UnrealIRCD user
PKG_HOME.${UIRCD_USER}= ${UIRCD_HOME}
@@ -102,9 +101,20 @@
SUBST_SED.homedir+= -e "s|include \"|include \"${IRCD_SHARE}/|g"
SUBST_MESSAGE.homedir= Fixing home directory of the IRC server.
+.if !empty(PKG_OPTIONS:Munrealircd-chroot)
+SUBST_CLASSES+= chroot
+SUBST_STAGE.chroot= pre-install
+SUBST_FILES.chroot= ${WRKDIR}/unrealircd
+SUBST_SED.chroot= -e "s|unrealircd_user=|\#unrealircd_user=|g"
+SUBST_SED.chroot+= -e "s|unrealircd_group=|\#unrealircd_group=|g"
+SUBST_MESSAGE.chroot= Fixing chroot installation.
+.endif
+
OWN_DIRS_PERMS+= ${UIRCD_HOME:Q} ${UIRCD_USER:Q} ${UIRCD_GROUP:Q} 0770
OWN_DIRS_PERMS+= ${UIRCD_HOME:Q}/tmp ${UIRCD_USER:Q} \
${UIRCD_GROUP:Q} 0770
+INSTALLATION_DIRS= sbin ${IRCD_DOCS} ${IRCD_EG} ${IRCD_SHARE}/aliases \
+ ${IRCD_SHARE}/modules ${IRCD_SHARE}/networks
.if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED=YES
@@ -120,9 +130,6 @@
${CP} ${PKGDIR:Q}/MESSAGE.inet6 ${WRKDIR:Q}/.MESSAGE_SRC.inet6
.endif
-INSTALLATION_DIRS= sbin ${IRCD_DOCS} ${IRCD_EG} ${IRCD_SHARE}/aliases \
- ${IRCD_SHARE}/modules ${IRCD_SHARE}/networks
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC:Q}/src/ircd ${DESTDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC:Q}/networks/*.network \
diff -r a8daf0b9782f -r ba5442d63b42 chat/unrealircd/options.mk
--- a/chat/unrealircd/options.mk Fri Jun 13 22:57:08 2008 +0000
+++ b/chat/unrealircd/options.mk Fri Jun 13 23:15:33 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.9 2006/07/18 22:43:36 adrianp Exp $
+# $NetBSD: options.mk,v 1.10 2008/06/13 23:15:33 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.unrealircd
@@ -75,7 +75,12 @@
### CHROOTDIR is defined as ${IRCD_HOME}.
###
.if !empty(PKG_OPTIONS:Munrealircd-chroot)
-CFLAGS+= -DCHROOTDIR
+CFLAGS+= -DCHROOTDIR
+CFLAGS+= -DIRC_USER=\"${UIRCD_USER}\"
+CFLAGS+= -DIRC_GROUP=\"${UIRCD_GROUP}\"
+CONFIGURE_ARGS+= --disable-dynamic-linking
+.else
+CONFIGURE_ARGS+= --enable-dynamic-linking
.endif
###
Home |
Main Index |
Thread Index |
Old Index