Skip to content

Commit

Permalink
net-print/cups: Also apply non-systemd bugfix to live ebuild
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Wegener <[email protected]>
  • Loading branch information
swegener committed Jan 12, 2016
1 parent b00b91d commit 6e4a9c5
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions net-print/cups/cups-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -285,18 +285,20 @@ multilib_src_install_all() {
fi

# Rename systemd service files to gentoo's own names:
mv "${ED}"/"$(systemd_get_systemunitdir)"/org.cups.cupsd.path \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.path || die
mv "${ED}"/"$(systemd_get_systemunitdir)"/org.cups.cupsd.service \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.service || die
mv "${ED}"/"$(systemd_get_systemunitdir)"/org.cups.cupsd.socket \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.socket || die
mv "${ED}"/"$(systemd_get_systemunitdir)"/[email protected] \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.path || die
mv "${ED}"/"$(systemd_get_systemunitdir)"/org.cups.cups-lpd.socket \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.path || die
sed -i -e 's/org\.cups\.cupsd/cups/g' \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.service || die
if use systemd ; then
mv "${ED}"/"$(systemd_get_systemunitdir)"/org.cups.cupsd.path \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.path || die
mv "${ED}"/"$(systemd_get_systemunitdir)"/org.cups.cupsd.service \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.service || die
mv "${ED}"/"$(systemd_get_systemunitdir)"/org.cups.cupsd.socket \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.socket || die
mv "${ED}"/"$(systemd_get_systemunitdir)"/[email protected] \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.path || die
mv "${ED}"/"$(systemd_get_systemunitdir)"/org.cups.cups-lpd.socket \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.path || die
sed -i -e 's/org\.cups\.cupsd/cups/g' \
"${ED}"/"$(systemd_get_systemunitdir)"/cups.service || die
fi

keepdir /usr/libexec/cups/driver /usr/share/cups/{model,profiles} \
/var/log/cups /var/spool/cups/tmp
Expand Down

0 comments on commit 6e4a9c5

Please sign in to comment.