summaryrefslogtreecommitdiff
path: root/irc/unreal/Makefile
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2011-07-25 01:52:22 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2011-07-25 01:52:22 +0000
commit430912c3ca738f244786054c6397f47af3fdd104 (patch)
tree7fead32084bb720622ecceecc7f21cace710c0ed /irc/unreal/Makefile
parentNew port: net/dropbox-api-command (diff)
Add ability to run as ircd user/group
Pass maintainership to submitter Pacify portlint(1) Add LICENSE PR: ports/155143 Submitted by: Jr Aquino <tanawts@gmail.com> Approved by: wxs (mentor)
Notes
Notes: svn path=/head/; revision=278277
Diffstat (limited to 'irc/unreal/Makefile')
-rw-r--r--irc/unreal/Makefile15
1 files changed, 11 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