aboutsummaryrefslogtreecommitdiff
path: root/irc/ircd-ratbox-devel/pkg-plist
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-10-27 22:15:01 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-10-27 22:15:01 +0000
commit37b1f7abcfbff14e4877447dcebd038584fda33a (patch)
tree25dc54907e8b45ec28a6f189e041c2af05468600 /irc/ircd-ratbox-devel/pkg-plist
parent60fbc76ec85496880ec34c7bf42ab86a6d425d81 (diff)
downloadports-37b1f7abcfbff14e4877447dcebd038584fda33a.tar.gz
ports-37b1f7abcfbff14e4877447dcebd038584fda33a.zip
Notes
Diffstat (limited to 'irc/ircd-ratbox-devel/pkg-plist')
-rw-r--r--irc/ircd-ratbox-devel/pkg-plist12
1 files changed, 8 insertions, 4 deletions
diff --git a/irc/ircd-ratbox-devel/pkg-plist b/irc/ircd-ratbox-devel/pkg-plist
index 5aa61ac316cc..19f94e7b079f 100644
--- a/irc/ircd-ratbox-devel/pkg-plist
+++ b/irc/ircd-ratbox-devel/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%%