summaryrefslogtreecommitdiff
path: root/irc/dancer-ircd/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-04-19 12:01:34 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-04-19 12:01:34 +0000
commit778a627a7c54f2c4d3205264df36fce7f4bed48c (patch)
tree94e10afb684d0ecff351b9a75f6257518421bc48 /irc/dancer-ircd/Makefile
parentgetpw*_r is now implemented in -CURRENT. However, the _SC_GETPW_R_SIZE_MAX (diff)
Add dancer-ircd, an irc daemon based on hybrid ircd.
This is the ircd designed for use on freenode.net, based on the hybrid ircd used by efnet. This port/package is configured for use on a small network or standalone, and the escape code filter is disabled. To use it on a large and/or Western language only network, please re-configure config.h and rebuild.
Notes
Notes: svn path=/head/; revision=79271
Diffstat (limited to 'irc/dancer-ircd/Makefile')
-rw-r--r--irc/dancer-ircd/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/irc/dancer-ircd/Makefile b/irc/dancer-ircd/Makefile
new file mode 100644
index 000000000000..028493754002
--- /dev/null
+++ b/irc/dancer-ircd/Makefile
@@ -0,0 +1,59 @@
+# New ports collection makefile for: dancer-ircd
+# Date Created: 14 April 2003
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dancer-ircd
+PORTVERSION= 1.0.31m8
+CATEGORIES= irc
+MASTER_SITES= http://www.doc.ic.ac.uk/~aps100/dancer/%SUBDIR%/
+MASTER_SITE_SUBDIR= ${PORTNAME}/stable/releases
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/m/+maint/}
+
+MAINTAINER= knu@FreeBSD.org
+COMMENT= An irc daemon based on hybrid ircd
+
+USE_REINPLACE= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+
+.if !defined(PACKAGE_BUILDING) && !defined(BATCH)
+IS_INTERACTIVE= yes
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} 's:@@prefix@@:${PREFIX}:g' ${WRKSRC}/include/config.h
+
+pre-install:
+.if !defined(PACKAGE_BUILDING) && !defined(BATCH)
+ @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+.endif
+
+post-install:
+ ${INSTALL} -d -m 700 -o ircd -g ircd \
+ ${PREFIX}/etc/dancer-ircd \
+ /var/log/dancer-ircd \
+ /var/run/dancer-ircd
+ ${INSTALL_DATA} ${WRKSRC}/doc/example.conf ${PREFIX}/etc/dancer-ircd/ircd.conf.sample
+.for f in kline.conf dline.conf motd ohelp omotd
+ ${TOUCH} ${PREFIX}/etc/dancer-ircd/${f}.sample
+.endfor
+.for f in ircd.conf kline.conf dline.conf motd ohelp omotd
+ if [ ! -f ${PREFIX}/etc/dancer-ircd/${f} ]; then \
+ ${CP} ${PREFIX}/etc/dancer-ircd/${f}.sample ${PREFIX}/etc/dancer-ircd/${f}; \
+ fi
+.endfor
+ ${CHMOD} -R ${SHAREMODE} ${PREFIX}/etc/dancer-ircd
+ ${CHOWN} -R ircd:ircd ${PREFIX}/etc/dancer-ircd
+ ${SED} -e "s,%PREFIX%,${PREFIX},g" ${FILESDIR}/dancer-ircd.sh \
+ > ${WRKDIR}/dancer-ircd.sh
+ ${INSTALL_SCRIPT} ${WRKDIR}/dancer-ircd.sh ${PREFIX}/etc/rc.d/
+ ${SED} -e "s,/usr/local/,${PREFIX}/,g" ${PKGMESSAGE}
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}/
+.endif
+
+.include <bsd.port.mk>