1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
#!/usr/bin/make -f
# Made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
.PHONY: build clean binary-indep binary-arch binary cvs-build checkpo help
build: build-stamp
build-stamp:
dh_testdir
/usr/bin/docbook-to-man docs/logcheck.sgml > \
docs/logcheck.8
make check
touch build-stamp
clean:
dh_testdir
dh_testroot
-rm -f build-stamp install-stamp
-rm -f docs/logcheck.8
-$(MAKE) clean DESTDIR=$(CURDIR)/debian/tmp
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
touch install-stamp
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs
dh_movefiles
dh_install debian/header.txt usr/share/logcheck
dh_installcron
dh_installman -p logtail docs/logtail.8
dh_installman -p logcheck docs/logcheck.8
dh_installchangelogs
dh_installdebconf
# dh_strip
dh_compress
dh_fixperms --exclude etc/logcheck
dh_installdeb
# dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.
binary: binary-indep binary-arch
help:
@echo
@echo 'Cleaning targets:'
@echo ' clean - remove generated files'
@echo ' cvs-clean - remove cvs checkout'
@echo
@echo 'Logcheck packaging:'
@echo ' cvs-build - checkout current logcheck cvs'
@echo ' binary - build debian package'
@echo
@echo 'Analysing:'
@echo ' checkpo - prints translation status'
@echo
@echo 'Execute debian/rules file'
# check the debconf translations
checkpo:
for i in debian/po/*.po; do \
echo \"Checking: $$i\"; \
msgmerge -U $$i debian/po/templates.pot; \
msgfmt -o /dev/null -c --statistics $$i; \
done
# Done by the uploader:
# cvs update..
# edit debian/changelog
# debian/rules cvs-build
#
#LOGCHECK_DEBVER=$(shell dpkg-parsechangelog | sed -n -e '/^Version:/s/^Version: //p')
#LOGCHECK_CVSTAG=$(shell echo "$(LOGCHECK_DEBVER)" | sed -e 's/^/v/' -e 's/\./_/g')
LOGCHECK_DEBVER=$(shell head -n 1 debian/changelog | perl -lne 'print m,\(([\w.]+)\),')
LOGCHECK_CVSTAG=HEAD
CVS_BUILDDIR=logcheck-$(LOGCHECK_DEBVER)
CVS_ROOT=$(shell cat CVS/Root)
CVS_MODULE=$(shell cat CVS/Repository)
cvs-build:
rm -rf debian/cvs-build
mkdir -p debian/cvs-build
(cd debian/cvs-build;cvs -d $(CVS_ROOT) export -r $(LOGCHECK_CVSTAG) -d $(CVS_BUILDDIR) $(CVS_MODULE))
cvs-clean:
-rm -rf debian/cvs-build
|