cookutils annotate cook.site @ rev 1103
modules/compressor: gettext package was reorganized; lighttpd/cooker.css: smaller patch icon
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Dec 01 11:36:38 2018 +0200 (2018-12-01) |
parents | 54c97f545127 |
children |
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@1041 | 19 |
al@1041 | 20 case $sysconfdir in |
al@1041 | 21 /etc*) ;; |
al@1041 | 22 *) sysconfdir="/etc";; |
al@1041 | 23 esac |
al@1041 | 24 |
al@1041 | 25 case $localstatedir in |
al@1041 | 26 /var*) ;; |
al@1041 | 27 *) localstatedir="/var";; |
al@1041 | 28 esac |
al@1041 | 29 |
al@1027 | 30 datarootdir="$prefix/share" |
al@1032 | 31 #datadir="$datarootdir" # respect "kbd" receipt |
al@1027 | 32 infodir="$datarootdir/info" |
al@1027 | 33 localedir="$datarootdir/locale" |
al@1027 | 34 mandir="$datarootdir/man" |
al@1027 | 35 docdir="$datarootdir/doc/$(. $receiptpath/receipt; echo $PACKAGE-$VERSION)" |
al@1027 | 36 |
al@1027 | 37 unset receiptpath |