wok annotate coreutils-multicall/receipt @ rev 25443
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 09:28:15 2022 +0000 (2022-09-03) |
parents | 17091bc7c301 |
children |
rev | line source |
---|---|
al@19216 | 1 # SliTaz package receipt. |
al@19216 | 2 |
al@19216 | 3 PACKAGE="coreutils-multicall" |
Hans-G?nter@24437 | 4 VERSION="9.0" |
al@19216 | 5 CATEGORY="system-tools" |
al@19216 | 6 SHORT_DESC="Utilities for using and setting the basic system." |
al@19216 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19216 | 8 LICENSE="GPL3" |
al@19216 | 9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html" |
Hans-G?nter@22616 | 10 |
al@19216 | 11 TARBALL="coreutils-$VERSION.tar.xz" |
Hans-G?nter@22616 | 12 WGET_URL="https://ftp.gnu.org/gnu/coreutils/$TARBALL" |
al@19216 | 13 |
Hans-G?nter@24437 | 14 SUGGESTED="coreutils-lang" |
al@19216 | 15 SIBLINGS="coreutils" |
Hans-G?nter@22616 | 16 DEPENDS="acl attr glibc-base gmp libcap" |
Hans-G?nter@22616 | 17 BUILD_DEPENDS="automake gmp-dev libcap-dev xz" |
al@19216 | 18 |
pascal@24415 | 19 # What is the latest version available today? |
pascal@24415 | 20 current_version() |
pascal@24415 | 21 { |
pascal@24415 | 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24415 | 23 sed '/latest/d;/coreutils-/!d;/tar/!d;s|.*coreutils-||;s|.tar.*||' | sort -Vr | sed q |
pascal@24415 | 24 } |
pascal@24415 | 25 |
al@19216 | 26 # Rules to configure and make the package. |
al@19216 | 27 compile_rules() |
al@19216 | 28 { |
al@19216 | 29 # LFS: Coreutils Internationalization Fixes Patch |
Hans-G?nter@22616 | 30 # patch -Np1 -i $WOK/coreutils/stuff/coreutils-8.25-i18n-2.patch |
Hans-G?nter@22616 | 31 |
al@19216 | 32 # SliTaz: show extended info touching CPU via uname |
al@19216 | 33 patch -p1 -i $WOK/coreutils/stuff/uname.u |
al@19216 | 34 |
al@19216 | 35 autoreconf -fi |
al@19216 | 36 |
Hans-G?nter@22616 | 37 # bypass checking whether mknod can create fifo without root privileges |
Hans-G?nter@22616 | 38 export FORCE_UNSAFE_CONFIGURE=1 |
Hans-G?nter@22616 | 39 |
Hans-G?nter@22616 | 40 ./configure \ |
Hans-G?nter@22616 | 41 --enable-single-binary=symlinks \ |
al@19216 | 42 $CONFIGURE_ARGS && |
Hans-G?nter@22616 | 43 make && |
Hans-G?nter@22616 | 44 make install |
al@19216 | 45 |
al@19216 | 46 # LFS: Move programs to the locations specified by the FHS |
Hans-G?nter@22616 | 47 mkdir -p $install/bin |
Hans-G?nter@22616 | 48 mkdir -p $install/usr/sbin |
Hans-G?nter@22616 | 49 mkdir -p $install/usr/share/man/man8 |
Hans-G?nter@22616 | 50 |
Hans-G?nter@24437 | 51 while read i |
Hans-G?nter@22616 | 52 do |
al@19216 | 53 rm $install/usr/bin/$i |
Hans-G?nter@22616 | 54 ln -s /usr/bin/coreutils $install/bin/$i |
Hans-G?nter@24437 | 55 done <<EOT |
Hans-G?nter@24437 | 56 cat |
Hans-G?nter@24437 | 57 chgrp |
Hans-G?nter@24437 | 58 chmod |
Hans-G?nter@24437 | 59 chown |
Hans-G?nter@24437 | 60 cp |
Hans-G?nter@24437 | 61 date |
Hans-G?nter@24437 | 62 dd |
Hans-G?nter@24437 | 63 df |
Hans-G?nter@24437 | 64 echo |
Hans-G?nter@24437 | 65 false |
Hans-G?nter@24437 | 66 ln |
Hans-G?nter@24437 | 67 ls |
Hans-G?nter@24437 | 68 mkdir |
Hans-G?nter@24437 | 69 mknod |
Hans-G?nter@24437 | 70 mv |
Hans-G?nter@24437 | 71 pwd |
Hans-G?nter@24437 | 72 rm |
Hans-G?nter@24437 | 73 rmdir |
Hans-G?nter@24437 | 74 stty |
Hans-G?nter@24437 | 75 sync |
Hans-G?nter@24437 | 76 true |
Hans-G?nter@24437 | 77 uname |
Hans-G?nter@24437 | 78 EOT |
al@19216 | 79 rm $install/usr/bin/chroot |
Hans-G?nter@22616 | 80 ln -s /usr/bin/coreutils $install/usr/sbin/chroot |
al@19216 | 81 mv $install/usr/share/man/man1/chroot.1 \ |
Hans-G?nter@22616 | 82 $install/usr/share/man/man8/chroot.8 |
Hans-G?nter@22616 | 83 |
al@19216 | 84 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8 |
al@19216 | 85 |
al@19216 | 86 find $install/usr/share/man -type f -exec gzip -9 \{\} \; |
al@19216 | 87 } |
al@19216 | 88 |
al@19216 | 89 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19216 | 90 genpkg_rules() |
al@19216 | 91 { |
Hans-G?nter@22616 | 92 cp -a $install/* $fs |
Hans-G?nter@24437 | 93 # according to https://doc.slitaz.org/en:cookbook:wok |
Hans-G?nter@24437 | 94 # Generally, the base packages contain no man, info or doc files |
Hans-G?nter@24437 | 95 rm -r $fs/usr/share |
al@19216 | 96 } |
al@19216 | 97 |
al@19216 | 98 post_install() |
al@19216 | 99 { |
al@19216 | 100 # Remove Busybox applets in order to not clash with ("/bin", "/sbin", |
al@19216 | 101 # "/usr/bin" and "/usr/sbin" conflicts with the same filename) |
Hans-G?nter@24437 | 102 rm "$1/bin/base64" # /usr/bin/base64 |
Hans-G?nter@24437 | 103 rm "$1/bin/kill" # /usr/bin/kill |
Hans-G?nter@24437 | 104 rm "$1/bin/mktemp" # /usr/bin/mktemp |
Hans-G?nter@24437 | 105 rm "$1/bin/nice" # /usr/bin/nice |
Hans-G?nter@24437 | 106 rm "$1/bin/printenv" # /usr/bin/printenv |
Hans-G?nter@24437 | 107 rm "$1/bin/sleep" # /usr/bin/sleep |
Hans-G?nter@24437 | 108 rm "$1/bin/stat" # /usr/bin/stat |
Hans-G?nter@24437 | 109 rm "$1/bin/touch" # /usr/bin/touch |
al@19216 | 110 } |
al@19216 | 111 |
al@19216 | 112 post_remove() |
al@19216 | 113 { |
al@19216 | 114 # Restore all Busybox applets that have been replaced |
al@19216 | 115 |
al@19216 | 116 # /bin: |
Hans-G?nter@24437 | 117 while read i |
Hans-G?nter@22616 | 118 do |
al@19216 | 119 busybox ln -s busybox "$1/bin/$i" |
Hans-G?nter@24437 | 120 done <<EOT |
Hans-G?nter@24437 | 121 base64 |
Hans-G?nter@24437 | 122 cat |
Hans-G?nter@24437 | 123 chgrp |
Hans-G?nter@24437 | 124 chmod |
Hans-G?nter@24437 | 125 chown |
Hans-G?nter@24437 | 126 cp |
Hans-G?nter@24437 | 127 date |
Hans-G?nter@24437 | 128 dd |
Hans-G?nter@24437 | 129 df |
Hans-G?nter@24437 | 130 echo |
Hans-G?nter@24437 | 131 false |
Hans-G?nter@24437 | 132 kill |
Hans-G?nter@24437 | 133 ln |
Hans-G?nter@24437 | 134 ls |
Hans-G?nter@24437 | 135 mkdir |
Hans-G?nter@24437 | 136 mknod |
Hans-G?nter@24437 | 137 mktemp |
Hans-G?nter@24437 | 138 mv |
Hans-G?nter@24437 | 139 nice |
Hans-G?nter@24437 | 140 printenv |
Hans-G?nter@24437 | 141 pwd |
Hans-G?nter@24437 | 142 rm |
Hans-G?nter@24437 | 143 rmdir |
Hans-G?nter@24437 | 144 sleep |
Hans-G?nter@24437 | 145 stat |
Hans-G?nter@24437 | 146 stty |
Hans-G?nter@24437 | 147 sync |
Hans-G?nter@24437 | 148 touch |
Hans-G?nter@24437 | 149 true |
Hans-G?nter@24437 | 150 uname |
Hans-G?nter@24437 | 151 EOT |
al@19216 | 152 |
al@19216 | 153 # /usr/bin: |
Hans-G?nter@24437 | 154 while read i |
Hans-G?nter@22616 | 155 do |
al@19216 | 156 busybox ln -s /bin/busybox "$1/usr/bin/$i" |
Hans-G?nter@24437 | 157 done <<EOT |
Hans-G?nter@24437 | 158 [ |
Hans-G?nter@24437 | 159 basename |
Hans-G?nter@24437 | 160 cksum |
Hans-G?nter@24437 | 161 comm |
Hans-G?nter@24437 | 162 cut |
Hans-G?nter@24437 | 163 dirname |
Hans-G?nter@24437 | 164 du |
Hans-G?nter@24437 | 165 env |
Hans-G?nter@24437 | 166 expand |
Hans-G?nter@24437 | 167 expr |
Hans-G?nter@24437 | 168 fold |
Hans-G?nter@24437 | 169 groups |
Hans-G?nter@24437 | 170 head |
Hans-G?nter@24437 | 171 hostid |
Hans-G?nter@24437 | 172 id |
Hans-G?nter@24437 | 173 install |
Hans-G?nter@24437 | 174 logname |
Hans-G?nter@24437 | 175 md5sum |
Hans-G?nter@24437 | 176 mkfifo |
Hans-G?nter@24437 | 177 nohup |
Hans-G?nter@24437 | 178 od |
Hans-G?nter@24437 | 179 printf |
Hans-G?nter@24437 | 180 readlink |
Hans-G?nter@24437 | 181 realpath |
Hans-G?nter@24437 | 182 seq |
Hans-G?nter@24437 | 183 sha1sum |
Hans-G?nter@24437 | 184 sha256sum |
Hans-G?nter@24437 | 185 sha512sum |
Hans-G?nter@24437 | 186 sort |
Hans-G?nter@24437 | 187 split |
Hans-G?nter@24437 | 188 sum |
Hans-G?nter@24437 | 189 tac |
Hans-G?nter@24437 | 190 tail |
Hans-G?nter@24437 | 191 tee |
Hans-G?nter@24437 | 192 test |
Hans-G?nter@24437 | 193 timeout |
Hans-G?nter@24437 | 194 tr |
Hans-G?nter@24437 | 195 tty |
Hans-G?nter@24437 | 196 unexpand |
Hans-G?nter@24437 | 197 uniq |
Hans-G?nter@24437 | 198 uptime |
Hans-G?nter@24437 | 199 users |
Hans-G?nter@24437 | 200 wc |
Hans-G?nter@24437 | 201 who |
Hans-G?nter@24437 | 202 whoami |
Hans-G?nter@24437 | 203 yes |
Hans-G?nter@24437 | 204 EOT |
al@19216 | 205 |
al@19216 | 206 # /usr/sbin: |
al@19216 | 207 busybox ln -s /bin/busybox "$1/usr/sbin/chroot" |
al@19216 | 208 } |