[debian-edu-commits] debian-edu/ 01/01: debian/rules: Convert to dh9 style rules.

Holger Levsen holger at moszumanska.debian.org
Sun Oct 12 11:14:14 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository debian-edu-config.

commit dc564e22f99ab8b86f241ba2ec3d5140dfd19317
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Oct 12 13:09:09 2014 +0200

    debian/rules: Convert to dh9 style rules.
---
 debian/changelog |  3 +++
 debian/rules     | 60 +++++++-------------------------------------------------
 2 files changed, 10 insertions(+), 53 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 002fff9..7d58ebc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -43,6 +43,9 @@ debian-edu-config (1.810) UNRELEASED; urgency=high
   * Adjust exim config on the main server to be closer to the default in
     Debian, and explain why the kerberos id is checked when using SMTP.
 
+  [ Holger Levsen ]
+  * debian/rules: Convert to dh9 style rules.
+
  -- Wolfgang Schweer <wschweer at arcor.de>  Tue, 07 Oct 2014 12:47:06 +0200
 
 debian-edu-config (1.809) unstable; urgency=high
diff --git a/debian/rules b/debian/rules
index c77b7ed..ed60b20 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,66 +1,20 @@
 #!/usr/bin/make -f
-# Made with the aid of debmake, by Christoph Lameter,
-# based on the sample debian/rules file for GNU hello by Ian Jackson.
-
-package=debian-edu-config
 
 DESTDIR=`pwd`/debian/debian-edu-config
 
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp:
-	$(checkdir)
-
-	$(MAKE) CFLAGS="-O2 -g -Wall"
-	touch build
-
-clean:
-	$(checkdir)
-	-rm -f build
-	$(MAKE) clean
-	dh_clean
+%:
+	dh $@
 
-binary-arch: 
-
-binary-indep: checkroot build
-	$(checkdir)
-	dh_testdir
-	dh_testroot
-	install -d $(DESTDIR)
-	cd $(DESTDIR) && install -d `cat ../dirs`
+override_dh_auto_install:
 	$(MAKE) install prefix=/usr DESTDIR=$(DESTDIR)
-	dh_install --exclude=.svn
-	dh_installdebconf
-	dh_installdocs
-	dh_installdirs
-	dh_installcron
+
+override_dh_installinit:
 	# Start it after 15bind9 and 19slapd
 	dh_installinit --init-script fetch-ldap-cert -r --no-start -u"start 95 2 3 4 5 ."
 	# Start it after 15bind9, 19slapd and 95fetch-ldap-cert, and add some to be sure
 	dh_installinit --init-script iceweasel-ldapconf -r --no-start -u"start 96 2 3 4 5 ."
 	dh_installinit --init-script enable-nat --no-start
-	dh_installchangelogs
-	#dh_link /usr/share/debian-edu-config/tools/ldapdump.sh /etc/slbackup/pre.d/ldapdump.sh
-	#dh_link /etc/apache2/mods-available/userdir.load /etc/apache2/mods-available/debian-edu-userdir.load
-	dh_link
-	dh_gencontrol
-	dh_gconf  --priority=50
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_md5sums
-	dh_builddeb
-
-define checkdir
-	test -f debian/rules
-endef
 
-binary: binary-indep binary-arch
-
-checkroot:
-	$(checkdir)
-	test root = "`whoami`"
+override_dh_gconf:
+	dh_gconf  --priority=50
 
-.PHONY: build build-arch build-indep binary binary-arch binary-indep clean checkroot

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list