[Pkg-libvirt-commits] [libvirt] 01/03: Only linux has apparmor

Guido Guenther agx at moszumanska.debian.org
Sat May 10 14:30:40 UTC 2014


This is an automated email from the git hooks/post-receive script.

agx pushed a commit to annotated tag debian/1.2.4-2
in repository libvirt.

commit 8bcbf97d4ff307d1b1ca915c09bc5a3586c7fce4
Author: Guido Günther <agx at sigxcpu.org>
Date:   Sat May 10 10:55:40 2014 +0200

    Only linux has apparmor
    
    Closes: #747565
---
 debian/libvirt-bin.install | 1 -
 debian/rules               | 4 ++++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/libvirt-bin.install b/debian/libvirt-bin.install
index 8bdee9d..7b7e9ee 100644
--- a/debian/libvirt-bin.install
+++ b/debian/libvirt-bin.install
@@ -6,7 +6,6 @@ etc/apparmor.d
 usr/share/polkit-1
 usr/lib/libvirt/libvirt*
 usr/lib/libvirt/connection-driver
-usr/lib/libvirt/virt-aa-helper
 usr/share/augeas/*
 usr/share/libvirt/*
 usr/share/man/man8/*
diff --git a/debian/rules b/debian/rules
index c72051a..d62d674 100755
--- a/debian/rules
+++ b/debian/rules
@@ -122,6 +122,10 @@ override_dh_auto_configure:
 
 override_dh_auto_install:
 	dh_auto_install
+ifneq (,$(findstring $(DEB_HOST_ARCH_OS), linux))
+	# Only linux has app-armor
+	dh_install -p libvirt-bin usr/lib/libvirt/virt-aa-helper
+endif
 	# Add empty dirs so dh_install doesn't fail on kFreebsd until we have
 	# Polkit/Systemd/systemtap/apparmor support
 	mkdir -p debian/tmp/usr/share/polkit-1 \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git



More information about the Pkg-libvirt-commits mailing list