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 113 114 115 116
|
#!/usr/bin/make -f
# based on Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# see debian policy 5.2
#
# $Id: rules,v 1.19 2002/02/17 21:45:36 flacoste Exp $
#
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=1
configure: configure-stamp
configure-stamp:
dh_testdir
PATHTOPERL=/usr/bin/perl \
PATHTOLOGGER=/usr/bin/logger \
HASJADE=yes \
PATHTOJADE=/usr/bin/jade \
HASPDFJADETEX=yes \
PATHTOPDFJADETEX=/usr/bin/pdfjadetex \
DBK_XML_DTD=/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd \
PATHTODBKDSSSLPRINT=/usr/share/sgml/docbook/stylesheet/dsssl/modular/print/docbook.dsl \
PATHTODBKXSLHTML=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl \
PATHTODBKXSLXHTML=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/xhtml/chunk.xsl \
PATHTODBKXSLFO=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/fo/docbook.xsl \
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--with-spooldir=/var/spool/lire \
--with-archivedir=\$${HOME}/data \
--with-sgmldir=/usr/share/sgml \
--with-perl5libdir=/usr/share/perl5
touch configure-stamp
build: configure-stamp build-stamp
build-stamp:
dh_testdir
# # command to compile the package.
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# # commands to clean up after the build process.
-$(MAKE) distclean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# # we have to manually add the LR_PERL5LIBDIR and LR_SPOOLDIR
# # paths, since they are not standard autotools variables.
# # beware! use 'tmp', not 'lire': we're on potato...
$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr \
sysconfdir=$(CURDIR)/debian/tmp/etc \
libexecdir=$(CURDIR)/debian/tmp/usr/lib \
LR_PERL5LIBDIR=$(CURDIR)/debian/tmp/usr/share/perl5 \
LR_SPOOLDIR=$(CURDIR)/debian/tmp/var/spool/lire
# Build architecture-independent files
binary-indep: build install
# nothing to do
# Build architecture-dependent files
binary-arch: build install
dh_testdir
dh_testroot
# this should take care of purging from /var/cache/debconf in postrm
dh_installdebconf
dh_installdocs
dh_installexamples
# dh_installlogrotate
# FIXME: create a /usr/sbin/lire, to start lr_spoold
# dh_installinit
#
#
# FIXME: write a nice lr_maintenance script, and
# add /etc/cron.d/lire to debian/conffiles
# dh_installcron
#
#
# manpages are installed by dh_installdirs / make install, no need to call
# dh_installmanpages
dh_installinfo
dh_installchangelogs ChangeLog
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
# expand ${perl:Depends} in debian/control, see Debian Perl Policy, 3.4.3.
dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
|