~ubuntu-branches/ubuntu/quantal/lxc/quantal-201206191543

« back to all changes in this revision

Viewing changes to debian/rules

Merge apparmor profile changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
override_dh_auto_clean:
13
13
        dh_auto_clean
14
14
 
15
 
        for _FILE in debian/*.install.in debian/*.apparmor.in; \
 
15
        for _FILE in debian/*.install.in; \
16
16
        do \
17
17
                rm -f debian/$$(basename $${_FILE} .in); \
18
18
                sed -e 's|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g' \
19
19
                $${_FILE} > debian/$$(basename $${_FILE} .in); \
20
20
        done
21
21
 
 
22
        for _FILE in debian/apparmor/*.in; \
 
23
        do \
 
24
                rm -f debian/apparmor/$$(basename $${_FILE} .in); \
 
25
                sed -e 's|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g' \
 
26
                $${_FILE} > debian/apparmor/$$(basename $${_FILE} .in); \
 
27
        done
 
28
 
22
29
override_dh_auto_configure:
23
30
        dh_auto_configure -- --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)/lxc --libexecdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --with-rootfs-path=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)/lxc --enable-doc
24
31
 
56
63
override_dh_install:
57
64
        # copy apparmor profiles
58
65
        mkdir -p debian/lxc/etc/apparmor.d/lxc
59
 
        cp debian/lxc.apparmor debian/lxc/etc/apparmor.d/usr.bin.lxc-start
60
 
        cp debian/lxc-containers.apparmor debian/lxc/etc/apparmor.d/lxc-containers
61
 
        cp debian/lxc-default.apparmor debian/lxc/etc/apparmor.d/lxc/lxc-default
62
 
        cp debian/lxc-default-with-nesting.apparmor debian/lxc/etc/apparmor.d/lxc/lxc-default-with-nesting
 
66
        mkdir -p debian/lxc/etc/apparmor.d/abstractions
 
67
        cp debian/apparmor/usr.bin.lxc-start debian/lxc/etc/apparmor.d/usr.bin.lxc-start
 
68
        cp debian/apparmor/lxc-containers debian/lxc/etc/apparmor.d/lxc-containers
 
69
        cp debian/apparmor/lxc-default debian/lxc/etc/apparmor.d/lxc/lxc-default
 
70
        cp debian/apparmor/lxc-default-with-nesting debian/lxc/etc/apparmor.d/lxc/lxc-default-with-nesting
 
71
        cp debian/apparmor/abstractions-lxc-container-default debian/lxc/etc/apparmor.d/abstractions/lxc-container-default
 
72
        cp debian/apparmor/abstractions-lxc-start-container debian/lxc/etc/apparmor.d/abstractions/lxc-start-container
63
73
        if [ -x /usr/bin/dh_apparmor ]; then \
64
74
                dh_apparmor --profile-name=usr.bin.lxc-start; \
65
75
        fi