source: trunk/debathena/config/apparmor-config/debian/rules @ 25877

Revision 25877, 3.0 KB checked in by kaduk, 12 years ago (diff)
fix whitespace
  • Property svn:executable set to *
Line 
1#!/usr/bin/make -f
2
3DEB_DIVERT_EXTENSION = .debathena
4ifneq ($(wildcard /etc/apparmor.d/abstractions/kerberosclient),)
5    DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/kerberosclient.debathena
6else
7    DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/kerberosclient.debathena
8endif
9
10ifneq ($(wildcard /etc/apparmor.d/abstractions/cups-client),)
11    DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/cups-client.debathena
12else
13    DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/cups-client.debathena
14endif
15
16ifneq ($(wildcard /etc/apparmor.d/abstractions/X),)
17    DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/X.debathena
18else
19    DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/X.debathena
20endif
21
22ifneq ($(wildcard /etc/apparmor.d/abstractions/nameservice),)
23    DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/nameservice.debathena
24else
25    DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/nameservice.debathena
26endif
27
28ifneq ($(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
34endif
35
36ifneq ($(wildcard /etc/apparmor.d/usr.sbin.cupsd),)
37    DEB_REMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.cupsd
38else
39    DEB_UNREMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.cupsd
40endif
41
42ifneq ($(wildcard /etc/apparmor.d/usr.sbin.ntpd),)
43    DEB_REMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.ntpd
44else
45    DEB_UNREMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.ntpd
46endif
47
48include /usr/share/cdbs/1/rules/debhelper.mk
49include /usr/share/cdbs/1/rules/config-package.mk
50
51ifneq ($(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
59endif
60
61ifneq ($(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
69endif
70
71ifneq ($(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
75endif
Note: See TracBrowser for help on using the repository browser.