r7031 - in /trunk/libapache2-mod-perl2/debian: control rules
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Tue Aug 21 04:47:29 UTC 2007
Author: dmn
Date: Tue Aug 21 04:47:29 2007
New Revision: 7031
URL: http://svn.debian.org/wsvn/?sc=1&rev=7031
Log:
Drop CDBS, welcome debhelper+quilt
Modified:
trunk/libapache2-mod-perl2/debian/control
trunk/libapache2-mod-perl2/debian/rules
Modified: trunk/libapache2-mod-perl2/debian/control
URL: http://svn.debian.org/wsvn/trunk/libapache2-mod-perl2/debian/control?rev=7031&op=diff
==============================================================================
--- trunk/libapache2-mod-perl2/debian/control (original)
+++ trunk/libapache2-mod-perl2/debian/control Tue Aug 21 04:47:29 2007
@@ -6,7 +6,7 @@
Standards-Version: 3.7.2.2
XS-Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libapache2-mod-perl2/
XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libapache2-mod-perl2/
-Build-Depends: perl (>= 5.8.7-3), libperl-dev (>= 5.8.7-3), apache2-threaded-dev (>= 2.2.3-1) | apache2-prefork-dev (>= 2.2.3-1), debhelper (>> 4.1.0), libwww-perl, libdevel-symdump-perl, libhtml-parser-perl, libgdbm-dev, libgtop2-dev, cdbs
+Build-Depends: perl (>= 5.8.7-3), libperl-dev (>= 5.8.7-3), apache2-threaded-dev (>= 2.2.3-1) | apache2-prefork-dev (>= 2.2.3-1), debhelper (>> 4.1.0), libwww-perl, libdevel-symdump-perl, libhtml-parser-perl, libgdbm-dev, libgtop2-dev, quilt
Build-Conflicts: libapache2-mod-perl2 (<= 1.999.22-1)
Package: libapache2-mod-perl2
Modified: trunk/libapache2-mod-perl2/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libapache2-mod-perl2/debian/rules?rev=7031&op=diff
==============================================================================
--- trunk/libapache2-mod-perl2/debian/rules (original)
+++ trunk/libapache2-mod-perl2/debian/rules Tue Aug 21 04:47:29 2007
@@ -1,14 +1,37 @@
#!/usr/bin/make -f
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/simple-patchsys.mk
-include /usr/share/cdbs/1/class/perlmodule.mk
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
-DEB_MAKE_CHECK_TARGET =
-DEB_MAKE_BUILD_TARGET = all glue_pods
-DEB_MAKE_INSTALL_TARGET = install_vendor PREFIX=debian/libapache2-mod-perl2/usr
+include /usr/share/quilt/quilt.make
-DEB_MAKEMAKER_USER_FLAGS := MP_USE_GTOP=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
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP =$(CURDIR)/debian/libapache2-mod-perl2
+
+# Allow disabling build optimation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+build: build-stamp
+build-stamp: patch
+ dh_testdir
+
+ # Add commands to compile the package here
+ $(PERL) Makefile.PL \
+ INSTALLDIRS=vendor \
+ MP_USE_GTOP=1 \
MP_TRACE=0 \
MP_USE_DSO=1 \
MP_USE_STATIC=0 \
@@ -16,24 +39,105 @@
MP_INCLUDE_DIR=/usr/include/apache2 \
MP_APXS=/usr/bin/apxs2 \
MP_INCLUDE_DIR=/usr/include/apr-1.0
+ $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+ $(MAKE) test
- #deleted for new build
- #MP_AP_PREFIX=/usr \
+ touch build-stamp
-BUILDDIR = $(CURDIR)/debian/libapache2-mod-perl2
+clean: clean-patched
+clean-patched: unpatch
+ dh_testdir
+ dh_testroot
-install/libapache2-mod-perl2::
- install $(CURDIR)/src/modules/perl/mod_perl.so debian/libapache2-mod-perl2/usr/lib/apache2/modules/mod_perl.so
- install -m644 $(CURDIR)/debian/perl.load debian/libapache2-mod-perl2/etc/apache2/mods-available
- rm -rf $(BUILDDIR)/usr/man
- rm -f $(BUILDDIR)/usr/share/man/man3/mod_perl.3pm
- rm -rf $(BUILDDIR)/usr/share/perl5
+ # Add commands to clean up after the build process here
+ [ ! -f Makefile ] || $(MAKE) realclean
- # mp2bug goes into the /usr/share/bug infrastructure!
- mv $(BUILDDIR)/usr/bin/mp2bug $(BUILDDIR)/usr/share/libapache2-mod-perl2/
- install -m755 $(CURDIR)/debian/libapache2-mod-perl2.bug $(BUILDDIR)/usr/share/bug/
- mv $(BUILDDIR)/usr/share/bug/libapache2-mod-perl2.bug $(BUILDDIR)/usr/share/bug/libapache2-mod-perl2
+ dh_clean build-stamp install-stamp
-install/libapache2-mod-perl2-dev::
- install -m644 $(CURDIR)/xs/*.h debian/libapache2-mod-perl2-dev/usr/include/apache2
- install -m644 $(CURDIR)/src/modules/perl/*.h debian/libapache2-mod-perl2-dev/usr/include/apache2
+install: build install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+
+ # As this is a architecture dependent package, we are not
+ # supposed to install stuff to /usr/share. MakeMaker creates
+ # the dirs, we delete them from the deb:
+ rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/share/perl5
+
+ touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installexamples -i
+ dh_installdocs -i
+ dh_installchangelogs -i Changes
+ dh_perl -i
+ dh_compress -i
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installexamples -a
+ dh_installdocs -i
+ dh_installchangelogs -a Changes
+ dh_strip -a
+ dh_perl -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
+### #!/usr/bin/make -f
+###
+### include /usr/share/cdbs/1/rules/debhelper.mk
+### include /usr/share/cdbs/1/rules/simple-patchsys.mk
+### include /usr/share/cdbs/1/class/perlmodule.mk
+###
+### DEB_MAKE_CHECK_TARGET =
+### DEB_MAKE_BUILD_TARGET = all glue_pods
+### DEB_MAKE_INSTALL_TARGET = install_vendor PREFIX=debian/libapache2-mod-perl2/usr
+###
+### DEB_MAKEMAKER_USER_FLAGS := MP_USE_GTOP=1 \
+### MP_TRACE=0 \
+### MP_USE_DSO=1 \
+### MP_USE_STATIC=0 \
+### MP_CCOPTS="-g -Wall" \
+### MP_INCLUDE_DIR=/usr/include/apache2 \
+### MP_APXS=/usr/bin/apxs2 \
+### MP_INCLUDE_DIR=/usr/include/apr-1.0
+###
+### #deleted for new build
+### #MP_AP_PREFIX=/usr \
+###
+### BUILDDIR = $(CURDIR)/debian/libapache2-mod-perl2
+###
+### install/libapache2-mod-perl2::
+### install $(CURDIR)/src/modules/perl/mod_perl.so debian/libapache2-mod-perl2/usr/lib/apache2/modules/mod_perl.so
+### install -m644 $(CURDIR)/debian/perl.load debian/libapache2-mod-perl2/etc/apache2/mods-available
+### rm -rf $(BUILDDIR)/usr/man
+### rm -f $(BUILDDIR)/usr/share/man/man3/mod_perl.3pm
+### rm -rf $(BUILDDIR)/usr/share/perl5
+###
+### # mp2bug goes into the /usr/share/bug infrastructure!
+### mv $(BUILDDIR)/usr/bin/mp2bug $(BUILDDIR)/usr/share/libapache2-mod-perl2/
+### install -m755 $(CURDIR)/debian/libapache2-mod-perl2.bug $(BUILDDIR)/usr/share/bug/
+### mv $(BUILDDIR)/usr/share/bug/libapache2-mod-perl2.bug $(BUILDDIR)/usr/share/bug/libapache2-mod-perl2
+###
+### install/libapache2-mod-perl2-dev::
+### install -m644 $(CURDIR)/xs/*.h debian/libapache2-mod-perl2-dev/usr/include/apache2
+### install -m644 $(CURDIR)/src/modules/perl/*.h debian/libapache2-mod-perl2-dev/usr/include/apache2
More information about the Pkg-perl-cvs-commits
mailing list