Add Debian packaging to source
authorThomas Perl <thp@thpinfo.com>
Thu, 1 Oct 2009 10:49:48 +0000 (12:49 +0200)
committerThomas Perl <thp@thpinfo.com>
Thu, 1 Oct 2009 10:49:48 +0000 (12:49 +0200)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/postinst [new file with mode: 0644]
debian/postrm [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..adc3a76
--- /dev/null
@@ -0,0 +1,5 @@
+feedhandler (2.0) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Thomas Perl <thp@thpinfo.com>  Thu, 01 Oct 2009 11:40:56 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..662e386
--- /dev/null
@@ -0,0 +1,15 @@
+Source: feedhandler
+Section: user/network
+Priority: extra
+Maintainer: Thomas Perl <thp@thpinfo.com>
+Build-Depends: debhelper, vala, libdbus-glib-1-dev, libgtk2.0-dev
+Standards-Version: 3.8.1
+Homepage: http://feedhandler.garage.maemo.org/
+
+Package: feedhandler
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Feed Handler for the Maemo Browser
+ This package provides a generic feed handler for the web browser.
+ Users can choose the application with which to open a given RSS
+ feed when the web browser requests a feed to be added.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..ffcdc5b
--- /dev/null
@@ -0,0 +1,42 @@
+This package was debianized by:
+
+    Thomas Perl <thp@thpinfo.com> on Thu, 01 Oct 2009 11:40:56 +0200
+
+It was downloaded from:
+
+    http://feedhandler.garage.maemo.org/
+
+Upstream Author(s):
+
+    Thomas Perl <thp@thpinfo.com>
+
+Copyright:
+
+    Copyright (C) 2009 Thomas Perl
+
+License:
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+On Debian systems, the complete text of the GNU General
+Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
+
+The Debian packaging is:
+
+    Copyright (C) 2009 Thomas Perl <thp@thpinfo.com>
+
+and is licensed under the GPL version 3, see above.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..b881f23
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/sh
+# postinst script for feedhandler
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+if [ -f /usr/share/applications/defaults.list ]; then
+    sed -i -e 's/application\/news_reader=.*$/application\/news_reader=hildon-zzz-feedhandler\.desktop/' /usr/share/applications/defaults.list
+fi
+
+if [ -x /usr/bin/update-desktop-database ]; then
+    update-desktop-database /usr/share/applications
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..064a399
--- /dev/null
@@ -0,0 +1,45 @@
+#!/bin/sh
+# postrm script for feedhandler
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+if [ -f /usr/share/applications/defaults.list ]; then
+    sed -i -e 's/application\/news_reader=.*$/application\/news_reader=hildon-osso_rss_feed_reader\.desktop/' /usr/share/applications/defaults.list
+fi
+
+if [ -x /usr/bin/update-desktop-database ]; then
+    update-desktop-database /usr/share/applications
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..451a932
--- /dev/null
@@ -0,0 +1,66 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp  
+       dh_testdir
+       $(MAKE)
+       touch $@
+
+clean: 
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+       $(MAKE) clean
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_installdirs
+       $(MAKE) DESTDIR=$(CURDIR)/debian/feedhandler install
+
+
+# Build architecture-independent files here.
+binary-indep: install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs 
+       dh_installdocs
+       dh_installexamples
+       dh_installman
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure