X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=debian%2Frules;h=63edcc94c7e1bb667bcfff5ca74a86409d1451ad;hb=3f6084cfee0dca0a8fe8d82a85ba07575f884ea4;hp=d829176f8a68a1fe77519a1be3072c87d936aee3;hpb=ebce048d2bb94d717b46f34b02ed1720aaa8aaee;p=pkg%2Ft-prot.git diff --git a/debian/rules b/debian/rules index d829176..63edcc9 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) @@ -14,11 +16,13 @@ INSTALL_DIR = $(INSTALL) -p -d -oroot -groot -m755 clean: $(checkdir) $(checkroot) - -rm -rf $(TMP) debian/files + -rm -rf $(TMP) debian/files build-stamp +build-stamp: build build: # uhm, build for a binary-indep package? Don't try to be funny ;) + touch build-stamp install: build @@ -26,15 +30,17 @@ install: build $(checkroot) -rm -rf $(TMP) $(INSTALL_DIR) $(TMP) - cd $(TMP) && $(INSTALL_DIR) etc usr/bin usr/share/man/man1 \ - usr/share/slrn/macros usr/share/doc/$(PKG)/examples + cd $(TMP) && $(INSTALL_DIR) etc/t-prot/footers etc/t-prot/ads \ + usr/bin usr/share/man/man1 usr/share/slrn/macros \ + usr/share/doc/$(PKG)/examples # 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.t-prot $(TMP)/etc + $(INSTALL_FILE) debian/Muttrc $(TMP)/etc/t-prot + $(INSTALL_FILE) debian/footers/* $(TMP)/etc/t-prot/footers $(INSTALL_FILE) contrib/t-prot.sl $(TMP)/usr/share/slrn/macros patch $(TMP)/usr/share/slrn/macros/t-prot.sl \ contrib/t-prot.sl-slang2.diff @@ -42,19 +48,14 @@ install: build $(INSTALL_FILE) TODO README $(TMP)/usr/share/doc/$(PKG) #$(INSTALL_FILE) contrib/README.patches contrib/t-prot-r*-gol.diff \ - # contrib/t-prot-r*-indentms.diff \ + # \ # $(TMP)/usr/share/doc/$(PKG)/contrib - cp -pR contrib/muttrc.t-prot contrib/filter_innd.pl \ - contrib/README.examples debian/footers debian/README.footers \ + $(INSTALL_FILE) contrib/filter_innd.pl contrib/README.examples \ $(TMP)/usr/share/doc/$(PKG)/examples $(INSTALL_FILE) ChangeLog \ $(TMP)/usr/share/doc/$(PKG)/changelog cd $(TMP)/usr/share && gzip -9 doc/$(PKG)/changelog \ man/man1/t-prot.1 - find $(TMP) -print0 2>/dev/null | xargs -0r \ - chown --no-dereference 0.0 - find $(TMP) ! -type l -print0 2>/dev/null | xargs -0r \ - chmod go=rX,u+rw,a-s binary-indep: build install @@ -62,11 +63,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 @@ -78,11 +79,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