--- libconfig-apacheformat-perl-1.2.orig/debian/rules +++ libconfig-apacheformat-perl-1.2/debian/rules @@ -0,0 +1,77 @@ +#!/usr/bin/make -f +# This debian/rules file is provided as a template for normal perl +# packages. It was created by Marc Brockschmidt for +# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may +# be used freely wherever it is useful. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# If set to a true value then MakeMaker's prompt function will +# always return the default without waiting for user input. +export PERL_MM_USE_DEFAULT=1 +include /usr/share/quilt/quilt.make + +PACKAGE=$(shell dh_listpackages) + +ifndef PERL +PERL = /usr/bin/perl +endif + +TMP =$(CURDIR)/debian/$(PACKAGE) + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + + # Add commands to compile the package here + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) + $(MAKE) test + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + + dh_clean build-stamp install-stamp + + # Add commands to clean up after the build process here + [ ! -f Makefile ] || $(MAKE) realclean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + + # Add commands to install the package into $(TMP) here + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + + [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5 + + touch $@ + +binary-arch: +# We have nothing to do here for an architecture-independent package + +binary-indep: build install + dh_testdir + dh_testroot + dh_installexamples + dh_installdocs README + dh_installchangelogs Changes + dh_perl + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary --- libconfig-apacheformat-perl-1.2.orig/debian/patches/apache_globs.patch +++ libconfig-apacheformat-perl-1.2/debian/patches/apache_globs.patch @@ -0,0 +1,13 @@ +Index: libconfig-apacheformat-perl/ApacheFormat.pm +=================================================================== +--- libconfig-apacheformat-perl.orig/ApacheFormat.pm 2008-03-02 15:33:54.000000000 +0000 ++++ libconfig-apacheformat-perl/ApacheFormat.pm 2008-03-02 15:34:31.000000000 +0000 +@@ -599,6 +599,8 @@ + "line $$line_num: $!"); + @files = map { "$f/$_" } sort grep { -f "$f/$_" } readdir INCD; + closedir(INCD); ++ } elsif ($f =~ /\*/) { # Apache file glob ++ @files = glob $f; + } else { + @files = $f; + } --- libconfig-apacheformat-perl-1.2.orig/debian/patches/series +++ libconfig-apacheformat-perl-1.2/debian/patches/series @@ -0,0 +1 @@ +apache_globs.patch --- libconfig-apacheformat-perl-1.2.orig/debian/watch +++ libconfig-apacheformat-perl-1.2/debian/watch @@ -0,0 +1,5 @@ +version=3 +# URL to the package page followed by a regex to search +http://search.cpan.org/dist/Config-ApacheFormat/ .*/Config-ApacheFormat-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) + + --- libconfig-apacheformat-perl-1.2.orig/debian/compat +++ libconfig-apacheformat-perl-1.2/debian/compat @@ -0,0 +1 @@ +5 --- libconfig-apacheformat-perl-1.2.orig/debian/copyright +++ libconfig-apacheformat-perl-1.2/debian/copyright @@ -0,0 +1,15 @@ +This is the debian package for the Config::ApacheFormat module. +It was created by Stephen Gran using dh-make-perl. + +It was downloaded from http://search.cpan.org/dist/Config-ApacheFormat/ + +Copyright (C) 2002-2003 Sam Tregar + +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl 5 itself, i.e., under the terms of the +"Artistic License" or the "GNU General Public License". + +On Debian systems, you can find them in /usr/share/common-licenses/. + +The Debian packaging is (C) 2008, Stephen Gran and +is licensed under the same terms as the software itself (see above). --- libconfig-apacheformat-perl-1.2.orig/debian/changelog +++ libconfig-apacheformat-perl-1.2/debian/changelog @@ -0,0 +1,34 @@ +libconfig-apacheformat-perl (1.2-4) unstable; urgency=low + + [ Stephen Gran ] + * Add watch file + * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser + field (source stanza). + * quiltify file glob patch + + [ gregor herrmann ] + * Add libclass-methodmaker-perl to build dependencies to fix a FTBFS bug + (closes: #470264). + * debian/copyright: fix download URL. + * Add /me to Uploaders. + + -- gregor herrmann Mon, 10 Mar 2008 19:03:59 +0100 + +libconfig-apacheformat-perl (1.2-3) unstable; urgency=low + + * Add to Debian Perl group + + -- Stephen Gran Sun, 02 Mar 2008 02:00:33 +0000 + +libconfig-apacheformat-perl (1.2-2) unstable; urgency=low + + * Update to work with apache file globs such as + Include /etc/apache2/mods-enabled/*.load + + -- Stephen Gran Sat, 01 Mar 2008 15:53:59 +0000 + +libconfig-apacheformat-perl (1.2-1) unstable; urgency=low + + * Initial Release. + + -- Stephen Gran Sat, 01 Mar 2008 14:57:43 +0000 --- libconfig-apacheformat-perl-1.2.orig/debian/control +++ libconfig-apacheformat-perl-1.2/debian/control @@ -0,0 +1,24 @@ +Source: libconfig-apacheformat-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 5.0.0), quilt +Build-Depends-Indep: perl (>= 5.8.8-12), libclass-methodmaker-perl (>= 1.08) +Maintainer: Debian Perl Group +Uploaders: Stephen Gran , + gregor herrmann +Standards-Version: 3.7.3 +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libconfig-apacheformat-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libconfig-apacheformat-perl/ +Homepage: http://search.cpan.org/dist/Config::ApacheFormat/ + +Package: libconfig-apacheformat-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, libclass-methodmaker-perl (>= 1.08) +Description: use Apache format config files + This module is designed to parse a configuration file in the same + syntax used by the Apache web server (see http://httpd.apache.org for + details). This allows you to build applications which can be easily + managed by experienced Apache admins. Also, by using this module, + you'll benefit from the support for nested blocks with built-in + parameter inheritance. This can greatly reduce the amount or repeated + information in your configuration files.