Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FL-2397: update consolekit: compilation fixes.
- Loading branch information
Oleg Vinichenko
committed
Jul 14, 2015
1 parent
cd91b82
commit 6ec23de
Showing
2 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST ConsoleKit-0.4.6.tar.xz 366572 SHA256 b41d17e06f80059589fbeefe96ad07bcc564c49e65516da1caf975146475565c SHA512 54955e3e83778a9216846104da8762fd50a37190e209127dd5d211e2227da617e14f6f5c1359905396d299656e526d14e1187b28eaff7d0ae1d7563dc8d9b46d WHIRLPOOL ebf36b109b4c646d0b874f6b8e2ae9e2d190022ee9b6feff6cbb6b9203c80401c538cc3ca674fa7bde4f07e658d5460864e9784c1e0249d49b4784725a4e05c7 | ||
DIST ConsoleKit2-0.9.2.tar.bz2 506074 SHA256 102aa07e0960e56740e235bba06a546c8e0e88f47546ef252ecda917935af41f SHA512 f5cac69c5a63d648b7ec90019735eae0ec41c82456d9f913f87b243a27a6c360254bc522aa96de78fd820f3fa4ed159e4329d2c074fd8dab1ac6fb7a287f0a10 WHIRLPOOL 85e944a354f0e79f34de5a943e4bd39fdbae43b47b3e05031b6de83fb0590fc8d621d12fd16d97091bb33809524e7179e533c1b1e4cba1a915c3c52dfa452db5 | ||
DIST ConsoleKit2-0.9.4.tar.bz2 1184927 SHA256 b3e9554472f1a431576c317536d93ba1ef292916ea8447667deee0b555980e2e SHA512 8bbd04e5d084a4b7d3a9324b21909728d3d358c4fcb7a741f02baa354f8ce5afe2ec1a0613aa140adc754322ad00f2cd57eac8fedc500236a167c356c5a3ae04 WHIRLPOOL f02ebfb8b33c36650d6a57d09200d2d13c48e1b521de6a088399fe2a8af623434f539fa5bd343c720bf0174ab90a8d9d8a2c1a33b8aded0c76367e31b4a1accf | ||
DIST consolekit_0.4.6-4.debian.tar.gz 12192 SHA256 6d4dd5e13a76454b4bab27ab6b407718cd77616afd2b1af7cb8d947c1323b802 SHA512 f7fc5965b1f495d16a8ca167940431bc2569e9bde9e4a356b9c9ed00c2825db61da7b6db3d434d977fff72b3aaef30c455a365b9eba282a887a523753613b58f WHIRLPOOL 961a918c21259e24c68c7a5bf93964825b891ea207c088fecab61f81434012dc8925fca83b74518cfc9cf42f2c4a87eba7518c0829f663716ca0e11e38c856c9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=5 | ||
inherit eutils linux-info pam | ||
|
||
MY_PN=ConsoleKit2 | ||
MY_P=${MY_PN}-${PV} | ||
|
||
DESCRIPTION="Framework for defining and tracking users, login sessions and seats" | ||
HOMEPAGE="http://github.com/ConsoleKit2/ConsoleKit2 http://www.freedesktop.org/wiki/Software/ConsoleKit" | ||
SRC_URI="http://github.com/${MY_PN}/${MY_PN}/releases/download/${PV}/${MY_P}.tar.bz2 | ||
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_0.4.6-4.debian.tar.gz" # for logrotate file" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="*" | ||
IUSE="acl debug doc kernel_linux pam policykit selinux test" | ||
|
||
COMMON_DEPEND=">=dev-libs/dbus-glib-0.100 | ||
>=dev-libs/glib-2.38.2-r1:2 | ||
sys-libs/zlib | ||
x11-libs/libX11 | ||
acl? ( | ||
sys-apps/acl | ||
>=virtual/udev-200 | ||
) | ||
pam? ( virtual/pam ) | ||
policykit? ( >=sys-auth/polkit-0.110 )" | ||
RDEPEND="${COMMON_DEPEND} | ||
kernel_linux? ( sys-apps/coreutils[acl?] ) | ||
selinux? ( sec-policy/selinux-consolekit ) | ||
pam? ( >=sys-auth/pambase-20150213-r2 )" | ||
DEPEND="${COMMON_DEPEND} | ||
dev-libs/libxslt | ||
virtual/pkgconfig | ||
doc? ( app-text/xmlto ) | ||
test? ( | ||
app-text/docbook-xml-dtd:4.1.2 | ||
app-text/xmlto | ||
)" | ||
|
||
S=${WORKDIR}/${MY_P} | ||
|
||
QA_MULTILIB_PATHS="usr/lib/ConsoleKit/.*" | ||
|
||
pkg_setup() { | ||
if use kernel_linux; then | ||
# This is from http://bugs.gentoo.org/376939 | ||
use acl && CONFIG_CHECK="~TMPFS_POSIX_ACL" | ||
# This is required to get login-session-id string with pam_ck_connector.so | ||
use pam && CONFIG_CHECK+=" ~AUDITSYSCALL" | ||
linux-info_pkg_setup | ||
fi | ||
} | ||
|
||
src_prepare() { | ||
sed -i -e '/SystemdService/d' data/org.freedesktop.ConsoleKit.service.in || die | ||
} | ||
|
||
src_configure() { | ||
econf \ | ||
XMLTO_FLAGS='--skip-validation' \ | ||
--libexecdir="${EPREFIX}"/usr/lib/ConsoleKit \ | ||
--localstatedir="${EPREFIX}"/var \ | ||
$(use_enable pam pam-module) \ | ||
$(use_enable doc docbook-docs) \ | ||
$(use_enable test docbook-docs) \ | ||
$(use_enable debug) \ | ||
$(use_enable policykit polkit) \ | ||
$(use_enable acl udev-acl) \ | ||
--with-dbus-services="${EPREFIX}"/usr/share/dbus-1/services \ | ||
--with-pam-module-dir="$(getpam_mod_dir)" \ | ||
--with-xinitrc-dir=/etc/X11/xinit/xinitrc.d \ | ||
--without-systemdsystemunitdir | ||
} | ||
|
||
src_install() { | ||
emake \ | ||
DESTDIR="${D}" \ | ||
htmldocdir="${EPREFIX}"/usr/share/doc/${PF}/html \ | ||
install | ||
|
||
dosym /usr/lib/ConsoleKit /usr/lib/${PN} | ||
|
||
dodoc AUTHORS HACKING NEWS README TODO | ||
|
||
newinitd "${FILESDIR}"/${PN}-0.2.rc consolekit | ||
|
||
keepdir /usr/lib/ConsoleKit/run-seat.d | ||
keepdir /usr/lib/ConsoleKit/run-session.d | ||
keepdir /etc/ConsoleKit/run-session.d | ||
keepdir /var/log/ConsoleKit | ||
|
||
exeinto /etc/X11/xinit/xinitrc.d | ||
newexe "${FILESDIR}"/90-consolekit-3 90-consolekit | ||
|
||
prune_libtool_files --all # --all for pam_ck_connector.la | ||
|
||
rm -rf "${ED}"/var/run # let the init script create the directory | ||
|
||
insinto /etc/logrotate.d | ||
newins "${WORKDIR}"/debian/${PN}.logrotate ${PN} #374513 | ||
} |