[arch-commits] Commit in gnunet/trunk (PKGBUILD gnunet.conf.d gnunet.rc)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 10:25:03 EDT 2013


    Date: Monday, May 13, 2013 @ 16:25:03
  Author: spupykin
Revision: 90670

upgpkg: gnunet 0.9.5_a-2

upd

Modified:
  gnunet/trunk/PKGBUILD
Deleted:
  gnunet/trunk/gnunet.conf.d
  gnunet/trunk/gnunet.rc

---------------+
 PKGBUILD      |    8 +-------
 gnunet.conf.d |    1 -
 gnunet.rc     |   40 ----------------------------------------
 3 files changed, 1 insertion(+), 48 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:24:56 UTC (rev 90669)
+++ PKGBUILD	2013-05-13 14:25:03 UTC (rev 90670)
@@ -4,7 +4,7 @@
 
 pkgname=gnunet
 pkgver=0.9.5_a
-pkgrel=1
+pkgrel=2
 pkgdesc="A framework for secure peer-to-peer networking"
 arch=('i686' 'x86_64')
 url="http://gnunet.org"
@@ -16,14 +16,10 @@
 options=('!libtool' '!makeflags')
 install=gnunet.install
 source=(ftp://ftp.gnu.org/gnu/gnunet/gnunet-${pkgver/_/}.tar.gz
-	gnunet.rc
 	gnunet.service
-	gnunet.conf.d
 	defaults.conf)
 md5sums=('b0e204cf9711f9799baaeb477992e66a'
-         '5baf691913b007fb33e365239e3f7217'
          '54cce3d2415d95b2e5bd1bd88db3a0ea'
-         'f161b46915736e4017e77ad735521453'
          '0fe23b2ca5b3fc47a0b5645e04406da0')
 
 build() {
@@ -36,8 +32,6 @@
 package() {
   cd $srcdir/gnunet-${pkgver/_/}
   make DESTDIR=$pkgdir install
-  install -D -m0755 $srcdir/gnunet.rc $pkgdir/etc/rc.d/gnunetd
-  install -D -m0644 $srcdir/gnunet.conf.d $pkgdir/etc/conf.d/gnunetd
   install -D -m0644 $srcdir/defaults.conf $pkgdir/etc/gnunetd.conf
   rm -rf $pkgdir/usr/include/libltdl $pkgdir/usr/lib/libltdl.* $pkgdir/usr/include/ltdl.h
   install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service

Deleted: gnunet.conf.d
===================================================================
--- gnunet.conf.d	2013-05-13 14:24:56 UTC (rev 90669)
+++ gnunet.conf.d	2013-05-13 14:25:03 UTC (rev 90670)
@@ -1 +0,0 @@
-GNUNETD_USER=nobody

Deleted: gnunet.rc
===================================================================
--- gnunet.rc	2013-05-13 14:24:56 UTC (rev 90669)
+++ gnunet.rc	2013-05-13 14:25:03 UTC (rev 90670)
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-GNUNETD_USER=nobody
-
-. /etc/conf.d/gnunetd
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=$(pidof -o %PPID /usr/bin/gnunet-arm)
-case "$1" in
-    start)
-	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
-	    add_daemon gnunetd
-	    stat_done
-	fi
-	;;
-    stop)
-	stat_busy "Stopping gnunet services"
-	[ ! -z "$PID" ] && kill $PID &> /dev/null
-	if [ $? -gt 0 ]; then
-	    stat_fail
-	else
-	    rm_daemon gnunetd
-	    stat_done
-	fi
-	;;
-    restart)
-	$0 stop
-	sleep 1
-	$0 start
-	;;
-    *)
-	echo "usage: $0 {start|stop|restart}"
-	;;
-esac
-exit 0



More information about the arch-commits mailing list