#!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command=/usr/sbin/pynslcd
multilib_src_install_all() {
local script
- newinitd "${FILESDIR}"/nslcd-init-r3 nslcd
- s6_install_service nslcd "${FILESDIR}"/nslcd-run-s6
+ newinitd "${FILESDIR}"/nslcd.init nslcd
+ s6_install_service nslcd "${FILESDIR}"/nslcd.s6
insinto /usr/share/nss-pam-ldapd
doins "${WORKDIR}/${P}/nslcd.conf"
python_foreach_impl python_domodule pynslcd/*.py
python_scriptinto /usr/sbin
python_newscript pynslcd.py pynslcd
- newinitd "${FILESDIR}"/pynslcd.initd-r2 pynslcd
+ newinitd "${FILESDIR}"/pynslcd.init pynslcd
fi
systemd_newtmpfilesd "${FILESDIR}"/nslcd-tmpfiles.conf nslcd.conf
- systemd_newunit "${FILESDIR}"/nslcd-2.service nslcd.service
+ systemd_newunit "${FILESDIR}"/nslcd.service nslcd.service
}
multilib_src_install() {