diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-29 15:53:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-29 15:53:42 +0000 |
commit | cabbc874e63d3f3a06ff998b6852039a387fc3dd (patch) | |
tree | 033576b84e543ccb4cd96c69243dc178a5671bec /abuild.in | |
parent | affb05d446261d1064ab9cd859167ecc72292be8 (diff) | |
download | abuild-cabbc874e63d3f3a06ff998b6852039a387fc3dd.tar.gz abuild-cabbc874e63d3f3a06ff998b6852039a387fc3dd.tar.bz2 abuild-cabbc874e63d3f3a06ff998b6852039a387fc3dd.tar.xz abuild-cabbc874e63d3f3a06ff998b6852039a387fc3dd.zip |
abuild: check for FHS forbidden dirs
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -547,6 +547,13 @@ get_split_func() { 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 # look for *.la files i=$(find "$dir" -name '*.la' | sed "s|^$dir|\t|") if [ -n "$i" ] && ! options_has "libtool"; then |