File: rules

package info (click to toggle)
amanda 1:3.5.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 30,724 kB
  • sloc: ansic: 265,630; perl: 114,269; xml: 16,058; sh: 8,667; makefile: 2,795; awk: 502; lex: 407; yacc: 347; javascript: 135; tcl: 118; sql: 19; sed: 16; php: 2
file content (86 lines) | stat: -rwxr-xr-x 2,593 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
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
#!/usr/bin/make -f
# Copyright 1998-2011 by Bdale Garbee.  License GPL v2
#           2016-2017 by Jose M Calhariz. License GPL v2

export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

com=$(CURDIR)/debian/amanda-common
ser=$(CURDIR)/debian/amanda-server
cli=$(CURDIR)/debian/amanda-client

triplet := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

confflags = --prefix=/usr \
		--bindir=/usr/sbin \
		--libexecdir=/usr/lib/amanda \
		--without-amlibexecdir \
		--without-amperldir \
		--sysconfdir=/etc \
		--sharedstatedir=/var/lib \
		--localstatedir=/var/lib \
		--with-user=backup \
		--with-group=backup  \
		--with-tcpportrange=50000,50100 \
		--with-udpportrange=840,860 \
		--with-debugging=/var/log/amanda \
		--with-gnutar-listdir=/var/lib/amanda/gnutar-lists \
		--with-amandates=/var/lib/amanda/amandates \
		--with-index-server=localhost \
		--with-bsd-security \
		--with-smbclient=/usr/bin/smbclient \
		--with-amandahosts \
		--with-ssh-security \
		--with-bsdtcp-security \
		--with-bsdudp-security \
		--without-ipv6 \
		--enable-s3-device

%:
	dh $@ --with autoreconf --parallel

override_dh_auto_configure:
	LIBS="-lssl" dh_auto_configure -- $(confflags)

override_dh_install:
	sed -i "/dependency_libs/ s/'.*'/''/" `find debian/tmp -name '*.la'`
	dh_install --list-missing
	cp example/xinetd.amandaserver $(com)/etc/xinetd.d/amanda
	# Temporary fix for #939411.
	cat debian/amanda-security.conf > $(cli)/etc/amanda-security.conf

override_dh_fixperms:
	dh_fixperms
	chown -R backup:backup debian/*/var/lib/*
	chmod -R u=rwX,g=rwX,o-rwx debian/*/var/lib/*
	chown -R backup:backup $(ser)/etc/amanda
	chmod -R u=rwX,g=rwX,o-rwx $(ser)/etc/amanda
	chown -R backup:backup $(cli)/var/lib/amanda/gnutar-lists
	chmod -R u=rwX,g=rwX,o-rwx $(cli)/var/lib/amanda/gnutar-lists
	chgrp backup \
		$(cli)/usr/lib/amanda/application/amgtar \
		$(cli)/usr/lib/amanda/application/amstar \
		$(cli)/usr/lib/amanda/calcsize \
		$(cli)/usr/lib/amanda/killpgrp \
		$(cli)/usr/lib/amanda/rundump \
		$(cli)/usr/lib/amanda/runtar \
		$(com)/usr/lib/amanda/ambind \
		$(ser)/usr/lib/amanda/dumper \
		$(ser)/usr/lib/amanda/planner \
		$(ser)/usr/sbin/amcheck
	chmod u=srwx,g=rx,o=r \
		$(cli)/usr/lib/amanda/application/amgtar \
		$(cli)/usr/lib/amanda/application/amstar \
		$(cli)/usr/lib/amanda/calcsize \
		$(cli)/usr/lib/amanda/killpgrp \
		$(cli)/usr/lib/amanda/rundump \
		$(cli)/usr/lib/amanda/runtar
	chmod u==srwx,g=rx,o= \
		$(com)/usr/lib/amanda/ambind

override_dh_makeshlibs:
	dh_makeshlibs --noscripts

override_dh_perl:
	dh_perl /usr/lib/$(triplet)/amanda/perl