cookutils view cook.site @ rev 1027

cook: remove old package in /home/slitaz/packages and upgrade chroot package when $ARCH is used; provide overstriked "Failed" for prepared packages;
cook.site: remove redundant first part, fix ${sysconfdir} and ${docdir};
lighttpd/index.cgi: support for overstriked "Failed";
modules/compressor: strip_package(): consider *.dbg files (from glibc and gcc packages); make deterministic *.a archives in the simpler way.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Feb 02 00:51:10 2018 +0200 (2018-02-02)
parents c734b58c9a91
children 54c97f545127
line source
1 # /etc/slitaz/cook.site: Default options passed to ./configure in SliTaz
2 #
3 # This file is used since we can't export these variables, but configure
4 # handles CONFIG_SITE and will source this file automatically.
5 #
6 # If you want to use your own cook.site, you can use:
7 # export CONFIG_SITE=config.site in compile_rules() of a receipt.
8 #
10 # Find receipt (backward recursively from current dir)
11 receiptpath=$(realpath .)
12 until [ -z "$receiptpath" -o -e "$receiptpath/receipt" ]; do
13 receiptpath="${receiptpath%/*}"
14 done
17 # Default options.
18 prefix="/usr"
19 sysconfdir="/etc"
20 localstatedir="/var"
21 datarootdir="$prefix/share"
22 datadir="$datarootdir"
23 infodir="$datarootdir/info"
24 localedir="$datarootdir/locale"
25 mandir="$datarootdir/man"
26 docdir="$datarootdir/doc/$(. $receiptpath/receipt; echo $PACKAGE-$VERSION)"
28 unset receiptpath