abuild: check for FHS forbidden dirs
This commit is contained in:
parent
affb05d446
commit
cabbc874e6
@ -547,6 +547,13 @@ get_split_func() {
|
|||||||
postcheck() {
|
postcheck() {
|
||||||
local dir="$1" name="$2" i=
|
local dir="$1" name="$2" i=
|
||||||
msg "Running postcheck for $name"
|
msg "Running postcheck for $name"
|
||||||
|
# checking for FHS compat
|
||||||
|
for i in "$dir"/srv/* "$dir"/usr/local/* "$dir"/opt/*; do
|
||||||
|
if [ -e "$i" ]; then
|
||||||
|
error "Packages must not put anything under /srv, /usr/local or /opt"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
# look for *.la files
|
# look for *.la files
|
||||||
i=$(find "$dir" -name '*.la' | sed "s|^$dir|\t|")
|
i=$(find "$dir" -name '*.la' | sed "s|^$dir|\t|")
|
||||||
if [ -n "$i" ] && ! options_has "libtool"; then
|
if [ -n "$i" ] && ! options_has "libtool"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user