summaryrefslogtreecommitdiff
path: root/community/gnunet
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-12-30 10:44:01 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-12-30 10:44:01 -0300
commit0d8ecfa1948a782678aea98ce57638f0430de78b (patch)
tree8d126f200367e84337c6d0fa91cd749a1c7877b8 /community/gnunet
parent8baf74afe0af3b4012ae438cfeea1bbea3f41375 (diff)
parent8a823402bd45dc875237a20f174ecbe64e1bae4d (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: extra/desktop-file-utils/PKGBUILD extra/libgphoto2/PKGBUILD multilib-testing/lib32-glibc/PKGBUILD testing/glibc/PKGBUILD
Diffstat (limited to 'community/gnunet')
-rw-r--r--community/gnunet/PKGBUILD9
-rw-r--r--community/gnunet/gnunet.install7
-rw-r--r--community/gnunet/gnunet.rc8
3 files changed, 16 insertions, 8 deletions
diff --git a/community/gnunet/PKGBUILD b/community/gnunet/PKGBUILD
index 436345e04..8cf2333a6 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' 'mips64el')
@@ -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