From 0dfa02d9e5e13f3c0314935a014bddde888e0f23 Mon Sep 17 00:00:00 2001
From: tnut <thierryn1 at hispeed dot ch>
Date: Thu, 16 Sep 2010 23:30:26 +0200
Subject: maj gestpkg#1.1-3, avec le patch c'est mieux

---
 extra/gestpkg/.footprint               |  5 +++--
 extra/gestpkg/.md5sum                  |  2 +-
 extra/gestpkg/Pkgfile                  |  7 ++++---
 extra/gestpkg/gestpkg-logfile-02.patch | 11 +++++++++++
 4 files changed, 19 insertions(+), 6 deletions(-)
 create mode 100644 extra/gestpkg/gestpkg-logfile-02.patch

diff --git a/extra/gestpkg/.footprint b/extra/gestpkg/.footprint
index 4222c5843..113f8facd 100644
--- a/extra/gestpkg/.footprint
+++ b/extra/gestpkg/.footprint
@@ -17,8 +17,6 @@ drwxr-xr-x	root/root	usr/lib/python2.6/site-packages/GestPkgGUI/img/
 -rw-r--r--	root/root	usr/lib/python2.6/site-packages/GestPkgGUI/img/NuTyX_logo.png
 -rw-r--r--	root/root	usr/lib/python2.6/site-packages/GestPkgGUI/info.py
 -rw-r--r--	root/root	usr/lib/python2.6/site-packages/GestPkgGUI/info.pyc
-drwxr-xr-x	root/root	usr/lib/python2.6/site-packages/GestPkgGUI/log/
--rw-r--r--	root/root	usr/lib/python2.6/site-packages/GestPkgGUI/log/gestpkg.log
 drwxr-xr-x	root/root	usr/share/
 drwxr-xr-x	root/root	usr/share/applications/
 -rw-r--r--	root/root	usr/share/applications/gestpkg.desktop
@@ -33,3 +31,6 @@ drwxr-xr-x	root/root	usr/share/icons/hicolor/32x32/apps/
 drwxr-xr-x	root/root	usr/share/icons/hicolor/48x48/
 drwxr-xr-x	root/root	usr/share/icons/hicolor/48x48/apps/
 -rw-r--r--	root/root	usr/share/icons/hicolor/48x48/apps/gestpkg.png
+drwxr-xr-x	root/root	var/
+drwxr-xr-x	root/root	var/log/
+-rw-r--r--	root/root	var/log/gestpkg.log (EMPTY)
diff --git a/extra/gestpkg/.md5sum b/extra/gestpkg/.md5sum
index 795913ac8..6bd66c677 100644
--- a/extra/gestpkg/.md5sum
+++ b/extra/gestpkg/.md5sum
@@ -1,2 +1,2 @@
 3179e41e300e59b43651d3113c703307  gestpkg-1.1-src.tar.gz
-7cd1de5a8f6f81f3c85130d195600f4c  gestpkg-logfile-01.patch
+adeb6c40bbc285cac196d40831f580db  gestpkg-logfile-02.patch
diff --git a/extra/gestpkg/Pkgfile b/extra/gestpkg/Pkgfile
index a9c63d445..49cd66b54 100644
--- a/extra/gestpkg/Pkgfile
+++ b/extra/gestpkg/Pkgfile
@@ -6,13 +6,14 @@
 
 name=gestpkg
 version=1.1
-release=2
+release=3
 source=(http://kiao.no-ip.info/NuTyX/files/$name-$version-src.tar.gz\
-	gestpkg-logfile-01.patch)
+	gestpkg-logfile-02.patch)
 
 
 build() {
-cd $name-$version-src
+	cd $name-$version-src
+	patch -Np1 -i ../gestpkg-logfile-02.patch
 	rm -r GestPkgGUI/log
         python setup.py install --root=$PKG
 
diff --git a/extra/gestpkg/gestpkg-logfile-02.patch b/extra/gestpkg/gestpkg-logfile-02.patch
new file mode 100644
index 000000000..f4935ea5e
--- /dev/null
+++ b/extra/gestpkg/gestpkg-logfile-02.patch
@@ -0,0 +1,11 @@
+--- gestpkg-1.1-src.original/GestPkgGUI/GestPkgGUI.py	2009-10-12 14:33:35.000000000 +0200
++++ gestpkg-1.1-src/GestPkgGUI/GestPkgGUI.py	2010-09-14 08:43:20.000000000 +0200
+@@ -126,7 +126,7 @@
+ #------------------------------ LOG ------------------------------------
+ 
+ saveout = sys.stdout
+-f = open(REP_DATA + "/log/gestpkg.log", "w")
++f = open("/var/log/gestpkg.log", "w")
+ sys.stdout = f
+ sys.stderr = f
+ 
-- 
cgit v1.2.3-70-g09d2