wok-next annotate util-linux/receipt @ rev 21056
zim: fix build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 03 11:57:12 2018 +0200 (2018-12-03) |
parents | e7a485521d6a |
children | a43eb412173d |
rev | line source |
---|---|
al@19741 | 1 # SliTaz package receipt v2. |
pankso@12480 | 2 |
pankso@12480 | 3 PACKAGE="util-linux" |
al@20905 | 4 VERSION="2.32.1" |
pankso@12480 | 5 CATEGORY="meta" |
al@19741 | 6 SHORT_DESC="Random collection of Linux utilities" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
al@19253 | 8 LICENSE="GPL2 LGPL2.1 BSD PublicDomain" |
al@19253 | 9 WEB_SITE="https://en.wikipedia.org/wiki/Util-linux" |
al@20905 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/util-linux.html" |
pankso@12480 | 11 |
al@19741 | 12 TARBALL="$PACKAGE-${VERSION%.0}.tar.xz" |
al@19741 | 13 WGET_URL="https://www.kernel.org/pub/linux/utils/util-linux/v${VERSION%.*}/$TARBALL" |
al@19568 | 14 |
al@19613 | 15 BUILD_DEPENDS="libcap-dev readline-dev python-dev glib gtk-doc \ |
al@21020 | 16 libxslt gettext-dev ncurses-dev zlib-dev" |
al@19741 | 17 COOKOPTS="!menus" |
al@21020 | 18 SPLIT="$PACKAGE-bash-completion $PACKAGE-blkid $PACKAGE-blkid-dev \ |
al@21020 | 19 $PACKAGE-blockdev $PACKAGE-cfdisk $PACKAGE-column $PACKAGE-cramfs \ |
al@21020 | 20 $PACKAGE-eject $PACKAGE-fdisk $PACKAGE-fdisk-dev $PACKAGE-flock \ |
al@21020 | 21 $PACKAGE-getopt $PACKAGE-manpages $PACKAGE-minix $PACKAGE-mkfs \ |
al@21020 | 22 $PACKAGE-mount $PACKAGE-mount-dev $PACKAGE-partx $PACKAGE-setterm \ |
al@21020 | 23 $PACKAGE-sfdisk $PACKAGE-smartcols $PACKAGE-smartcols-dev \ |
al@21020 | 24 $PACKAGE-uuid $PACKAGE-uuid-dev $PACKAGE-whereis $PACKAGE-misc" |
pankso@12480 | 25 |
al@20436 | 26 compile_rules() { |
al@19568 | 27 mkdir -p $install/var/lib/hwclock |
pankso@12480 | 28 ./configure \ |
al@19568 | 29 ADJTIME_PATH=/var/lib/hwclock/adjtime \ |
al@19568 | 30 --disable-static \ |
al@19568 | 31 --without-systemd \ |
al@19568 | 32 --without-systemdsystemunitdir && |
al@20604 | 33 fix libtool && |
al@20905 | 34 make && |
al@21020 | 35 make install || return 1 |
al@19741 | 36 |
al@20547 | 37 install -Dm644 $stuff/cfdisk.desktop \ |
al@20547 | 38 $install/usr/share/applications/cfdisk.desktop |
pankso@12480 | 39 } |
al@19741 | 40 |
al@20436 | 41 genpkg_rules() { |
al@19741 | 42 case ${PACKAGE#util-linux-} in |
al@19741 | 43 bash-completion) |
al@19741 | 44 copy bash-completion/ |
al@19741 | 45 CAT="shells|BASH completions" |
al@19741 | 46 DEPENDS="bash" |
al@19741 | 47 ;; |
al@19741 | 48 blkid) |
al@19741 | 49 copy lsblk blkid libblkid.so* |
al@19741 | 50 CAT="base-system|blkid utility" |
al@19741 | 51 DEPENDS="glibc-base util-linux-mount util-linux-smartcols \ |
al@19741 | 52 util-linux-uuid" |
al@19741 | 53 ;; |
al@19741 | 54 blkid-dev) |
al@20547 | 55 copy blkid.h blkid.pc |
al@19741 | 56 CAT="development|blkid development files" |
al@19741 | 57 DEPENDS="util-linux-blkid util-linux-uuid-dev" |
al@19741 | 58 ;; |
al@19741 | 59 blockdev) |
al@19741 | 60 copy blockdev |
al@19741 | 61 CAT="base-system|blockdev utility" |
al@19741 | 62 DEPENDS="glibc-base" |
al@19741 | 63 ;; |
al@19741 | 64 cfdisk) |
al@19783 | 65 copy cfdisk cfdisk.desktop |
al@19741 | 66 CAT="system-tools|cfdisk utility" |
al@19741 | 67 DEPENDS="glibc-base ncurses util-linux-blkid util-linux-fdisk \ |
al@19741 | 68 util-linux-mount util-linux-smartcols util-linux-uuid" |
al@19741 | 69 ;; |
al@19741 | 70 column) |
al@19741 | 71 copy column col colrm colcrt |
al@19741 | 72 CAT="base-system|column utility" |
al@19741 | 73 DEPENDS="glibc-base" |
al@19741 | 74 ;; |
al@19741 | 75 cramfs) |
al@19741 | 76 copy *.cramfs |
al@19741 | 77 CAT="system-tools|cramfs utilities" |
al@19741 | 78 DEPENDS="glibc-base zlib" |
al@19741 | 79 ;; |
al@19741 | 80 eject) |
al@19741 | 81 copy eject |
al@19741 | 82 CAT="base-system|eject utility" |
al@19741 | 83 DEPENDS="glibc-base util-linux-blkid util-linux-mount \ |
al@19741 | 84 util-linux-uuid" |
al@19741 | 85 ;; |
al@19741 | 86 fdisk) |
al@19741 | 87 copy fdisk libfdisk.so* |
al@19741 | 88 CAT="system-tools|fdisk utility" |
al@19741 | 89 DEPENDS="glibc-base ncurses readline util-linux-blkid \ |
al@19741 | 90 util-linux-smartcols util-linux-uuid" |
al@19741 | 91 ;; |
al@19741 | 92 fdisk-dev) |
al@20547 | 93 copy libfdisk.h fdisk.pc |
al@19741 | 94 CAT="development|fdisk utility development files" |
al@19741 | 95 DEPENDS="util-linux-fdisk util-linux-blkid-dev util-linux-uuid-dev" |
al@19741 | 96 ;; |
al@19741 | 97 flock) |
al@19741 | 98 copy flock lslocks |
al@19741 | 99 CAT="base-system|flock utility" |
al@19741 | 100 DEPENDS="glibc-base" |
al@19741 | 101 ;; |
al@19741 | 102 getopt) |
al@19741 | 103 copy getopt |
al@19741 | 104 CAT="base-system|getopt utility" |
al@19741 | 105 DEPENDS="glibc-base" |
al@19741 | 106 ;; |
al@19741 | 107 manpages) |
al@19741 | 108 copy man/ |
al@19741 | 109 CAT="doc|manual pages" |
al@19741 | 110 DEPENDS=" " |
al@19741 | 111 ;; |
al@19741 | 112 minix) |
al@19741 | 113 copy *.minix |
al@19741 | 114 CAT="system-tools|minix utilities" |
al@19741 | 115 DEPENDS="glibc-base" |
al@19741 | 116 ;; |
al@19741 | 117 mkfs) |
al@19741 | 118 copy mk* |
al@19741 | 119 rm -r $fs/usr |
al@19741 | 120 CAT="base-system|mkfs utilities" |
al@19741 | 121 DEPENDS="glibc-base util-linux-blkid util-linux-uuid zlib" |
al@19741 | 122 ;; |
al@19741 | 123 mount) |
al@19741 | 124 copy findmnt mount libmount.so* mountpoint umount |
al@19741 | 125 CAT="base-system|mount utilities" |
al@19741 | 126 DEPENDS="glibc-base util-linux-blkid util-linux-uuid \ |
al@19741 | 127 util-linux-smartcols" |
al@19741 | 128 ;; |
al@19741 | 129 mount-dev) |
al@20547 | 130 copy libmount.h mount.pc |
al@19741 | 131 CAT="development|mount utilities development files" |
al@19741 | 132 DEPENDS="util-linux-mount util-linux-blkid-dev util-linux-uuid-dev" |
al@19741 | 133 ;; |
al@19741 | 134 partx) |
al@19741 | 135 copy addpart delpart partx resizepart |
al@19741 | 136 CAT="system-tools|partx utilities" |
al@19741 | 137 DEPENDS="glibc-base util-linux-blkid util-linux-uuid \ |
al@19741 | 138 util-linux-smartcols" |
al@19741 | 139 ;; |
al@19741 | 140 setterm) |
al@19741 | 141 copy setterm |
al@19741 | 142 CAT="base-system|setterm utility" |
al@19741 | 143 DEPENDS="glibc-base ncurses" |
al@19741 | 144 ;; |
al@19741 | 145 sfdisk) |
al@19741 | 146 copy sfdisk |
al@19741 | 147 CAT="system-tools|sfdisk utility" |
al@19741 | 148 DEPENDS="glibc-base ncurses readline util-linux-blkid \ |
al@19741 | 149 util-linux-fdisk util-linux-smartcols util-linux-uuid" |
al@19741 | 150 ;; |
al@19741 | 151 smartcols) |
al@19741 | 152 copy libsmartcols.so* |
al@19741 | 153 CAT="system-tools|smartcols library" |
al@19741 | 154 DEPENDS="glibc-base" |
al@19741 | 155 ;; |
al@19741 | 156 smartcols-dev) |
al@20547 | 157 copy libsmartcols.h smartcols.pc |
al@19741 | 158 CAT="development|smartcols library development files" |
al@19741 | 159 DEPENDS="util-linux-smartcols" |
al@19741 | 160 ;; |
al@19741 | 161 uuid) |
al@19741 | 162 copy libuuid.so* uuidgen uuidd |
al@19741 | 163 CAT="base-system|uuid utility and library" |
al@19741 | 164 DEPENDS="glibc-base" |
al@19741 | 165 ;; |
al@19741 | 166 uuid-dev) |
al@20547 | 167 copy uuid.h uuid.pc |
al@19741 | 168 CAT="development|uuid utility and library development files" |
al@19741 | 169 DEPENDS="util-linux-uuid" |
al@19741 | 170 ;; |
al@19741 | 171 whereis) |
al@19741 | 172 copy whereis |
al@19741 | 173 CAT="base-system|whereis utility" |
al@19741 | 174 DEPENDS="glibc-base" |
al@19741 | 175 ;; |
al@19741 | 176 misc) |
al@20436 | 177 copy @std @dev @rm |
al@19741 | 178 CAT="system-tools|misc utilities" |
al@19741 | 179 ;; |
al@20436 | 180 util-linux) |
al@20436 | 181 TAGS="LFS" |
al@20436 | 182 ;; |
al@19741 | 183 esac |
al@19741 | 184 |
al@19741 | 185 if [ "$PACKAGE" != 'util-linux-bash-completion' -a -d "$fs/usr/share/bash-completion" ]; then |
al@19741 | 186 rm -r $fs/usr/share/bash-completion |
al@19741 | 187 rmdir --parents --ignore-fail-on-non-empty $fs/usr/share |
al@19741 | 188 fi |
al@19741 | 189 } |