Date: Sunday, March 31, 2013 @ 21:19:03 Author: stephane Revision: 87442
db-move: moved wesnoth from [community-testing] to [community] (i686, x86_64) Added: wesnoth/repos/community-i686/PKGBUILD (from rev 87401, wesnoth/repos/community-testing-i686/PKGBUILD) wesnoth/repos/community-i686/wesnoth.install (from rev 87401, wesnoth/repos/community-testing-i686/wesnoth.install) wesnoth/repos/community-i686/wesnoth.tmpfiles.conf (from rev 87401, wesnoth/repos/community-testing-i686/wesnoth.tmpfiles.conf) wesnoth/repos/community-i686/wesnothd.rc.d (from rev 87401, wesnoth/repos/community-testing-i686/wesnothd.rc.d) wesnoth/repos/community-i686/wesnothd.service (from rev 87401, wesnoth/repos/community-testing-i686/wesnothd.service) wesnoth/repos/community-i686/wesnothd.tmpfiles.conf (from rev 87401, wesnoth/repos/community-testing-i686/wesnothd.tmpfiles.conf) wesnoth/repos/community-x86_64/PKGBUILD (from rev 87401, wesnoth/repos/community-testing-x86_64/PKGBUILD) wesnoth/repos/community-x86_64/wesnoth.install (from rev 87401, wesnoth/repos/community-testing-x86_64/wesnoth.install) wesnoth/repos/community-x86_64/wesnoth.tmpfiles.conf (from rev 87401, wesnoth/repos/community-testing-x86_64/wesnoth.tmpfiles.conf) wesnoth/repos/community-x86_64/wesnothd.rc.d (from rev 87401, wesnoth/repos/community-testing-x86_64/wesnothd.rc.d) wesnoth/repos/community-x86_64/wesnothd.service (from rev 87401, wesnoth/repos/community-testing-x86_64/wesnothd.service) wesnoth/repos/community-x86_64/wesnothd.tmpfiles.conf (from rev 87401, wesnoth/repos/community-testing-x86_64/wesnothd.tmpfiles.conf) Deleted: wesnoth/repos/community-i686/PKGBUILD wesnoth/repos/community-i686/wesnoth.install wesnoth/repos/community-i686/wesnoth.tmpfiles.conf wesnoth/repos/community-i686/wesnothd.rc.d wesnoth/repos/community-i686/wesnothd.service wesnoth/repos/community-i686/wesnothd.tmpfiles.conf wesnoth/repos/community-testing-i686/ wesnoth/repos/community-testing-x86_64/ wesnoth/repos/community-x86_64/PKGBUILD wesnoth/repos/community-x86_64/wesnoth.install wesnoth/repos/community-x86_64/wesnoth.tmpfiles.conf wesnoth/repos/community-x86_64/wesnothd.rc.d wesnoth/repos/community-x86_64/wesnothd.service wesnoth/repos/community-x86_64/wesnothd.tmpfiles.conf -----------------------------------------+ /PKGBUILD | 108 ++++++++++++++++++++++++++++++ /wesnoth.install | 28 +++++++ /wesnoth.tmpfiles.conf | 2 /wesnothd.rc.d | 80 ++++++++++++++++++++++ /wesnothd.service | 18 +++++ /wesnothd.tmpfiles.conf | 2 community-i686/PKGBUILD | 54 --------------- community-i686/wesnoth.install | 14 --- community-i686/wesnoth.tmpfiles.conf | 1 community-i686/wesnothd.rc.d | 40 ----------- community-i686/wesnothd.service | 9 -- community-i686/wesnothd.tmpfiles.conf | 1 community-x86_64/PKGBUILD | 54 --------------- community-x86_64/wesnoth.install | 14 --- community-x86_64/wesnoth.tmpfiles.conf | 1 community-x86_64/wesnothd.rc.d | 40 ----------- community-x86_64/wesnothd.service | 9 -- community-x86_64/wesnothd.tmpfiles.conf | 1 18 files changed, 238 insertions(+), 238 deletions(-) Deleted: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD 2013-03-31 19:19:00 UTC (rev 87441) +++ community-i686/PKGBUILD 2013-03-31 19:19:03 UTC (rev 87442) @@ -1,54 +0,0 @@ -# $Id$ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -# Contributor: Jan de Groot <j...@archlinux.org> -# Contributor: Tobias Powalowski <tp...@archlinux.org> -# Contributor: Jacobo Arvelo <unix4...@ya.com> -# Contributor: Douglas Soares de Andrade <doug...@archlinux.org> - -pkgname=wesnoth -pkgver=1.10.6 -pkgrel=1 -pkgdesc="A turn-based strategy game on a fantasy world" -arch=('i686' 'x86_64') -license=('GPL') -url="http://www.wesnoth.org/" -depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'fribidi' 'boost-libs' 'pango' 'lua' "wesnoth-data>=$pkgver" 'dbus-core' 'python2') -makedepends=('boost' 'cmake') -install=wesnoth.install -options=(!emptydirs) -source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 - wesnothd.tmpfiles.conf - wesnothd.rc.d - wesnothd.service) -md5sums=('547e3489bbfa778912b11dbee612c380' - '2d2fea6b3d86dfd589f5ad35a3be1f97' - '85659b47d22dfdf4e4d046556973fc3e' - 'd1b6bf1d3dc05086ee6a370adff0ae4a') - -build() { - cd "$srcdir/$pkgname-$pkgver" - - mkdir build && cd build - cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DENABLE_OMP=ON \ - -DENABLE_TOOLS=ON \ - -DMANDIR=share/man - make -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - - cd build - make DESTDIR="$pkgdir" install - - rm -r $pkgdir/usr/share/applications - rm -r $pkgdir/usr/share/doc - rm -r $pkgdir/usr/share/pixmaps - rm -r $pkgdir/usr/share/wesnoth - - install -Dm644 "$srcdir/wesnothd.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/wesnothd.conf" - install -Dm644 "$srcdir/wesnothd.service" "$pkgdir/usr/lib/systemd/system/wesnothd.service" - install -Dm755 "$srcdir/wesnothd.rc.d" "$pkgdir/etc/rc.d/wesnothd" -} Copied: wesnoth/repos/community-i686/PKGBUILD (from rev 87401, wesnoth/repos/community-testing-i686/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1,54 @@ +# $Id$ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Jan de Groot <j...@archlinux.org> +# Contributor: Tobias Powalowski <tp...@archlinux.org> +# Contributor: Jacobo Arvelo <unix4...@ya.com> +# Contributor: Douglas Soares de Andrade <doug...@archlinux.org> + +pkgname=wesnoth +pkgver=1.10.6 +pkgrel=2 +pkgdesc="A turn-based strategy game on a fantasy world" +arch=('i686' 'x86_64') +license=('GPL') +url="http://www.wesnoth.org/" +depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'fribidi' 'boost-libs' 'pango' 'lua' "wesnoth-data>=$pkgver" 'dbus-core' 'python2') +makedepends=('boost' 'cmake') +install=wesnoth.install +options=(!emptydirs) +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 + wesnothd.tmpfiles.conf + wesnothd.rc.d + wesnothd.service) +md5sums=('547e3489bbfa778912b11dbee612c380' + '2d2fea6b3d86dfd589f5ad35a3be1f97' + '85659b47d22dfdf4e4d046556973fc3e' + 'd1b6bf1d3dc05086ee6a370adff0ae4a') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + mkdir build && cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_OMP=ON \ + -DENABLE_TOOLS=ON \ + -DMANDIR=share/man + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + cd build + make DESTDIR="$pkgdir" install + + rm -r $pkgdir/usr/share/applications + rm -r $pkgdir/usr/share/doc + rm -r $pkgdir/usr/share/pixmaps + rm -r $pkgdir/usr/share/wesnoth + + install -Dm644 "$srcdir/wesnothd.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/wesnothd.conf" + install -Dm644 "$srcdir/wesnothd.service" "$pkgdir/usr/lib/systemd/system/wesnothd.service" + install -Dm755 "$srcdir/wesnothd.rc.d" "$pkgdir/etc/rc.d/wesnothd" +} Deleted: community-i686/wesnoth.install =================================================================== --- community-i686/wesnoth.install 2013-03-31 19:19:00 UTC (rev 87441) +++ community-i686/wesnoth.install 2013-03-31 19:19:03 UTC (rev 87442) @@ -1,14 +0,0 @@ -# arg 1: the new package version -post_install() { - systemd-tmpfiles --create wesnothd.conf -cat << EOF -Note: -==> If you experience sound problems try setting your SDL_AUDIODRIVER environment variable to "dma" -==> eg. export SDL_AUDIODRIVER="dma" ; wesnoth -==> If "dma" doesn't work,other options are: dsp,alsa,artsc,esd,nas try to find the right output. -EOF -} - -post_upgrade() { - post_install -} Copied: wesnoth/repos/community-i686/wesnoth.install (from rev 87401, wesnoth/repos/community-testing-i686/wesnoth.install) =================================================================== --- community-i686/wesnoth.install (rev 0) +++ community-i686/wesnoth.install 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1,14 @@ +# arg 1: the new package version +post_install() { + systemd-tmpfiles --create wesnothd.conf +cat << EOF +Note: +==> If you experience sound problems try setting your SDL_AUDIODRIVER environment variable to "dma" +==> eg. export SDL_AUDIODRIVER="dma" ; wesnoth +==> If "dma" doesn't work,other options are: dsp,alsa,artsc,esd,nas try to find the right output. +EOF +} + +post_upgrade() { + post_install +} Deleted: community-i686/wesnoth.tmpfiles.conf =================================================================== --- community-i686/wesnoth.tmpfiles.conf 2013-03-31 19:19:00 UTC (rev 87441) +++ community-i686/wesnoth.tmpfiles.conf 2013-03-31 19:19:03 UTC (rev 87442) @@ -1 +0,0 @@ -D /run/wesnothd 0700 root root - Copied: wesnoth/repos/community-i686/wesnoth.tmpfiles.conf (from rev 87401, wesnoth/repos/community-testing-i686/wesnoth.tmpfiles.conf) =================================================================== --- community-i686/wesnoth.tmpfiles.conf (rev 0) +++ community-i686/wesnoth.tmpfiles.conf 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1 @@ +D /run/wesnothd 0700 root root - Deleted: community-i686/wesnothd.rc.d =================================================================== --- community-i686/wesnothd.rc.d 2013-03-31 19:19:00 UTC (rev 87441) +++ community-i686/wesnothd.rc.d 2013-03-31 19:19:03 UTC (rev 87442) @@ -1,40 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -PID=$(pidof -o %PPID /usr/bin/wesnothd) - -case "$1" in - start) - stat_busy "Starting Wesnoth Server Daemon" - [[ -d /var/run/wesnothd ]] || mkdir /var/run/wesnothd - [ -z "$PID" ] && /usr/bin/wesnothd -d &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - PID=$(pidof -o %PPID /usr/bin/wesnothd) - echo $PID > /var/run/wesnotd/pid - add_daemon wesnothd - stat_done - fi - ;; - stop) - stat_busy "Stopping Wesnoth Server Daemon" - [ ! -z "$PID" ] && kill $PID &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon wesnothd - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 Copied: wesnoth/repos/community-i686/wesnothd.rc.d (from rev 87401, wesnoth/repos/community-testing-i686/wesnothd.rc.d) =================================================================== --- community-i686/wesnothd.rc.d (rev 0) +++ community-i686/wesnothd.rc.d 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1,40 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=$(pidof -o %PPID /usr/bin/wesnothd) + +case "$1" in + start) + stat_busy "Starting Wesnoth Server Daemon" + [[ -d /var/run/wesnothd ]] || mkdir /var/run/wesnothd + [ -z "$PID" ] && /usr/bin/wesnothd -d &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + PID=$(pidof -o %PPID /usr/bin/wesnothd) + echo $PID > /var/run/wesnotd/pid + add_daemon wesnothd + stat_done + fi + ;; + stop) + stat_busy "Stopping Wesnoth Server Daemon" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon wesnothd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 Deleted: community-i686/wesnothd.service =================================================================== --- community-i686/wesnothd.service 2013-03-31 19:19:00 UTC (rev 87441) +++ community-i686/wesnothd.service 2013-03-31 19:19:03 UTC (rev 87442) @@ -1,9 +0,0 @@ -[Unit] -Description=Wesnoth Server Daemon -After=network.target - -[Service] -ExecStart=/usr/bin/wesnothd - -[Install] -WantedBy=multi-user.target Copied: wesnoth/repos/community-i686/wesnothd.service (from rev 87401, wesnoth/repos/community-testing-i686/wesnothd.service) =================================================================== --- community-i686/wesnothd.service (rev 0) +++ community-i686/wesnothd.service 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1,9 @@ +[Unit] +Description=Wesnoth Server Daemon +After=network.target + +[Service] +ExecStart=/usr/bin/wesnothd + +[Install] +WantedBy=multi-user.target Deleted: community-i686/wesnothd.tmpfiles.conf =================================================================== --- community-i686/wesnothd.tmpfiles.conf 2013-03-31 19:19:00 UTC (rev 87441) +++ community-i686/wesnothd.tmpfiles.conf 2013-03-31 19:19:03 UTC (rev 87442) @@ -1 +0,0 @@ -d /run/wesnothd 0700 root root - Copied: wesnoth/repos/community-i686/wesnothd.tmpfiles.conf (from rev 87401, wesnoth/repos/community-testing-i686/wesnothd.tmpfiles.conf) =================================================================== --- community-i686/wesnothd.tmpfiles.conf (rev 0) +++ community-i686/wesnothd.tmpfiles.conf 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1 @@ +d /run/wesnothd 0700 root root - Deleted: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD 2013-03-31 19:19:00 UTC (rev 87441) +++ community-x86_64/PKGBUILD 2013-03-31 19:19:03 UTC (rev 87442) @@ -1,54 +0,0 @@ -# $Id$ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -# Contributor: Jan de Groot <j...@archlinux.org> -# Contributor: Tobias Powalowski <tp...@archlinux.org> -# Contributor: Jacobo Arvelo <unix4...@ya.com> -# Contributor: Douglas Soares de Andrade <doug...@archlinux.org> - -pkgname=wesnoth -pkgver=1.10.6 -pkgrel=1 -pkgdesc="A turn-based strategy game on a fantasy world" -arch=('i686' 'x86_64') -license=('GPL') -url="http://www.wesnoth.org/" -depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'fribidi' 'boost-libs' 'pango' 'lua' "wesnoth-data>=$pkgver" 'dbus-core' 'python2') -makedepends=('boost' 'cmake') -install=wesnoth.install -options=(!emptydirs) -source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 - wesnothd.tmpfiles.conf - wesnothd.rc.d - wesnothd.service) -md5sums=('547e3489bbfa778912b11dbee612c380' - '2d2fea6b3d86dfd589f5ad35a3be1f97' - '85659b47d22dfdf4e4d046556973fc3e' - 'd1b6bf1d3dc05086ee6a370adff0ae4a') - -build() { - cd "$srcdir/$pkgname-$pkgver" - - mkdir build && cd build - cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DENABLE_OMP=ON \ - -DENABLE_TOOLS=ON \ - -DMANDIR=share/man - make -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - - cd build - make DESTDIR="$pkgdir" install - - rm -r $pkgdir/usr/share/applications - rm -r $pkgdir/usr/share/doc - rm -r $pkgdir/usr/share/pixmaps - rm -r $pkgdir/usr/share/wesnoth - - install -Dm644 "$srcdir/wesnothd.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/wesnothd.conf" - install -Dm644 "$srcdir/wesnothd.service" "$pkgdir/usr/lib/systemd/system/wesnothd.service" - install -Dm755 "$srcdir/wesnothd.rc.d" "$pkgdir/etc/rc.d/wesnothd" -} Copied: wesnoth/repos/community-x86_64/PKGBUILD (from rev 87401, wesnoth/repos/community-testing-x86_64/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1,54 @@ +# $Id$ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Jan de Groot <j...@archlinux.org> +# Contributor: Tobias Powalowski <tp...@archlinux.org> +# Contributor: Jacobo Arvelo <unix4...@ya.com> +# Contributor: Douglas Soares de Andrade <doug...@archlinux.org> + +pkgname=wesnoth +pkgver=1.10.6 +pkgrel=2 +pkgdesc="A turn-based strategy game on a fantasy world" +arch=('i686' 'x86_64') +license=('GPL') +url="http://www.wesnoth.org/" +depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'fribidi' 'boost-libs' 'pango' 'lua' "wesnoth-data>=$pkgver" 'dbus-core' 'python2') +makedepends=('boost' 'cmake') +install=wesnoth.install +options=(!emptydirs) +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 + wesnothd.tmpfiles.conf + wesnothd.rc.d + wesnothd.service) +md5sums=('547e3489bbfa778912b11dbee612c380' + '2d2fea6b3d86dfd589f5ad35a3be1f97' + '85659b47d22dfdf4e4d046556973fc3e' + 'd1b6bf1d3dc05086ee6a370adff0ae4a') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + mkdir build && cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_OMP=ON \ + -DENABLE_TOOLS=ON \ + -DMANDIR=share/man + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + cd build + make DESTDIR="$pkgdir" install + + rm -r $pkgdir/usr/share/applications + rm -r $pkgdir/usr/share/doc + rm -r $pkgdir/usr/share/pixmaps + rm -r $pkgdir/usr/share/wesnoth + + install -Dm644 "$srcdir/wesnothd.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/wesnothd.conf" + install -Dm644 "$srcdir/wesnothd.service" "$pkgdir/usr/lib/systemd/system/wesnothd.service" + install -Dm755 "$srcdir/wesnothd.rc.d" "$pkgdir/etc/rc.d/wesnothd" +} Deleted: community-x86_64/wesnoth.install =================================================================== --- community-x86_64/wesnoth.install 2013-03-31 19:19:00 UTC (rev 87441) +++ community-x86_64/wesnoth.install 2013-03-31 19:19:03 UTC (rev 87442) @@ -1,14 +0,0 @@ -# arg 1: the new package version -post_install() { - systemd-tmpfiles --create wesnothd.conf -cat << EOF -Note: -==> If you experience sound problems try setting your SDL_AUDIODRIVER environment variable to "dma" -==> eg. export SDL_AUDIODRIVER="dma" ; wesnoth -==> If "dma" doesn't work,other options are: dsp,alsa,artsc,esd,nas try to find the right output. -EOF -} - -post_upgrade() { - post_install -} Copied: wesnoth/repos/community-x86_64/wesnoth.install (from rev 87401, wesnoth/repos/community-testing-x86_64/wesnoth.install) =================================================================== --- community-x86_64/wesnoth.install (rev 0) +++ community-x86_64/wesnoth.install 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1,14 @@ +# arg 1: the new package version +post_install() { + systemd-tmpfiles --create wesnothd.conf +cat << EOF +Note: +==> If you experience sound problems try setting your SDL_AUDIODRIVER environment variable to "dma" +==> eg. export SDL_AUDIODRIVER="dma" ; wesnoth +==> If "dma" doesn't work,other options are: dsp,alsa,artsc,esd,nas try to find the right output. +EOF +} + +post_upgrade() { + post_install +} Deleted: community-x86_64/wesnoth.tmpfiles.conf =================================================================== --- community-x86_64/wesnoth.tmpfiles.conf 2013-03-31 19:19:00 UTC (rev 87441) +++ community-x86_64/wesnoth.tmpfiles.conf 2013-03-31 19:19:03 UTC (rev 87442) @@ -1 +0,0 @@ -D /run/wesnothd 0700 root root - Copied: wesnoth/repos/community-x86_64/wesnoth.tmpfiles.conf (from rev 87401, wesnoth/repos/community-testing-x86_64/wesnoth.tmpfiles.conf) =================================================================== --- community-x86_64/wesnoth.tmpfiles.conf (rev 0) +++ community-x86_64/wesnoth.tmpfiles.conf 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1 @@ +D /run/wesnothd 0700 root root - Deleted: community-x86_64/wesnothd.rc.d =================================================================== --- community-x86_64/wesnothd.rc.d 2013-03-31 19:19:00 UTC (rev 87441) +++ community-x86_64/wesnothd.rc.d 2013-03-31 19:19:03 UTC (rev 87442) @@ -1,40 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -PID=$(pidof -o %PPID /usr/bin/wesnothd) - -case "$1" in - start) - stat_busy "Starting Wesnoth Server Daemon" - [[ -d /var/run/wesnothd ]] || mkdir /var/run/wesnothd - [ -z "$PID" ] && /usr/bin/wesnothd -d &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - PID=$(pidof -o %PPID /usr/bin/wesnothd) - echo $PID > /var/run/wesnotd/pid - add_daemon wesnothd - stat_done - fi - ;; - stop) - stat_busy "Stopping Wesnoth Server Daemon" - [ ! -z "$PID" ] && kill $PID &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon wesnothd - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 Copied: wesnoth/repos/community-x86_64/wesnothd.rc.d (from rev 87401, wesnoth/repos/community-testing-x86_64/wesnothd.rc.d) =================================================================== --- community-x86_64/wesnothd.rc.d (rev 0) +++ community-x86_64/wesnothd.rc.d 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1,40 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=$(pidof -o %PPID /usr/bin/wesnothd) + +case "$1" in + start) + stat_busy "Starting Wesnoth Server Daemon" + [[ -d /var/run/wesnothd ]] || mkdir /var/run/wesnothd + [ -z "$PID" ] && /usr/bin/wesnothd -d &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + PID=$(pidof -o %PPID /usr/bin/wesnothd) + echo $PID > /var/run/wesnotd/pid + add_daemon wesnothd + stat_done + fi + ;; + stop) + stat_busy "Stopping Wesnoth Server Daemon" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon wesnothd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 Deleted: community-x86_64/wesnothd.service =================================================================== --- community-x86_64/wesnothd.service 2013-03-31 19:19:00 UTC (rev 87441) +++ community-x86_64/wesnothd.service 2013-03-31 19:19:03 UTC (rev 87442) @@ -1,9 +0,0 @@ -[Unit] -Description=Wesnoth Server Daemon -After=network.target - -[Service] -ExecStart=/usr/bin/wesnothd - -[Install] -WantedBy=multi-user.target Copied: wesnoth/repos/community-x86_64/wesnothd.service (from rev 87401, wesnoth/repos/community-testing-x86_64/wesnothd.service) =================================================================== --- community-x86_64/wesnothd.service (rev 0) +++ community-x86_64/wesnothd.service 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1,9 @@ +[Unit] +Description=Wesnoth Server Daemon +After=network.target + +[Service] +ExecStart=/usr/bin/wesnothd + +[Install] +WantedBy=multi-user.target Deleted: community-x86_64/wesnothd.tmpfiles.conf =================================================================== --- community-x86_64/wesnothd.tmpfiles.conf 2013-03-31 19:19:00 UTC (rev 87441) +++ community-x86_64/wesnothd.tmpfiles.conf 2013-03-31 19:19:03 UTC (rev 87442) @@ -1 +0,0 @@ -d /run/wesnothd 0700 root root - Copied: wesnoth/repos/community-x86_64/wesnothd.tmpfiles.conf (from rev 87401, wesnoth/repos/community-testing-x86_64/wesnothd.tmpfiles.conf) =================================================================== --- community-x86_64/wesnothd.tmpfiles.conf (rev 0) +++ community-x86_64/wesnothd.tmpfiles.conf 2013-03-31 19:19:03 UTC (rev 87442) @@ -0,0 +1 @@ +d /run/wesnothd 0700 root root -