wok-6.x annotate systemd/receipt @ rev 15860
libmowgli: update genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 30 09:02:32 2014 +0000 (2014-01-30) |
parents | ea938389991c |
children | 4fdb154bc832 |
rev | line source |
---|---|
pascal@13591 | 1 # SliTaz package receipt. |
pascal@13591 | 2 |
pascal@13591 | 3 PACKAGE="systemd" |
pascal@13591 | 4 VERSION="195" |
pascal@13591 | 5 CATEGORY="base-system" |
pascal@13591 | 6 SHORT_DESC="System and service manager for Linux." |
pascal@13591 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2 LGPL2.1 MIT" |
pascal@13591 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@13591 | 10 WEB_SITE="http://freedesktop.org/wiki/Software/systemd/" |
pascal@13591 | 11 WGET_URL="http://www.freedesktop.org/software/systemd/$TARBALL" |
pascal@13591 | 12 PROVIDE="udev" |
pascal@13591 | 13 |
pascal@13591 | 14 DEPENDS="dbus kmod libcap util-linux-blkid usbutils pciutils glib acl" |
pascal@13591 | 15 BUILD_DEPENDS="dbus-dev kmod-dev libcap-dev util-linux-blkid-dev usbutils-dev \ |
pascal@15124 | 16 pciutils-dev gperf glib-dev acl-dev intltool pkg-config m4 util-linux-uuid-dev \ |
pascal@15124 | 17 pam-dev" |
pascal@13591 | 18 |
pascal@13591 | 19 # |
pascal@13591 | 20 # Systemd include udev source and must be splitted. Systemd can replace the full |
pascal@13591 | 21 # boot process and handle devices (with udisk) but is quiet heavy and compicated. |
pascal@13591 | 22 # Our goal is to have automounting of removable media, since hal is dead we must |
pascal@13591 | 23 # find/use an other way, but systemd-udisk-polkit and friends... seriously in SliTaz |
pascal@13591 | 24 # by default ? |
pascal@13591 | 25 # |
pascal@13591 | 26 # Actually we can have automount using the Kernel Polling feature and spacefm |
pascal@13591 | 27 # |
pascal@13591 | 28 |
pascal@13591 | 29 # Rules to configure and make the package. |
pascal@13591 | 30 compile_rules() |
pascal@13591 | 31 { |
pascal@13591 | 32 cd $src |
pascal@13591 | 33 ./configure \ |
pascal@13591 | 34 --prefix=/usr \ |
pascal@13591 | 35 --sysconfdir=/etc \ |
pascal@13591 | 36 --localstatedir=/var \ |
pascal@13591 | 37 --libexecdir=/usr/lib \ |
pascal@13591 | 38 --with-sysvinit-path= \ |
pascal@13591 | 39 --with-sysvrcd-path= \ |
pascal@13591 | 40 --with-pci-ids-path=/usr/share/misc/pci.ids.gz \ |
pascal@13591 | 41 --with-usb-ids-path=/usr/share/misc/usb.ids.gz \ |
pascal@13591 | 42 --disable-ima \ |
pascal@13591 | 43 --with-distro=other \ |
pascal@13591 | 44 $CONFIGURE_ARGS && |
pascal@13591 | 45 make && make install |
pascal@13591 | 46 } |
pascal@13591 | 47 |
pascal@13591 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13591 | 49 genpkg_rules() |
pascal@13591 | 50 { |
pascal@13591 | 51 mkdir -p $fs/usr/lib $fs/usr/share |
pascal@13591 | 52 cp -a $install/etc $fs |
pascal@13591 | 53 rm -rf $fs/etc/bash_* |
pascal@13591 | 54 cp -a $install/var $fs |
pascal@13591 | 55 cp -a $install/usr/bin $fs/usr |
pascal@13591 | 56 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@13591 | 57 cp -a $install/usr/lib/*d $fs/usr/lib |
pascal@13591 | 58 cp -a $install/usr/lib/udev $fs/usr/lib |
pascal@13591 | 59 mkdir -p $fs/usr/lib/security |
pascal@13591 | 60 cp -a $install/usr/share/*-1 $fs/usr/share |
pascal@13591 | 61 cp -a $install/usr/share/systemd $fs/usr/share |
pascal@13591 | 62 # For kernel opt: init=/bin/systemd |
pascal@13591 | 63 mkdir -p $fs/bin |
pascal@13591 | 64 cd $fs/bin && ln -s ../usr/lib/systemd/systemd systemd |
pascal@13591 | 65 } |