systemd: do not play dirty tricks with /lib64, subpkgs for optdepends.

This commit is contained in:
Juan RP 2011-06-26 16:17:46 +02:00
parent 7e7abed7eb
commit b52f55b087
5 changed files with 64 additions and 11 deletions

1
srcpkgs/systemd-admin Symbolic link
View file

@ -0,0 +1 @@
systemd

View file

@ -0,0 +1 @@
systemd

View file

@ -0,0 +1,17 @@
# Template file for 'systemd-admin'.
#
short_desc="${sourcepkg} - system administration GUI"
long_desc="${long_desc}
This package contains systemadm, a GTK+2 application to administer systemd."
Add_dependency run glibc
Add_dependency run glib
Add_dependency run gtk+
Add_dependency run systemd
do_install()
{
install -d ${DESTDIR}/usr/bin
mv ${SRCPKGDESTDIR}/usr/bin/systemadm ${DESTDIR}/usr/bin
}

View file

@ -0,0 +1,19 @@
# Template file for 'systemd-gnome-passwd-aggent'.
#
short_desc="${sourcepkg} - GNOME password agent helper"
long_desc="${long_desc}
This package contains systemd-gnome-ask-password-agent, a GNOME
helper to assist in password changes with systemd."
Add_dependency run glibc
Add_dependency run glib
Add_dependency run gtk+
Add_dependency run libnotify
Add_dependency run systemd
do_install()
{
install -d ${DESTDIR}/usr/bin
mv ${SRCPKGDESTDIR}/usr/bin/systemd-gnome* ${DESTDIR}/usr/bin
}

View file

@ -3,7 +3,8 @@ pkgname=systemd
version=29
distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--with-distro=other --prefix=/usr --with-rootdir= --localstatedir=/var"
configure_args="--with-distro=other --with-rootdir= --localstatedir=/var
--with-pamlibdir=/lib/security --disable-selinux"
short_desc="systemd is a system and service manager for Linux"
maintainer="Mike Rosset <mike.rosset@gmail.com>"
homepage="http://www.freedesktop.org/wiki/Software/systemd"
@ -16,26 +17,40 @@ long_desc="
daemons, keeps track of processes using Linux cgroups, supports snapshotting and
restoring of the system state, maintains mount and automount points and
implements an elaborate transactional dependency-based service control logic.
It can work as a drop-in replacement for sysvinit.
"
It can work as a drop-in replacement for sysvinit."
subpackages="systemd-admin systemd-gnome-passwd-agent"
conf_files="/etc/systemd/system.conf"
Add_dependency run dbus-libs
Add_dependency run glibc
Add_dependency run libcap
Add_dependency run libudev
Add_dependency run tcp_wrappers-libs
Add_dependency run pam
Add_dependency run libcap
Add_dependency run dbus-libs
Add_dependency build dbus-devel
Add_dependency build glibc-devel
Add_dependency build libcap-devel
Add_dependency build libnotify-devel
Add_dependency build libudev-devel
Add_dependency build m4
Add_dependency build pkg-config
Add_dependency build libudev-devel
Add_dependency build pam-devel
Add_dependency build dbus-devel
Add_dependency build libcap-devel
Add_dependency build tcp_wrappers-devel
Add_dependency build glib-devel
Add_dependency build gtk+-devel
Add_dependency build libnotify-devel
pre_install()
{
install -d ${DESTDIR}
ln -sf /lib ${DESTDIR}/lib64
}
post_install()
{
rm -f ${DESTDIR}/lib64
cd ${DESTDIR}/usr/share/man/man8
for manpage in telinit halt reboot poweroff runlevel shutdown; do
mv {,systemd.}"$manpage.8"
mv ${manpage}.8 ${manpage}-systemd.8
done
}