aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/hooks/pre-pkg/99-pkglint.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/hooks/pre-pkg/99-pkglint.sh b/common/hooks/pre-pkg/99-pkglint.sh
index a63e3720792..8c643f7deb9 100644
--- a/common/hooks/pre-pkg/99-pkglint.sh
+++ b/common/hooks/pre-pkg/99-pkglint.sh
@@ -29,6 +29,15 @@ hook() {
fi
done
+ if [ -d ${PKGDESTDIR}/usr/lib/libexec ]; then
+ # Add exception for kconfig,
+ # other packages hard-coded path to its files
+ if [ "${pkgname}" != kconfig ]; then
+ msg_red "${pkgver}: /usr/lib/libexec directory is not allowed!\n"
+ error=1
+ fi
+ fi
+
for f in "$PKGDESTDIR"/*; do
f="${f##*/}"
case "$f" in