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