summaryrefslogtreecommitdiff
path: root/wesnoth-server
diff options
context:
space:
mode:
authorDanny Rawlins <romster@shortcircuit.net.au>2008-07-08 05:14:40 +1000
committerDanny Rawlins <romster@shortcircuit.net.au>2008-07-08 05:52:20 +1000
commit25bf555f3dfd56a085ca9a259b21d6d01e6e220d (patch)
treec37cc6da0d7c2892891ce06b2f709e3a8febaa7e /wesnoth-server
parent07eaaea5f4c247a355d2a391f9736746fb939ed3 (diff)
downloadcontrib-25bf555f3dfd56a085ca9a259b21d6d01e6e220d.tar.gz
contrib-25bf555f3dfd56a085ca9a259b21d6d01e6e220d.tar.xz
wesnoth-server: permission fixes bug #320
Diffstat (limited to 'wesnoth-server')
-rw-r--r--wesnoth-server/.footprint4
-rw-r--r--wesnoth-server/Pkgfile14
-rwxr-xr-xwesnoth-server/pre-install4
3 files changed, 10 insertions, 12 deletions
diff --git a/wesnoth-server/.footprint b/wesnoth-server/.footprint
index 8ca54f254..46b353999 100644
--- a/wesnoth-server/.footprint
+++ b/wesnoth-server/.footprint
@@ -3,7 +3,7 @@ drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/wesnoth
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
--rwxr--r-- _wesnoth/daemon usr/bin/wesnothd
+-rwxr--r-- wesnoth/wesnoth usr/bin/wesnothd
drwxr-xr-x root/root usr/var/
drwxr-xr-x root/root usr/var/run/
-drwx------ _wesnoth/daemon usr/var/run/wesnothd/
+drwxrwx--- root/wesnoth usr/var/run/wesnothd/
diff --git a/wesnoth-server/Pkgfile b/wesnoth-server/Pkgfile
index c92eea293..2733ca870 100644
--- a/wesnoth-server/Pkgfile
+++ b/wesnoth-server/Pkgfile
@@ -6,7 +6,7 @@
name=wesnoth-server
version=1.4.3
-release=1
+release=2
source=(http://dl.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2 \
wesnothd.rc)
@@ -27,13 +27,11 @@ build() {
make
make DESTDIR=$PKG install
- install -m 0755 -D ../wesnothd.rc $PKG/etc/rc.d/wesnoth
-
- chown _wesnoth:daemon \
- $PKG/usr/bin/wesnothd \
- $PKG/usr/var/run/wesnothd
-
- chmod g-x,o-x $PKG/usr/bin/wesnothd
+ install -m 0755 -D $SRC/wesnothd.rc $PKG/etc/rc.d/wesnoth
+ chown wesnoth:wesnoth $PKG/usr/bin/wesnothd
+ chown root:wesnoth $PKG/usr/var/run/wesnothd
+ chmod 0744 $PKG/usr/bin/wesnothd
+ chmod 0770 $PKG/usr/var/run/wesnothd
find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
}
diff --git a/wesnoth-server/pre-install b/wesnoth-server/pre-install
index 8eca84d2d..f8ce3db17 100755
--- a/wesnoth-server/pre-install
+++ b/wesnoth-server/pre-install
@@ -1,8 +1,8 @@
#!/bin/sh
# Created by Danny Rawlins, monster dot romster at gmail dot com
-GROUP=daemon
-USER=_wesnoth
+GROUP=wesnoth
+USER=wesnoth
USER_COMMENT="Wesnoth game server"
USER_HOME=/var/empty
USER_SHELL=/bin/sh

Generated by cgit