1 | #!/usr/bin/make -f |
---|
2 | |
---|
3 | DEB_DIVERT_EXTENSION = .debathena |
---|
4 | ifneq ($(wildcard /etc/apparmor.d/abstractions/kerberosclient),) |
---|
5 | DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/kerberosclient.debathena |
---|
6 | else |
---|
7 | DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/kerberosclient.debathena |
---|
8 | endif |
---|
9 | |
---|
10 | ifneq ($(wildcard /etc/apparmor.d/abstractions/cups-client),) |
---|
11 | DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/cups-client.debathena |
---|
12 | else |
---|
13 | DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/cups-client.debathena |
---|
14 | endif |
---|
15 | |
---|
16 | ifneq ($(wildcard /etc/apparmor.d/abstractions/X),) |
---|
17 | DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/X.debathena |
---|
18 | else |
---|
19 | DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/X.debathena |
---|
20 | endif |
---|
21 | |
---|
22 | ifneq ($(wildcard /etc/apparmor.d/abstractions/nameservice),) |
---|
23 | DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/nameservice.debathena |
---|
24 | else |
---|
25 | DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/nameservice.debathena |
---|
26 | endif |
---|
27 | |
---|
28 | ifneq ($(wildcard /etc/apparmor.d/tunables/home),) |
---|
29 | ifeq ($(wildcard /etc/apparmor.d/tunables/home.d),) |
---|
30 | # Needed for anything older than Lucid |
---|
31 | # Reverse case handled in postinst |
---|
32 | DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/tunables/home.debathena |
---|
33 | endif |
---|
34 | endif |
---|
35 | |
---|
36 | ifneq ($(wildcard /etc/apparmor.d/usr.sbin.cupsd),) |
---|
37 | DEB_REMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.cupsd |
---|
38 | else |
---|
39 | DEB_UNREMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.cupsd |
---|
40 | endif |
---|
41 | |
---|
42 | ifneq ($(wildcard /etc/apparmor.d/usr.sbin.ntpd),) |
---|
43 | DEB_REMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.ntpd |
---|
44 | else |
---|
45 | DEB_UNREMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.ntpd |
---|
46 | endif |
---|
47 | |
---|
48 | include /usr/share/cdbs/1/rules/debhelper.mk |
---|
49 | include /usr/share/cdbs/1/rules/config-package.mk |
---|
50 | |
---|
51 | ifneq ($(wildcard /etc/apparmor.d/usr.sbin.cupsd),) |
---|
52 | common-build-indep:: debian/usr.sbin.cupsd.debathena |
---|
53 | debian/usr.sbin.cupsd.debathena: $(call debian_check_files,/etc/apparmor.d/usr.sbin.cupsd) |
---|
54 | debian/transform_usr.sbin.cupsd.debathena < $< > $@ |
---|
55 | clean:: |
---|
56 | -rm debian/usr.sbin.cupsd.debathena |
---|
57 | install/debathena-apparmor-config:: |
---|
58 | dh_install debian/usr.sbin.cupsd.debathena etc/apparmor.d |
---|
59 | endif |
---|
60 | |
---|
61 | ifneq ($(wildcard /etc/apparmor.d/usr.sbin.ntpd),) |
---|
62 | common-build-indep:: debian/usr.sbin.ntpd.debathena |
---|
63 | debian/usr.sbin.ntpd.debathena: $(call debian_check_files,/etc/apparmor.d/usr.sbin.ntpd) |
---|
64 | debian/transform_usr.sbin.ntpd.debathena < $< > $@ |
---|
65 | clean:: |
---|
66 | -rm debian/usr.sbin.ntpd.debathena |
---|
67 | install/debathena-apparmor-config:: |
---|
68 | dh_install debian/usr.sbin.ntpd.debathena etc/apparmor.d |
---|
69 | endif |
---|
70 | |
---|
71 | ifneq ($(wildcard /etc/apparmor.d/tunables/home.d),) |
---|
72 | install/debathena-apparmor-config:: |
---|
73 | install -D -m 644 debian/home \ |
---|
74 | $(DEB_DESTDIR)/etc/apparmor.d/tunables/home.d/debathena |
---|
75 | endif |
---|