summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in7
1 files changed, 7 insertions, 0 deletions
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