mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2026-03-28 19:05:50 +00:00
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
38 lines
1.7 KiB
Makefile
38 lines
1.7 KiB
Makefile
EXTRA_DIST = \
|
|
abstractions/container-base \
|
|
abstractions/start-container \
|
|
profiles/lxc-default \
|
|
profiles/lxc-default-with-mounting \
|
|
profiles/lxc-default-with-nesting \
|
|
lxc-containers \
|
|
usr.bin.lxc-start
|
|
|
|
if ENABLE_APPARMOR
|
|
install-apparmor:
|
|
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/apparmor.d/
|
|
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/
|
|
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/
|
|
$(INSTALL_DATA) abstractions/container-base $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/
|
|
$(INSTALL_DATA) abstractions/start-container $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/
|
|
$(INSTALL_DATA) profiles/lxc-default $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/
|
|
$(INSTALL_DATA) profiles/lxc-default-with-mounting $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/
|
|
$(INSTALL_DATA) profiles/lxc-default-with-nesting $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/
|
|
$(INSTALL_DATA) lxc-containers $(DESTDIR)$(sysconfdir)/apparmor.d/
|
|
$(INSTALL_DATA) usr.bin.lxc-start $(DESTDIR)$(sysconfdir)/apparmor.d/
|
|
|
|
uninstall-apparmor:
|
|
rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/usr.bin.lxc-start
|
|
rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/lxc-containers
|
|
rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/lxc-default-with-nesting
|
|
rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/lxc-default-with-mounting
|
|
rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/lxc-default
|
|
rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/start-container
|
|
rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/container-base
|
|
rmdir $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/ || :
|
|
rmdir $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/ || :
|
|
rmdir $(DESTDIR)$(sysconfdir)/apparmor.d/ || :
|
|
|
|
install-data-local: install-apparmor
|
|
uninstall-local: uninstall-apparmor
|
|
endif
|