#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 # versioned subcomponent; update this when updating the mkgltempdir # bundled with this package mkgltempdir = mkgltempdir-4 %: dh $@ override_dh_auto_configure: dh_auto_configure -- $(shell dpkg-buildflags --export=configure) cd $(mkgltempdir) && ./configure --prefix=/usr --includedir=/usr/include --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/glexec --disable-maintainer-mode --disable-dependency-tracking $(shell dpkg-buildflags --export=configure) cd glexec-wrapper-scripts && ./configure --prefix=/usr --includedir=/usr/include --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/glexec --disable-maintainer-mode --disable-dependency-tracking $(shell dpkg-buildflags --export=configure) override_dh_auto_build: dh_auto_build cd $(mkgltempdir) && make cd glexec-wrapper-scripts && make cp $(mkgltempdir)/README $(mkgltempdir)/README_mkgltempdir cp glexec-wrapper-scripts/README glexec-wrapper-scripts/README_glexecwrappers override_dh_auto_install: dh_auto_install cd $(mkgltempdir) && make install DESTDIR=../debian/tmp cd glexec-wrapper-scripts && make install DESTDIR=../debian/tmp # Override stripping binaries for the debug packages .PHONY: override_dh_strip override_dh_strip: dh_strip -pglexec --dbg-package=glexec-dbg # Override installdocs for debug packages, but still install standard # documentation for other packages .PHONY: override_dh_installdocs override_dh_installdocs: dh_installdocs -pglexec-dbg --link-doc=glexec dh_installdocs # Make glexec setuid override_dh_fixperms: dh_fixperms chmod 4755 debian/glexec/usr/sbin/glexec override_dh_clean: dh_clean cd $(mkgltempdir) && make clean || true cd glexec-wrapper-scripts && make clean || true rm -f $(mkgltempdir)/README_mkgltempdir