diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-10-24 00:51:52 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-10-24 00:51:52 +0800 |
commit | 84dd599bbe1d6cb23943aaba0ce2dbe3bca64fce (patch) | |
tree | e9f917de21615e4d8d22b50172ee7f20bfbd0aee /irc/ratbox-services | |
parent | e241feb6d6fd1b71cf7353cde2e2302d201f5209 (diff) | |
download | freebsd-ports-gnome-84dd599bbe1d6cb23943aaba0ce2dbe3bca64fce.tar.gz freebsd-ports-gnome-84dd599bbe1d6cb23943aaba0ce2dbe3bca64fce.tar.zst freebsd-ports-gnome-84dd599bbe1d6cb23943aaba0ce2dbe3bca64fce.zip |
- Move owner/group/perm handling into plist, fixing packaging from non-root
PR: 203567
Submitted by: amdmi3
Approved by: maintainer timeout (moggie@elasticmind.net, 2 weeks)
Diffstat (limited to 'irc/ratbox-services')
-rw-r--r-- | irc/ratbox-services/files/pkg-install.in | 16 | ||||
-rw-r--r-- | irc/ratbox-services/pkg-plist | 3 |
2 files changed, 2 insertions, 17 deletions
diff --git a/irc/ratbox-services/files/pkg-install.in b/irc/ratbox-services/files/pkg-install.in index 093437dd7981..94da53a66f2b 100644 --- a/irc/ratbox-services/files/pkg-install.in +++ b/irc/ratbox-services/files/pkg-install.in @@ -19,22 +19,6 @@ touch $lf \ && chown ircservices:ircservices $lf \ && chmod 640 $lf - -mkdir -p %%DBDIR%% \ -&& chown ircservices:ircservices %%DBDIR%% \ -&& chmod 750 %%DBDIR%% - -# Secure permissions if we think this is a fresh install -conffile="%%PREFIX%%/etc/ratbox-services.conf" -samplefile="%%PREFIX%%/etc/ratbox-services.conf.sample" -if cmp -s $conffile $samplefile; then - echo "Setting permissions for config file." - chown ircservices:ircservices $conffile - chmod 640 $conffile -else - echo "Modified ratbox-services.conf file found, skipping perms setting." -fi - cd %%DATADIR%% \ && %%PERL%% ./generate-schema.pl diff --git a/irc/ratbox-services/pkg-plist b/irc/ratbox-services/pkg-plist index 47ba550439ef..787acdc942b2 100644 --- a/irc/ratbox-services/pkg-plist +++ b/irc/ratbox-services/pkg-plist @@ -567,6 +567,7 @@ include/client.h @rmtry %%DATADIR%%/schema-mysql.txt @rmtry %%DATADIR%%/schema-pgsql.txt @rmtry %%DATADIR%%/schema-sqlite.txt -@sample etc/ratbox-services.conf.sample +@sample(ircservices,ircservices,640) etc/ratbox-services.conf.sample @rmtry /var/log/ratbox-services.log @rmtry /var/run/ratbox-services.pid +@dir(ircservices,ircservices,750) %%DBDIR%% |