# Description: Gestionnaire de démarrage et de service remplaçant SysVinit. # URL: http://www.freedesktop.org/software/systemd/ # Maintainer: http://cgit.freedesktop.org/systemd/systemd/ # Packager: piernov # Depends on: libusbx, usbutils, gobject-introspection, gperf, pciutils, intltool, libcap, syslog-ng, sysvinit, dbus # Run on: libcap,syslog-ng,sysvinit,acl,dbus name=systemd version=187 release=1 source=(http://www.freedesktop.org/software/$name/$name-$version.tar.xz NuTyX.patch os-release) build() { cd $name-$version patch -p1 < ../NuTyX.patch autoreconf ./configure --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ --enable-split-usr \ --enable-introspection \ --disable-audit \ --disable-ima \ --with-pamlibdir=/lib/security \ --with-distro=nutyx \ --with-pci-ids-path=/usr/share/pci.ids \ --with-usb-ids-path=/usr/share/usb.ids \ --with-firmware-path=/lib/firmware make make DESTDIR=$PKG install printf "d /run/console 0755 root root \n" > $PKG/usr/lib/tmpfiles.d/console.conf install -dm755 $PKG/{bin,sbin,lib/udev} ln -s ../usr/lib/systemd/systemd $PKG/bin/systemd rm $PKG/etc/systemd/system/getty.target.wants/getty@tty1.service rmdir $PKG/etc/systemd/system/getty.target.wants for tool in runlevel reboot shutdown poweroff halt telinit; do ln -s '/usr/bin/systemctl' $PKG/sbin/$tool done ln -s '../usr/lib/systemd/systemd' $PKG/sbin/systemd ln -s ../usr/bin/udevadm $PKG/sbin/udevadm ln -s ../../usr/lib/systemd/systemd-udevd $PKG/usr/bin/udevd install -m644 tmpfiles.d/legacy.conf $PKG/usr/lib/tmpfiles.d sed -i '1s/python$/python2/' $PKG/usr/bin/systemd-analyze echo "d /run/var 0755 root root -" >> $PKG/usr/lib/tmpfiles.d/legacy.conf install -m644 ../os-release $PKG/etc/os-release }