systemd: split libgudev{,-devel} and system-python to libgudev pkg.
This way the systemd pkg (providing systemd and udev) does not glib nor gobject-introspection and drops lots of external dependencies for a core pkg.
This commit is contained in:
parent
4ef248276f
commit
b6eb6876a6
10 changed files with 80 additions and 126 deletions
|
@ -1 +1 @@
|
||||||
systemd
|
libgudev
|
42
srcpkgs/libgudev/template
Normal file
42
srcpkgs/libgudev/template
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# Template file for 'libgudev'
|
||||||
|
|
||||||
|
. ${XBPS_SRCPKGDIR}/systemd/template
|
||||||
|
unset -f systemd_package systemd-libs_package systemd-devel_package
|
||||||
|
unset -f libudev_package libudev-devel_package post_install
|
||||||
|
|
||||||
|
pkgname=libgudev
|
||||||
|
wrksrc="systemd-${version}"
|
||||||
|
configure_args+=" --enable-gudev --with-python --enable-introspection"
|
||||||
|
short_desc="GUdev shared library"
|
||||||
|
|
||||||
|
hostmakedepends+=" gobject-introspection"
|
||||||
|
makedepends+=" libglib-devel python-devel"
|
||||||
|
|
||||||
|
libgudev_package() {
|
||||||
|
short_desc="GObject-based wrapper library for libudev"
|
||||||
|
depends="libudev>=${version}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/libgudev*.so.*"
|
||||||
|
vmove usr/lib/girepository-1.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
libgudev-devel_package() {
|
||||||
|
depends="libglib-devel libudev-devel libgudev>=${version}_${revision}"
|
||||||
|
short_desc="GObject-based wrapper library for libudev - development files"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/include/gudev-1.0
|
||||||
|
vmove "usr/lib/libgudev*.so"
|
||||||
|
vmove "usr/lib/pkgconfig/gudev*"
|
||||||
|
vmove usr/share/gir-1.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
systemd-python_package() {
|
||||||
|
short_desc="systemd python bindings"
|
||||||
|
depends="systemd-libs>=${version}_${revision}"
|
||||||
|
pycompile_module="systemd"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/python*"
|
||||||
|
}
|
||||||
|
}
|
|
@ -1 +1 @@
|
||||||
libudev
|
systemd
|
|
@ -1,76 +0,0 @@
|
||||||
# Template file for 'libudev'
|
|
||||||
pkgname=libudev
|
|
||||||
version=208
|
|
||||||
revision=1
|
|
||||||
wrksrc="systemd-${version}"
|
|
||||||
build_style=gnu-configure
|
|
||||||
configure_args="--libexecdir=/usr/lib --disable-selinux
|
|
||||||
--disable-static --disable-ima --enable-introspection=no
|
|
||||||
--disable-kmod --disable-blkid --disable-chkconfig --disable-backlight
|
|
||||||
--disable-selinux --disable-tcpwrap --disable-pam --disable-tmpfiles
|
|
||||||
--disable-acl --disable-xattr --disable-audit --disable-machined
|
|
||||||
--disable-libcryptsetup --disable-qrencode --disable-microhttpd
|
|
||||||
--disable-binfmt --disable-vconsole --disable-readahead --disable-bootchart
|
|
||||||
--disable-quotacheck --disable-randomseed --disable-hostnamed
|
|
||||||
--disable-timedated --disable-localed --disable-coredump
|
|
||||||
--disable-myhostname --disable-gudev --disable-keymap --without-python
|
|
||||||
--disable-efi --disable-polkit --with-sysvinit-path= --with-sysvrcnd-path=
|
|
||||||
--with-rc-local-script-path-start= --with-rc-local-script-path-stop="
|
|
||||||
short_desc="udev shared library"
|
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
||||||
homepage="http://www.freedesktop.org/wiki/Software/systemd"
|
|
||||||
license="LGPL-2.1, GPL-2, MIT"
|
|
||||||
distfiles="http://www.freedesktop.org/software/systemd/systemd-${version}.tar.xz"
|
|
||||||
checksum=aa64fa864466fd5727005c55d61c092828b94b4f857272c0b503695022146390
|
|
||||||
|
|
||||||
hostmakedepends="pkg-config automake gettext-devel intltool gperf libxslt
|
|
||||||
docbook-xsl libtool libgcrypt-devel"
|
|
||||||
makedepends="attr-devel dbus-devel>=1.6.10_2 libcap-devel liblzma-devel libgcrypt-devel"
|
|
||||||
|
|
||||||
pre_configure() {
|
|
||||||
autoreconf -fi
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
|
||||||
# We are only interested in shlibs, headers and pc files.
|
|
||||||
rm -rf ${DESTDIR}/{etc,var}
|
|
||||||
rm -rf ${DESTDIR}/usr/{bin,sbin}
|
|
||||||
rm -rf ${DESTDIR}/usr/lib/{udev,systemd,sysctl.d,tmpfiles.d}
|
|
||||||
rm -rf ${DESTDIR}/usr/share/{bash*,doc,polkit-1,dbus-1}
|
|
||||||
}
|
|
||||||
|
|
||||||
libudev-devel_package() {
|
|
||||||
depends="libudev>=${version}_${revision}"
|
|
||||||
short_desc="udev shared library -- development files"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/include/libudev.h
|
|
||||||
vmove usr/lib/pkgconfig/libudev.pc
|
|
||||||
vmove "usr/lib/libudev*.so"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
libudev_package() {
|
|
||||||
pkg_install() {
|
|
||||||
vmove "usr/lib/libudev.so.*"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
systemd-devel_package() {
|
|
||||||
depends="systemd-libs>=${version}_${revision}"
|
|
||||||
short_desc="systemd development files"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/include
|
|
||||||
vmove usr/lib/pkgconfig
|
|
||||||
vmove "usr/lib/*.so"
|
|
||||||
vmove usr/share/man/man3
|
|
||||||
vmove usr/share/pkgconfig
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
systemd-libs_package() {
|
|
||||||
short_desc="systemd runtime libraries"
|
|
||||||
replaces="systemd<43_1"
|
|
||||||
pkg_install() {
|
|
||||||
vmove "usr/lib/libsystemd*.so.*"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +1 @@
|
||||||
libudev
|
systemd
|
|
@ -1 +1 @@
|
||||||
libudev
|
systemd
|
|
@ -1 +1 @@
|
||||||
systemd
|
libgudev
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'systemd'
|
# Template file for 'systemd'
|
||||||
pkgname=systemd
|
pkgname=systemd
|
||||||
version=208
|
version=208
|
||||||
revision=2
|
revision=3
|
||||||
short_desc="A system and service manager for Linux"
|
short_desc="A system and service manager for Linux"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.freedesktop.org/wiki/Software/systemd"
|
homepage="http://www.freedesktop.org/wiki/Software/systemd"
|
||||||
|
@ -13,24 +13,15 @@ build_style=gnu-configure
|
||||||
configure_args="--libexecdir=/usr/lib --with-rootprefix=/usr
|
configure_args="--libexecdir=/usr/lib --with-rootprefix=/usr
|
||||||
--disable-selinux --with-sysvinit-path= --with-sysvrcnd-path=
|
--disable-selinux --with-sysvinit-path= --with-sysvrcnd-path=
|
||||||
--with-rc-local-script-path-start= --with-rc-local-script-path-stop=
|
--with-rc-local-script-path-start= --with-rc-local-script-path-stop=
|
||||||
--disable-audit --disable-static --disable-ima"
|
--disable-audit --disable-static --disable-ima --disable-gudev
|
||||||
|
--disable-introspection --without-python"
|
||||||
|
|
||||||
hostmakedepends="which pkg-config intltool gperf libxslt docbook-xsl libtool"
|
configure_args+=" ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes"
|
||||||
makedepends="acl-devel pam-devel dbus-devel>=1.6.10_2 libcap-devel libkmod-devel
|
|
||||||
liblzma-devel cryptsetup-devel libblkid-devel libglib-devel libgcrypt-devel
|
|
||||||
systemd-devel>=${version} python-devel gobject-introspection"
|
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
hostmakedepends="which pkg-config automake gettext-devel intltool gperf libxslt
|
||||||
# XXX add support to gudev, introspection and python.
|
docbook-xsl libtool libgcrypt-devel"
|
||||||
makedepends="acl-devel pam-devel dbus-devel>=1.6.10_2 libcap-devel
|
makedepends="acl-devel dbus-devel>=1.6.10_2 libcap-devel libkmod-devel
|
||||||
libkmod-devel liblzma-devel cryptsetup-devel
|
liblzma-devel cryptsetup-devel libblkid-devel libgcrypt-devel pam-devel"
|
||||||
libblkid-devel libgcrypt-devel libglib-devel
|
|
||||||
systemd-devel>=${version}"
|
|
||||||
configure_args+=" --without-python --disable-gudev
|
|
||||||
--enable-introspection=no
|
|
||||||
ac_cv_func_malloc_0_nonnull=yes
|
|
||||||
ac_cv_func_realloc_0_nonnull=yes"
|
|
||||||
fi
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
libtoolize -f
|
libtoolize -f
|
||||||
|
@ -79,13 +70,6 @@ post_install() {
|
||||||
# Remove useless doc directory.
|
# Remove useless doc directory.
|
||||||
rm -rf ${DESTDIR}/usr/share/doc
|
rm -rf ${DESTDIR}/usr/share/doc
|
||||||
|
|
||||||
# Remove files provided in libudev{,-devel} and systemd-{devel,libs}.
|
|
||||||
rm -rf ${DESTDIR}/usr/include/{libudev.h,systemd}
|
|
||||||
rm -rf ${DESTDIR}/usr/share/pkgconfig
|
|
||||||
rm -rf ${DESTDIR}/usr/share/man/man3
|
|
||||||
rm -f ${DESTDIR}/usr/lib/lib{udev,systemd}*
|
|
||||||
rm -f ${DESTDIR}/usr/lib/pkgconfig/lib{udev,systemd}*
|
|
||||||
|
|
||||||
vinstall ${FILESDIR}/hostname 644 etc
|
vinstall ${FILESDIR}/hostname 644 etc
|
||||||
vinstall ${FILESDIR}/vconsole.conf 644 etc
|
vinstall ${FILESDIR}/vconsole.conf 644 etc
|
||||||
vinstall ${FILESDIR}/os-release 644 etc
|
vinstall ${FILESDIR}/os-release 644 etc
|
||||||
|
@ -125,37 +109,42 @@ post_install() {
|
||||||
sed -e 's,system-auth,login,g' -i ${DESTDIR}/etc/pam.d/systemd-user
|
sed -e 's,system-auth,login,g' -i ${DESTDIR}/etc/pam.d/systemd-user
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
libudev-devel_package() {
|
||||||
|
depends="libudev>=${version}_${revision}"
|
||||||
libgudev_package() {
|
short_desc+=" - udev library (development files)"
|
||||||
short_desc="GObject-based wrapper library for libudev"
|
|
||||||
depends="libudev>=${version}"
|
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/libgudev*.so.*"
|
vmove usr/include/libudev.h
|
||||||
vmove usr/lib/girepository-1.0
|
vmove usr/lib/pkgconfig/libudev.pc
|
||||||
|
vmove "usr/lib/libudev*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
libgudev-devel_package() {
|
libudev_package() {
|
||||||
depends="libglib-devel libudev-devel libgudev>=${version}"
|
short_desc+=" - udev library"
|
||||||
short_desc="GObject-based wrapper library for libudev - development files"
|
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include/gudev-1.0
|
vmove "usr/lib/libudev.so.*"
|
||||||
vmove "usr/lib/libgudev*.so"
|
|
||||||
vmove "usr/lib/pkgconfig/gudev*"
|
|
||||||
vmove usr/share/gir-1.0
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
systemd-python_package() {
|
systemd-devel_package() {
|
||||||
short_desc+=" - python bindings"
|
depends="systemd-libs>=${version}_${revision}"
|
||||||
pycompile_module="systemd"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/python*"
|
vmove usr/include
|
||||||
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
|
vmove usr/share/man/man3
|
||||||
|
vmove usr/share/pkgconfig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fi # !CROSS_BUILD
|
systemd-libs_package() {
|
||||||
|
short_desc+=" - runtime libraries"
|
||||||
|
replaces="systemd<43_1"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/libsystemd*.so.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
systemd_package() {
|
systemd_package() {
|
||||||
# Create systemd-journal (gid 24) system group.
|
# Create systemd-journal (gid 24) system group.
|
||||||
|
@ -171,8 +160,7 @@ systemd_package() {
|
||||||
/etc/systemd/logind.conf
|
/etc/systemd/logind.conf
|
||||||
/etc/systemd/bootchart.conf
|
/etc/systemd/bootchart.conf
|
||||||
/etc/udev/udev.conf"
|
/etc/udev/udev.conf"
|
||||||
depends="xbps-triggers>=0.64 dbus kbd libcap-progs
|
depends="xbps-triggers>=0.64 dbus kbd libcap-progs shadow"
|
||||||
libudev>=${version} systemd-libs>=${version} shadow"
|
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove all
|
vmove all
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue