summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-09-14 09:03:44 +0200
committertnut <thierryn1 at hispeed dot ch>2010-09-14 09:03:44 +0200
commit292d97e572e50de54226e262d1fda4e56b784626 (patch)
tree12c91b0d35e05ce6b8aa1bf513a212815855723b
parent7a5eb9e3e5f572fd328c71fef68055c20ddaaa87 (diff)
downloadnutyx-extra-292d97e572e50de54226e262d1fda4e56b784626.tar.gz
nutyx-extra-292d97e572e50de54226e262d1fda4e56b784626.tar.bz2
nutyx-extra-292d97e572e50de54226e262d1fda4e56b784626.tar.xz
nutyx-extra-292d97e572e50de54226e262d1fda4e56b784626.zip
maj gestpkg#1.1-2, gestpkg.log dans /var/log/
-rw-r--r--extra/gestpkg/.md5sum1
-rw-r--r--extra/gestpkg/Pkgfile11
-rw-r--r--extra/gestpkg/gestpkg-logfile-01.patch41
3 files changed, 48 insertions, 5 deletions
diff --git a/extra/gestpkg/.md5sum b/extra/gestpkg/.md5sum
index 74084f85a..795913ac8 100644
--- a/extra/gestpkg/.md5sum
+++ b/extra/gestpkg/.md5sum
@@ -1 +1,2 @@
3179e41e300e59b43651d3113c703307 gestpkg-1.1-src.tar.gz
+7cd1de5a8f6f81f3c85130d195600f4c gestpkg-logfile-01.patch
diff --git a/extra/gestpkg/Pkgfile b/extra/gestpkg/Pkgfile
index 5fd381c02..a9c63d445 100644
--- a/extra/gestpkg/Pkgfile
+++ b/extra/gestpkg/Pkgfile
@@ -6,12 +6,14 @@
name=gestpkg
version=1.1
-release=1
-source=(http://kiao.no-ip.info/NuTyX/files/$name-$version-src.tar.gz)
+release=2
+source=(http://kiao.no-ip.info/NuTyX/files/$name-$version-src.tar.gz\
+ gestpkg-logfile-01.patch)
build() {
cd $name-$version-src
+ rm -r GestPkgGUI/log
python setup.py install --root=$PKG
mkdir -p $PKG/usr/share/applications
@@ -25,9 +27,8 @@ cd $name-$version-src
mkdir -p $PKG/usr/share/icons/hicolor/16x16/apps/
install -m 644 ./icons/16x16/${name}.png $PKG/usr/share/icons/hicolor/16x16/apps/
-
-# mkdir -p $PKG//usr/lib/python2.6/site-packages/GestPkgGUI/log/
-# touch $PKG/usr/lib/python2.6/site-packages/GestPkgGUI/log/gestpkg.log
+ mkdir -p $PKG/var/log/
+ touch $PKG/var/log/gestpkg.log
}
diff --git a/extra/gestpkg/gestpkg-logfile-01.patch b/extra/gestpkg/gestpkg-logfile-01.patch
new file mode 100644
index 000000000..bb63e8e5a
--- /dev/null
+++ b/extra/gestpkg/gestpkg-logfile-01.patch
@@ -0,0 +1,41 @@
+diff -Naur gestpkg-1.1-src.original/GestPkgGUI/GestPkgGUI.py gestpkg-1.1-src/GestPkgGUI/GestPkgGUI.py
+--- gestpkg-1.1-src.original/GestPkgGUI/GestPkgGUI.py 2009-10-12 12:33:35.000000000 +0000
++++ gestpkg-1.1-src/GestPkgGUI/GestPkgGUI.py 2010-09-14 06:43:20.000000000 +0000
+@@ -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
+
+diff -Naur gestpkg-1.1-src.original/GestPkgGUI/log/gestpkg.log gestpkg-1.1-src/GestPkgGUI/log/gestpkg.log
+--- gestpkg-1.1-src.original/GestPkgGUI/log/gestpkg.log 2009-10-17 14:55:11.000000000 +0000
++++ gestpkg-1.1-src/GestPkgGUI/log/gestpkg.log 1970-01-01 00:00:00.000000000 +0000
+@@ -1 +0,0 @@
+-
+diff -Naur gestpkg-1.1-src.original/build/lib/GestPkgGUI/GestPkgGUI.py gestpkg-1.1-src/build/lib/GestPkgGUI/GestPkgGUI.py
+--- gestpkg-1.1-src.original/build/lib/GestPkgGUI/GestPkgGUI.py 2009-10-12 12:33:35.000000000 +0000
++++ gestpkg-1.1-src/build/lib/GestPkgGUI/GestPkgGUI.py 2010-09-14 06:49:33.000000000 +0000
+@@ -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
+
+diff -Naur gestpkg-1.1-src.original/setup.py gestpkg-1.1-src/setup.py
+--- gestpkg-1.1-src.original/setup.py 2009-10-17 15:02:23.000000000 +0000
++++ gestpkg-1.1-src/setup.py 2010-09-14 06:53:50.000000000 +0000
+@@ -7,7 +7,7 @@
+
+ PACKAGE = "GestPkgGUI"
+ VERSION = "1.1"
+-DATA = ['*.py','ico/*','img/*', 'log/*']
++DATA = ['*.py','ico/*','img/*']
+
+ def main():
+ setup(name=PACKAGE,