diff options
author | Joonas Niilola <juippis@gentoo.org> | 2024-04-05 16:21:29 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-04-05 16:24:17 +0300 |
commit | 1e1b278d4fd7e09720ef65bb83d16c91d032f7c5 (patch) | |
tree | 02664a9b4db1fca2c8458bbd645b686a5e552131 /app-containers/lxc | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 6.8.4 (diff) | |
download | gentoo-1e1b278d4fd7e09720ef65bb83d16c91d032f7c5.tar.gz gentoo-1e1b278d4fd7e09720ef65bb83d16c91d032f7c5.tar.bz2 gentoo-1e1b278d4fd7e09720ef65bb83d16c91d032f7c5.zip |
app-containers/lxc: flip -Dinstall-init-files from false to true
- it installs more files, under /etc/default, /usr/libexec, etc, that
may be important to some users.
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-containers/lxc')
-rw-r--r-- | app-containers/lxc/lxc-6.0.0-r1.ebuild (renamed from app-containers/lxc/lxc-6.0.0.ebuild) | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app-containers/lxc/lxc-6.0.0.ebuild b/app-containers/lxc/lxc-6.0.0-r1.ebuild index 7452b2ec74ca..64d7aef60e47 100644 --- a/app-containers/lxc/lxc-6.0.0.ebuild +++ b/app-containers/lxc/lxc-6.0.0-r1.ebuild @@ -74,7 +74,6 @@ pkg_setup() { src_configure() { - # -Dinstall-init-files=false: prefer our own files from ${FILESDIR} # -Dtools-multicall=false: will create a single binary called 'lxc' that conflicts with LXD. local emesonargs=( --localstatedir "${EPREFIX}/var" @@ -82,13 +81,13 @@ src_configure() { -Ddbus=true -Dcoverity-build=false - -Dinstall-init-files=false -Dinstall-state-dirs=false -Doss-fuzz=false -Dspecfile=false -Dtools-multicall=false -Dcommands=true + -Dinstall-init-files=true -Dmemfd-rexec=true -Dthread-safety=true @@ -139,6 +138,13 @@ src_install() { find "${ED}" -name '*.la' -delete -o -name '*.a' -delete || die + # Replace upstream sysvinit/systemd files. + if use systemd; then + rm -r "${D}$(systemd_get_systemunitdir)" || die "Failed to remove systemd lib dir" + else + rm "${ED}"/etc/init.d/lxc-{containers,net} || die "Failed to remove sysvinit scripts" + fi + newinitd "${FILESDIR}/${PN}.initd.9" ${PN} systemd_newunit "${FILESDIR}"/lxc-monitord.service.5.0.0 lxc-monitord.service systemd_newunit "${FILESDIR}"/lxc-net.service.5.0.0 lxc-net.service |