Proper postinst and postrm
[ussd-widget] / ussd-widget / build_ussd-widget.py
index 5e88637..35b47bd 100644 (file)
@@ -23,20 +23,24 @@ if __name__ == "__main__":
     p.description="Widget, that executes USSD query and displays response text\nThe main purpose is viewing your balance. In Russia all operators provide balace information via USSD queries and most part of contracts are prepaid. Ability to see your balance on desktop can be useful in such case.\nAnyway, you can configure widget to any other USSD query."
     p.author="Alexey Guseynov"
     p.mail="kibergus@gmail.com"
-    p.depends = "python2.5, ussd-common (>=0.0.6), python-hildondesktop (>=0.1.0-1maemo2), hildon-desktop-python-loader (>=0.1.0-1maemo2), python-gtk2, python-gobject, python-hildon, python-cairo"
+    p.depends = "python2.5, ussd4all (>=0.0.0), python-hildondesktop (>=0.1.0-1maemo2), hildon-desktop-python-loader (>=0.1.0-1maemo2), python-gtk2, python-gobject, python-hildon, python-cairo, python-dbus"
     p.section="user/desktop"
     p.icon = "./ussd-widget.png"
     p.arch="all"                #should be all for python, any for all arch
     p.urgency="low"             #not used in maemo onl for deb os
     p.distribution="fremantle"
     p.repository="extras-devel"
-    p.xsbc_bugtracker="http://bugs.maemo.org"
-#    p.postinstall="""#!/bin/sh
-#""" #Set here your post install script
-
-    version = "0.1.2"
+    p.xsbc_bugtracker="https://garage.maemo.org/tracker/?group_id=1219"
+    p.postinstall="""#!/bin/sh
+touch /var/log/ussd-widget.log
+chmod 666 /var/log/ussd-widget.log
+"""
+    p.postrm="""#!/bin/sh
+rm /var/log/ussd-widget.log
+"""
+    version = "0.1.13"
     build = "0" 
-    changeloginformation = "Additional paramaters can be passed to ussdquery.py." 
+    changeloginformation = "Writable log. Create log file on installation." 
    
     dir_name = "src"   
 
@@ -45,12 +49,13 @@ if __name__ == "__main__":
         real_dir = root[len(dir_name):]
         fake_file = []
         for f in files:
-            fake_file.append(root + os.sep + f + "|" + f);
+            if f.find(".svn") < 0 and root.find(".svn") < 0:
+                fake_file.append(root + os.sep + f + "|" + f);
         if len(fake_file) > 0:
             p[real_dir] = fake_file
 
     print p
     r = p.generate(version,build,changelog=changeloginformation,tar=True,dsc=True,changes=True,build=False,src=True)
     fake_file.append(root + os.sep + f + "|" + f)
-    if len(fake_file) > 0:
-        p[real_dir] = fake_file
+#    if len(fake_file) > 0:
+#        p[real_dir] = fake_file