vdr/vdr/debian/plugin-template changelog compat control docs install postinst.ex postrm.ex preinst.ex prerm.ex README.Debian rules watch.ex
Thomas Schmidt
pkg-vdr-dvb-changes@lists.alioth.debian.org
Sat, 06 Nov 2004 15:54:40 +0000
Update of /cvsroot/pkg-vdr-dvb/vdr/vdr/debian/plugin-template
In directory haydn:/tmp/cvs-serv23783/vdr/vdr/debian/plugin-template
Added Files:
changelog compat control docs install postinst.ex postrm.ex
preinst.ex prerm.ex README.Debian rules watch.ex
Log Message:
* added debianize-vdrplugin, plugin-templates, thanks to Tobias :)
* changed 04_newplugin.dpatch to append the version-number to the directory-name
--- NEW FILE: watch.ex ---
# Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# Site Directory Pattern Version Script
version=2
sunsite.unc.edu /pub/Linux/Incoming #PACKAGE#-(.*)\.tar\.gz debian uupdate
--- NEW FILE: README.Debian ---
vdr-plugin-#PACKAGE# for Debian
-----------#DASHLINE#
<possible notes regarding this package - if none, delete this file>
-- #USERNAME# <#EMAIL#>, #DATE#
--- NEW FILE: install ---
libvdr-#PACKAGE#.so.* usr/lib/vdr/plugins/
--- NEW FILE: postrm.ex ---
#! /bin/sh
# postrm script for vdr-plugin-#PACKAGE#
#
# 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' <r>overwrit>r> <new-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
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
--- NEW FILE: prerm.ex ---
#! /bin/sh
# prerm script for vdr-plugin-#PACKAGE#
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
remove|upgrade|deconfigure)
# install-info --quiet --remove /usr/info/vdr-plugin-#PACKAGE#.info.gz
;;
failed-upgrade)
;;
*)
echo "prerm 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
--- NEW FILE: control ---
Source: vdr-plugin-#PACKAGE#
Section: misc
Priority: extra
Maintainer: #USERNAME# <#EMAIL#>
Build-Depends: debhelper (>> 4.1.16), vdr-dev (>= #VDRVERSION#)
Standards-Version: #POLICY#
Package: vdr-plugin-#PACKAGE#
Architecture: any
Depends: ${shlibs:Depends}, vdr (>= #VDRVERSION#)
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
XB-VDR-Patchlevel: ${patchlevel}
--- NEW FILE: postinst.ex ---
#! /bin/sh
# postinst script for vdr-plugin-#PACKAGE#
#
# 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>
# * <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
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
--- NEW FILE: docs ---
README
--- NEW FILE: rules ---
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
# Set VDR=vdr or VDR=vdrdevel - vdrdevel always uses dpatch
VDR=$(shell dh_listpackages | grep "^vdr.*-" | head -n 1 | sed -e "s/-.*//")
ifeq ($(VDR), vdrdevel)
DPATCH=yes
endif
# To use dpatch uncomment the following line and set Build-Depends to dpatch
# DPATCH=yes
ifdef DPATCH
include /usr/share/dpatch/dpatch.make
else
patch:
patch-stamp:
unpatch:
endif
configure: configure-stamp
configure-stamp: patch-stamp
dh_testdir
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
$(MAKE) all DVBDIR=/usr VDRDIR=/usr/include/$(VDR) LIBDIR=.
touch build-stamp
clean: clean-patched unpatch
clean-patched:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
$(MAKE) -o .dependencies clean
rm -f libvdr-*.so.*
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
dh_install
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
dh_installexamples
# dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
# dh_installman
# dh_installinfo
# dh_undocumented
dh_installchangelogs HISTORY
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
/usr/lib/$(VDR)-dev/patchlevel.sh subst
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure \
clean-patched patch unpatch
--- NEW FILE: changelog ---
vdr-plugin-#PACKAGE# (#VERSION#-1) unstable; urgency=low
* Initial Release.
-- #USERNAME# <#EMAIL#> #DATE#
--- NEW FILE: preinst.ex ---
#! /bin/sh
# preinst script for vdr-plugin-#PACKAGE#
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
#
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
install|upgrade)
# if [ "$1" = "upgrade" ]
# then
# fi
;;
abort-upgrade)
;;
*)
echo "preinst 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
--- NEW FILE: compat ---
4