Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 454324 Details for
Bug 599474
sys-auth/elogind: Kernel check, more permissions and an init script are needed
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
elogind-219.12-r9.ebuild
elogind-219.12-r9.ebuild (text/plain), 3.64 KB, created by
Sven Eden
on 2016-11-25 12:14:51 UTC
(
hide
)
Description:
elogind-219.12-r9.ebuild
Filename:
MIME Type:
Creator:
Sven Eden
Created:
2016-11-25 12:14:51 UTC
Size:
3.64 KB
patch
obsolete
># Copyright 1999-2016 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Id$ > >EAPI=6 > >inherit autotools eutils linux-info pam udev > >DESCRIPTION="The systemd project's logind, extracted to a standalone package" >HOMEPAGE="https://github.com/wingo/elogind" >SRC_URI="https://github.com/wingo/elogind/archive/v${PV}.tar.gz -> ${P}.tar.gz" > >LICENSE="CC0-1.0 LGPL-2.1+ public-domain" >SLOT="0" >KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux" >IUSE="acl apparmor pam policykit selinux +seccomp" > >COMMON_DEPEND=" > sys-libs/libcap > sys-apps/util-linux > virtual/libudev:= > acl? ( sys-apps/acl ) > apparmor? ( sys-libs/libapparmor ) > pam? ( virtual/pam ) > seccomp? ( sys-libs/libseccomp ) > selinux? ( sys-libs/libselinux ) >" >RDEPEND="${COMMON_DEPEND} > sys-apps/dbus > policykit? ( sys-auth/polkit ) > !sys-auth/systemd >" >DEPEND="${COMMON_DEPEND} > dev-util/gperf > dev-util/intltool > sys-devel/libtool > virtual/pkgconfig >" > >PATCHES=( > "${FILESDIR}/${PN}-docs.patch" > "${FILESDIR}/${PN}-lrt.patch" > "${FILESDIR}/${P}-session.patch" > "${FILESDIR}/${PN}-add_missing_login1_permissions.patch" >) > >pkg_setup() { > if use kernel_linux; then > linux-info_pkg_setup > if ! linux_config_exists; then > ewarn "Can't check the linux kernel configuration." > else > local missing_count=0 > if ! linux_chkconfig_present CGROUPS; then > eerror "CGROUPS is not enabled but needed by elogind." > eerror " (it is OK to disable all controllers)" > missing_count=$((missing_count+1)) > fi > if ! linux_chkconfig_present INOTIFY_USER; then > eerror "INOTIFY_USER is not enabled but needed by elogind." > missing_count=$((missing_count+1)) > fi > if ! linux_chkconfig_present SIGNALFD; then > eerror "SIGNALFD is not enabled but needed by elogind." > missing_count=$((missing_count+1)) > fi > if ! linux_chkconfig_present TIMERFD; then > eerror "TIMERFD is not enabled but needed by elogind." > missing_count=$((missing_count+1)) > fi > if ! linux_chkconfig_present EPOLL; then > eerror "EPOLL is not enabled but needed by elogind." > missing_count=$((missing_count+1)) > fi > if ! linux_chkconfig_present SECCOMP; then > einfo "SECCOMP is not enabled but useful to elogind." > fi > [ 0 -lt $missing_count ] && die "$missing_count required kernel features are missing." > fi > fi >} > >src_prepare() { > default > > # Makefile.am is patched by > # - "${FILESDIR}/${PN}-docs.patch" > # - "${FILESDIR}/${PN}-lrt.patch" > eautoreconf >} > >src_configure() { > local use_smack="--disable-smack" > if linux_config_exists && linux_chkconfig_present SECURITY_SMACK; then > use_smack="--enable-smack" > fi > > econf \ > --with-pamlibdir=$(getpam_mod_dir) \ > --with-udevrulesdir="$(get_udevdir)"/rules.d \ > --libdir=/$(get_libdir) \ > $(use_enable acl) \ > $(use_enable apparmor) \ > $(use_enable pam) \ > $(use_enable seccomp) \ > $(use_enable selinux) \ > $use_smack >} > >src_install() { > default > > # Installation would fail with > # "static archives (*.a) and libtool library files > # (*.la) belong in /usr/lib*, not /lib*" > # if we didn't prune them. > prune_libtool_files --modules > > # Unfortunately the build system puts the pkgconfig file(s) > # into $(libdir)/pkgconfig - Move it to /usr/$(libdir)/pkgconfig > mkdir -p "${ED}"usr/$(get_libdir) || die > mv "${ED}"$(get_libdir)/pkgconfig "${ED}"usr/$(get_libdir)/ || die > > newinitd "${FILESDIR}"/${PN}.init ${PN} > newconfd "${FILESDIR}"/${PN}.conf ${PN} >} > >pkg_postinst() { > if [ "$(rc-config list default | grep elogind)" = "" ]; then > ewarn "To enable the elogind daemon, elogind must be" > ewarn "added to the default runlevel:" > ewarn "# rc-update add elogind default" > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 599474
:
452984
|
452986
|
452988
|
452990
|
453370
|
454324
|
454904
|
454906
|
459802
|
460732