chiark / gitweb /
examples/disorder.init.in: Read settings from `/etc/default/disorder'.
[disorder] / debian / rules
CommitLineData
48deaa73 1#! /usr/bin/make -f
48deaa73 2
026a384f
MW
3DH_OPTIONS = --parallel -Bdebian/build
4export LC_ALL = C.UTF-8
64ac73bb 5
026a384f
MW
6###--------------------------------------------------------------------------
7### Configuration.
dabc426a 8
026a384f
MW
9cgiexecdir = /usr/lib/cgi-bin
10httpdir = /var/www
9db4c365 11browser = sensible-browser
48deaa73 12
026a384f
MW
13override_dh_auto_configure:
14 [ -f configure ] || ./autogen.sh
15 dh_auto_configure -- \
16 --libdir="/usr/lib" \
17 --localstatedir="/var/lib" \
18 --with-browser="$(browser)" \
19 cgiexecdir="$(cgiexecdir)" \
20 httpdir="$(httpdir)"
48deaa73 21
026a384f
MW
22###--------------------------------------------------------------------------
23### Building.
48deaa73 24
026a384f
MW
25## We override sendmail to the value defined in policy, in case configure
26## picks up some other sendmail.
27SENDMAIL = /usr/sbin/sendmail
7323d699 28
026a384f
MW
29override-dh_auto_build:
30 dh_auto_build -- \
31 SENDMAIL="$(SENDMAIL)"
48deaa73 32
026a384f
MW
33###--------------------------------------------------------------------------
34### Installation.
410801ac 35
026a384f
MW
36## Arrange for some packages to have /usr/share/doc/PKG be a symlink to
37## `disorder'. The others have proper docs directories, for now.
38DOCLINK_PKGS = disorder-server disobedience
39override_dh_installdocs:
40 dh_installdocs $(addprefix -p, $(DOCLINK_PKGS)) --link-doc=disorder
41 dh_installdocs $(addprefix -N, $(DOCLINK_PKGS))
48deaa73 42
026a384f 43###--------------------------------------------------------------------------
05fd0aa1
MW
44### Set up the proper dependencies for `disorder-gstreamer'.
45
46override_dh_gencontrol:
47 dh_gencontrol -- -Tdebian/build/debian/substvars.auto
48
49###--------------------------------------------------------------------------
026a384f 50### And just let Debhelper do the rest of the work.
e2daf70b 51
026a384f 52%:; dh $@ $(DH_OPTIONS)