Commit cabbc874 authored by Natanael Copa's avatar Natanael Copa

abuild: check for FHS forbidden dirs

parent affb05d4
......@@ -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
# look for *.la files
i=$(find "$dir" -name '*.la' | sed "s|^$dir|\t|")
if [ -n "$i" ] && ! options_has "libtool"; then
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment