r4151 - in vdr/vdr/trunk/debian: . plugin-template

Tobias Grimm tiber-guest at alioth.debian.org
Sat Feb 3 02:33:46 CET 2007


Author: tiber-guest
Date: 2007-02-03 02:33:46 +0100 (Sat, 03 Feb 2007)
New Revision: 4151

Modified:
   vdr/vdr/trunk/debian/changelog
   vdr/vdr/trunk/debian/debianize-vdrplugin
   vdr/vdr/trunk/debian/plugin-template/README.Debian
   vdr/vdr/trunk/debian/plugin-template/changelog
   vdr/vdr/trunk/debian/plugin-template/compat
   vdr/vdr/trunk/debian/plugin-template/control
   vdr/vdr/trunk/debian/plugin-template/copyright
   vdr/vdr/trunk/debian/plugin-template/install
   vdr/vdr/trunk/debian/plugin-template/postinst.ex
   vdr/vdr/trunk/debian/plugin-template/postrm.ex
   vdr/vdr/trunk/debian/plugin-template/preinst.ex
   vdr/vdr/trunk/debian/plugin-template/prerm.ex
   vdr/vdr/trunk/debian/plugin-template/watch.ex
Log:
Updated debianize-vdrplugin for Debian Etch


Modified: vdr/vdr/trunk/debian/changelog
===================================================================
--- vdr/vdr/trunk/debian/changelog	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/changelog	2007-02-03 01:33:46 UTC (rev 4151)
@@ -13,12 +13,13 @@
   * Added opt-50_graphtft.dpatch, required by the graphtft plugin version 0.0.15
   * Replaced "==" in shell scripts with "=" for compatibility reasons
     (reported by Jörg (Kano) Schirottke)
+  * Updated debianize-vdrplugin for Debian Etch
 
   [ Thomas Günther ]
   * Upgraded make-special-vdr.sh to version 0.3 (fixed detection of *.vdr files
     in burn plugin)
 
- -- Tobias Grimm <tg at e-tobi.net>  Wed, 24 Jan 2007 18:55:42 +0100
+ -- Tobias Grimm <tg at e-tobi.net>  Sat,  3 Feb 2007 02:32:43 +0100
 
 vdr (1.4.5-1) experimental; urgency=low
 

Modified: vdr/vdr/trunk/debian/debianize-vdrplugin
===================================================================
--- vdr/vdr/trunk/debian/debianize-vdrplugin	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/debianize-vdrplugin	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1,11 +1,81 @@
 #!/bin/sh
 
-if [ ! -x /usr/bin/dh_make ] ; then
-    echo "If you want to use this script, please install the package dh-make!"
-    exit 1
+detect_plugin_name()
+{
+    local PATTERN='.*\/\(.*\)-\([0-9][0-9a-zA-Z+.~-]*\)$'
+    if pwd | grep -q -E ".*\/.*-[0-9][0-9a-zA-Z+.~-]*$" ; then
+        PLUGIN=`pwd | sed "s/$PATTERN/\1/"`
+        VERSION=`pwd | sed "s/$PATTERN/\2/"`
+    else
+        echo "debianize-vdrplugin expects the upstream sources to be extracted in a"
+        echo "directory named:  <PLUGIN-NAME>-<VERSION>"
+        echo 
+        echo "e.g.: coolplugin-0.0.1"
+        echo 
+        echo "The upsteam tarball should be named: vdr-<PLUGIN-NAME>-<VERSION>.tar.gz"
+        echo 
+        echo "e.g.: vdr-coolplugin-0.0.1.tar.gz"
+        echo 
+        exit 1
+    fi
+}
+
+create_orig_tarball()
+{
+    local tarball
+
+    ORIGTARBALL="../vdr-plugin-$PLUGIN"_"$VERSION.orig.tar.gz"
+    
+    if [ -e $ORIGTARBALL ] ; then
+        return
+    fi
+    
+    for tarball in `find ../ -name "*$PLUGIN-$VERSION.t*gz"`; do
+        ln -sf `basename $tarball` $ORIGTARBALL
+        return
+    done
+      
+    for tarball in `find ../ -name "*$PLUGIN-$VERSION.t*bz2"`; do
+        /bin/bzip2 -cd $tarball | /bin/gzip > $ORIGTARBALL
+        return
+    done
+}
+
+check_dh_make()
+{
+    if [ ! -x /usr/bin/dh_make ] ; then
+        echo "If you want to use this script, please install the package dh-make!"
+        exit 1
+    fi
+}
+
+replace_vdr_version()
+{
+    VDRVERSION=`dpkg -s vdr-dev | awk '/Version/ { print $2 }'`
+    perl -pi -e "s/#VDRVERSION#/$VDRVERSION/g" debian/control
+}
+
+replace_plugin_name()
+{
+    perl -pi -e "s/#PLUGIN#/$PLUGIN/g" debian/install
+}
+
+#
+# main()
+#
+
+check_dh_make
+detect_plugin_name
+create_orig_tarball
+
+dh_make="/usr/bin/dh_make -t /usr/share/vdr-dev/plugin-template -d -s -p vdr-plugin-$PLUGIN"
+if [ ! -e $ORIGTARBALL ] ; then
+    dh_make="$dh_make -r"
 fi
 
-VDRVERSION=`dpkg -s vdr-dev | awk '/Version/ { print $2 }'`
+$dh_make
 
-/usr/bin/dh_make -t /usr/share/vdr-dev/plugin-template -d -s && \
-perl -pi -e "s/#VDRVERSION#/$VDRVERSION/g" debian/control
+if [ "$?" -eq "0" ]; then
+    replace_vdr_version
+    replace_plugin_name
+fi

Modified: vdr/vdr/trunk/debian/plugin-template/README.Debian
===================================================================
--- vdr/vdr/trunk/debian/plugin-template/README.Debian	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/plugin-template/README.Debian	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1,6 +1,6 @@
-vdr-plugin-#PACKAGE# for Debian
------------#DASHLINE#
+#PACKAGE# for Debian
+#DASHLINE#
 
 <possible notes regarding this package - if none, delete this file>
 
- -- #USERNAME# <#EMAIL#>, #DATE#
+ -- #USERNAME# <#EMAIL#>  #DATE#

Modified: vdr/vdr/trunk/debian/plugin-template/changelog
===================================================================
--- vdr/vdr/trunk/debian/plugin-template/changelog	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/plugin-template/changelog	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1,6 +1,12 @@
-vdr-plugin-#PACKAGE# (#VERSION#-1) unstable; urgency=low
+#PACKAGE# (#VERSION#-1) unstable; urgency=low
 
-  * Initial Release.
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+  
+  Important:
+  
+  If you intend to make this plugin available to others, please create an
+  ITP-bug (see http://www.debian.org/devel/wnpp ) and contact the
+  Debian VDR packaging team: pkg-vdr-dvb-devel at lists.alioth.debian.org
 
  -- #USERNAME# <#EMAIL#>  #DATE#
 

Modified: vdr/vdr/trunk/debian/plugin-template/compat
===================================================================
--- vdr/vdr/trunk/debian/plugin-template/compat	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/plugin-template/compat	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1 +1 @@
-4
+5

Modified: vdr/vdr/trunk/debian/plugin-template/control
===================================================================
--- vdr/vdr/trunk/debian/plugin-template/control	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/plugin-template/control	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1,11 +1,11 @@
-Source: vdr-plugin-#PACKAGE#
+Source: #PACKAGE#
 Section: misc
 Priority: extra
 Maintainer: #USERNAME# <#EMAIL#>
-Build-Depends: debhelper (>> 4.1.16), vdr-dev (>= #VDRVERSION#)
+Build-Depends: #BUILD_DEPS#, vdr-dev (>= #VDRVERSION#)
 Standards-Version: #POLICY#
 
-Package: vdr-plugin-#PACKAGE#
+Package: #PACKAGE#
 Architecture: any
 Depends: ${shlibs:Depends}, ${vdr:Depends}
 Description: <insert up to 60 chars description>

Modified: vdr/vdr/trunk/debian/plugin-template/copyright
===================================================================
--- vdr/vdr/trunk/debian/plugin-template/copyright	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/plugin-template/copyright	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1,11 +1,21 @@
 This package was debianized by #USERNAME# <#EMAIL#> on
 #DATE#.
 
-It was downloaded from <fill in ftp site>
+It was downloaded from <fill in http/ftp site>
 
-Upstream Author: <fill in name and email>
+Upstream Author: <put author(s) name and email here>
 
-Copyright:
+Copyright: <put the year(s) of the copyright, and the names of the
+            copyright holder(s) here>
 
+
+The Debian packaging is (C) #YEAR#, #USERNAME# <#EMAIL#> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+License:
+
 It may be redistributed under the terms of the GNU GPL, Version 2
 found on Debian systems in the file /usr/share/common-licenses/GPL .
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.

Modified: vdr/vdr/trunk/debian/plugin-template/install
===================================================================
--- vdr/vdr/trunk/debian/plugin-template/install	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/plugin-template/install	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1 +1 @@
-libvdr-#PACKAGE#.so.*    usr/lib/vdr/plugins/
+libvdr-#PLUGIN#.so.*    usr/lib/vdr/plugins/

Modified: vdr/vdr/trunk/debian/plugin-template/postinst.ex
===================================================================
--- vdr/vdr/trunk/debian/plugin-template/postinst.ex	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/plugin-template/postinst.ex	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1,5 +1,5 @@
-#! /bin/sh
-# postinst script for vdr-plugin-#PACKAGE#
+#!/bin/sh
+# postinst script for #PACKAGE#
 #
 # see: dh_installdeb(1)
 
@@ -10,20 +10,19 @@
 #        * <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)
-
     ;;
 
     *)

Modified: vdr/vdr/trunk/debian/plugin-template/postrm.ex
===================================================================
--- vdr/vdr/trunk/debian/plugin-template/postrm.ex	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/plugin-template/postrm.ex	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1,5 +1,5 @@
-#! /bin/sh
-# postrm script for vdr-plugin-#PACKAGE#
+#!/bin/sh
+# postrm script for #PACKAGE#
 #
 # see: dh_installdeb(1)
 
@@ -13,21 +13,20 @@
 #        * <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>
+#        * <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)
+    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
@@ -36,3 +35,5 @@
 #DEBHELPER#
 
 exit 0
+
+

Modified: vdr/vdr/trunk/debian/plugin-template/preinst.ex
===================================================================
--- vdr/vdr/trunk/debian/plugin-template/preinst.ex	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/plugin-template/preinst.ex	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1,5 +1,5 @@
-#! /bin/sh
-# preinst script for vdr-plugin-#PACKAGE#
+#!/bin/sh
+# preinst script for #PACKAGE#
 #
 # see: dh_installdeb(1)
 
@@ -10,16 +10,12 @@
 #        * <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)

Modified: vdr/vdr/trunk/debian/plugin-template/prerm.ex
===================================================================
--- vdr/vdr/trunk/debian/plugin-template/prerm.ex	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/plugin-template/prerm.ex	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1,5 +1,5 @@
-#! /bin/sh
-# prerm script for vdr-plugin-#PACKAGE#
+#!/bin/sh
+# prerm script for #PACKAGE#
 #
 # see: dh_installdeb(1)
 
@@ -19,10 +19,11 @@
 
 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

Modified: vdr/vdr/trunk/debian/plugin-template/watch.ex
===================================================================
--- vdr/vdr/trunk/debian/plugin-template/watch.ex	2007-02-01 00:06:22 UTC (rev 4150)
+++ vdr/vdr/trunk/debian/plugin-template/watch.ex	2007-02-03 01:33:46 UTC (rev 4151)
@@ -1,6 +1,22 @@
 # 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
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage 
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php #PACKAGE#-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/#PACKAGE#-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/#PACKAGE#-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for debscripts >= 2.9
+# http://sf.net/#PACKAGE#/#PACKAGE#-(.*)\.tar\.gz
+
+




More information about the pkg-vdr-dvb-changes mailing list