From 41e28f11ba2d0367375858fa754519a66f2e056a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 29 Feb 2012 15:59:05 +0000 Subject: abuild: allow skip FHS check some package (alpine-baselayout) needs to create /usr/local/bin etc. --- abuild.in | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/abuild.in b/abuild.in index 1ed5465..c460ad4 100755 --- a/abuild.in +++ b/abuild.in @@ -548,12 +548,14 @@ postcheck() { local dir="$1" name="$2" i= 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 + if ! options_has "!fhs"; then + 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 + fi # look for *.la files i=$(find "$dir" -name '*.la' | sed "s|^$dir|\t|") if [ -n "$i" ] && ! options_has "libtool"; then -- cgit v1.2.3-60-g2f50