summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2021-01-22 20:42:31 +0300
committerMikle Kolyada <zlogene@gentoo.org>2021-01-22 20:42:31 +0300
commit6f8567d4f320824d8b514774d38daa030dbe9e21 (patch)
treed2ac3dd4e4f1534ce7446f69662150f5b533b64b /sys-apps
parentnet-misc/dropbear: install pam files conditionally (diff)
downloadgentoo-6f8567d4f320824d8b514774d38daa030dbe9e21.tar.gz
gentoo-6f8567d4f320824d8b514774d38daa030dbe9e21.tar.bz2
gentoo-6f8567d4f320824d8b514774d38daa030dbe9e21.zip
sys-apps/qingy: 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/qingy/qingy-1.0.0-r5.ebuild (renamed from sys-apps/qingy/qingy-1.0.0-r4.ebuild)7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys-apps/qingy/qingy-1.0.0-r4.ebuild b/sys-apps/qingy/qingy-1.0.0-r5.ebuild
index 2aae7adf571d..0b1c6141e41c 100644
--- a/sys-apps/qingy/qingy-1.0.0-r4.ebuild
+++ b/sys-apps/qingy/qingy-1.0.0-r5.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=6
@@ -101,7 +101,10 @@ src_install() {
use emacs && elisp-site-file-install "${FILESDIR}"/${SITEFILE}
rm "${D}"/etc/pam.d/qingy
- pamd_mimic system-local-login qingy auth account password session
+
+ if use pam; then
+ pamd_mimic system-local-login qingy auth account password session
+ fi
systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
}