diff options
author | root <root@rshg054.dnsready.net> | 2011-12-29 23:14:54 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-12-29 23:14:54 +0000 |
commit | 8a823402bd45dc875237a20f174ecbe64e1bae4d (patch) | |
tree | f520fcd3f38fc11c721bd183e92d1b65c37ca1a9 /community/gnunet | |
parent | 5cd3c62bce23c2b25c28b22da71f664b48703ad2 (diff) |
Thu Dec 29 23:14:54 UTC 2011
Diffstat (limited to 'community/gnunet')
-rw-r--r-- | community/gnunet/PKGBUILD | 9 | ||||
-rw-r--r-- | community/gnunet/gnunet.install | 7 | ||||
-rw-r--r-- | community/gnunet/gnunet.rc | 8 |
3 files changed, 16 insertions, 8 deletions
diff --git a/community/gnunet/PKGBUILD b/community/gnunet/PKGBUILD index ae15ac88f..fa60b32b3 100644 --- a/community/gnunet/PKGBUILD +++ b/community/gnunet/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 59848 2011-12-01 08:06:10Z spupykin $ +# $Id: PKGBUILD 61358 2011-12-28 17:14:11Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: wahnby <wahnby@yahoo.fr> pkgname=gnunet -pkgver=0.9.0 +pkgver=0.9.1 pkgrel=1 pkgdesc="A framework for secure peer-to-peer networking" arch=('i686' 'x86_64') @@ -13,12 +13,13 @@ depends=('gmp' 'libgcrypt' 'libextractor' 'sqlite3' 'curl' 'libmicrohttpd') makedepends=('gettext' 'pkgconfig') backup=(etc/gnunetd.conf) options=('!libtool' '!makeflags') +install=gnunet.install source=(ftp://ftp.gnu.org/gnu/gnunet/gnunet-$pkgver.tar.gz gnunet.rc gnunet.conf.d defaults.conf) -md5sums=('e114291bbaf92de085a0ac6f2bfbe54c' - '0d62ab7f2a28af3ac082015696ee6ef3' +md5sums=('f5ff4c6a87e7b24047319af46113e5c3' + '5baf691913b007fb33e365239e3f7217' 'f161b46915736e4017e77ad735521453' '0fe23b2ca5b3fc47a0b5645e04406da0') diff --git a/community/gnunet/gnunet.install b/community/gnunet/gnunet.install new file mode 100644 index 000000000..b9aff1dfe --- /dev/null +++ b/community/gnunet/gnunet.install @@ -0,0 +1,7 @@ +post_install() { + echo 'Change nobody to proper username in /etc/conf.d/gnunetd' +} + +post_upgrade() { + echo 'Change nobody to proper username in /etc/conf.d/gnunetd' +} diff --git a/community/gnunet/gnunet.rc b/community/gnunet/gnunet.rc index 34c7c5fe1..30ac4d2ad 100644 --- a/community/gnunet/gnunet.rc +++ b/community/gnunet/gnunet.rc @@ -6,11 +6,11 @@ GNUNETD_USER=nobody . /etc/rc.conf . /etc/rc.d/functions -PID=$(pidof -o %PPID /usr/bin/gnunetd) +PID=$(pidof -o %PPID /usr/bin/gnunet-arm) case "$1" in start) - stat_busy "Starting gnunetd" - [ -z "$PID" ] && /usr/bin/gnunetd -c /etc/gnunetd.conf -u $GNUNETD_USER 1>/dev/null 2>/dev/null & + stat_busy "Starting gnunet services" + [ -z "$PID" ] && su -c '/usr/bin/gnunet-arm -s -c /etc/gnunetd.conf' - $GNUNETD_USER 1>/dev/null 2>/dev/null & if [ $? -gt 0 ]; then stat_fail else @@ -19,7 +19,7 @@ case "$1" in fi ;; stop) - stat_busy "Stopping gnunetd" + stat_busy "Stopping gnunet services" [ ! -z "$PID" ] && kill $PID &> /dev/null if [ $? -gt 0 ]; then stat_fail |