File: rules

package info (click to toggle)
myproxy 6.2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,200 kB
  • sloc: ansic: 24,753; sh: 11,507; perl: 3,673; makefile: 274
file content (91 lines) | stat: -rwxr-xr-x 2,497 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
87
88
89
90
91
#!/usr/bin/make -f
# -*- makefile -*-

name = myproxy

INSTALLDIR = debian/tmp

_docdir = /usr/share/doc/$(name)

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	LDFLAGS="$(LDFLAGS) -Wl,--as-needed -Wl,-z,defs" \
	dh_auto_configure -- \
	   --disable-static \
	   --includedir=/usr/include/globus \
	   --with-voms=/usr \
	   --with-openldap=/usr \
	   --with-kerberos5=/usr \
	   --with-sasl2=/usr

override_dh_auto_test:
	dh_auto_test -- VERBOSE=1

override_dh_auto_install:
	dh_auto_install

	# Remove libtool archives (.la files)
	rm $(INSTALLDIR)/usr/lib/*/*.la

	# No need for myproxy-server-setup since the debian package will
	# perform the needed setup
	rm $(INSTALLDIR)/usr/sbin/myproxy-server-setup

	# Move documentation to default debian location
	mkdir -p $(INSTALLDIR)$(_docdir)/extras
	for FILE in login.html myproxy-accepted-credentials-mapapp \
	  myproxy-cert-checker myproxy-certificate-mapapp \
	  myproxy-certreq-checker myproxy-crl.cron myproxy.cron \
	  myproxy-get-delegation.cgi myproxy-get-trustroots.cron \
	  myproxy-passphrase-policy myproxy-revoke ; do \
	  mv $(INSTALLDIR)/usr/share/$(name)/$$FILE \
	     $(INSTALLDIR)$(_docdir)/extras ; \
	done

	for FILE in PROTOCOL README.sasl REPOSITORY VERSION ; do \
	  mv $(INSTALLDIR)/usr/share/$(name)/$$FILE \
	    $(INSTALLDIR)$(_docdir) ; \
	done

	# Remove irrelevant example configuration files
	for FILE in etc.inetd.conf.modifications etc.init.d.myproxy.nonroot \
	  etc.services.modifications etc.xinetd.myproxy \
	  etc.init.d.myproxy LICENSE* ; do \
	  rm $(INSTALLDIR)/usr/share/$(name)/$$FILE ; \
	done

	# Move example configuration file into place
	mkdir -p $(INSTALLDIR)/etc
	mv $(INSTALLDIR)/usr/share/$(name)/myproxy-server.config \
	   $(INSTALLDIR)/etc

	mkdir -p $(INSTALLDIR)/var/lib/$(name)
	chmod 700 $(INSTALLDIR)/var/lib/$(name)

	# Create a directory to hold myproxy owned host certificates
	mkdir -p $(INSTALLDIR)/etc/grid-security/$(name)

	# systemd unit files
	mv $(INSTALLDIR)/usr/share/$(name)/myproxy-server.service debian
	mv $(INSTALLDIR)/usr/share/$(name)/myproxy-server.conf \
	   debian/myproxy-server.tmpfile

override_dh_systemd_enable:
	dh_systemd_enable --no-enable

override_dh_installinit:
	dh_installinit --no-enable

override_dh_missing:
	dh_missing --fail-missing

override_dh_strip:
	dh_strip --dbgsym-migration='lib$(name)-dbg (<< 6.1.28-2~), $(name)-dbg (<< 6.1.28-2~)'

override_dh_fixperms:
	dh_fixperms -X /var/lib/$(name)