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
|
#!/usr/bin/make -f
# GNU Copyright @ 2001 - 2003 Lars Bahner
# GNU copyright 1997 to 1999 by Joey Hess.
export DH_COMPAT=3
export PACKAGE=pyca
include /usr/share/dpatch/dpatch.make
configure:
dh_testdir
build: configure patch
clean: unpatch
dh_testdir
dh_testroot
rm -f httpd_error_log ca-certreq-mail.out
dh_clean
install: build
dh_testdir
dh_testroot
dh_installdirs
touch httpd_error_log
touch ca-certreq-mail.out
cp -r bin/* debian/pyca/usr/bin
cp -r sbin/* debian/pyca/usr/sbin
cp -r cgi-bin/* debian/pyca/usr/lib/cgi-bin/pyca
cp -r conf/* debian/pyca/etc/pyca
cp -r pylib/* debian/pyca/usr/share/pyca/pylib
install -o root -g www-data -m 620 httpd_error_log debian/pyca/var/log/pyca/httpd_error_log
install -o root -g nogroup -m 620 ca-certreq-mail.out debian/pyca/var/log/pyca/ca-certreq-mail.out
install -o root -g root -m 644 debian/pyca.logrotate debian/pyca/etc/logrotate.d/pyca
chmod 644 debian/pyca/usr/lib/cgi-bin/pyca/pycacnf.py
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs htdocs debian/crontab.sample
cat debian/index.html > debian/pyca/usr/share/doc/pyca/htdocs/index.html
dh_installman debian/*.1 debian/*.8
dh_installchangelogs
binary-arch: build install
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
|