[Frugalware-git] frugalware-current: knb-0.2.2-2-i686

Miklos Vajna vmiklos at frugalware.org
Sat Nov 24 18:56:25 CET 2007


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

commit c107634bc5df553de2febda556e684bad36ec508
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Sat Nov 24 18:56:06 2007 +0100

knb-0.2.2-2-i686
added patch to avoid unwanted duplicated bots

diff --git a/source/network-extra/knb/FrugalBuild b/source/network-extra/knb/FrugalBuild
index 9613d60..c6c6074 100644
--- a/source/network-extra/knb/FrugalBuild
+++ b/source/network-extra/knb/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=knb
pkgver=0.2.2
-pkgrel=1
+pkgrel=2
pkgdesc="An IRC bot to keep your nick on networks where there are no services."
url="http://www.beer.one.pl/~esio/c/"
depends=('glibc')
@@ -12,14 +12,18 @@ archs=('i686' 'x86_64')
up2date="lynx -dump $url |Flastarchive '-src.tar.gz\$'"
source=(http://www.beer.one.pl/~esio/c/knb-$pkgver-src.tar.gz \
http://www.beer.one.pl/~esio/c/HELP.txt \
-	README.Frugalware)
+	README.Frugalware \
+	knb-pidcheck.patch)
sha1sums=('3bba023275edbdb0e8056332d72fdd43de4b2b68' \
'8490ce44c17a9f45cc6efd050708020caa081b5a' \
-          '45bc711515881ca9405f298f66920af3f8d9ce94')
+          '45bc711515881ca9405f298f66920af3f8d9ce94' \
+          '2816355de9bd7f8d86e53e70bb00b9216973be94')

build()
{
-	Fcd $pkgname/src
+	Fcd knb
+	Fpatchall
+	cd src
if [ "$CARCH" == "x86_64" ]; then
Fsed amd64 x86_64 configure.sh
Fsed athlon-xp k8 configure.sh
diff --git a/source/network-extra/knb/knb-pidcheck.patch b/source/network-extra/knb/knb-pidcheck.patch
new file mode 100644
index 0000000..9c503a0
--- /dev/null
+++ b/source/network-extra/knb/knb-pidcheck.patch
@@ -0,0 +1,16 @@
+diff -Naur knb.orig/scripts/knbchk.sh knb/scripts/knbchk.sh
+--- knb.orig/scripts/knbchk.sh	2006-10-01 14:31:02.000000000 +0200
++++ knb/scripts/knbchk.sh	2007-11-24 18:51:37.000000000 +0100
+@@ -47,11 +47,8 @@
+     exit 0
+ fi
+
+-# searching for pid readed from pid file in process list
+-TMPPID=`ps ux -U $USER | grep $MYPID | head -n 1 | awk '{ print $2 }'`
+-
+ # is bot allready running?
+-if [ ! "$TMPPID" = "$MYPID" ]; then
++if [ ! -d "/proc/$MYPID" ]; then
+     # no, so we start it now (and removing pid file)
+     echo "-+- Starting Knb bot.."
+     rm -fr $PIDFILE


More information about the Frugalware-git mailing list