app-emulation/ganeti: support USE=restricted-commands, tweak haskell flags and socat.
authorRobin H. Johnson <robbat2@gentoo.org>
Tue, 12 Jul 2016 00:40:13 +0000 (17:40 -0700)
committerRobin H. Johnson <robbat2@gentoo.org>
Tue, 12 Jul 2016 00:53:40 +0000 (17:53 -0700)
Package-Manager: portage-2.2.28

app-emulation/ganeti/ganeti-2.15.2-r5.ebuild
app-emulation/ganeti/metadata.xml

index e1c3ee4388c480877fe69221b7fb62233f00ed38..a1449740a333224c2d8be114d8ddef3be36e30d4 100644 (file)
@@ -41,7 +41,7 @@ HOMEPAGE="http://www.ganeti.org/"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen"
+IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen restricted-commands"
 
 REQUIRED_USE="|| ( kvm xen lxc )
        test? ( ipv6 )
@@ -159,7 +159,7 @@ DEPEND+="
                >=dev-haskell/quickcheck-2.4.2:2=
                <dev-haskell/quickcheck-2.8.3:2=
                sys-apps/fakeroot
-               net-misc/socat
+               >=net-misc/socat-1.7
                dev-util/shelltestrunner
        )"
 
@@ -251,6 +251,7 @@ src_configure () {
                --with-ssh-initscript=/etc/init.d/sshd \
                --with-export-dir=/var/lib/ganeti-storage/export \
                --with-os-search-path=/usr/share/${PN}/os \
+               $(use_enable restricted-commands) \
                $(use_enable test haskell-tests) \
                $(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \
                $(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \
@@ -259,7 +260,10 @@ src_configure () {
                $(use_enable syslog) \
                $(use_enable monitoring) \
                $(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \
-               $(usex haskell-daemons "--enable-confd=haskell" '' '' '')
+               $(usex haskell-daemons "--enable-confd=haskell" '' '' '') \
+               --with-haskell-flags="-optl -Wl,-z,relro -optl -Wl,--as-needed" \
+               --enable-socat-escape \
+               --enable-socat-compress
 }
 
 src_install () {
index 6fbe4e936c524ccf548e0e8ac1a559e3e0df37e5..2693e91dd293690a549022dcdf903d1bc53fa58b 100644 (file)
@@ -31,6 +31,7 @@
                <flag name="lxc">Enable Linux Countainers support</flag>
                <flag name="multiple-users">Enable support for running VMs as different users</flag>
                <flag name="monitoring">Enable the ganeti monitoring daemon</flag>
+               <flag name="restricted-commands">Enable restricted commands in the node daemon</flag>
                <flag name="rbd">Enable rados block device support via sys-cluster/ceph</flag>
                <flag name="xen">Enable Xen support</flag>
        </use>