X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=debian%2Frules;h=a262827fc4d6f26b947fe2a5a7c53a248d9511e1;hb=refs%2Fheads%2Fdebian;hp=a7a06e88708cec5c9eed4af3b3deb30412f2d314;hpb=75bbbf162043766dc82eb66ddff1fa90b69302a1;p=pkg%2Fblosxom.git diff --git a/debian/rules b/debian/rules index a7a06e8..a262827 100755 --- a/debian/rules +++ b/debian/rules @@ -1,93 +1,14 @@ #!/usr/bin/make -f -# debian/rules for the blosxom package -# copyright 2007-2008 by Gerfried Fuchs -# Licenced in the same way as blosxom itself +#DH_VERBOSE = 1 -PKG = blosxom -TMP = $(CURDIR)/debian/$(PKG) +%: + dh $@ -INSTALL = install -INSTALL_FILE = $(INSTALL) -p -oroot -groot -m644 -INSTALL_PROGRAM = $(INSTALL) -p -oroot -groot -m755 -INSTALL_SCRIPT = $(INSTALL) -p -oroot -groot -m755 -INSTALL_DIR = $(INSTALL) -p -d -oroot -groot -m755 +override_dh_auto_build: + # no, nothing to build here - - -clean: - $(checkdir) - $(checkroot) - -rm -rf $(TMP) debian/files - - -build: - # uhm, build for a binary-indep package? Don't try to be funny ;) - - -install: - $(checkdir) - $(checkroot) - -rm -rf $(TMP) - - $(INSTALL_DIR) $(TMP) - cd $(TMP) && $(INSTALL_DIR) usr/lib/cgi-bin \ - var/lib/blosxom/data/flavours \ - etc/blosxom/plugins etc/blosxom/plugins-available \ - var/lib/blosxom/state var/lib/blosxom/static \ - usr/share/doc/$(PKG) usr/share/man/man7 - - $(INSTALL_SCRIPT) blosxom.cgi $(TMP)/usr/lib/cgi-bin/$(PKG) - $(INSTALL_FILE) debian/blosxom.conf $(TMP)/etc/blosxom - $(INSTALL_FILE) debian/blosxom.7 $(TMP)/usr/share/man/man7 - $(INSTALL_FILE) debian/README $(TMP)/usr/share/doc/$(PKG) - $(INSTALL_FILE) ChangeLog $(TMP)/usr/share/doc/$(PKG)/changelog - - $(INSTALL_FILE) debian/plugins/* $(TMP)/etc/blosxom/plugins - $(INSTALL_FILE) debian/plugins-available/* \ - $(TMP)/etc/blosxom/plugins-available - - cd $(TMP)/usr/share && gzip -9n doc/$(PKG)/changelog \ - man/man7/blosxom.7 - - chown www-data:www-data $(TMP)/var/lib/blosxom/state - chown www-data:www-data $(TMP)/var/lib/blosxom/static - - -binary-indep: install - $(checkdir) - $(checkroot) - - $(INSTALL_DIR) $(TMP)/DEBIAN - - $(INSTALL_FILE) debian/copyright debian/README.Debian \ - debian/NEWS.Debian $(TMP)/usr/share/doc/$(PKG) - $(INSTALL_FILE) debian/changelog \ - $(TMP)/usr/share/doc/$(PKG)/changelog.Debian - cd $(TMP)/usr/share/doc/$(PKG) && gzip -9n changelog.Debian NEWS.Debian - - $(INSTALL_SCRIPT) debian/preinst debian/postrm $(TMP)/DEBIAN - - find $(TMP)/etc -type f | sed -e 's#$(TMP)##' > $(TMP)/DEBIAN/conffiles - - dpkg-gencontrol -ldebian/changelog -isp -p$(PKG) -P$(TMP) - cd $(TMP) && find * -type f ! -regex '^DEBIAN/.*' -print0 | \ - xargs -r0 md5sum > DEBIAN/md5sums - dpkg --build $(TMP) .. - - -binary-arch: - # We have nothing to do here. - - -binary: binary-indep binary-arch - - -define checkdir - test -f debian/rules -endef - -define checkroot - test root = "`whoami`" -endef - -.PHONY: clean build install binary binary-arch binary-indep +override_dh_installdirs: + dh_installdirs + chown www-data:www-data debian/blosxom/var/lib/blosxom/state + chown www-data:www-data debian/blosxom/var/lib/blosxom/static + cp blosxom.cgi debian/blosxom/usr/lib/cgi-bin/blosxom