[24702] | 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 | endif |
---|
| 7 | |
---|
| 8 | ifneq ($(wildcard /etc/apparmor.d/abstractions/cups-client),) |
---|
| 9 | DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/cups-client.debathena |
---|
| 10 | endif |
---|
| 11 | |
---|
[24712] | 12 | ifneq ($(wildcard /etc/apparmor.d/abstractions/X),) |
---|
[24719] | 13 | DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/X.debathena |
---|
[24712] | 14 | endif |
---|
| 15 | |
---|
[24739] | 16 | ifneq ($(wildcard /etc/apparmor.d/abstractions/nameservice),) |
---|
| 17 | DEB_TRANSFORM_FILES_debathena-apparmor-config += /etc/apparmor.d/abstractions/nameservice.debathena |
---|
| 18 | endif |
---|
| 19 | |
---|
[24714] | 20 | ifneq ($(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 |
---|
| 25 | endif |
---|
| 26 | |
---|
[24702] | 27 | ifneq ($(wildcard /etc/apparmor.d/usr.sbin.cupsd),) |
---|
| 28 | DEB_REMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.cupsd |
---|
| 29 | endif |
---|
| 30 | |
---|
[24741] | 31 | ifneq ($(wildcard /etc/apparmor.d/usr.sbin.ntpd),) |
---|
| 32 | DEB_REMOVE_FILES_debathena-apparmor-config += /etc/apparmor.d/usr.sbin.ntpd |
---|
| 33 | endif |
---|
| 34 | |
---|
[24702] | 35 | include /usr/share/cdbs/1/rules/debhelper.mk |
---|
| 36 | include /usr/share/cdbs/1/rules/config-package.mk |
---|
| 37 | |
---|
| 38 | ifneq ($(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 |
---|
| 46 | endif |
---|
[24714] | 47 | |
---|
[24741] | 48 | ifneq ($(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 |
---|
| 56 | endif |
---|
| 57 | |
---|
[24714] | 58 | ifneq ($(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 |
---|
| 62 | endif |
---|