2015-11-26 13:34:37 +01:00
|
|
|
# Template file for 'elogind'
|
|
|
|
pkgname=elogind
|
|
|
|
version=219.14
|
2017-03-03 15:49:30 +01:00
|
|
|
revision=2
|
2015-11-26 13:34:37 +01:00
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="automake libxslt intltool libtool pkg-config gperf"
|
|
|
|
makedepends="libcap-devel libmount-devel libseccomp-devel libblkid-devel pam-devel gettext-devel eudev-libudev-devel glib-devel"
|
|
|
|
depends="dbus"
|
|
|
|
short_desc="standalone logind fork"
|
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
|
|
license="GPL-2, LGPL-2, MIT"
|
|
|
|
homepage="https://github.com/andywingo/elogind"
|
|
|
|
distfiles="https://wingolog.org/pub/elogind/elogind-$version.tar.xz"
|
|
|
|
checksum=9dc150071a3f4c1ad1c989a7a143c2d41a2d571c643b92090e36a5d0396193c9
|
|
|
|
LDFLAGS="-lrt"
|
|
|
|
conf_files="/etc/elogind/logind.conf"
|
2017-03-03 16:31:45 +01:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl)
|
|
|
|
broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/1110/steps/shell_3/logs/stdio"
|
|
|
|
;;
|
|
|
|
esac
|
2015-11-26 13:34:37 +01:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
vinstall $FILESDIR/elogind.wrapper 755 usr/libexec/elogind
|
|
|
|
sed -i -e "s#^Exec=/bin/false#Exec=/usr/libexec/elogind/elogind.wrapper#" \
|
|
|
|
src/login/org.freedesktop.login1.service
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
ln -s libelogind.pc $DESTDIR/usr/lib/pkgconfig/libsystemd.pc
|
|
|
|
ln -s libelogind.pc $DESTDIR/usr/lib/pkgconfig/libsystemd-logind.pc
|
2017-03-03 15:49:30 +01:00
|
|
|
ln -sr $DESTDIR/usr/include/elogind $DESTDIR/usr/include/systemd
|
2015-11-26 13:34:37 +01:00
|
|
|
vinstall ./src/systemd/sd-id128.h 644 usr/include
|
|
|
|
vinstall ./src/systemd/_sd-common.h 644 usr/include
|
|
|
|
}
|
|
|
|
|
|
|
|
elogind-devel_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.la
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|