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

Revision 25877, 3.0 KB checked in by kaduk, 11 years ago (diff)
fix whitespace
  • Property svn:executable set to *
RevLine 
[24702]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
[25875]6else
7    DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/kerberosclient.debathena
[24702]8endif
9
10ifneq ($(wildcard /etc/apparmor.d/abstractions/cups-client),)
11    DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/cups-client.debathena
[25875]12else
13    DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/cups-client.debathena
[24702]14endif
15
[24712]16ifneq ($(wildcard /etc/apparmor.d/abstractions/X),)
[24719]17    DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/X.debathena
[25875]18else
19    DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/X.debathena
[24712]20endif
21
[24739]22ifneq ($(wildcard /etc/apparmor.d/abstractions/nameservice),)
23    DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/nameservice.debathena
[25875]24else
25    DEB_UNDIVERT_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/nameservice.debathena
[24739]26endif
27
[24714]28ifneq ($(wildcard /etc/apparmor.d/tunables/home),)
29    ifeq ($(wildcard /etc/apparmor.d/tunables/home.d),)
30        # Needed for anything older than Lucid
[25877]31        # Reverse case handled in postinst
[24719]32        DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/tunables/home.debathena
[24714]33    endif
34endif
35
[24702]36ifneq ($(wildcard /etc/apparmor.d/usr.sbin.cupsd),)
37    DEB_REMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.cupsd
[25875]38else
39    DEB_UNREMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.cupsd
[24702]40endif
41
[24741]42ifneq ($(wildcard /etc/apparmor.d/usr.sbin.ntpd),)
43    DEB_REMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.ntpd
[25875]44else
45    DEB_UNREMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.ntpd
[24741]46endif
47
[24702]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
[24714]60
[24741]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
[24714]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.