diff options
Diffstat (limited to 'sys-cluster/util-vserver/util-vserver-0.30.211-r1.ebuild')
-rw-r--r-- | sys-cluster/util-vserver/util-vserver-0.30.211-r1.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys-cluster/util-vserver/util-vserver-0.30.211-r1.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.211-r1.ebuild index 1f1a512..10e7e10 100644 --- a/sys-cluster/util-vserver/util-vserver-0.30.211-r1.ebuild +++ b/sys-cluster/util-vserver/util-vserver-0.30.211-r1.ebuild @@ -72,6 +72,15 @@ src_compile() { src_install() { make DESTDIR="${D}" install install-distribution || die "install failed" + # remove non-legacy files + if ! use legacy ; then + rm -r -f "${D}/etc/vservers.conf" + rm -r -f "${D}/usr/lib/util-vserver/legacy" + rm -r -f "${D}/usr/sbin/vserver-copy" + rm -r -f "${D}/usr/share/man/man8/distrib-info.8.gz" + rm -r -f "${D}/usr/share/man/man8/vps.8.gz" + fi + # keep dirs keepdir /var/run/{vservers,vservers.rev,vshelper} keepdir /var/lock/vservers |