cookutils annotate uname @ rev 1116
cook, modules/precheck: provide CATEGORY="nopack"; modules/pack: improve variables handling; modules/postcheck: display badge "old" both with any other badges
:
CATEGORY="nopack" is useful in the case, for example, when receipt called "libappindicator" but we want to produce only two sub-packages: "libappindicator-gtk2" and "libappindicator-gtk3" and don't want to pack "libappindicator".
:
CATEGORY="nopack" is useful in the case, for example, when receipt called "libappindicator" but we want to produce only two sub-packages: "libappindicator-gtk2" and "libappindicator-gtk3" and don't want to pack "libappindicator".
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 17 01:16:27 2018 +0200 (2018-12-17) |
parents | 251a9d5b7542 |
children |
rev | line source |
---|---|
al@1049 | 1 #!/bin/sh |
al@1049 | 2 # uname - special "fake" wrapper for using inside SliTaz cooker chroot. |
al@1049 | 3 # Although SliTaz cooker *host arch* is 64-bit, SliTaz *target arch* may be |
paul@1061 | 4 # 32-bit and some configuration tools using uname could be improperly configured. |
al@1049 | 5 # This also applies to the kernel versions of the host and the target systems. |
al@1049 | 6 |
al@1049 | 7 . /etc/slitaz/cook.conf |
al@1049 | 8 kernel_version=$(. /home/slitaz/wok/linux/receipt; echo $VERSION) |
al@1049 | 9 uname_r=$(/bin/busybox uname -r) |
al@1049 | 10 /bin/busybox uname $@ | sed "s|x86_64|$ARCH|g; s|$uname_r|$kernel_version-slitaz|g" |