From cabbc874e63d3f3a06ff998b6852039a387fc3dd Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 29 Feb 2012 15:53:42 +0000 Subject: abuild: check for FHS forbidden dirs --- abuild.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/abuild.in b/abuild.in index 7ff5ec0..1ed5465 100755 --- a/abuild.in +++ b/abuild.in @@ -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 -- cgit v1.2.3-60-g2f50