Use debhelper 7
authorJoachim Breitner <mail@joachim-breitner.de>
Thu, 7 Aug 2008 21:47:28 +0000 (21:47 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Thu, 7 Aug 2008 21:47:28 +0000 (21:47 +0000)
debian/control
debian/rules

index 5bc99c8..74c711b 100644 (file)
@@ -2,7 +2,7 @@ Source: pam-dbus
 Section: admin
 Priority: optional
 Maintainer: Joachim Breitner <mail@joachim-breitner.de>
-Build-Depends: debhelper (>> 5.0.0), libpam0g-dev (>= 0.72), autotools-dev, libdbus-glib-1-dev
+Build-Depends: debhelper (>> 7), libpam0g-dev (>= 0.72), autotools-dev, libdbus-glib-1-dev
 Standards-Version: 3.7.3
 
 Package: libpam-dbus
index 111beb3..2d33f6a 100644 (file)
@@ -1,80 +1,4 @@
 #!/usr/bin/make -f
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-       CFLAGS += -O0
-else
-       CFLAGS += -O2
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-       INSTALL_PROGRAM += -s
-endif
-
-config.status: configure
-       dh_testdir
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-       cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-       cp -f /usr/share/misc/config.guess config.guess
-endif
-       ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man 
-
-build: build-stamp
-
-build-stamp:  config.status
-       dh_testdir
-
-       $(MAKE)
-
-       touch build-stamp
-
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp 
-       rm -f config.sub config.guess
-       [ ! -f Makefile ] || $(MAKE) distclean
-       dh_clean
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k
-       dh_installdirs
-
-       $(MAKE) install DESTDIR=$(CURDIR)/debian/libpam-dbus
-       rm -f $(CURDIR)/debian/libpam-dbus/lib/security/pam_dbus.a
-       rm -f $(CURDIR)/debian/libpam-dbus/lib/security/pam_dbus.la
-       rm -f $(CURDIR)/debian/libpam-dbus/usr/bin/testpam
-
-# 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_installchangelogs 
-       dh_installdocs
-       dh_installman
-       dh_link
-       dh_strip
-       dh_compress
-       dh_fixperms 
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 
+%:
+       dh $@