-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcook.site
37 lines (30 loc) · 938 Bytes
/
cook.site
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# /etc/slitaz/cook.site: Default options passed to ./configure in SliTaz
#
# This file is used since we can't export these variables, but configure
# handles CONFIG_SITE and will source this file automatically.
#
# If you want to use your own cook.site, you can use:
# export CONFIG_SITE=config.site in compile_rules() of a receipt.
#
# Find receipt (backward recursively from current dir)
receiptpath=$(realpath .)
until [ -z "$receiptpath" -o -e "$receiptpath/receipt" ]; do
receiptpath="${receiptpath%/*}"
done
# Default options.
prefix="/usr"
case $sysconfdir in
/etc*) ;;
*) sysconfdir="/etc";;
esac
case $localstatedir in
/var*) ;;
*) localstatedir="/var";;
esac
datarootdir="$prefix/share"
#datadir="$datarootdir" # respect "kbd" receipt
infodir="$datarootdir/info"
localedir="$datarootdir/locale"
mandir="$datarootdir/man"
docdir="$datarootdir/doc/$(. $receiptpath/receipt; echo $PACKAGE-$VERSION)"
unset receiptpath