Renamed master netstory-0.1.2
authorJere Malinen <jeremmalinen@gmail.com>
Fri, 18 Jun 2010 19:26:43 +0000 (22:26 +0300)
committerJere Malinen <jeremmalinen@gmail.com>
Fri, 18 Jun 2010 19:26:43 +0000 (22:26 +0300)
buid_netstory.py [deleted file]
build_netstory.py [new file with mode: 0644]

diff --git a/buid_netstory.py b/buid_netstory.py
deleted file mode 100644 (file)
index 060e7c8..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/usr/bin/python2.5\r
-# -*- coding: utf-8 -*-\r
-## This program is free software; you can redistribute it and/or modify\r
-## it under the terms of the GNU General Public License as published\r
-## by the Free Software Foundation; version 2 only.\r
-##\r
-## This program is distributed in the hope that it will be useful,\r
-## but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-## GNU General Public License for more details.\r
-##\r
-import py2deb\r
-import os\r
-if __name__ == "__main__":\r
-    try:\r
-        os.chdir(os.path.dirname(sys.argv[0]))\r
-    except:\r
-        pass\r
-    print\r
-    p=py2deb.Py2deb("netstory")   #This is the package name and MUST be in lowercase! (using e.g. "mClock" fails miserably...)\r
-    p.description="Record and view your home network data counter periodically.\n"\\r
-                  "This utility consists of two parts:\n"\\r
-                  "a daemon that records network data counters in background and\n"\\r
-                  "an GUI application to view hourly, daily, weekly and monthly net traffics."\r
-    p.author="Jere Malinen"\r
-    p.mail="jeremmalinen@gmail.com"\r
-    p.depends = "python2.5, python2.5-qt4-core, python2.5-qt4-gui"\r
-\r
-    p.section="user/network"\r
-\r
-    p.icon = "/home/user/MyDocs/py2deb/netstory/src/usr/share/icons/hicolor/48x48/hildon/netstory.png"\r
-    p.arch="all"             #should be all for python, any for all arch\r
-    p.urgency="low"           #not used in maemo onl for deb os\r
-    p.distribution="fremantle"\r
-    p.repository="extras-devel"\r
-    p.xsbc_bugtracker="https://garage.maemo.org/tracker/?atid=5917&group_id=1670&func=browse"\r
-    p.postinstall="""#!/bin/sh\r
-        chmod +x /opt/netstory/netstory.py /opt/netstory/netstoryd.py  || echo "Warning: chmod failed. The package might not work properly"\r
-        start netstoryd || echo "Warning: Starting the netstory daemon failed. The package might not work properly."\r
-        """ #Set here your post install script\r
-    #  p.postremove="""#!/bin/sh\r
-    #  chmod +x /usr/bin/mclock.py""" #Set here your post remove script\r
-    #  p.preinstall="""#!/bin/sh\r
-    #  chmod +x /usr/bin/mclock.py""" #Set here your pre install script\r
-    p.preremove="""#!/bin/sh\r
-        stop netstoryd || echo "Warning: Stopping the netstoryd daemon failed."\r
-        rm -f /opt/netstory/*.pyc /opt/netstory/*.pyo\r
-        """ #Set here your pre remove script\r
-    version = "0.1.2"         #Version of your software, e.g. "1.2.0" or "0.8.2"\r
-    build = "1"              #Build number, e.g. "1" for the first build of this version of your software. Increment for later re-builds of the same version of your software.\r
-                           #Text with changelog information to be displayed in the package "Details" tab of the Maemo Application Manager\r
-    changeloginformation = 'Adjusted width of the columns.'\r
-    dir_name = "src"          #Name of the subfolder containing your package source files (e.g. usr\share\icons\hicolor\scalable\myappicon.svg, usr\lib\myapp\somelib.py). We suggest to leave it named src in all projects and will refer to that in the wiki article on maemo.org\r
-    #Thanks to DareTheHair from talk.maemo.org for this snippet that recursively builds the file list \r
-    for root, dirs, files in os.walk(dir_name):\r
-        real_dir = root[len(dir_name):]\r
-        fake_file = []\r
-        for f in files:\r
-           fake_file.append(root + os.sep + f + "|" + f)\r
-        if len(fake_file) > 0:\r
-           p[real_dir] = fake_file\r
-    print p\r
-    r = p.generate(version,build,changelog=changeloginformation,tar=True,dsc=True,changes=True,build=False,src=True)
\ No newline at end of file
diff --git a/build_netstory.py b/build_netstory.py
new file mode 100644 (file)
index 0000000..060e7c8
--- /dev/null
@@ -0,0 +1,63 @@
+#!/usr/bin/python2.5\r
+# -*- coding: utf-8 -*-\r
+## This program is free software; you can redistribute it and/or modify\r
+## it under the terms of the GNU General Public License as published\r
+## by the Free Software Foundation; version 2 only.\r
+##\r
+## This program is distributed in the hope that it will be useful,\r
+## but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+## GNU General Public License for more details.\r
+##\r
+import py2deb\r
+import os\r
+if __name__ == "__main__":\r
+    try:\r
+        os.chdir(os.path.dirname(sys.argv[0]))\r
+    except:\r
+        pass\r
+    print\r
+    p=py2deb.Py2deb("netstory")   #This is the package name and MUST be in lowercase! (using e.g. "mClock" fails miserably...)\r
+    p.description="Record and view your home network data counter periodically.\n"\\r
+                  "This utility consists of two parts:\n"\\r
+                  "a daemon that records network data counters in background and\n"\\r
+                  "an GUI application to view hourly, daily, weekly and monthly net traffics."\r
+    p.author="Jere Malinen"\r
+    p.mail="jeremmalinen@gmail.com"\r
+    p.depends = "python2.5, python2.5-qt4-core, python2.5-qt4-gui"\r
+\r
+    p.section="user/network"\r
+\r
+    p.icon = "/home/user/MyDocs/py2deb/netstory/src/usr/share/icons/hicolor/48x48/hildon/netstory.png"\r
+    p.arch="all"             #should be all for python, any for all arch\r
+    p.urgency="low"           #not used in maemo onl for deb os\r
+    p.distribution="fremantle"\r
+    p.repository="extras-devel"\r
+    p.xsbc_bugtracker="https://garage.maemo.org/tracker/?atid=5917&group_id=1670&func=browse"\r
+    p.postinstall="""#!/bin/sh\r
+        chmod +x /opt/netstory/netstory.py /opt/netstory/netstoryd.py  || echo "Warning: chmod failed. The package might not work properly"\r
+        start netstoryd || echo "Warning: Starting the netstory daemon failed. The package might not work properly."\r
+        """ #Set here your post install script\r
+    #  p.postremove="""#!/bin/sh\r
+    #  chmod +x /usr/bin/mclock.py""" #Set here your post remove script\r
+    #  p.preinstall="""#!/bin/sh\r
+    #  chmod +x /usr/bin/mclock.py""" #Set here your pre install script\r
+    p.preremove="""#!/bin/sh\r
+        stop netstoryd || echo "Warning: Stopping the netstoryd daemon failed."\r
+        rm -f /opt/netstory/*.pyc /opt/netstory/*.pyo\r
+        """ #Set here your pre remove script\r
+    version = "0.1.2"         #Version of your software, e.g. "1.2.0" or "0.8.2"\r
+    build = "1"              #Build number, e.g. "1" for the first build of this version of your software. Increment for later re-builds of the same version of your software.\r
+                           #Text with changelog information to be displayed in the package "Details" tab of the Maemo Application Manager\r
+    changeloginformation = 'Adjusted width of the columns.'\r
+    dir_name = "src"          #Name of the subfolder containing your package source files (e.g. usr\share\icons\hicolor\scalable\myappicon.svg, usr\lib\myapp\somelib.py). We suggest to leave it named src in all projects and will refer to that in the wiki article on maemo.org\r
+    #Thanks to DareTheHair from talk.maemo.org for this snippet that recursively builds the file list \r
+    for root, dirs, files in os.walk(dir_name):\r
+        real_dir = root[len(dir_name):]\r
+        fake_file = []\r
+        for f in files:\r
+           fake_file.append(root + os.sep + f + "|" + f)\r
+        if len(fake_file) > 0:\r
+           p[real_dir] = fake_file\r
+    print p\r
+    r = p.generate(version,build,changelog=changeloginformation,tar=True,dsc=True,changes=True,build=False,src=True)
\ No newline at end of file