aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/pre-pkg
diff options
context:
space:
mode:
Diffstat (limited to 'common/hooks/pre-pkg')
-rw-r--r--common/hooks/pre-pkg/99-pkglint.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/hooks/pre-pkg/99-pkglint.sh b/common/hooks/pre-pkg/99-pkglint.sh
index 14a20c386f5..c79c798ed9f 100644
--- a/common/hooks/pre-pkg/99-pkglint.sh
+++ b/common/hooks/pre-pkg/99-pkglint.sh
@@ -13,6 +13,10 @@ hook() {
error=1
fi
done
+ if [ -d ${PKGDESTDIR}/usr/sbin ]; then
+ msg_red "${pkgver}: /usr/sbin directory is not allowed, use /usr/bin.\n"
+ error=1
+ fi
for f in sys dev home root run var/run tmp usr/lib64 usr/local; do
if [ -d ${PKGDESTDIR}/${f} ]; then
msg_red "${pkgver}: /${f} directory is not allowed, remove it!\n"