Lines 29-38
src_prepare() {
Link Here
|
29 |
epatch "${FILESDIR}"/${P}-shutdown-h.patch #449354 |
29 |
epatch "${FILESDIR}"/${P}-shutdown-h.patch #449354 |
30 |
sed -i '/^CPPFLAGS =$/d' src/Makefile || die |
30 |
sed -i '/^CPPFLAGS =$/d' src/Makefile || die |
31 |
|
31 |
|
32 |
# mesg/mountpoint/sulogin/utmpdump/wall have moved to util-linux |
32 |
# last/lastb/mesg/mountpoint/sulogin/utmpdump/wall have moved to util-linux |
33 |
sed -i -r \ |
33 |
sed -i -r \ |
34 |
-e '/^(USR)?S?BIN/s:\<(mesg|mountpoint|sulogin|utmpdump|wall)\>::g' \ |
34 |
-e '/^(USR)?S?BIN/s:\<(last|lastb|mesg|mountpoint|sulogin|utmpdump|wall)\>::g' \ |
35 |
-e '/^MAN[18]/s:\<(mesg|mountpoint|sulogin|utmpdump|wall)[.][18]\>::g' \ |
35 |
-e '/^MAN[18]/s:\<(last|lastb|mesg|mountpoint|sulogin|utmpdump|wall)[.][18]\>::g' \ |
36 |
src/Makefile || die |
36 |
src/Makefile || die |
37 |
|
37 |
|
38 |
# Mung inittab for specific architectures |
38 |
# Mung inittab for specific architectures |
Lines 85-90
src_install() {
Link Here
|
85 |
insinto /etc |
85 |
insinto /etc |
86 |
doins "${WORKDIR}"/inittab |
86 |
doins "${WORKDIR}"/inittab |
87 |
|
87 |
|
|
|
88 |
# dead symlink |
89 |
rm -f "${D}"/usr/bin/lastb |
90 |
|
88 |
doinitd "${FILESDIR}"/{reboot,shutdown}.sh |
91 |
doinitd "${FILESDIR}"/{reboot,shutdown}.sh |
89 |
} |
92 |
} |
90 |
|
93 |
|
Lines 97-101
pkg_postinst() {
Link Here
|
97 |
/sbin/telinit U &>/dev/null |
100 |
/sbin/telinit U &>/dev/null |
98 |
fi |
101 |
fi |
99 |
|
102 |
|
100 |
elog "The mesg/mountpoint/sulogin/utmpdump/wall tools have been moved to sys-apps/util-linux." |
103 |
elog "The last/lastb/mesg/mountpoint/sulogin/utmpdump/wall tools have been moved to" |
|
|
104 |
elog "sys-apps/util-linux." |
101 |
} |
105 |
} |