diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2021-01-23 14:30:43 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2021-01-23 14:31:13 +0300 |
commit | c32ff3fd3d55c96086f38245f365f94eb135da7e (patch) | |
tree | 8ceb8c2dd633046923d81c32c464a9b722e87be8 /sys-apps | |
parent | dev-util/shards: bump up to 0.13.0 (diff) | |
download | gentoo-c32ff3fd3d55c96086f38245f365f94eb135da7e.tar.gz gentoo-c32ff3fd3d55c96086f38245f365f94eb135da7e.tar.bz2 gentoo-c32ff3fd3d55c96086f38245f365f94eb135da7e.zip |
sys-apps/openrc: install pam files conditionally
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/openrc/openrc-0.42.1-r1.ebuild (renamed from sys-apps/openrc/openrc-0.42.1.ebuild) | 10 | ||||
-rw-r--r-- | sys-apps/openrc/openrc-9999.ebuild | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/sys-apps/openrc/openrc-0.42.1.ebuild b/sys-apps/openrc/openrc-0.42.1-r1.ebuild index a10ce3384c69..141359685084 100644 --- a/sys-apps/openrc/openrc-0.42.1.ebuild +++ b/sys-apps/openrc/openrc-0.42.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -135,9 +135,11 @@ src_install() { insinto /etc/logrotate.d newins "${FILESDIR}"/openrc.logrotate openrc - # install gentoo pam.d files - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon - newpamd "${FILESDIR}"/start-stop-daemon.pam supervise-daemon + if use pam; then + # install gentoo pam.d files + newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon + newpamd "${FILESDIR}"/start-stop-daemon.pam supervise-daemon + fi # install documentation dodoc ChangeLog *.md diff --git a/sys-apps/openrc/openrc-9999.ebuild b/sys-apps/openrc/openrc-9999.ebuild index c159c6cdce2d..da6d7d50ca18 100644 --- a/sys-apps/openrc/openrc-9999.ebuild +++ b/sys-apps/openrc/openrc-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -125,9 +125,11 @@ src_install() { insinto /etc/logrotate.d newins "${FILESDIR}"/openrc.logrotate openrc - # install gentoo pam.d files - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon - newpamd "${FILESDIR}"/start-stop-daemon.pam supervise-daemon + if use pam; then + # install gentoo pam.d files + newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon + newpamd "${FILESDIR}"/start-stop-daemon.pam supervise-daemon + fi # install documentation dodoc ChangeLog *.md |