2 # -*- coding: utf-8 -*-
3 ## This program is free software; you can redistribute it and/or modify
4 ## it under the terms of the GNU General Public License as published
5 ## by the Free Software Foundation; version 2 only.
7 ## This program is distributed in the hope that it will be useful,
8 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
9 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 ## GNU General Public License for more details.
15 if __name__ == "__main__":
17 os.chdir(os.path.dirname(sys.argv[0]))
22 p=py2deb.Py2deb("ussd-common")
23 p.description="Command line utility for makein USSD queries"
24 p.author="Alexey Guseynov"
25 p.mail="kibergus@gmail.com"
26 p.depends = "python2.5, pexpect"
28 p.icon = "./ussd-widget.png"
29 p.arch="all" #should be all for python, any for all arch
30 p.urgency="low" #not used in maemo onl for deb os
31 p.distribution="fremantle"
32 p.repository="extras-devel"
33 p.xsbc_bugtracker="https://garage.maemo.org/tracker/?group_id=1219"
34 p.postinstall="""#!/bin/sh
35 # we need to make pnatd setuid root
36 # if you feel that this is a security hole, you may come up with a
38 chmod +s /usr/bin/pnatd
39 """ #Set here your post install script
43 changeloginformation = "Language selection support, line break in reply bug fixed."
47 #Thanks to DareTheHair from talk.maemo.org for this snippet that recursively builds the file list
48 for root, dirs, files in os.walk(dir_name):
49 real_dir = root[len(dir_name):]
52 fake_file.append(root + os.sep + f + "|" + f);
53 if len(fake_file) > 0:
54 p[real_dir] = fake_file
57 r = p.generate(version,build,changelog=changeloginformation,tar=True,dsc=True,changes=True,build=False,src=True)
58 fake_file.append(root + os.sep + f + "|" + f)
59 if len(fake_file) > 0:
60 p[real_dir] = fake_file