X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=debian%2Frules;h=25d659313cfe31cfe25d895d73578c5bfd1e9c23;hb=d4e206670862778bc0fdbf9b9c14c569db59265e;hp=e43c585786cd1185a5fa3865c4cf3b03d1ef2284;hpb=5f9d2a076943cbc4c76ce60348235e329d4e2abe;p=pkg%2Ft-prot.git diff --git a/debian/rules b/debian/rules index e43c585..25d6593 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f # debian/rules for t-prot package +# Copyright 2002-2009 by Gerfried Fuchs +# Licenced BSD style PKG = t-prot TMP = $(CURDIR)/debian/$(PKG) @@ -11,14 +13,18 @@ INSTALL_SCRIPT = $(INSTALL) -p -oroot -groot -m755 INSTALL_DIR = $(INSTALL) -p -d -oroot -groot -m755 -clean: +include /usr/share/quilt/quilt.make + +clean: unpatch $(checkdir) $(checkroot) - -rm -rf $(TMP) debian/files + -rm -rf $(TMP) debian/files build-stamp -build: +build-stamp: build +build: patch # uhm, build for a binary-indep package? Don't try to be funny ;) + touch build-stamp install: build @@ -32,7 +38,7 @@ install: build # usr/share/doc/$(PKG)/contrib $(INSTALL_SCRIPT) t-prot $(TMP)/usr/bin patch $(TMP)/usr/bin/t-prot \ - contrib/t-prot-r*-mutt157.diff + contrib/t-prot-r*-mutt15*.diff -rm -f $(TMP)/usr/bin/t-prot.orig $(INSTALL_FILE) t-prot.1 $(TMP)/usr/share/man/man1 $(INSTALL_FILE) debian/Muttrc $(TMP)/etc/t-prot @@ -59,11 +65,11 @@ binary-indep: build install $(checkroot) $(INSTALL_DIR) $(TMP)/DEBIAN $(INSTALL_FILE) debian/copyright debian/README.Debian \ - debian/NEWS.Debian $(TMP)/usr/share/doc/$(PKG) + $(TMP)/usr/share/doc/$(PKG) $(INSTALL_FILE) debian/changelog \ $(TMP)/usr/share/doc/$(PKG)/changelog.Debian cd $(TMP)/usr/share/doc/$(PKG) && gzip -9 \ - changelog.Debian NEWS.Debian + changelog.Debian $(INSTALL_SCRIPT) debian/postinst debian/postrm debian/config \ $(TMP)/DEBIAN po2debconf debian/templates > $(TMP)/DEBIAN/templates @@ -75,11 +81,11 @@ binary-indep: build install dpkg --build $(TMP) .. -binary-arch: build install +binary-arch: # We have nothing to do here. -binary: binary-indep binary-arch +binary: binary-indep define checkdir