summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-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,