diff --git a/wesnoth-server/.footprint b/wesnoth-server/.footprint index 8c771c6c7..5d81e140a 100644 --- a/wesnoth-server/.footprint +++ b/wesnoth-server/.footprint @@ -3,7 +3,11 @@ 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----- root/wesnothd usr/bin/campaignd -rwxr----- root/wesnothd usr/bin/wesnothd -drwxr-xr-x root/root usr/var/ -drwxr-xr-x root/root usr/var/run/ -drwxrwx--- root/wesnothd usr/var/run/wesnothd/ +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man6/ +-rw-r--r-- root/root usr/man/man6/wesnothd.6.gz +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/run/ +drwxrwx--- root/wesnothd var/run/wesnothd/ diff --git a/wesnoth-server/.md5sum b/wesnoth-server/.md5sum index 81bd5952d..5fa6e2e70 100644 --- a/wesnoth-server/.md5sum +++ b/wesnoth-server/.md5sum @@ -1,2 +1,2 @@ -fdd341c3d66bf1bea2113c79db852d68 wesnoth-1.4.7.tar.bz2 +5dd150057da9f5048826f16452ab0346 wesnoth-1.8.2.tar.bz2 637b68da9ad8032f3219cee2c64569a9 wesnothd.rc diff --git a/wesnoth-server/Pkgfile b/wesnoth-server/Pkgfile index d73bce011..c8cd46aa7 100644 --- a/wesnoth-server/Pkgfile +++ b/wesnoth-server/Pkgfile @@ -5,33 +5,43 @@ # Depends on: sdl_image sdl_mixer sdl_net freetype boost name=wesnoth-server -version=1.4.7 +version=1.8.2 release=1 source=(http://downloads.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2 wesnothd.rc) build() { cd wesnoth-$version - rm po/*/*.po - sed -i \ - -e 's/USE_NLS=yes/USE_NLS=no/' \ - -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure + mkdir build + cd build - ./configure \ - --prefix=/usr \ - --mandir=/usr/man \ - --disable-nls \ - --disable-game \ - --enable-server + cmake ../ \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_NLS=FALSE \ + -DENABLE_CAMPAIGN_SERVER=TRUE \ + -DENABLE_SERVER=TRUE \ + -DSERVER_UID=root \ + -DSERVER_GID=wesnothd \ + -DFIFO_DIR=/var/run/wesnothd - make + make campaignd wesnothd make DESTDIR=$PKG install install -m 0755 -D $SRC/wesnothd.rc $PKG/etc/rc.d/wesnoth - chown root:wesnothd $PKG/usr/bin/wesnothd - chown root:wesnothd $PKG/usr/var/run/wesnothd - chmod 0740 $PKG/usr/bin/wesnothd - chmod 0770 $PKG/usr/var/run/wesnothd - find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \; -} + chown root:wesnothd $PKG/usr/bin/{wesnothd,campaignd} + chmod 0740 -c $PKG/usr/bin/{wesnothd,campaignd} + chmod 0770 -c $PKG/var/run/wesnothd + rm \ + $PKG/usr/bin/wesnoth \ + $PKG/usr/man/man6/wesnoth.6 \ + $PKG/usr/share/applications/{wesnoth,wesnoth_editor}.desktop + + rm -r \ + $PKG/usr/share/doc \ + $PKG/usr/share/pixmaps \ + $PKG/usr/share/wesnoth/data \ + $PKG/usr/share/wesnoth + + rmdir $PKG/usr/share/applications $PKG/usr/share +}