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

Revision 24741, 2.3 KB checked in by broder, 14 years ago (diff)
In apparmor-config: * Pseudo-transform /etc/apparmor.d/usr.sbin.ntpd to allow reading /etc/ntp.conf.debathena. (Trac: #611)
  • 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
6endif
7
8ifneq ($(wildcard /etc/apparmor.d/abstractions/cups-client),)
9    DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/cups-client.debathena
10endif
11
[24712]12ifneq ($(wildcard /etc/apparmor.d/abstractions/X),)
[24719]13    DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/X.debathena
[24712]14endif
15
[24739]16ifneq ($(wildcard /etc/apparmor.d/abstractions/nameservice),)
17    DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/nameservice.debathena
18endif
19
[24714]20ifneq ($(wildcard /etc/apparmor.d/tunables/home),)
21    ifeq ($(wildcard /etc/apparmor.d/tunables/home.d),)
22        # Needed for anything older than Lucid
[24719]23        DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/tunables/home.debathena
[24714]24    endif
25endif
26
[24702]27ifneq ($(wildcard /etc/apparmor.d/usr.sbin.cupsd),)
28    DEB_REMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.cupsd
29endif
30
[24741]31ifneq ($(wildcard /etc/apparmor.d/usr.sbin.ntpd),)
32    DEB_REMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.ntpd
33endif
34
[24702]35include /usr/share/cdbs/1/rules/debhelper.mk
36include /usr/share/cdbs/1/rules/config-package.mk
37
38ifneq ($(wildcard /etc/apparmor.d/usr.sbin.cupsd),)
39    common-build-indep:: debian/usr.sbin.cupsd.debathena
40    debian/usr.sbin.cupsd.debathena: $(call debian_check_files,/etc/apparmor.d/usr.sbin.cupsd)
41        debian/transform_usr.sbin.cupsd.debathena < $< > $@
42    clean::
43        -rm debian/usr.sbin.cupsd.debathena
44    install/debathena-apparmor-config::
45        dh_install debian/usr.sbin.cupsd.debathena etc/apparmor.d
46endif
[24714]47
[24741]48ifneq ($(wildcard /etc/apparmor.d/usr.sbin.ntpd),)
49    common-build-indep:: debian/usr.sbin.ntpd.debathena
50    debian/usr.sbin.ntpd.debathena: $(call debian_check_files,/etc/apparmor.d/usr.sbin.ntpd)
51        debian/transform_usr.sbin.ntpd.debathena < $< > $@
52    clean::
53        -rm debian/usr.sbin.ntpd.debathena
54    install/debathena-apparmor-config::
55        dh_install debian/usr.sbin.ntpd.debathena etc/apparmor.d
56endif
57
[24714]58ifneq ($(wildcard /etc/apparmor.d/tunables/home.d),)
59    install/debathena-apparmor-config::
60        install -D -m 644 debian/home \
61            $(DEB_DESTDIR)/etc/apparmor.d/tunables/home.d/debathena
62endif
Note: See TracBrowser for help on using the repository browser.