diff options
Diffstat (limited to 'irc/unreal')
-rw-r--r-- | irc/unreal/Makefile | 15 | ||||
-rw-r--r-- | irc/unreal/files/patch-config.h | 11 |
2 files changed, 22 insertions, 4 deletions
diff --git a/irc/unreal/Makefile b/irc/unreal/Makefile index d849202f1ae2..f94b2328ccc5 100644 --- a/irc/unreal/Makefile +++ b/irc/unreal/Makefile @@ -9,13 +9,15 @@ PORTNAME= Unreal PORTVERSION= 3.2.8.1 PORTREVISION= 3 CATEGORIES= irc ipv6 -MASTER_SITES= http://unrealircd.pimpmylinux.org/ \ - http://unrealircd.icedslash.com/ +MASTER_SITES= http://www.unrealircd.com/downloads/ DISTNAME= ${PORTNAME}${PORTVERSION} MAINTAINER= tanawts@gmail.com COMMENT= Unreal - the next generation ircd +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + LIB_DEPENDS= cares.2:${PORTSDIR}/dns/c-ares WRKSRC= ${WRKDIR}/${PORTNAME}3.2 @@ -28,10 +30,15 @@ LOGDIR= /var/log/ircd HAS_CONFIGURE= yes USE_RC_SUBR= unrealircd.sh +USERS= ircd +GROUPS= ircd + SUB_LIST+= RUNDIR=${RUNDIR} CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +CFLAGS+= ${CPPFLAGS} +CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --with-listen=5 \ --with-dpath=${CONFIGDIR} \ --with-spath=${PREFIX}/libexec/ircd \ @@ -41,8 +48,6 @@ CONFIGURE_ARGS= --with-listen=5 \ --with-permissions=0600 \ --with-fd-setsize=1024 \ --enable-dynamic-linking -CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ - CFLAGS="${CPPFLAGS} ${CFLAGS}" OPTIONS= HUB "Configure as a hub (otherwise configure as a leaf)" on \ NOSPOOF "Enable anti-spoof protection" off \ @@ -115,6 +120,8 @@ post-extract: post-patch: @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," \ -e "s,%%RUNDIR%%,${RUNDIR}," \ + -e "s,%%USERS%%,${USERS}," \ + -e "s,%%GROUPS%%,${GROUPS}," \ -e "s,%%LOGDIR%%,${LOGDIR}," ${WRKSRC}/include/config.h @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," \ -e "s,%%LOGDIR%%,${LOGDIR}," ${WRKSRC}/doc/example.conf diff --git a/irc/unreal/files/patch-config.h b/irc/unreal/files/patch-config.h index 9a0b5539235b..9b3844a4668c 100644 --- a/irc/unreal/files/patch-config.h +++ b/irc/unreal/files/patch-config.h @@ -27,3 +27,14 @@ /* CHROOTDIR * +@@ -245,8 +245,8 @@ + * define IRC_USER to that user name. This should only be defined if you + * are running as root and even then perhaps not. + */ +-/* #define IRC_USER "<user name>" */ +-/* #define IRC_GROUP "<group name>" */ ++#define IRC_USER "%%USERS%%" ++#define IRC_GROUP "%%GROUPS%%" + + + /* SHOW_INVISIBLE_LUSERS |