aboutsummaryrefslogtreecommitdiffstats
path: root/irc/ircd-ratbox-devel/files
diff options
context:
space:
mode:
authorbeat <beat@FreeBSD.org>2009-05-29 03:18:16 +0800
committerbeat <beat@FreeBSD.org>2009-05-29 03:18:16 +0800
commit14acb96ae623e3b4326b435ce3de1ffc32b870fb (patch)
tree34df4df716537618be6f7258b6ef4079a07b4dc0 /irc/ircd-ratbox-devel/files
parent4edc56c51a002dd58f290f471451c5549e0ab134 (diff)
downloadfreebsd-ports-gnome-14acb96ae623e3b4326b435ce3de1ffc32b870fb.tar.gz
freebsd-ports-gnome-14acb96ae623e3b4326b435ce3de1ffc32b870fb.tar.zst
freebsd-ports-gnome-14acb96ae623e3b4326b435ce3de1ffc32b870fb.zip
- Update to 3.0.4
- Fix post-install permissions check PR: ports/134972 Submitted by: Lewis <moggie AT elasticmind.net> (maintainer) Approved by: miwi (mentor, implicit)
Diffstat (limited to 'irc/ircd-ratbox-devel/files')
-rw-r--r--irc/ircd-ratbox-devel/files/pkg-install.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/irc/ircd-ratbox-devel/files/pkg-install.in b/irc/ircd-ratbox-devel/files/pkg-install.in
index 37fe4782f367..5b8b8375ec02 100644
--- a/irc/ircd-ratbox-devel/files/pkg-install.in
+++ b/irc/ircd-ratbox-devel/files/pkg-install.in
@@ -107,12 +107,15 @@ mkdir -p %%DBDIR%% \
&& chmod 750 %%DBDIR%%
# Secure permissions if we think this is a fresh install
-
-if [ ! -f %%PREFIX%%/etc/ircd-ratbox/ircd.conf ]; then
+conffile="%%PREFIX%%/etc/ircd-ratbox/ircd.conf"
+samplefile="%%PREFIX%%/etc/ircd-ratbox/ircd.conf.sample"
+if cmp -s $conffile $samplefile; then
echo "Setting permissions for config dir and files."
- chown -R ircd:ircd %%PREFIX%%/etc/ircd-ratbox/
+ chown -R root:ircd %%PREFIX%%/etc/ircd-ratbox/
chmod 750 %%PREFIX%%/etc/ircd-ratbox/
chmod 640 %%PREFIX%%/etc/ircd-ratbox/*
+else
+ echo "Modified ircd.conf file found, skipping perms setting."
fi
#-----------------------------------------------------------------------