|
Lines 59-64
Link Here
|
| 59 |
--with-udevrulesdir="$(get_udevdir)"/rules.d \ |
59 |
--with-udevrulesdir="$(get_udevdir)"/rules.d \ |
| 60 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
60 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
| 61 |
--with-rootlibdir="${EPREFIX}"/$(get_libdir) \ |
61 |
--with-rootlibdir="${EPREFIX}"/$(get_libdir) \ |
|
|
62 |
--with-rootprefix="${EPREFIX}/" \ |
| 63 |
--with-rootlibexecdir="${EPREFIX}"/$(get_libdir)/elogind \ |
| 62 |
--enable-smack \ |
64 |
--enable-smack \ |
| 63 |
--with-cgroup-controller=openrc \ |
65 |
--with-cgroup-controller=openrc \ |
| 64 |
--disable-lto \ |
66 |
--disable-lto \ |
|
Lines 73-85
Link Here
|
| 73 |
find "${D}" -name '*.la' -delete || die |
75 |
find "${D}" -name '*.la' -delete || die |
| 74 |
|
76 |
|
| 75 |
newinitd "${FILESDIR}"/${PN}.init ${PN} |
77 |
newinitd "${FILESDIR}"/${PN}.init ${PN} |
| 76 |
newconfd "${FILESDIR}"/${PN}.conf ${PN} |
78 |
|
|
|
79 |
sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.conf.in > ${PN}.conf || die |
| 80 |
newconfd ${PN}.conf ${PN} |
| 77 |
} |
81 |
} |
| 78 |
|
82 |
|
| 79 |
pkg_postinst() { |
83 |
pkg_postinst() { |
| 80 |
if [ "$(rc-config list boot | grep elogind)" = "" ]; then |
84 |
if [ "$(rc-config list boot | grep elogind)" != "" ]; then |
| 81 |
ewarn "To enable the elogind daemon, elogind must be" |
85 |
ewarn "elogind is currently started from boot runlevel." |
| 82 |
ewarn "added to the boot runlevel:" |
86 |
elif [ "$(rc-config list default | grep elogind)" != "" ]; then |
|
|
87 |
ewarn "elogind is currently started from default runlevel." |
| 88 |
ewarn "Please remove elogind from the default runlevel and" |
| 89 |
ewarn "add it to the boot runlevel by:" |
| 90 |
ewarn "# rc-update del elogind default" |
| 91 |
ewarn "# rc-update add elogind boot" |
| 92 |
else |
| 93 |
ewarn "elogind is currently not started from any runlevel." |
| 94 |
ewarn "You may add it to the boot runlevel by:" |
| 83 |
ewarn "# rc-update add elogind boot" |
95 |
ewarn "# rc-update add elogind boot" |
| 84 |
fi |
96 |
fi |
|
|
97 |
ewarn "Alternatively you can leave elogind out of any" |
| 98 |
ewarn "runlevel. It will then be started automatically" |
| 99 |
if use pam; then |
| 100 |
ewarn "when the first service calls it via dbus, or the" |
| 101 |
ewarn "first user logs into the system." |
| 102 |
else |
| 103 |
ewarn "when the first service calls it via dbus." |
| 104 |
fi |
| 85 |
} |
105 |
} |