From 27181eae2580e0cb1aa09a20008c3c5783a8ec83 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Thu, 1 Oct 2009 12:49:48 +0200 Subject: [PATCH] Add Debian packaging to source --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 15 +++++++++++++ debian/copyright | 42 ++++++++++++++++++++++++++++++++++ debian/postinst | 47 ++++++++++++++++++++++++++++++++++++++ debian/postrm | 45 +++++++++++++++++++++++++++++++++++++ debian/rules | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 221 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/postinst create mode 100644 debian/postrm create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..adc3a76 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +feedhandler (2.0) unstable; urgency=low + + * Initial Release. + + -- Thomas Perl Thu, 01 Oct 2009 11:40:56 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..662e386 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: feedhandler +Section: user/network +Priority: extra +Maintainer: Thomas Perl +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 index 0000000..ffcdc5b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,42 @@ +This package was debianized by: + + Thomas Perl on Thu, 01 Oct 2009 11:40:56 +0200 + +It was downloaded from: + + http://feedhandler.garage.maemo.org/ + +Upstream Author(s): + + Thomas Perl + +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 . + +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 + +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 index 0000000..b881f23 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,47 @@ +#!/bin/sh +# postinst script for feedhandler +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# 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 index 0000000..064a399 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,45 @@ +#!/bin/sh +# postrm script for feedhandler +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# 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 index 0000000..451a932 --- /dev/null +++ b/debian/rules @@ -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 -- 1.7.9.5