[Pkg-sql-ledger-commit] r368 - ledger-smb/branches/v1.2/debian

pkg-sql-ledger-commit-owner at lists.alioth.debian.org pkg-sql-ledger-commit-owner at lists.alioth.debian.org
Wed Dec 28 21:45:19 UTC 2011


Author: jame-guest
Date: 2011-12-28 21:45:18 +0000 (Wed, 28 Dec 2011)
New Revision: 368

Modified:
   ledger-smb/branches/v1.2/debian/rules
Log:
Rewrite v1.2 series debian/rules to use dh.

Modified: ledger-smb/branches/v1.2/debian/rules
===================================================================
--- ledger-smb/branches/v1.2/debian/rules	2011-12-28 19:04:16 UTC (rev 367)
+++ ledger-smb/branches/v1.2/debian/rules	2011-12-28 21:45:18 UTC (rev 368)
@@ -1,94 +1,32 @@
 #!/usr/bin/make -f
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+	dh $@
 
-DESTDIR = $(CURDIR)/debian/ledgersmb
-INSTALL = install
-
-
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	# Add here commands to configure the package.
-
-	touch configure-stamp
-
-
-build: build-stamp
-
-build-stamp: configure-stamp
-	dh_testdir
-
-        # Add here commands to compile the package.
-        #docbook-to-man debian/ledgersmb.sgml > ledgersmb.1
-
-	touch $@
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-
-	# Add here commands to clean up after the build process.
-	rm -f ledgersmb.conf
-
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-
-	# Add here commands to install the package into debian/ledgersmb.
+override_dh_auto_configure:
+	[ ! -e Build.PL ] || rm Build.PL
 	sed -e 's|^spool      = .*$$|spool  = /var/lib/ledgersmb/spool|' \
-	    -e 's|^templates  = .*$$|templates  = /etc/ledgersmb/templates|' \
 	    -e 's|^latex : 1$$|latex : 0|' \
 	    -e '/^localepath/d' \
 	    ledgersmb.conf.default > ledgersmb.conf
+	dh_auto_configure
 
-	perl Makefile.PL --skipdeps
-	$(MAKE)
+override_dh_auto_build:
 
-	chmod +x $(CURDIR)/configure_apache.sh
-	chmod +x $(CURDIR)/upgrade-templates.pl
-	chmod -x $(CURDIR)/favicon.ico
-	chmod -x $(CURDIR)/css/*css
-	chmod -x $(CURDIR)/locale/po/*
-	chmod -x $(CURDIR)/sql/*sql
-	chmod -x $(CURDIR)/sql/legacy/*sql
-	chmod -x $(CURDIR)/templates/*.html
-	chmod -x $(CURDIR)/templates/*.tex
-	chmod -x $(CURDIR)/templates/*logo*
-	chmod -x $(CURDIR)/LedgerSMB/*pm
-	chmod -x $(CURDIR)/LedgerSMB/CreditCard/*pm
-	chmod -x $(CURDIR)/LedgerSMB/Session/*pm
-	chmod -x $(CURDIR)/LedgerSMB/Taxes/*pm
-	chmod -x $(CURDIR)/LedgerSMB/Template/*pm
+override_dh_auto_test:
 
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs Changelog
-	dh_installdocs
-	dh_installexamples
-	dh_install -Xauto/
-	dh_installman blib/man3/*
-	dh_lintian
-#	dh_installdebconf
-	dh_link
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f ledgersmb.conf
+	rm -f ledgersmb-httpd.conf
 
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
+override_dh_install:
+	dh_install
+	chmod -x debian/ledgersmb/usr/share/ledgersmb/locale/po/*
+	find debian/ledgersmb/etc/ledgersmb -d -not -exec chmod -x '{}' \;
+	find debian/ledgersmb/usr/share/ledgersmb -name '*.html' -exec chmod -x '{}' \;
+	find debian/ledgersmb/usr/share/ledgersmb -name '*.sh' -exec chmod +x '{}' \;
+	find debian/ledgersmb/usr/share/ledgersmb -name '*.pm' -exec chmod -x '{}' \;
+	find debian/ledgersmb/usr/share/ledgersmb -name '*.sql' -exec chmod -x '{}' \;
+	find debian/ledgersmb/usr/share/ledgersmb/locale/legacy -d -not -name '*.pl' -not -exec chmod -x '{}' \;
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install




More information about the Pkg-sql-ledger-commit mailing list