cookutils annotate 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.
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 |
rev | line source |
---|---|
pankso@3 | 1 # /etc/slitaz/cook.site: Default options passed to ./configure in SliTaz |
pankso@3 | 2 # |
pankso@3 | 3 # This file is used since we can't export these variables, but configure |
pankso@216 | 4 # handles CONFIG_SITE and will source this file automatically. |
pankso@3 | 5 # |
pankso@3 | 6 # If you want to use your own cook.site, you can use: |
al@1027 | 7 # export CONFIG_SITE=config.site in compile_rules() of a receipt. |
pankso@3 | 8 # |
pankso@3 | 9 |
al@1027 | 10 # Find receipt (backward recursively from current dir) |
al@1027 | 11 receiptpath=$(realpath .) |
al@1027 | 12 until [ -z "$receiptpath" -o -e "$receiptpath/receipt" ]; do |
al@1027 | 13 receiptpath="${receiptpath%/*}" |
al@1027 | 14 done |
al@1027 | 15 |
pankso@3 | 16 |
pankso@216 | 17 # Default options. |
al@1027 | 18 prefix="/usr" |
al@1027 | 19 sysconfdir="/etc" |
al@1027 | 20 localstatedir="/var" |
al@1027 | 21 datarootdir="$prefix/share" |
al@1027 | 22 datadir="$datarootdir" |
al@1027 | 23 infodir="$datarootdir/info" |
al@1027 | 24 localedir="$datarootdir/locale" |
al@1027 | 25 mandir="$datarootdir/man" |
al@1027 | 26 docdir="$datarootdir/doc/$(. $receiptpath/receipt; echo $PACKAGE-$VERSION)" |
al@1027 | 27 |
al@1027 | 28 unset receiptpath |