]> git.ipfire.org Git - pakfire.git/commitdiff
build: Drop old FHS script
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 17 Mar 2023 10:03:36 +0000 (10:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 17 Mar 2023 10:03:36 +0000 (10:03 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/libpakfire/build.c
src/scripts/check-fhs [deleted file]

index e9b2b2386c93c97c63a2ef0f87fbf0bad1554c4b..1ec548fca8bbb6612ec74f1e610b038a5618c6d5 100644 (file)
@@ -721,7 +721,6 @@ tests_parser_test_LDADD = \
 
 dist_scripts_SCRIPTS = \
        src/scripts/check-buildroot \
-       src/scripts/check-fhs \
        src/scripts/check-hardening \
        src/scripts/check-include \
        src/scripts/check-interpreters \
index 66bdbd19028969489d525d9c6a0b4b3ed6b0ece0..e481ede099ab857b59c45004c7ab4d3ed1fd0bf5 100644 (file)
@@ -1329,7 +1329,6 @@ static const char* post_build_scripts[] = {
        "check-include",
        "check-hardening",
        "check-interpreters",
-       "check-fhs",
        "compress-man-pages",
        "strip",
        NULL,
diff --git a/src/scripts/check-fhs b/src/scripts/check-fhs
deleted file mode 100644 (file)
index 4ac7703..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/bash
-###############################################################################
-#                                                                             #
-# Pakfire - The IPFire package management system                              #
-# Copyright (C) 2021 Pakfire development team                                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
-###############################################################################
-
-error() {
-       echo "$@" >&2
-}
-
-main() {
-       local buildroot="${1}"
-       shift
-
-       # Check if BUILDROOT exists
-       if [ ! -d "${buildroot}" ]; then
-               error "BUILDROOT does not exist"
-               return 1
-       fi
-
-       local illegal_directories=(
-               "/bin"
-               "/etc/init.d"
-               "/etc/rc.d"
-               "/lib"
-               "/lib64"
-               "/lib/pkgconfig"
-               "/sbin"
-               "/usr/etc"
-               "/usr/libexec"
-               "/usr/local"
-               "/usr/man"
-               "/usr/usr"
-               "/usr/var"
-               "${buildroot}"
-       )
-
-       local r=0
-
-       local path
-       for path in "${illegal_directories[@]}"; do
-               path="${buildroot}${path}"
-
-               if [ -d "${path}" -a ! -L "${path}" ]; then
-                       error "Illegal directory found: ${path/${buildroot}/}"
-                       r=1
-               fi
-       done
-
-       return "${r}"
-}
-
-main "$@" || exit $?