]> git.donarmstrong.com Git - deb_pkgs/libapache-gallery-perl.git/blobdiff - debian/rules
fixup for 1.0.2 release; use dh 8, mark conffiles
[deb_pkgs/libapache-gallery-perl.git] / debian / rules
index f8d4830559d7dacc99eb80b97c03e4f06ac78e71..0e848ef37111a413d55915d06dd758fee3d93553 100755 (executable)
@@ -1,79 +1,26 @@
 #!/usr/bin/make -f
 
-#export DH_VERBOSE=1
-
-export DH_COMPAT := 4
-
-PERL ?= /usr/bin/perl
-
-b := $(shell pwd)/debian/libapache-gallery-perl
-
-arrange: arrange-stamp
-arrange-stamp: install
-       dh_testdir
-       touch arrange-stamp
-
-binary: binary-stamp
-binary-stamp: binary-indep binary-arch
-       dh_testdir
-       touch binary-stamp
-
-binary-arch: binary-arch-stamp
-binary-arch-stamp: arrange
-       dh_testdir
-       touch binary-arch-stamp
-
-binary-indep: binary-indep-stamp
-binary-indep-stamp: arrange
-       dh_testdir
-       dh_testroot
-       dh_installman
-       dh_installdocs README
-       dh_installchangelogs Changes
-       dh_installcron
-       dh_fixperms
-       dh_installdeb
-       dh_perl
-       dh_compress
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-       touch binary-indep-stamp
-
-build: build-stamp
-build-stamp: config
-       dh_testdir
-       $(MAKE)
-       touch build-stamp
-
-clean:
-       dh_testdir
-       dh_testroot
-       -$(MAKE) clean
-       if [ -e Makefile ]; then $(MAKE) -i distclean; fi
-       dh_clean arrange-stamp binary-stamp binary-arch-stamp binary-indep-stamp build-stamp config-stamp install-stamp
-       rm -f htdocs/text-text.png htdocs/text-html.png
-       rm -rf debian/libapache-gallery-perl
-       rm -rf Makefile.old
-
-config: config-stamp
-config-stamp:
-       dh_testdir
-       $(PERL) Makefile.PL INSTALLDIRS=vendor  
-       # deal with uuencoded icons
+%: 
+       dh $@
+
+# it is necessary to set MOD_PERL_API_VERSION to 2 to avoid trying to
+# use modperl 1
+override_dh_auto_test:
+       MOD_PERL_API_VERSION=2 dh_auto_test;
+
+# install templates and icons
+override_dh_auto_install:
+       dh_auto_install;
+       cp -r templates/* debian/libapache-gallery-perl/usr/share/libapache-gallery-perl/templates/.;
+       cp -r htdocs/* debian/libapache-gallery-perl/usr/share/libapache-gallery-perl/icons/.;
+
+# put the missing icons in place
+override_dh_auto_configure:
+       dh_auto_configure;
        uudecode -o htdocs/text-txt.png debian/text-text.png.uuencode
        uudecode -o htdocs/text-html.png debian/text-html.png.uuencode
-       touch config-stamp
-
-install: install-stamp
-install-stamp: build
-       dh_testdir
-       dh_clean -k
-       dh_installdirs
-       $(MAKE)
-       $(MAKE) install PREFIX=$(CURDIR)/debian/libapache-gallery-perl/usr
-       cp -r $(CURDIR)/templates/* $(CURDIR)/debian/libapache-gallery-perl/usr/share/libapache-gallery-perl/templates
-       cp -r $(CURDIR)/htdocs/* $(CURDIR)/debian/libapache-gallery-perl/usr/share/libapache-gallery-perl/icons
-       touch install-stamp
 
-.PHONY: binary binary-arch binary-indep clean
+# remove the missing icons on clean
+override_dh_auto_clean:
+       dh_auto_clean;
+       rm -f htdocs/text-text.png htdocs/text-html.png