[SCM] Debian packaging of libembperl-perl branch, master, updated. upstream/2.5.0_rc2-65-g7e2bf3e
Florian Schlichting
fschlich at zedat.fu-berlin.de
Mon Oct 1 21:45:11 UTC 2012
The following commit has been merged in the master branch:
commit 7e2bf3e730bc765f3ab6ce39c38c512843f4ebaf
Author: Florian Schlichting <fschlich at zedat.fu-berlin.de>
Date: Mon Oct 1 23:41:30 2012 +0200
Switched to short-form debian/rules
diff --git a/debian/rules b/debian/rules
index 5132a2c..4bee5d8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,18 +1,7 @@
#!/usr/bin/make -f
-#-*- makefile -*-
-# Made with the aid of dh_make, by Craig Small
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# Some lines taken from debmake, by Christoph Lameter.
-OPTIMIZE = -Wall -g
-#OPTIMIZE = -Wall -W -ggdb -Wpointer-arith -Wconversion -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-unused
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-DEBUG = debug dmalloc
-OPTIMIZE += -O0
-else
-OPTIMIZE += -O2
-endif
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
POD2TEXT = Changes Config Faq Features FeaturesD \
Intro IntroEmbperlObject SVN TipsAndTricks
@@ -20,83 +9,31 @@ POD2TEXT = Changes Config Faq Features FeaturesD \
%: %.pod
pod2text < $< > $@
-config: config-stamp
-config-stamp: $(QUILT_STAMPFN)
- dh_testdir
- EPHTTPD=/usr/sbin/apache2 \
- /usr/bin/perl Makefile.PL $(DEBUG) INSTALLDIRS=vendor
- touch $@
-
-build: build-stamp
-build-stamp: $(POD2TEXT) config-stamp
- dh_testdir
- $(MAKE) -j1 OPTIMIZE="$(OPTIMIZE)" LD_RUN_PATH=""
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- $(MAKE) -j1 test
-endif
- touch $@
+%:
+ dh $@
-install: install-stamp
-install-stamp: build-stamp
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
+override_dh_auto_configure:
+ EPHTTPD=/usr/sbin/apache2 dh_auto_configure
-# fix occasional upstream permission errors
+override_dh_auto_install: $(POD2TEXT)
+ # fix occasional upstream permission errors
find eg blib/lib -type f -a -perm +111 -exec chmod -x \{\} \;
-
- $(MAKE) install PREFIX=$(CURDIR)/debian/libembperl-perl/usr
-
-# the CGI scripts enable use_redirect_env, so should be safe to
-# install by default
+
+ dh_auto_install
+
+ # the CGI scripts enable use_redirect_env, so should be safe to
+ # install by default
install -m 755 *cgi.pl debian/libembperl-perl/usr/lib/cgi-bin/
-
+
+ # move German manpages to usr/share/man/de/man{1,2,3}
@set -e;\
- for f in debian/libembperl-perl/usr/share/man/man3/*[a-z]D.3pm; do \
+ for f in $(TMP)/usr/share/man/man3/*[a-z]D.3pm; do \
f_de=`echo $$f | sed 's,man\(.\)/\([^/]*\)D\.\([^/]*\)$$,de/man\1/\2.\3,'` ;\
echo "mv $$f $$f_de" ;\
mv $$f $$f_de ;\
done
-
+
+ # ship Apache config in mods-available
install -m 644 debian/zembperl.conf debian/zembperl.load \
- debian/libembperl-perl/etc/apache2/mods-available/
-
- touch $@
-
-clean:
- dh_testdir
- dh_testroot
-
- [ ! -f Makefile ] || ( touch Makefile && $(MAKE) realclean )
- $(RM) $(POD2TEXT) dbinitembperlapache
-
- dh_clean
-
-
-# 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_installdocs
- dh_installexamples
- dh_installman
- dh_installchangelogs Changes
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_perl
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb --destdir=..
-
-
+ $(TMP)/etc/apache2/mods-available/
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
--
Debian packaging of libembperl-perl
More information about the Pkg-perl-cvs-commits
mailing list