File: rules

package info (click to toggle)
afbackup 3.3.8.1beta2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,128 kB
  • ctags: 3,370
  • sloc: ansic: 46,932; sh: 4,654; tcl: 4,199; makefile: 536; csh: 416; perl: 133; sed: 93
file content (50 lines) | stat: -rwxr-xr-x 2,041 bytes parent folder | download
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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_CONFIGURE_EXTRA_FLAGS := --without-prefixext \
	   --with-serverbindir=/usr/sbin \
	   --with-serverconfdir=/etc/afbackup \
	   --with-servervardir=/var/lib/afbackup \
	   --with-serverlogdir=/var/log/afbackup \
	   --with-clientbindir=/usr/sbin \
	   --with-clientconfdir=/etc/afbackup \
	   --with-clientvardir=/var/lib/afbackup \
	   --with-clientlogdir=/var/log/afbackup \
	   --with-rexecdir=/usr/lib/afbackup/rexec \
	   --with-clientconf=client.conf \
	   --with-serverconf=server.conf \
	   --with-servermandir=/usr/share/man \
	   --with-clientmandir=/usr/share/man \
	   --with-commondir=/usr/lib/afbackup \
	   --with-commondatadir=/usr/share/afbackup \
	   --with-commonshlibdir=/usr/share/afbackup \
	   --with-zlib \
	   --with-zlib-include=/usr/include/ \
	   --with-zlib-libdir=/usr/lib/ \
	   --with-des --with-des-ldflag='-lcrypto -lz' \
	   --with-des-include=/usr/include/openssl/

DEB_MAKE_INSTALL_TARGET := install.client install.server \
	   CLIENTBINDIR=`pwd`/debian/afbackup-client/usr/sbin \
	   CLIENTCONFDIR=`pwd`/debian/afbackup-client/etc/afbackup \
	   CLIENTMANDIR=`pwd`/debian/afbackup-client/usr/share/man \
	   CLIENTVARDIR=`pwd`/debian/afbackup-client/var/lib/afbackup \
	   SERVERBINDIR=`pwd`/debian/afbackup/usr/sbin \
	   SERVERCONFDIR=`pwd`/debian/afbackup/etc/afbackup \
	   SERVERMANDIR=`pwd`/debian/afbackup/usr/share/man \
	   SERVERVARDIR=`pwd`/debian/afbackup/var/lib/afbackup \
	   COMMONDIR=`pwd`/debian/afbackup-common/usr/lib/afbackup \
	   COMMONDATADIR=`pwd`/debian/afbackup-common/usr/share/afbackup \
	   COMMONSHLIBDIR=`pwd`/debian/afbackup-common/usr/share/afbackup

DEB_INSTALL_DOCS_ALL :=

# make must be invoked twice because of different CLIENTBINDIR!
install/afbackup-client::
	make install.rexeclinks \
	   CLIENTBINDIR=../../../sbin \
	   SERVERREXECDIR=`pwd`/debian/afbackup-client/usr/lib/afbackup/rexec
	-$(RM) debian/afbackup/var/lib/afbackup/readonly_tapes