From c35351510ccd0e99ac6cc8a0bb9384d24acc5571 Mon Sep 17 00:00:00 2001 From: thlo Date: Fri, 25 Apr 2014 16:57:31 +0200 Subject: Debianize Plugin. --- debian/changelog | 7 ++++--- debian/compat | 1 + debian/control | 14 ++++++++++++++ debian/copyright | 32 ++++++++++++++++++++++++++++++++ debian/docs | 1 + debian/install | 3 +++ debian/postinst | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ debian/postrm | 43 +++++++++++++++++++++++++++++++++++++++++++ debian/rules | 27 +++++++++++++++++++++++++++ debian/source/format | 1 + 10 files changed, 177 insertions(+), 3 deletions(-) create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/install create mode 100644 debian/postinst create mode 100644 debian/postrm create mode 100755 debian/rules create mode 100644 debian/source/format (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 6a8f677..3c32f23 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ -PACKAGE (VERSION) UNRELEASED; urgency=medium +vdr-plugin-smarttvweb (0.9.9-1) unstable; urgency=low - * Initial release. (Closes: #XXXXXX) + * Initial Debianize configuration + * Install configuration files - -- thlo Sat, 15 Jun 2013 15:44:43 +0200 + -- T. Lohmar Wed, 23 Apr 2014 10:03:18 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..044d75a --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: vdr-plugin-smarttvweb +Section: video +Priority: extra +Maintainer: T. Lohmar +Build-Depends: debhelper (>= 8.0.0), pkg-config +Standards-Version: 3.9.2 +Homepage: http://projects.vdr-developer.org/projects/plg-smarttvweb +#Vcs-Git: git://git.debian.org/collab-maint/vdr-plugin-smarttvweb.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/vdr-plugin-smarttvweb.git;a=summary + +Package: vdr-plugin-smarttvweb +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: VDR on SmartTV diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8f3f57f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,32 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: vdr-plugin-smarttvweb +Source: + +Files: * +Copyright: 2011-2014 T. Lohmar + +License: GPL-2.0+ + +Files: debian/* +Copyright: 2014 T. Lohmar +License: GPL-2.0+ + +License: GPL-2.0+ + This package 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 2 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 2 can be found in "/usr/share/common-licenses/GPL-2". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..71dfd5b --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.txt diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..413efdb --- /dev/null +++ b/debian/install @@ -0,0 +1,3 @@ +smarttvweb.conf var/lib/vdr/plugins/smarttvweb +widget.conf var/lib/vdr/plugins/smarttvweb +web/* var/lib/vdr/plugins/smarttvweb/web diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..7ed6d39 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,51 @@ +#!/bin/sh +# postinst script for vdr-plugin-smarttvweb +# +# 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) + + # Create a log file, writable by the plugin + logfile=/var/log/smarttvweb/smarttvweb.log + if [ ! -f $logfile ]; then + touch $logfile + chmod 664 $logfile + chown -R root:vdr $(dirname $logfile) + fi + + # Set ownership of web directory + chown -R vdr:vdr /var/lib/vdr/plugins/smarttvweb + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# 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..4eaabc1 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,43 @@ +#!/bin/sh +# postrm script for vdr-plugin-smarttvweb +# +# 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|abort-install|disappear) + # Remove log directory created in postinst + rm -rf /var/log/smarttvweb + + ;; + + remove|upgrade|failed-upgrade|abort-upgrade) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# 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..e2e0b99 --- /dev/null +++ b/debian/rules @@ -0,0 +1,27 @@ +#!/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 + +#MAKE_OPTIONS = VDRDIR=../../.. LIBDIR=. LOCALEDIR=locale +MAKE_OPTIONS = VDRDIR=/usr/include/vdr LIBDIR=. LOCALEDIR=locale + +.PHONY: override_dh_strip override_dh_auto_install + +override_dh_strip: + dh_strip --dbg-package=vdr-plugin-smarttvweb + +override_dh_auto_install: + LIBDIR=. dh_auto_install --destdir=debian/vdr-plugin-smarttvweb + +override_dh_auto_build: + dh_auto_build -- all $(MAKE_OPTIONS) + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- cgit v1.2.3