fix(sys-apps/systemd-sysv-utils): Change install location, not target.

Change the install location based on symlink-usr instead of the target
and use absolute symlinks. We need to move towards never installing to
/{bin,sbin,lib...} and the use of absolute links avoids needlessly
breaking if the symlink-usr flag and the current state of /bin don't
agree (i.e. between flipping the flag and migrating the current files).
This commit is contained in:
Michael Marineau 2013-11-26 14:07:50 -08:00 committed by Jeremiah Orem
parent 0a2ba8b82f
commit d88abf0853

View File

@ -21,17 +21,15 @@ RDEPEND="!sys-apps/sysvinit
S=${WORKDIR}/${MY_P}/man S=${WORKDIR}/${MY_P}/man
src_install() { src_install() {
local sym_prefix local prefix=""
if use symlink-usr ; then if use symlink-usr ; then
sym_prefix=".." prefix="/usr"
else
sym_prefix="../usr"
fi fi
for app in halt poweroff reboot runlevel shutdown telinit; do for app in halt poweroff reboot runlevel shutdown telinit; do
doman ${app}.8 doman ${app}.8
dosym ${sym_prefix}/bin/systemctl /sbin/${app} dosym /usr/bin/systemctl ${prefix}/sbin/${app}
done done
newman init.1 init.8 newman init.1 init.8
dosym ${sym_prefix}/lib/systemd/systemd /sbin/init dosym /usr/lib/systemd/systemd ${prefix}/sbin/init
} }