diff options
author | piernov <piernov@piernov.org> | 2012-07-13 21:42:09 +0000 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2012-07-13 21:42:09 +0000 |
commit | 62ceecb5fcd71773d6102031916ed79dcbf1f53e (patch) | |
tree | ad61cc2404fc9cf9a80922e29caf31d5206279f4 /systemd/Pkgfile | |
parent | 796ca71e4df90dc21e6cf77d1532b5f92373570d (diff) | |
download | nutyx-pakxe-62ceecb5fcd71773d6102031916ed79dcbf1f53e.tar.gz nutyx-pakxe-62ceecb5fcd71773d6102031916ed79dcbf1f53e.tar.bz2 nutyx-pakxe-62ceecb5fcd71773d6102031916ed79dcbf1f53e.tar.xz nutyx-pakxe-62ceecb5fcd71773d6102031916ed79dcbf1f53e.zip |
systemd 186-1 ajout port
Diffstat (limited to 'systemd/Pkgfile')
-rw-r--r-- | systemd/Pkgfile | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/systemd/Pkgfile b/systemd/Pkgfile new file mode 100644 index 000000000..2168950d8 --- /dev/null +++ b/systemd/Pkgfile @@ -0,0 +1,76 @@ +# Description: Gestionnaire de démarrage et de service remplaçant SysVinit. +# URL: http://www.freedesktop.org/software/systemd/ +# Maintainer: cgit.freedesktop.org/systemd/systemd/ +# Packager: piernov <piernov@piernov.org> +# Depends on: libusbx,usbutils,gobject-introspection,gperf,acl,pciutils, intltool, libcap +# Run on: libcap + +name=systemd +version=186 +release=1 +#_lfs_release=20100128 +source=(http://www.freedesktop.org/software/$name/$name-$version.tar.xz) +# http://www.linuxfromscratch.org/lfs/downloads/development/udev-config-${_lfs_release}.tar.bz2) + +build() { +# if ( pkginfo -i|grep "^glib " > /dev/null) then +# EXTRA="--with-pci-ids-path=/usr/share/pci.ids" +# else +# EXTRA="--disable-extras --disable-introspection --disable-hwdb --disable-keymap" +# fi +# cd udev-$version + +# install -dv $PKG/lib/{firmware,udev/devices/{pts,shm}} +# ln -s /proc/self/fd $PKG/lib/udev/devices/fd +# ln -s /proc/self/fd/0 $PKG/lib/udev/devices/stdin +# ln -s /proc/self/fd/1 $PKG/lib/udev/devices/stdout +# ln -s /proc/self/fd/2 $PKG/lib/udev/devices/stderr +# ln -s /proc/kcore $PKG/lib/udev/devices/core + + cd $name-$version + +# sed 's|usergeneratordir = $(pkglibexecdir)/user-generators|usergeneratordir=/usr/lib/systemd/user-generators|' -i Makefile.in + + SYSTEM_SYSVRCND_PATH=/etc/rc.d \ + SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d \ + ./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=other \ + --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/init + + 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 + +# cd ../udev-config-${_lfs_release} +# make DESTDIR=$PKG install +# make DESTDIR=$PKG install-doc + + echo "d /run/var 0755 root root -" >> $PKG/usr/lib/tmpfiles.d/legacy.conf +} |