systemd: split libudev into an independent pkg and move systemd-{devel,libs} to it.
This commit is contained in:
parent
c4e47840f0
commit
ffd1555b4b
|
@ -1 +0,0 @@
|
|||
systemd
|
|
@ -1 +1 @@
|
|||
systemd
|
||||
libudev
|
|
@ -1,11 +1,8 @@
|
|||
# Template file for 'libudev-devel'.
|
||||
#
|
||||
noarch=yes
|
||||
depends="libudev"
|
||||
depends="libudev>=${version}_${revision}"
|
||||
short_desc="udev shared library -- development files"
|
||||
long_desc="
|
||||
This package contains the files needed for developing applications
|
||||
that use libudev."
|
||||
|
||||
do_install() {
|
||||
vmove usr/include/libudev.h usr/include
|
|
@ -1,12 +1,13 @@
|
|||
# Template file for 'systemd-devel'.
|
||||
#
|
||||
depends="systemd-libs>=${version}"
|
||||
short_desc="${sourcepkg} - development files"
|
||||
depends="systemd-libs>=${version}_${revision}"
|
||||
short_desc="systemd development files"
|
||||
noarch=yes
|
||||
|
||||
do_install() {
|
||||
vmove usr/include usr
|
||||
vmove usr/lib/pkgconfig usr/lib
|
||||
vmove usr/share/man/man3 usr/share/man
|
||||
vmove usr/share/doc usr/share
|
||||
rm -rf ${SRCPKGDESTDIR}/usr/share/man
|
||||
vmove usr/share/pkgconfig usr/share
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
# Template file for 'systemd-libs'.
|
||||
#
|
||||
short_desc="systemd runtime libraries"
|
||||
replaces="systemd<43_1"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libsystemd*.so*" usr/lib
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
# Template file for 'libudev'
|
||||
pkgname=libudev
|
||||
version=197
|
||||
revision=2
|
||||
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-selinux --disable-tcpwrap --disable-pam
|
||||
--disable-acl --disable-xattr --disable-audit
|
||||
--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"
|
||||
makedepends="pkg-config intltool gperf dbus-devel libcap-devel liblzma-devel
|
||||
libgcrypt-devel libxslt docbook-xsl"
|
||||
subpackages="libudev-devel systemd-libs systemd-devel"
|
||||
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=e6857ea21ae24d7056e7b0f4c2aaaba73b8bf57025b8949c0a8af0c1bc9774b5
|
||||
|
||||
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,tmpfiles.d}
|
||||
rm -rf ${DESTDIR}/usr/share/{doc,polkit-1,dbus-1}
|
||||
}
|
|
@ -1 +1 @@
|
|||
systemd
|
||||
libudev
|
|
@ -1 +1 @@
|
|||
systemd
|
||||
libudev
|
|
@ -1,12 +0,0 @@
|
|||
# Template file for 'libudev'.
|
||||
#
|
||||
short_desc="udev shared library"
|
||||
long_desc="
|
||||
udev is a daemon which dynamically creates and removes device nodes from
|
||||
/dev/, handles hotplug events and loads drivers at boot time.
|
||||
|
||||
This library provides access to udev device information."
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libudev.so*" usr/lib
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
# Template file for 'systemd-libs'.
|
||||
#
|
||||
short_desc="${sourcepkg} - runtime libraries"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the runtime libraries."
|
||||
|
||||
replaces="systemd<43_1"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/*.so*" usr/lib
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'systemd'
|
||||
pkgname=systemd
|
||||
version=197
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--libexecdir=/usr/lib
|
||||
--disable-selinux --disable-tcpwrap --with-rootprefix=/usr
|
||||
|
@ -11,7 +11,7 @@ depends="dbus run-parts kbd libcap-progs"
|
|||
makedepends="pkg-config intltool gperf libxslt docbook-xsl acl-devel pam-devel
|
||||
dbus-devel libcap-devel libkmod-devel liblzma-devel cryptsetup-devel
|
||||
libblkid-devel glib-devel libgcrypt-devel python-devel qrencode-devel
|
||||
gobject-introspection"
|
||||
gobject-introspection which"
|
||||
short_desc="A system and service manager for Linux"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://www.freedesktop.org/wiki/Software/systemd"
|
||||
|
@ -20,9 +20,7 @@ distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.xz
|
|||
checksum=e6857ea21ae24d7056e7b0f4c2aaaba73b8bf57025b8949c0a8af0c1bc9774b5
|
||||
|
||||
replaces="nss-myhostname>=0"
|
||||
|
||||
subpackages="libudev libudev-devel libgudev libgudev-devel
|
||||
systemd-analyze systemd-devel systemd-libs systemd-python"
|
||||
subpackages="libgudev libgudev-devel systemd-analyze systemd-python"
|
||||
|
||||
conf_files="
|
||||
/etc/hostname
|
||||
|
@ -35,6 +33,13 @@ conf_files="
|
|||
/etc/udev/udev.conf"
|
||||
|
||||
post_install() {
|
||||
# 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}/vconsole.conf 644 etc
|
||||
vinstall ${FILESDIR}/os-release 644 etc
|
||||
|
|
Loading…
Reference in New Issue