Merge pull request #1475 from flatcar-linux/krnowak/tmpfiles

Port packages using tmpfiles from systemd eclass to tmpfiles eclass
This commit is contained in:
Krzesimir Nowak 2021-12-17 09:59:24 +01:00 committed by GitHub
commit 0dc4993d4b
25 changed files with 70 additions and 49 deletions

View File

@ -3,7 +3,8 @@
EAPI=6 EAPI=6
inherit systemd TMPFILES_OPTIONAL=1
inherit systemd tmpfiles
DESCRIPTION="etcd (System Application Container)" DESCRIPTION="etcd (System Application Container)"
HOMEPAGE="https://github.com/etcd-io/etcd" HOMEPAGE="https://github.com/etcd-io/etcd"
@ -31,5 +32,5 @@ src_install() {
sed "s|@ETCD_IMAGE_TAG@|${tag}|g" \ sed "s|@ETCD_IMAGE_TAG@|${tag}|g" \
"${FILESDIR}"/etcd-member.service > ${T}/etcd-member.service "${FILESDIR}"/etcd-member.service > ${T}/etcd-member.service
systemd_dounit ${T}/etcd-member.service systemd_dounit ${T}/etcd-member.service
systemd_dotmpfilesd "${FILESDIR}"/etcd-wrapper.conf dotmpfiles "${FILESDIR}"/etcd-wrapper.conf
} }

View File

@ -8,7 +8,8 @@
EAPI=7 EAPI=7
inherit autotools linux-info readme.gentoo-r1 systemd udev TMPFILES_OPTIONAL=1
inherit autotools linux-info readme.gentoo-r1 systemd tmpfiles udev
DESCRIPTION="An open-source TCG Software Stack (TSS) v1.1 implementation" DESCRIPTION="An open-source TCG Software Stack (TSS) v1.1 implementation"
HOMEPAGE="http://trousers.sf.net" HOMEPAGE="http://trousers.sf.net"
@ -65,8 +66,9 @@ src_install() {
keepdir /var/lib/tpm keepdir /var/lib/tpm
use doc && dodoc doc/* use doc && dodoc doc/*
# Flatcar: # Flatcar: Comment out the openrc stuff.
# (removed newinitd and newconfd) # newinitd "${FILESDIR}"/tcsd.initd tcsd
# newconfd "${FILESDIR}"/tcsd.confd tcsd
fowners root:tss /etc/tcsd.conf fowners root:tss /etc/tcsd.conf
systemd_dounit "${FILESDIR}"/tcsd.service systemd_dounit "${FILESDIR}"/tcsd.service
@ -85,5 +87,5 @@ src_install() {
doins "${D}"/etc/tcsd.conf doins "${D}"/etc/tcsd.conf
fowners tss:tss /usr/share/trousers/system.data fowners tss:tss /usr/share/trousers/system.data
fowners root:tss /usr/share/trousers/tcsd.conf fowners root:tss /usr/share/trousers/tcsd.conf
systemd_dotmpfilesd "${FILESDIR}"/tmpfiles.d/trousers.conf dotmpfiles "${FILESDIR}"/tmpfiles.d/trousers.conf
} }

View File

@ -3,7 +3,8 @@
EAPI=7 EAPI=7
PYTHON_COMPAT=( python3_{6..10} ) PYTHON_COMPAT=( python3_{6..10} )
inherit python-any-r1 systemd TMPFILES_OPTIONAL=1
inherit python-any-r1 systemd tmpfiles
RTM_NAME="NSS_${PV//./_}_RTM" RTM_NAME="NSS_${PV//./_}_RTM"
MY_PN="nss" MY_PN="nss"
@ -88,7 +89,7 @@ src_install() {
systemd_dounit "${FILESDIR}/update-ca-certificates.service" systemd_dounit "${FILESDIR}/update-ca-certificates.service"
systemd_enable_service sysinit.target clean-ca-certificates.service systemd_enable_service sysinit.target clean-ca-certificates.service
systemd_enable_service sysinit.target update-ca-certificates.service systemd_enable_service sysinit.target update-ca-certificates.service
systemd_dotmpfilesd ${PN}.conf dotmpfiles ${PN}.conf
# Setup initial links in /etc # Setup initial links in /etc
dodir /etc/ssl/certs dodir /etc/ssl/certs

View File

@ -12,7 +12,8 @@ else
KEYWORDS="amd64 arm64" KEYWORDS="amd64 arm64"
fi fi
inherit autotools flag-o-matic toolchain-funcs cros-workon systemd TMPFILES_OPTIONAL=1
inherit autotools flag-o-matic toolchain-funcs cros-workon systemd tmpfiles
DESCRIPTION="CoreOS OS Update Engine" DESCRIPTION="CoreOS OS Update Engine"
HOMEPAGE="https://github.com/coreos/update_engine" HOMEPAGE="https://github.com/coreos/update_engine"
@ -105,5 +106,5 @@ src_install() {
doins com.coreos.update1.conf doins com.coreos.update1.conf
# Install rule to remove old UpdateEngine.conf from /etc # Install rule to remove old UpdateEngine.conf from /etc
systemd_dotmpfilesd "${FILESDIR}"/update-engine.conf dotmpfiles "${FILESDIR}"/update-engine.conf
} }

View File

@ -3,7 +3,8 @@
EAPI=7 EAPI=7
inherit eutils flag-o-matic multilib multilib-minimal autotools pam java-pkg-opt-2 db-use systemd TMPFILES_OPTIONAL=1
inherit eutils flag-o-matic multilib multilib-minimal autotools pam java-pkg-opt-2 db-use systemd tmpfiles
SASLAUTHD_CONF_VER="2.1.26" SASLAUTHD_CONF_VER="2.1.26"
@ -226,7 +227,7 @@ multilib_src_install_all() {
newinitd "${FILESDIR}/saslauthd2.rc7" saslauthd newinitd "${FILESDIR}/saslauthd2.rc7" saslauthd
newconfd "${FILESDIR}/saslauthd-${SASLAUTHD_CONF_VER}.conf" saslauthd newconfd "${FILESDIR}/saslauthd-${SASLAUTHD_CONF_VER}.conf" saslauthd
systemd_dounit "${FILESDIR}/saslauthd.service" systemd_dounit "${FILESDIR}/saslauthd.service"
systemd_dotmpfilesd "${FILESDIR}/${PN}.conf" dotmpfiles "${FILESDIR}/${PN}.conf"
# The get_modname bit is important: do not remove the .la files on # The get_modname bit is important: do not remove the .la files on
# platforms where the lib isn't called .so for cyrus searches the .la to # platforms where the lib isn't called .so for cyrus searches the .la to

View File

@ -3,7 +3,8 @@
EAPI="7" EAPI="7"
inherit flag-o-matic linux-info toolchain-funcs multilib-minimal systemd TMPFILES_OPTIONAL=1
inherit flag-o-matic linux-info toolchain-funcs multilib-minimal systemd tmpfiles
MY_P=${P/_/-} MY_P=${P/_/-}
@ -286,7 +287,7 @@ multilib_src_install_all() {
dodir /usr/share/ssl dodir /usr/share/ssl
insinto /usr/share/ssl insinto /usr/share/ssl
doins "${S}"/apps/openssl.cnf doins "${S}"/apps/openssl.cnf
systemd_dotmpfilesd "${FILESDIR}"/openssl.conf dotmpfiles "${FILESDIR}"/openssl.conf
# flatcar changes: package `tmpfiles.d` setup for SDK bootstrapping. # flatcar changes: package `tmpfiles.d` setup for SDK bootstrapping.
systemd-tmpfiles --create --root="${ED}" "${FILESDIR}"/openssl.conf systemd-tmpfiles --create --root="${ED}" "${FILESDIR}"/openssl.conf

View File

@ -3,7 +3,8 @@
EAPI=6 EAPI=6
inherit autotools flag-o-matic multilib systemd TMPFILES_OPTIONAL=1
inherit autotools flag-o-matic multilib systemd tmpfiles
DESCRIPTION="NFS client and server daemons" DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/" HOMEPAGE="http://linux-nfs.org/"
@ -127,7 +128,7 @@ src_install() {
doins id_resolver.conf doins id_resolver.conf
fi fi
systemd_dotmpfilesd "${FILESDIR}"/nfs-utils.conf dotmpfiles "${FILESDIR}"/nfs-utils.conf
# Provide an empty xtab for compatibility with the old tmpfiles config. # Provide an empty xtab for compatibility with the old tmpfiles config.
touch "${ED%/}"/usr/$(get_libdir)/nfs/xtab touch "${ED%/}"/usr/$(get_libdir)/nfs/xtab

View File

@ -5,7 +5,8 @@ EAPI=7
PYTHON_COMPAT=( python3_{6..10} ) PYTHON_COMPAT=( python3_{6..10} )
PYTHON_REQ_USE='threads(+),xml(+)' PYTHON_REQ_USE='threads(+),xml(+)'
inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam TMPFILES_OPTIONAL=1
inherit python-single-r1 waf-utils multilib-minimal linux-info systemd pam tmpfiles
MY_PV="${PV/_rc/rc}" MY_PV="${PV/_rc/rc}"
MY_P="${PN}-${MY_PV}" MY_P="${PN}-${MY_PV}"
@ -284,7 +285,7 @@ multilib_src_install() {
newinitd "${CONFDIR}/samba4.initd-r1" samba newinitd "${CONFDIR}/samba4.initd-r1" samba
newconfd "${CONFDIR}/samba4.confd" samba newconfd "${CONFDIR}/samba4.confd" samba
[[ ! use_minimal ]] && systemd_dotmpfilesd "${FILESDIR}"/samba.conf [[ ! use_minimal ]] && dotmpfiles "${FILESDIR}"/samba.conf
use addc || rm "${D}/$(systemd_get_systemunitdir)/samba.service" || die use addc || rm "${D}/$(systemd_get_systemunitdir)/samba.service" || die
# Preserve functionality for old gentoo-specific unit names # Preserve functionality for old gentoo-specific unit names

View File

@ -3,7 +3,8 @@
EAPI=7 EAPI=7
inherit autotools toolchain-funcs flag-o-matic systemd TMPFILES_OPTIONAL=1
inherit autotools toolchain-funcs flag-o-matic systemd tmpfiles
MY_P=${P/_p/p} MY_P=${P/_p/p}
DESCRIPTION="Network Time Protocol suite/programs" DESCRIPTION="Network Time Protocol suite/programs"
@ -99,7 +100,7 @@ src_install() {
insinto /usr/share/ntp insinto /usr/share/ntp
doins "${FILESDIR}"/ntp.conf doins "${FILESDIR}"/ntp.conf
use ipv6 || sed -i '/^restrict .*::1/d' "${ED%/}"/usr/share/ntp/ntp.conf #524726 use ipv6 || sed -i '/^restrict .*::1/d' "${ED%/}"/usr/share/ntp/ntp.conf #524726
systemd_newtmpfilesd "${FILESDIR}"/ntp.tmpfiles ntp.conf newtmpfiles "${FILESDIR}"/ntp.tmpfiles ntp.conf
keepdir /var/lib/ntp keepdir /var/lib/ntp
use prefix || fowners ntp:ntp /var/lib/ntp use prefix || fowners ntp:ntp /var/lib/ntp

View File

@ -92,7 +92,7 @@ sys-apps/debianutils *
=sys-fs/quota-4.04-r1 ~arm64 =sys-fs/quota-4.04-r1 ~arm64
=sys-libs/efivar-31 ~arm64 =sys-libs/efivar-31 ~arm64
=sys-libs/libselinux-3.1-r2 ~arm64 =sys-libs/libselinux-3.1-r2 ~arm64
=sys-libs/libsemanage-3.1-r2 ~arm64 =sys-libs/libsemanage-3.1-r1 ~arm64
=sys-libs/libsepol-3.1 ~arm64 =sys-libs/libsepol-3.1 ~arm64
=sys-power/iasl-20161222 ~arm64 =sys-power/iasl-20161222 ~arm64
=sys-process/tini-0.18.0 ~arm64 =sys-process/tini-0.18.0 ~arm64

View File

@ -4,7 +4,8 @@
EAPI="7" EAPI="7"
# flatcar changes # flatcar changes
inherit systemd TMPFILES_OPTIONAL=1
inherit systemd tmpfiles
if [[ ${PV} == 9999* ]]; then if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="${SELINUX_GIT_REPO:-https://anongit.gentoo.org/git/proj/hardened-refpolicy.git}" EGIT_REPO_URI="${SELINUX_GIT_REPO:-https://anongit.gentoo.org/git/proj/hardened-refpolicy.git}"
@ -164,7 +165,7 @@ src_install() {
done done
# flatcar changes # flatcar changes
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/selinux-base.conf" dotmpfiles "${FILESDIR}/tmpfiles.d/selinux-base.conf"
systemd-tmpfiles --root="${D}" --create selinux-base.conf systemd-tmpfiles --root="${D}" --create selinux-base.conf
docinto / docinto /

View File

@ -13,7 +13,8 @@ else
KEYWORDS="amd64 arm arm64 x86" KEYWORDS="amd64 arm arm64 x86"
fi fi
inherit cros-workon multilib systemd TMPFILES_OPTIONAL=1
inherit cros-workon multilib systemd tmpfiles
DESCRIPTION="Filesystem baselayout for CoreOS" DESCRIPTION="Filesystem baselayout for CoreOS"
HOMEPAGE="http://www.coreos.com/" HOMEPAGE="http://www.coreos.com/"
@ -131,7 +132,7 @@ src_install() {
fi fi
if use symlink-usr; then if use symlink-usr; then
systemd_dotmpfilesd "${T}/baselayout-usr.conf" dotmpfiles "${T}/baselayout-usr.conf"
systemd-tmpfiles --root="${D}" --create systemd-tmpfiles --root="${D}" --create
fi fi

View File

@ -3,7 +3,8 @@
EAPI=7 EAPI=7
inherit toolchain-funcs linux-info multilib-minimal usr-ldscript systemd TMPFILES_OPTIONAL=1
inherit toolchain-funcs linux-info multilib-minimal usr-ldscript systemd tmpfiles
DESCRIPTION="Linux Key Management Utilities" DESCRIPTION="Linux Key Management Utilities"
HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git" HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git"
@ -112,7 +113,7 @@ multilib_src_test() {
} }
multilib_src_install() { multilib_src_install() {
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/keyutils.conf" dotmpfiles "${FILESDIR}/tmpfiles.d/keyutils.conf"
# Possibly undo the setting for USE=static (see src_compile). # Possibly undo the setting for USE=static (see src_compile).
export NO_ARLIB=$(usex static-libs 0 1) export NO_ARLIB=$(usex static-libs 0 1)

View File

@ -3,7 +3,8 @@
EAPI=7 EAPI=7
inherit autotools libtool pam systemd TMPFILES_OPTIONAL=1
inherit autotools libtool pam systemd tmpfiles
DESCRIPTION="Utilities to deal with user accounts" DESCRIPTION="Utilities to deal with user accounts"
HOMEPAGE="https://github.com/shadow-maint/shadow" HOMEPAGE="https://github.com/shadow-maint/shadow"
@ -118,8 +119,8 @@ src_install() {
# CoreOS: break shadow.conf into two files so that we only have to apply # CoreOS: break shadow.conf into two files so that we only have to apply
# etc-shadow.conf in the initrd. # etc-shadow.conf in the initrd.
systemd_dotmpfilesd "${FILESDIR}"/tmpfiles.d/etc-shadow.conf dotmpfiles "${FILESDIR}"/tmpfiles.d/etc-shadow.conf
systemd_dotmpfilesd "${FILESDIR}"/tmpfiles.d/var-shadow.conf dotmpfiles "${FILESDIR}"/tmpfiles.d/var-shadow.conf
# Package the symlinks for the SDK and containers. # Package the symlinks for the SDK and containers.
systemd-tmpfiles --create --root="${ED}" "${FILESDIR}"/tmpfiles.d/* systemd-tmpfiles --create --root="${ED}" "${FILESDIR}"/tmpfiles.d/*

View File

@ -21,7 +21,8 @@ else
fi fi
# Flatcar: We don't use gen_usr_ldscript so dropping usr-ldscript # Flatcar: We don't use gen_usr_ldscript so dropping usr-ldscript
inherit bash-completion-r1 linux-info meson-multilib pam python-any-r1 systemd toolchain-funcs udev user TMPFILES_OPTIONAL=1
inherit bash-completion-r1 linux-info meson-multilib pam python-any-r1 systemd toolchain-funcs udev user tmpfiles
DESCRIPTION="System and service manager for Linux" DESCRIPTION="System and service manager for Linux"
HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd" HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd"
@ -409,7 +410,7 @@ multilib_src_install_all() {
# directories. # directories.
# #
# Flatcar: TODO: Consider using that instead of # Flatcar: TODO: Consider using that instead of
# systemd_dotmpfilesd "${FILESDIR}"/systemd-flatcar.conf below. # dotmpfiles "${FILESDIR}"/systemd-flatcar.conf below.
if use hwdb; then if use hwdb; then
rm -r "${ED}${rootprefix}"/lib/udev/hwdb.d || die rm -r "${ED}${rootprefix}"/lib/udev/hwdb.d || die
@ -436,11 +437,11 @@ multilib_src_install_all() {
# #
# Flatcar: TODO: Upstream probably fixed it in different way - # Flatcar: TODO: Upstream probably fixed it in different way -
# it's using some keepdir commands. # it's using some keepdir commands.
systemd_dotmpfilesd "${FILESDIR}"/systemd-flatcar.conf dotmpfiles "${FILESDIR}"/systemd-flatcar.conf
# Flatcar: Add tmpfiles rule for resolv.conf. This path has # Flatcar: Add tmpfiles rule for resolv.conf. This path has
# changed after v213 so it must be handled here instead of # changed after v213 so it must be handled here instead of
# baselayout now. # baselayout now.
systemd_dotmpfilesd "${FILESDIR}"/systemd-resolv.conf dotmpfiles "${FILESDIR}"/systemd-resolv.conf
# Flatcar: Don't default to graphical.target. # Flatcar: Don't default to graphical.target.
local unitdir=$(builddir_systemd_get_systemunitdir) local unitdir=$(builddir_systemd_get_systemunitdir)

View File

@ -3,7 +3,8 @@
EAPI=7 EAPI=7
inherit autotools pam pax-utils systemd xdg-utils TMPFILES_OPTIONAL=1
inherit autotools pam pax-utils systemd xdg-utils tmpfiles
DESCRIPTION="Policy framework for controlling privileges for system-wide services" DESCRIPTION="Policy framework for controlling privileges for system-wide services"
HOMEPAGE="https://www.freedesktop.org/wiki/Software/polkit https://gitlab.freedesktop.org/polkit/polkit" HOMEPAGE="https://www.freedesktop.org/wiki/Software/polkit https://gitlab.freedesktop.org/polkit/polkit"
@ -127,7 +128,7 @@ src_install() {
rmdir "${D}"/etc/polkit-1/rules.d "${D}"/etc/polkit-1 || die rmdir "${D}"/etc/polkit-1/rules.d "${D}"/etc/polkit-1 || die
rmdir "${D}"/etc/pam.d || die rmdir "${D}"/etc/pam.d || die
systemd_dotmpfilesd "${FILESDIR}/polkit.conf" dotmpfiles "${FILESDIR}/polkit.conf"
if use examples; then if use examples; then
docinto examples docinto examples

View File

@ -3,7 +3,8 @@
EAPI=7 EAPI=7
inherit autotools systemd TMPFILES_OPTIONAL=1
inherit autotools systemd tmpfiles
DESCRIPTION="DBus service for configuring kerberos and other online identities" DESCRIPTION="DBus service for configuring kerberos and other online identities"
HOMEPAGE="http://cgit.freedesktop.org/realmd/realmd/" HOMEPAGE="http://cgit.freedesktop.org/realmd/realmd/"
@ -47,6 +48,6 @@ src_configure() {
} }
src_install() { src_install() {
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/${PN}.conf" dotmpfiles "${FILESDIR}/tmpfiles.d/${PN}.conf"
default default
} }

View File

@ -10,7 +10,8 @@ EAPI=7
PYTHON_COMPAT=( python3_{6..10} ) PYTHON_COMPAT=( python3_{6..10} )
inherit autotools flag-o-matic linux-info multilib-minimal python-single-r1 pam systemd toolchain-funcs TMPFILES_OPTIONAL=1
inherit autotools flag-o-matic linux-info multilib-minimal python-single-r1 pam systemd toolchain-funcs tmpfiles
DESCRIPTION="System Security Services Daemon provides access to identity and authentication" DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
HOMEPAGE="https://github.com/SSSD/sssd" HOMEPAGE="https://github.com/SSSD/sssd"
@ -283,7 +284,7 @@ multilib_src_install_all() {
# Flatcar: delete, remove /var files taken care of by tmpfiles # Flatcar: delete, remove /var files taken care of by tmpfiles
# Flatcar: add tmpfile directive and remove /etc/rc.d # Flatcar: add tmpfile directive and remove /etc/rc.d
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/sssd.conf" dotmpfiles "${FILESDIR}/tmpfiles.d/sssd.conf"
rm -rf "${D}/etc/rc.d" rm -rf "${D}/etc/rc.d"
# strip empty dirs # strip empty dirs
if ! use doc ; then if ! use doc ; then

View File

@ -3,7 +3,8 @@
EAPI=7 EAPI=7
inherit autotools linux-info flag-o-matic toolchain-funcs udev systemd TMPFILES_OPTIONAL=1
inherit autotools linux-info flag-o-matic toolchain-funcs udev systemd tmpfiles
DESCRIPTION="A performant, transport independent, multi-platform implementation of RFC3720" DESCRIPTION="A performant, transport independent, multi-platform implementation of RFC3720"
HOMEPAGE="http://www.open-iscsi.com/" HOMEPAGE="http://www.open-iscsi.com/"
@ -103,7 +104,7 @@ src_install() {
systemd_dounit etc/systemd/${unit} systemd_dounit etc/systemd/${unit}
done done
systemd_dounit "${FILESDIR}"/iscsi-init.service systemd_dounit "${FILESDIR}"/iscsi-init.service
systemd_dotmpfilesd "${FILESDIR}"/open-iscsi.conf dotmpfiles "${FILESDIR}"/open-iscsi.conf
fperms 600 /etc/iscsi/iscsid.conf fperms 600 /etc/iscsi/iscsid.conf
rm "${D}"/etc/iscsi/initiatorname.iscsi rm "${D}"/etc/iscsi/initiatorname.iscsi

View File

@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{6..10} )
TMPFILES_OPTIONAL=1 TMPFILES_OPTIONAL=1
inherit python-any-r1 prefix preserve-libs toolchain-funcs flag-o-matic gnuconfig \ inherit python-any-r1 prefix preserve-libs toolchain-funcs flag-o-matic gnuconfig \
multilib systemd multiprocessing multilib systemd multiprocessing tmpfiles
DESCRIPTION="GNU libc C library" DESCRIPTION="GNU libc C library"
HOMEPAGE="https://www.gnu.org/software/libc/" HOMEPAGE="https://www.gnu.org/software/libc/"
@ -1392,7 +1392,7 @@ glibc_do_src_install() {
sed -i "${nscd_args[@]}" "${ED}"/etc/init.d/nscd sed -i "${nscd_args[@]}" "${ED}"/etc/init.d/nscd
use systemd && systemd_dounit nscd/nscd.service use systemd && systemd_dounit nscd/nscd.service
systemd_newtmpfilesd nscd/nscd.tmpfiles nscd.conf newtmpfiles nscd/nscd.tmpfiles nscd.conf
fi fi
echo 'LDPATH="include ld.so.conf.d/*.conf"' > "${T}"/00glibc echo 'LDPATH="include ld.so.conf.d/*.conf"' > "${T}"/00glibc
@ -1421,7 +1421,7 @@ glibc_do_src_install() {
insinto /usr/share/baselayout insinto /usr/share/baselayout
if ! in_iuse nscd || use nscd ; then if ! in_iuse nscd || use nscd ; then
doins "${S}"/nscd/nscd.conf || die doins "${S}"/nscd/nscd.conf || die
systemd_newtmpfilesd "${FILESDIR}"/nscd-conf.tmpfiles nscd-conf.conf || die newtmpfiles "${FILESDIR}"/nscd-conf.tmpfiles nscd-conf.conf || die
fi fi
# Clean out any default configs. # Clean out any default configs.

View File

@ -5,7 +5,8 @@ EAPI=7
PYTHON_COMPAT=( python3_{6..10} ) PYTHON_COMPAT=( python3_{6..10} )
# flatcar changes # flatcar changes
inherit python-r1 toolchain-funcs multilib-minimal systemd TMPFILES_OPTIONAL=1
inherit python-r1 toolchain-funcs multilib-minimal tmpfiles
MY_P="${P//_/-}" MY_P="${P//_/-}"
MY_RELEASEDATE="20200710" MY_RELEASEDATE="20200710"
@ -122,7 +123,7 @@ multilib_src_install() {
fi fi
# flatcar changes # flatcar changes
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/libsemanage.conf" dotmpfiles "${FILESDIR}/tmpfiles.d/libsemanage.conf"
} }
multiib_src_install_all() { multiib_src_install_all() {

View File

@ -6,7 +6,8 @@ EAPI=7
# Flatcar: Support python 3.6. # Flatcar: Support python 3.6.
PYTHON_COMPAT=( python3_{6..10} ) PYTHON_COMPAT=( python3_{6..10} )
inherit autotools multilib-minimal toolchain-funcs python-r1 linux-info systemd usr-ldscript TMPFILES_OPTIONAL=1
inherit autotools multilib-minimal toolchain-funcs python-r1 linux-info systemd usr-ldscript tmpfiles
DESCRIPTION="Userspace utilities for storing and processing auditing records" DESCRIPTION="Userspace utilities for storing and processing auditing records"
HOMEPAGE="https://people.redhat.com/sgrubb/audit/" HOMEPAGE="https://people.redhat.com/sgrubb/audit/"
@ -169,7 +170,7 @@ multilib_src_install_all() {
lockdown_perms "${ED}" lockdown_perms "${ED}"
# Flatcar: Our systemd stuff. # Flatcar: Our systemd stuff.
systemd_newtmpfilesd "${FILESDIR}"/audit-rules.tmpfiles audit-rules.conf newtmpfiles "${FILESDIR}"/audit-rules.tmpfiles audit-rules.conf
systemd_dounit "${FILESDIR}"/audit-rules.service systemd_dounit "${FILESDIR}"/audit-rules.service
systemd_enable_service multi-user.target audit-rules.service systemd_enable_service multi-user.target audit-rules.service
} }