wok-current annotate systemd/receipt @ rev 25483

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