Skip to content

Commit

Permalink
updates to packaging system
Browse files Browse the repository at this point in the history
  • Loading branch information
aebrahim committed Feb 7, 2015
1 parent 4db66b5 commit a0f7323
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 36 deletions.
4 changes: 2 additions & 2 deletions deb_control
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Vcs-Browser: https://github.com/aebrahim/pidgin-gnome-keyring/
Package: pidgin-gnome-keyring Package: pidgin-gnome-keyring
Architecture: any Architecture: any
Depends: ${misc:Depends}, libsecret-1-0, libpurple0 Depends: ${misc:Depends}, libsecret-1-0, libpurple0
Description: integrates pidgin (and libpurple) with the GNOME keyring Description: integrates pidgin (and libpurple) with the system keyring
Pidgin usually stores passwords as plaintext with the "save password" function. This plugin instead saves all passwords to the gnome keyring, which some would argue is a more secure form of password storage. Pidgin usually stores passwords as plaintext with the "save password" function. This plugin instead saves all passwords to the system keyring, which some would argue is a more secure form of password storage.
3 changes: 2 additions & 1 deletion deb_copyright
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,6 @@
Format: http://dep.debian.net/deps/dep5 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: pidgin-gnome-keyring Upstream-Name: pidgin-gnome-keyring
Upstream-Contact: Ali Ebrahim <ali.ebrahim314@gmail.com>
Source: https://github.com/aebrahim/pidgin-gnome-keyring Source: https://github.com/aebrahim/pidgin-gnome-keyring


Files: * Files: *
Expand Down
15 changes: 0 additions & 15 deletions deb_rules

This file was deleted.

39 changes: 21 additions & 18 deletions make_package.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import time import time


# declare strings up here # declare strings up here
ubuntunames = ["precise", "quantal", "trusty", "utopic"] ubuntunames = ["trusty", "utopic", "vivid"]
author_name = "Ali Ebrahim" author_name = "Ali Ebrahim"
email = "ali.ebrahim314@gmail.com" email = "ali.ebrahim314@gmail.com"
basename = "pidgin-gnome-keyring" basename = "pidgin-gnome-keyring"
Expand All @@ -28,39 +28,42 @@
print debname print debname


if os.path.isdir(dirname): if os.path.isdir(dirname):
os.system("rm -rf " + dirname) os.system("rm -rf " + dirname)
os.mkdir(dirname) os.mkdir(dirname)
os.mkdir(debname) os.mkdir(debname)
shutil.copy2("gnome-keyring.c", dirname) shutil.copy2("gnome-keyring.c", dirname)
# copy everything in Makefile except for the install part at the end # copy everything in Makefile except for the install part at the end
shutil.copy2("Makefile", dirname + "/Makefile") shutil.copy2("Makefile", dirname + "/Makefile")
with open(dirname + "/VERSION", "w") as outfile: with open(dirname + "/VERSION", "w") as outfile:
outfile.write(version) outfile.write(version)


#shutil.make_archive(tarname, "gztar", root_dir=dirname) shutil.make_archive(tarname, "gztar", root_dir=dirname)
# run dh_make # run dh_make
os.system("cd %s; dh_make -s -c gpl2 --createorig -y -a -e %s" % (dirname, email)) os.system("cd %s; dh_make -s -c gpl2 --createorig -y -a -e %s" %
(dirname, email))
# remove extra files and copy source files # remove extra files and copy source files
os.system("cd %s; rm -rf *.ex *.EX README*" %debname) os.system("cd %s; rm -rf *.ex *.EX README*" % debname)
shutil.copy2("deb_control", debname+"control") shutil.copy2("deb_control", debname+"control")
shutil.copy2("deb_copyright", debname+"copyright") shutil.copy2("deb_copyright", debname+"copyright")
shutil.copy2("deb_rules", debname+"rules")
# make the dirs and install files # make the dirs and install files
os.system("echo '%s' > %sdirs" %(installdir, debname)) os.system("echo '%s' > %sdirs" % (installdir, debname))
os.system("echo 'gnome-keyring.so %s' > %sinstall" \ os.system("echo 'gnome-keyring.so %s' > %sinstall"
%(installdir, debname)) % (installdir, debname))
# write the changelog # write the changelog
changelog = open(debname + "changelog", "w") changelog = open(debname + "changelog", "w")
repo = Repository(".") repo = Repository(".")
for commit in repo.walk(repo.head.target, GIT_SORT_TIME): for commit in repo.walk(repo.head.target, GIT_SORT_TIME):
changelog.write("%s (%s) %s; urgency=low\n\n" % (basename, package_version_str, ubuntuname)) changelog.write("%s (%s) %s; urgency=low\n\n" %
for commit_line in commit.message.split("\n"): (basename, package_version_str, ubuntuname))
if len(commit_line) > 0: for commit_line in commit.message.split("\n"):
changelog.write(" " + commit_line + "\n") if len(commit_line) > 0:
changelog.write("\n") changelog.write(" " + commit_line + "\n")
date = time.strftime("%a, %d %b %Y %X", time.gmtime(commit.commit_time)) changelog.write("\n")
offset = "%+0.04d" % (commit.commit_time_offset / 60 * 1000) date = time.strftime("%a, %d %b %Y %X",
changelog.write(" -- %s <%s> %s %s\n" % (author_name, email, date, offset)) time.gmtime(commit.commit_time))
offset = "%+0.04d" % (commit.commit_time_offset / 60 * 1000)
changelog.write(" -- %s <%s> %s %s\n" %
(author_name, email, date, offset))
changelog.close() changelog.close()
# call debuild # call debuild
os.system("cd %s; debuild -S -sa" % dirname) os.system("cd %s; debuild -S -sa" % dirname)
Expand Down

0 comments on commit a0f7323

Please sign in to comment.