wok-current view systemd/receipt @ rev 24785

updated libspectre (0.2.7 -> 0.2.9)
author Hans-G?nter Theisgen
date Mon Mar 21 08:02:35 2022 +0100 (2022-03-21)
parents 2d2aa67a5236
children 73f36875e5a7
line source
1 # SliTaz package receipt.
3 PACKAGE="systemd"
4 VERSION="195"
5 CATEGORY="base-system"
6 SHORT_DESC="System and service manager for Linux."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2 LGPL2.1 MIT"
9 WEB_SITE="http://freedesktop.org/wiki/Software/systemd/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://www.freedesktop.org/software/systemd/$TARBALL"
14 DEPENDS="acl dbus glib kmod libcap libwrap pam pciutils usbutils util-linux-blkid"
15 BUILD_DEPENDS="acl-dev dbus-dev glib-dev glibc-dev gperf intltool \
16 kmod-dev libcap-dev m4 pam-dev pciutils-dev pkg-config \
17 usbutils-dev util-linux-blkid-dev util-linux-uuid-dev"
18 PROVIDE="udev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
24 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 #
28 # Systemd include udev source and must be splitted. Systemd can replace the full
29 # boot process and handle devices (with udisk) but is quite heavy and complicated.
30 # Our goal is to have automounting of removable media, since hal is dead we must
31 # use another way, but systemd-udisk-polkit and friends... seriously in SliTaz
32 # by default ?
33 #
34 # Actually we can have automount using the Kernel Polling feature and spacefm
35 #
37 # Rules to configure and make the package.
38 compile_rules()
39 {
40 patch --strip=0 --input=$stuff/systemd-195.journal-file.c.patch \
41 src/journal/journal-file.c
42 patch --strip=0 --input=$stuff/systemd-195.journal-vacuum.c.patch \
43 src/journal/journal-vacuum.c
45 ./configure \
46 --prefix=/usr \
47 --sysconfdir=/etc \
48 --localstatedir=/var \
49 --libexecdir=/usr/lib \
50 --with-sysvinit-path= \
51 --with-sysvrcd-path= \
52 --with-pci-ids-path=/usr/share/misc/pci.ids.gz \
53 --with-usb-ids-path=/usr/share/misc/usb.ids.gz \
54 --disable-ima \
55 --with-distro=other \
56 $CONFIGURE_ARGS &&
57 make -j 1 &&
58 make install
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/usr/lib
65 mkdir -p $fs/usr/share
67 cp -a $install/etc $fs
68 rm -rf $fs/etc/bash_*
69 cp -a $install/var $fs
70 cp -a $install/usr/bin $fs/usr
71 cp -a $install/usr/lib/*.so* $fs/usr/lib
72 cp -a $install/usr/lib/*d $fs/usr/lib
73 cp -a $install/usr/lib/udev $fs/usr/lib
75 mkdir -p $fs/usr/lib/security
76 cp -a $install/usr/share/*-1 $fs/usr/share
77 cp -a $install/usr/share/systemd $fs/usr/share
78 # For kernel opt: init=/bin/systemd
79 mkdir -p $fs/bin
80 cd $fs/bin && ln -s ../usr/lib/systemd/systemd systemd
81 }