Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=9288aee082da68ec69398b5b516ac23ed40b083b

commit 9288aee082da68ec69398b5b516ac23ed40b083b
Author: Devil505 <devil505li...@gmail.com>
Date:   Tue May 26 18:12:52 2009 +0200

gnunet-0.8.0c-1-i686
* new package
* closing request #3663
* thanks bouleetbil for your help

diff --git a/source/network-extra/gnunet/FrugalBuild 
b/source/network-extra/gnunet/FrugalBuild
new file mode 100644
index 0000000..0f6e320
--- /dev/null
+++ b/source/network-extra/gnunet/FrugalBuild
@@ -0,0 +1,37 @@
+# Compiling Time: 0.80 SBU
+# Maintainer: Devil505 <devil505li...@gmail.com>
+
+pkgname=gnunet
+pkgver=0.8.0c
+pkgrel=1
+pkgdesc="A framework for secure peer-to-peer networking"
+url="http://gnunet.org";
+depends=('libextractor' 'bzip2' 'libgcrypt' 'guile' 'sqlite3' 'curl' 
'libglade' 'libxfixes')
+makedepends=('gettext' 'pkgconfig')
+groups=('network-extra')
+archs=('i686' 'x86_64')
+_F_rcd_name="$pkgname"
+backup=(etc/gnunet.conf)
+_F_archive_name="GNUnet"
+up2date="Flasttar $url/download.php3"
+source=($url/download/$_F_archive_name-$pkgver.tar.bz2 \
+       rc.gnunet \
+       gnunet.sysconfig)
+sha1sums=('71e832ce5cd54df4b899f9417e20ef018b004be4' \
+          'e9d56ea5282d26cee9b6de7a11e2c4669fd9055a' \
+          '18bb609bb4803dfbd38bd55ee7db096470b30b2f')
+
+build() {
+       Fcd $_F_archive_name-$pkgver
+       Fconf --without-mysql
+       Fmake
+       Fmakeinstall
+       Frm usr/include/libltdl
+       Frm usr/lib/libltdl.*
+       Frm usr/include/ltdl.h
+       Fmkdir /etc/sysconfig
+       Ffile gnunet.sysconfig /etc/sysconfig/gnunet
+       Frcd2 gnunet
+}
+
+# optimization OK
diff --git a/source/network-extra/gnunet/gnunet.sysconfig 
b/source/network-extra/gnunet/gnunet.sysconfig
new file mode 100644
index 0000000..f10a322
--- /dev/null
+++ b/source/network-extra/gnunet/gnunet.sysconfig
@@ -0,0 +1 @@
+GNUNETD_USER=nobody
diff --git a/source/network-extra/gnunet/rc.gnunet 
b/source/network-extra/gnunet/rc.gnunet
new file mode 100644
index 0000000..2c894fb
--- /dev/null
+++ b/source/network-extra/gnunet/rc.gnunet
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+# (c) 2009 bouleetbil <bouleet...@frogdev.info>
+# rc.gnunet for FrugalWare
+# distributed under GPL License
+
+# chkconfig: 2345 99 02
+# description: secure peer-to-peer networking.
+
+source /lib/initscripts/functions
+TEXTDOMAIN=gnunet
+TEXTDOMAINDIR=/lib/initscripts/messages
+daemon="gnunet"
+
+actions=(restart start status stop)
+
+pid="pidof /usr/bin/gnunetd 2> /dev/null"
+
+[ -e /etc/sysconfig/gnunet ] && . /etc/sysconfig/gnunet
+
+
+
+rc_start()
+{
+       start_msg
+       if [ -z "$(eval $pid)" ]; then
+               mkdir -p /var/lib/gnunet
+               chown ${GNUNETD_USER}:${GNUNETD_USER} /var/lib/gnunet
+               /usr/bin/gnunetd  -- -u ${GNUNETD_USER} -c 
/etc/sysconfig/gnunet 2>/dev/null 1>/dev/null
+               ok $?
+       else
+               ok 999
+       fi
+}
+
+rc_stop()
+{
+       stop_msg
+       if [ ! -z "$(eval $pid)" ] ;then
+               kill $(eval $pid) 2>/dev/null 1>/dev/null
+               ok $?
+       else
+               ok 999
+       fi
+}
+
+rc_exec $1
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to