diff options
author | miwi <miwi@FreeBSD.org> | 2007-10-28 06:13:47 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-10-28 06:13:47 +0800 |
commit | 9f2bb94b2a19a08476bd588760a43a244f921f29 (patch) | |
tree | e27a026381c6d832933c581d794ef63fa2dcb1ef /irc/ircd-ratbox | |
parent | ba1469655e2ad5dd4321ff3a4d354c51bf444974 (diff) | |
download | freebsd-ports-gnome-9f2bb94b2a19a08476bd588760a43a244f921f29.tar.gz freebsd-ports-gnome-9f2bb94b2a19a08476bd588760a43a244f921f29.tar.zst freebsd-ports-gnome-9f2bb94b2a19a08476bd588760a43a244f921f29.zip |
- Makefile cleanup
- Improve config handling.
PR: 117548
Submitted by: Lewis <moggie@elasticmind.net> (maintainer)
Diffstat (limited to 'irc/ircd-ratbox')
-rw-r--r-- | irc/ircd-ratbox/Makefile | 16 | ||||
-rw-r--r-- | irc/ircd-ratbox/files/pkg-message.in | 8 | ||||
-rw-r--r-- | irc/ircd-ratbox/pkg-plist | 12 |
3 files changed, 27 insertions, 9 deletions
diff --git a/irc/ircd-ratbox/Makefile b/irc/ircd-ratbox/Makefile index d3454e80ddac..ba29adb257b4 100644 --- a/irc/ircd-ratbox/Makefile +++ b/irc/ircd-ratbox/Makefile @@ -8,17 +8,19 @@ PORTNAME= ircd-ratbox PORTVERSION= 2.2.6 +PORTREVISION= 1 CATEGORIES= irc ipv6 MASTER_SITES= ftp://ftp.ircd-ratbox.org/pub/ircd-ratbox/ \ ftp://ftp.demon.co.uk/pub/mirrors/ircd-ratbox/ \ http://www.ircd-ratbox.org/download/ \ - ftp://ftp.parodius.com/pub/ircd-ratbox/ + ftp://ftp.parodius.com/pub/ircd-ratbox/ \ + http://www.ircd-ratbox.org/download/old/ EXTRACT_SUFX= .tgz MAINTAINER= moggie@elasticmind.net COMMENT= An advanced, stable IRC daemon, used on many EFnet servers -CONFLICTS= ircd-ratbox-[0-9]* +CONFLICTS= ircd-ratbox-devel-[0-9]* MAN8= ircd.8 USE_RC_SUBR= ircd-ratbox.sh @@ -137,6 +139,16 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/doc/example.conf ${PREFIX}/etc/${PORTNAME}/ircd.conf.sample ${INSTALL_DATA} ${WRKSRC}/doc/example.efnet.conf ${PREFIX}/etc/${PORTNAME}/ircd-efnet.conf.sample + @if [ ! -f ${PREFIX}/etc/${PORTNAME}/ircd.conf ]; then \ + ${ECHO} "Installing default configuration file."; \ + ${CP} -p ${PREFIX}/etc/${PORTNAME}/ircd.conf.sample ${PREFIX}/etc/${PORTNAME}/ircd.conf ; \ + fi + + @if [ ! -f ${PREFIX}/etc/${PORTNAME}/ircd.motd ]; then \ + ${ECHO} "Installing default motd file."; \ + ${CP} -p ${PREFIX}/etc/${PORTNAME}/ircd.motd.sample ${PREFIX}/etc/${PORTNAME}/ircd.motd ; \ + fi + @${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} diff --git a/irc/ircd-ratbox/files/pkg-message.in b/irc/ircd-ratbox/files/pkg-message.in index 7f942cabc92a..9b7506da1667 100644 --- a/irc/ircd-ratbox/files/pkg-message.in +++ b/irc/ircd-ratbox/files/pkg-message.in @@ -1,9 +1,11 @@ ------------------------------------------------------------------------ ircd-ratbox has been successfully installed. -You should now copy %%PREFIX%%/etc/ircd-ratbox/ircd.conf.sample to -%%PREFIX%%/etc/ircd-ratbox/ircd.conf, and edit it as per the ratbox -documentation. This file is required to start the server. +Sample 'ircd.conf' and 'ircd.motd' files have been created in the +ircd-ratbox configuration directory. A sample configuration file is +included for EFNet-like configurations that can be used instead. You +should now edit these files as per the ratbox documentation. +A configured ircd.conf file is required to start the server. Once you have added ircd_ratbox_enable="YES" to /etc/rc.conf, the server can be started by running: diff --git a/irc/ircd-ratbox/pkg-plist b/irc/ircd-ratbox/pkg-plist index 5aa61ac316cc..19f94e7b079f 100644 --- a/irc/ircd-ratbox/pkg-plist +++ b/irc/ircd-ratbox/pkg-plist @@ -7,8 +7,6 @@ bin/viconf bin/viklines bin/vimotd etc/ircd-ratbox/ircd-efnet.conf.sample -etc/ircd-ratbox/ircd.conf.sample -etc/ircd-ratbox/ircd.motd.sample lib/ircd-ratbox/modules/autoload/m_accept.so lib/ircd-ratbox/modules/autoload/m_admin.so lib/ircd-ratbox/modules/autoload/m_away.so @@ -232,6 +230,12 @@ lib/ircd-ratbox/modules/m_squit.so @unexec f="%D/etc/ircd-ratbox/kline.conf"; if [ ! -s "$f" ]; then rm -f "$f"; fi @unexec f="%D/etc/ircd-ratbox/resv.conf"; if [ ! -s "$f" ]; then rm -f "$f"; fi @unexec f="%D/etc/ircd-ratbox/xline.conf"; if [ ! -s "$f" ]; then rm -f "$f"; fi +@unexec if cmp -s %D/etc/ircd-ratbox/ircd.conf.sample %D/etc/ircd-ratbox/ircd.conf; then rm -f %D/etc/ircd-ratbox/ircd.conf; fi +etc/ircd-ratbox/ircd.conf.sample +@exec if [ ! -f %D/etc/ircd-ratbox/ircd.conf ] ; then cp -p %D/%F %B/ircd.conf; fi +@unexec if cmp -s %D/etc/ircd-ratbox/ircd.motd.sample %D/etc/ircd-ratbox/ircd.motd; then rm -f %D/etc/ircd-ratbox/ircd.motd; fi +etc/ircd-ratbox/ircd.motd.sample +@exec if [ ! -f %D/etc/ircd-ratbox/ircd.motd ] ; then cp -p %D/%F %B/ircd.motd; fi @dirrmtry etc/ircd-ratbox -@unexec rmdir %%LOGDIR%% 2>/dev/null || true -@unexec rmdir %%RUNDIR%% 2>/dev/null || true +@dirrmtry %%LOGDIR%% +@dirrmtry %%RUNDIR%% |