diff options
author | knu <knu@FreeBSD.org> | 2003-04-19 20:02:50 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2003-04-19 20:02:50 +0800 |
commit | c17d9d42ea2a00de4145fbb44f4da039a3c63030 (patch) | |
tree | b06e4b541c309c55bbcd748627bfb36500dfccf5 /irc/dancer-services/Makefile | |
parent | e5f8fd4f3c71c3748b200ace7920939106b4b7f2 (diff) | |
download | freebsd-ports-gnome-c17d9d42ea2a00de4145fbb44f4da039a3c63030.tar.gz freebsd-ports-gnome-c17d9d42ea2a00de4145fbb44f4da039a3c63030.tar.zst freebsd-ports-gnome-c17d9d42ea2a00de4145fbb44f4da039a3c63030.zip |
Add dancer-services, the IRC services (nickserv, chanserv, etc.) for
dancer-ircd.
Diffstat (limited to 'irc/dancer-services/Makefile')
-rw-r--r-- | irc/dancer-services/Makefile | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/irc/dancer-services/Makefile b/irc/dancer-services/Makefile new file mode 100644 index 000000000000..13a34980866a --- /dev/null +++ b/irc/dancer-services/Makefile @@ -0,0 +1,71 @@ +# New ports collection makefile for: dancer-services +# Date Created: 14 April 2003 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= dancer-services +PORTVERSION= 1.8.0.6.8 +CATEGORIES= irc +MASTER_SITES= http://www.doc.ic.ac.uk/~aps100/dancer/%SUBDIR%/ +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ${PORTNAME}-${PORTVERSION:S/m/+maint/} + +MAINTAINER= knu@FreeBSD.org +COMMENT= The IRC services (nickserv, chanserv, etc.) for dancer-ircd + +USE_REINPLACE= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes + +MAKE_ARGS= BINDIR=${PREFIX}/sbin \ + CONFDIR=${PREFIX}/etc/dancer-services \ + HELPDIR=${PREFIX}/share/dancer-services \ + WHOAMI=root + +.if !defined(PACKAGE_BUILDING) && !defined(BATCH) +IS_INTERACTIVE= yes +.endif + +post-patch: + ${REINPLACE_CMD} 's:@@prefix@@:${PREFIX}:g' \ + ${WRKSRC}/bin/services.conf \ + ${WRKSRC}/bin/settings.conf.in + +pre-install: +.if !defined(PACKAGE_BUILDING) && !defined(BATCH) + @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL +.endif + +post-install: + ${FIND} ${PREFIX}/share/dancer-services -type d -print0 | \ + ${XARGS} -0 ${CHMOD} -R 755 + ${FIND} ${PREFIX}/share/dancer-services -type f -print0 | \ + ${XARGS} -0 ${CHMOD} -R ${SHAREMODE} + ${INSTALL} -d -m 700 -o ircservices -g ircservices \ + /var/log/dancer-services \ + /var/run/dancer-services +.for f in motd.dcc motd.global services.conf settings.conf + ${INSTALL_DATA} ${WRKSRC}/bin/${f} ${PREFIX}/etc/dancer-services/${f}.sample +.endfor +.for f in glines.conf jupes.conf logon.news + ${TOUCH} ${PREFIX}/etc/dancer-services/${f}.sample + if [ ! -f ${PREFIX}/etc/dancer-services/${f} ]; then \ + ${CP} ${PREFIX}/etc/dancer-services/${f}.sample ${PREFIX}/etc/dancer-services/${f}; \ + fi +.endfor + ${CHMOD} -R ${SHAREMODE} ${PREFIX}/etc/dancer-services + ${CHOWN} -R ircservices:ircservices ${PREFIX}/etc/dancer-services + ${SED} -e "s,%PREFIX%,${PREFIX},g" ${FILESDIR}/dancer-services.sh \ + > ${WRKDIR}/dancer-services.sh + ${INSTALL_SCRIPT} ${WRKDIR}/dancer-services.sh ${PREFIX}/etc/rc.d/ + ${SED} -e "s,/usr/local/,${PREFIX}/,g" ${PKGMESSAGE} +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in README* TODO doc/* + ${CP} -R ${WRKSRC}/${f} ${DOCSDIR}/ +.endfor +.endif + +.include <bsd.port.mk> |