diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-29 15:59:05 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-29 16:01:54 +0000 |
commit | 41e28f11ba2d0367375858fa754519a66f2e056a (patch) | |
tree | e3dcb41c65720c667315a3ebb619940757bdcad3 | |
parent | cabbc874e63d3f3a06ff998b6852039a387fc3dd (diff) | |
download | abuild-41e28f11ba2d0367375858fa754519a66f2e056a.tar.gz abuild-41e28f11ba2d0367375858fa754519a66f2e056a.tar.bz2 abuild-41e28f11ba2d0367375858fa754519a66f2e056a.tar.xz abuild-41e28f11ba2d0367375858fa754519a66f2e056a.zip |
abuild: allow skip FHS check
some package (alpine-baselayout) needs to create /usr/local/bin etc.
-rwxr-xr-x | abuild.in | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 |