wok-next view util-linux/receipt @ rev 19810
Up atm-tools, audiofile, audit, avfs, c_icap, xz.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jul 19 14:10:52 2017 +0300 (2017-07-19) |
parents | 9278a60d6895 |
children | 77529bc3b589 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="util-linux"
4 VERSION="2.30.0"
5 CATEGORY="meta"
6 SHORT_DESC="Random collection of Linux utilities"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2 LGPL2.1 BSD PublicDomain"
9 WEB_SITE="https://en.wikipedia.org/wiki/Util-linux"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-${VERSION%.0}.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/utils/util-linux/v${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS="libcap-dev readline-dev python-dev glib gtk-doc \
16 libxslt gettext ncurses-dev zlib-dev"
17 COOKOPTS="!menus"
18 SPLIT="util-linux-bash-completion util-linux-blkid util-linux-blkid-dev \
19 util-linux-blockdev util-linux-cfdisk util-linux-column util-linux-cramfs \
20 util-linux-eject util-linux-fdisk util-linux-fdisk-dev util-linux-flock \
21 util-linux-getopt util-linux-manpages util-linux-minix util-linux-mkfs \
22 util-linux-mount util-linux-mount-dev util-linux-partx util-linux-setterm \
23 util-linux-sfdisk util-linux-smartcols util-linux-smartcols-dev \
24 util-linux-uuid util-linux-uuid-dev util-linux-whereis util-linux-misc"
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Fix undeclared 'LINE_MAX'
30 case "$ARCH" in
31 arm) sed -i s'|LINE_MAX|25|' text-utils/*.c ;;
32 esac
34 mkdir -p $install/var/lib/hwclock
35 ./configure \
36 ADJTIME_PATH=/var/lib/hwclock/adjtime \
37 --docdir=/usr/share/doc/util-linux-$VERSION \
38 --disable-static \
39 --without-systemd \
40 --without-systemdsystemunitdir &&
41 make && make install || exit 1
43 mkdir -p $install/usr/share/applications
44 cp $stuff/cfdisk.desktop $install/usr/share/applications
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 case ${PACKAGE#util-linux-} in
51 bash-completion)
52 copy bash-completion/
53 CAT="shells|BASH completions"
54 DEPENDS="bash"
55 ;;
56 blkid)
57 copy lsblk blkid libblkid.so*
58 CAT="base-system|blkid utility"
59 DEPENDS="glibc-base util-linux-mount util-linux-smartcols \
60 util-linux-uuid"
61 ;;
62 blkid-dev)
63 copy blkid.h blkid.pc libblkid.*a
64 CAT="development|blkid development files"
65 DEPENDS="util-linux-blkid util-linux-uuid-dev"
66 ;;
67 blockdev)
68 copy blockdev
69 CAT="base-system|blockdev utility"
70 DEPENDS="glibc-base"
71 ;;
72 cfdisk)
73 copy cfdisk cfdisk.desktop
74 CAT="system-tools|cfdisk utility"
75 DEPENDS="glibc-base ncurses util-linux-blkid util-linux-fdisk \
76 util-linux-mount util-linux-smartcols util-linux-uuid"
77 ;;
78 column)
79 copy column col colrm colcrt
80 CAT="base-system|column utility"
81 DEPENDS="glibc-base"
82 ;;
83 cramfs)
84 copy *.cramfs
85 CAT="system-tools|cramfs utilities"
86 DEPENDS="glibc-base zlib"
87 ;;
88 eject)
89 copy eject
90 CAT="base-system|eject utility"
91 DEPENDS="glibc-base util-linux-blkid util-linux-mount \
92 util-linux-uuid"
93 ;;
94 fdisk)
95 copy fdisk libfdisk.so*
96 CAT="system-tools|fdisk utility"
97 DEPENDS="glibc-base ncurses readline util-linux-blkid \
98 util-linux-smartcols util-linux-uuid"
99 ;;
100 fdisk-dev)
101 copy libfdisk.h libfdisk.*a fdisk.pc
102 CAT="development|fdisk utility development files"
103 DEPENDS="util-linux-fdisk util-linux-blkid-dev util-linux-uuid-dev"
104 ;;
105 flock)
106 copy flock lslocks
107 CAT="base-system|flock utility"
108 DEPENDS="glibc-base"
109 ;;
110 getopt)
111 copy getopt
112 CAT="base-system|getopt utility"
113 DEPENDS="glibc-base"
114 ;;
115 manpages)
116 copy man/
117 CAT="doc|manual pages"
118 DEPENDS=" "
119 ;;
120 minix)
121 copy *.minix
122 CAT="system-tools|minix utilities"
123 DEPENDS="glibc-base"
124 ;;
125 mkfs)
126 copy mk*
127 rm -r $fs/usr
128 CAT="base-system|mkfs utilities"
129 DEPENDS="glibc-base util-linux-blkid util-linux-uuid zlib"
130 ;;
131 mount)
132 copy findmnt mount libmount.so* mountpoint umount
133 CAT="base-system|mount utilities"
134 DEPENDS="glibc-base util-linux-blkid util-linux-uuid \
135 util-linux-smartcols"
136 ;;
137 mount-dev)
138 copy libmount.h libmount.*a mount.pc
139 CAT="development|mount utilities development files"
140 DEPENDS="util-linux-mount util-linux-blkid-dev util-linux-uuid-dev"
141 ;;
142 partx)
143 copy addpart delpart partx resizepart
144 CAT="system-tools|partx utilities"
145 DEPENDS="glibc-base util-linux-blkid util-linux-uuid \
146 util-linux-smartcols"
147 ;;
148 setterm)
149 copy setterm
150 CAT="base-system|setterm utility"
151 DEPENDS="glibc-base ncurses"
152 ;;
153 sfdisk)
154 copy sfdisk
155 CAT="system-tools|sfdisk utility"
156 DEPENDS="glibc-base ncurses readline util-linux-blkid \
157 util-linux-fdisk util-linux-smartcols util-linux-uuid"
158 ;;
159 smartcols)
160 copy libsmartcols.so*
161 CAT="system-tools|smartcols library"
162 DEPENDS="glibc-base"
163 ;;
164 smartcols-dev)
165 copy libsmartcols.h libsmartcols.*a smartcols.pc
166 CAT="development|smartcols library development files"
167 DEPENDS="util-linux-smartcols"
168 ;;
169 uuid)
170 copy libuuid.so* uuidgen uuidd
171 CAT="base-system|uuid utility and library"
172 DEPENDS="glibc-base"
173 ;;
174 uuid-dev)
175 copy uuid.h libuuid.*a uuid.pc
176 CAT="development|uuid utility and library development files"
177 DEPENDS="util-linux-uuid"
178 ;;
179 whereis)
180 copy whereis
181 CAT="base-system|whereis utility"
182 DEPENDS="glibc-base"
183 ;;
184 misc)
185 copy @std @dev
186 for i in $taz/*/files.list; do
187 while read j; do
188 rm $fs$j; rmdir $fs$(basename $j)
189 done < $i
190 done 2>/dev/null
191 CAT="system-tools|misc utilities"
192 ;;
193 esac
195 if [ "$PACKAGE" != 'util-linux-bash-completion' -a -d "$fs/usr/share/bash-completion" ]; then
196 rm -r $fs/usr/share/bash-completion
197 rmdir --parents --ignore-fail-on-non-empty $fs/usr/share
198 fi
199 }