r40656 - in /trunk/libconfig-model-perl/debian: dh/config_model.pm dh/dh_config_model_upgrade libconfig-model-perl.install
ddumont-guest at users.alioth.debian.org
ddumont-guest at users.alioth.debian.org
Fri Jul 24 13:15:31 UTC 2009
Author: ddumont-guest
Date: Fri Jul 24 13:15:23 2009
New Revision: 40656
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=40656
Log:
Added config_model addon for DebHelper
Added:
trunk/libconfig-model-perl/debian/dh/config_model.pm
Modified:
trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade
trunk/libconfig-model-perl/debian/libconfig-model-perl.install
Added: trunk/libconfig-model-perl/debian/dh/config_model.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconfig-model-perl/debian/dh/config_model.pm?rev=40656&op=file
==============================================================================
--- trunk/libconfig-model-perl/debian/dh/config_model.pm (added)
+++ trunk/libconfig-model-perl/debian/dh/config_model.pm Fri Jul 24 13:15:23 2009
@@ -1,0 +1,14 @@
+#!/usr/bin/perl
+
+# (c) Dominique Dumont <dominique.dumont at hp.com>
+
+# This Debhelper addon will insert configuration upgrade instructions
+# in Debian package. This upgrade will be performed by Config::Model
+
+use warnings;
+use strict;
+use Debian::Debhelper::Dh_Lib;
+
+insert_before("dh_auto_configure", "dh_config_model_upgrade");
+
+1;
Modified: trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade?rev=40656&op=diff
==============================================================================
--- trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade (original)
+++ trunk/libconfig-model-perl/debian/dh/dh_config_model_upgrade Fri Jul 24 13:15:23 2009
@@ -192,6 +192,20 @@
dh_config_model_upgrade -model_name Approx
+=head1 EXAMPLES
+
+C<dh_config_model_upgrade> can be called in the rules file via the dh
+command (no options are possible, you will have to specify
+C<debian/*.config_model> files):
+
+ %:
+ dh --with config_model
+
+Or directly at the start of the build with
+
+ build:
+ dh_config_model_upgrade -model_name FooBar
+
=head1 CAVEATS
Using options with a single dash (e.g. C<-model_name> instead of
Modified: trunk/libconfig-model-perl/debian/libconfig-model-perl.install
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libconfig-model-perl/debian/libconfig-model-perl.install?rev=40656&op=diff
==============================================================================
--- trunk/libconfig-model-perl/debian/libconfig-model-perl.install (original)
+++ trunk/libconfig-model-perl/debian/libconfig-model-perl.install Fri Jul 24 13:15:23 2009
@@ -1,1 +1,2 @@
-debian/dh/postinst-config-model usr/share/debhelper/autoscripts/
+debian/dh/postinst-config-model usr/share/debhelper/autoscripts/
+debian/dh/config_model.pm usr/share/perl5/Debian/Debhelper/Sequence/
More information about the Pkg-perl-cvs-commits
mailing list