wok-current annotate coreutils/receipt @ rev 24437
updated coreutils packages (8.31 -> 9.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 13 17:24:01 2022 +0100 (2022-02-13) |
parents | 17091bc7c301 |
children | 5926178cd6fa |
rev | line source |
---|---|
pankso@15 | 1 # SliTaz package receipt. |
pankso@15 | 2 |
pankso@15 | 3 PACKAGE="coreutils" |
Hans-G?nter@24437 | 4 VERSION="9.0" |
pankso@211 | 5 CATEGORY="system-tools" |
pankso@15 | 6 SHORT_DESC="Utilities for using and setting the basic system." |
pankso@15 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@19215 | 9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html" |
Hans-G?nter@22616 | 10 |
slaxemulator@7244 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@22616 | 12 WGET_URL="https://ftp.gnu.org/gnu/$PACKAGE/$TARBALL" |
pascal@14074 | 13 |
Hans-G?nter@24437 | 14 SUGGESTED="coreutils-lang" |
al@19215 | 15 SIBLINGS="coreutils-multicall" |
Hans-G?nter@22616 | 16 SPLIT="coreutils-character coreutils-command coreutils-conditions |
Hans-G?nter@22616 | 17 coreutils-context-system coreutils-context-user |
Hans-G?nter@22616 | 18 coreutils-context-working coreutils-directory coreutils-disk |
Hans-G?nter@22616 | 19 coreutils-file-attributes coreutils-file-format |
Hans-G?nter@22616 | 20 coreutils-file-output-full coreutils-file-output-part |
Hans-G?nter@22616 | 21 coreutils-file-sort coreutils-file-special coreutils-file-summarize |
Hans-G?nter@22616 | 22 coreutils-line coreutils-numeric coreutils-operations |
Hans-G?nter@22616 | 23 coreutils-path coreutils-print coreutils-redirection" |
Hans-G?nter@22616 | 24 DEPENDS="acl attr glibc-base gmp" |
Hans-G?nter@22616 | 25 BUILD_DEPENDS="automake gmp-dev libcap-dev xz" |
pankso@15 | 26 |
pascal@24415 | 27 # What is the latest version available today? |
pascal@24415 | 28 current_version() |
pascal@24415 | 29 { |
pascal@24415 | 30 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24415 | 31 sed '/latest/d;/coreutils-/!d;/tar/!d;s|.*coreutils-||;s|.tar.*||' | sort -Vr | sed q |
pascal@24415 | 32 } |
pascal@24415 | 33 |
pankso@15 | 34 # Rules to configure and make the package. |
pankso@15 | 35 compile_rules() |
pankso@15 | 36 { |
al@19215 | 37 # LFS: Coreutils Internationalization Fixes Patch |
Hans-G?nter@22616 | 38 # patch -Np1 -i $stuff/coreutils-8.25-i18n-2.patch |
Hans-G?nter@22616 | 39 |
al@19215 | 40 # SliTaz: show extended info touching CPU via uname |
al@19215 | 41 patch -p1 -i $stuff/uname.u |
rcx@3574 | 42 |
al@19215 | 43 autoreconf -fi |
pankso@4080 | 44 |
Hans-G?nter@22616 | 45 # bypass checking whether mknod can create fifo without root privileges |
Hans-G?nter@22616 | 46 export FORCE_UNSAFE_CONFIGURE=1 |
Hans-G?nter@22616 | 47 |
Hans-G?nter@22616 | 48 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@22616 | 49 make && |
Hans-G?nter@22616 | 50 make install |
pankso@4080 | 51 |
al@19215 | 52 # LFS: Move programs to the locations specified by the FHS |
Hans-G?nter@22616 | 53 mkdir -p $install/bin |
Hans-G?nter@22616 | 54 mkdir -p $install/usr/sbin |
Hans-G?nter@22616 | 55 mkdir -p $install/usr/share/man/man8 |
Hans-G?nter@22616 | 56 |
Hans-G?nter@24437 | 57 while read i |
Hans-G?nter@22616 | 58 do |
Hans-G?nter@24437 | 59 mv $install/usr/bin/$i $install/bin |
Hans-G?nter@24437 | 60 done <<EOT |
Hans-G?nter@24437 | 61 cat |
Hans-G?nter@24437 | 62 chgrp |
Hans-G?nter@24437 | 63 chmod |
Hans-G?nter@24437 | 64 chown |
Hans-G?nter@24437 | 65 cp |
Hans-G?nter@24437 | 66 date |
Hans-G?nter@24437 | 67 dd |
Hans-G?nter@24437 | 68 df |
Hans-G?nter@24437 | 69 echo |
Hans-G?nter@24437 | 70 false |
Hans-G?nter@24437 | 71 ln |
Hans-G?nter@24437 | 72 ls |
Hans-G?nter@24437 | 73 mkdir |
Hans-G?nter@24437 | 74 mknod |
Hans-G?nter@24437 | 75 mv |
Hans-G?nter@24437 | 76 pwd |
Hans-G?nter@24437 | 77 rm |
Hans-G?nter@24437 | 78 rmdir |
Hans-G?nter@24437 | 79 stty |
Hans-G?nter@24437 | 80 sync |
Hans-G?nter@24437 | 81 true |
Hans-G?nter@24437 | 82 uname |
Hans-G?nter@24437 | 83 EOT |
Hans-G?nter@22616 | 84 mv $install/usr/bin/chroot $install/usr/sbin |
al@19215 | 85 mv $install/usr/share/man/man1/chroot.1 \ |
Hans-G?nter@22616 | 86 $install/usr/share/man/man8/chroot.8 |
Hans-G?nter@22616 | 87 |
al@19215 | 88 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8 |
al@19215 | 89 |
al@19215 | 90 find $install/usr/share/man -type f -exec gzip -9 \{\} \; |
pankso@15 | 91 } |
pankso@15 | 92 |
pankso@15 | 93 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@15 | 94 genpkg_rules() |
pankso@15 | 95 { |
al@19215 | 96 # A set of binaries looks intriguing, isn't it? |
al@19215 | 97 # For what is this package with exactly these binaries? |
al@19215 | 98 |
Hans-G?nter@22616 | 99 mkdir -p $fs/usr/bin |
Hans-G?nter@22616 | 100 mkdir -p $fs/bin |
al@19215 | 101 |
al@19215 | 102 cd $install/usr/bin |
Hans-G?nter@24437 | 103 while read i |
Hans-G?nter@22616 | 104 do |
Hans-G?nter@22616 | 105 cp -a $i $fs/usr/bin |
Hans-G?nter@24437 | 106 done <<EOT |
Hans-G?nter@24437 | 107 base64 |
Hans-G?nter@24437 | 108 csplit |
Hans-G?nter@24437 | 109 factor |
Hans-G?nter@24437 | 110 fmt |
Hans-G?nter@24437 | 111 groups |
Hans-G?nter@24437 | 112 join |
Hans-G?nter@24437 | 113 od |
Hans-G?nter@24437 | 114 paste |
Hans-G?nter@24437 | 115 ptx |
Hans-G?nter@24437 | 116 shred |
Hans-G?nter@24437 | 117 shuf |
Hans-G?nter@24437 | 118 split |
Hans-G?nter@24437 | 119 users |
Hans-G?nter@24437 | 120 EOT |
Hans-G?nter@22616 | 121 cp -a $install/bin/cp $fs/bin |
pankso@15 | 122 } |
pankso@15 | 123 |
domcox@14131 | 124 post_install() |
domcox@14131 | 125 { |
al@19215 | 126 # Remove Busybox applet in order to not clash with |
al@19215 | 127 # /usr/bin/base64 from this package. |
al@19215 | 128 rm "$1/bin/base64" |
pankso@15 | 129 } |
pankso@3435 | 130 |
pankso@3435 | 131 post_remove() |
pankso@3435 | 132 { |
al@19215 | 133 ln -s busybox "$1/bin/base64" |
al@19215 | 134 ln -s busybox "$1/bin/cp" |
al@19215 | 135 ln -s /bin/busybox "$1/usr/bin/groups" |
al@19215 | 136 ln -s /bin/busybox "$1/usr/bin/od" |
al@19215 | 137 ln -s /bin/busybox "$1/usr/bin/split" |
al@19215 | 138 ln -s /bin/busybox "$1/usr/bin/users" |
pankso@3435 | 139 } |