aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2022-11-21 10:22:51 +0000
committerĐoàn Trần Công Danh <sgn.danh@gmail.com>2022-11-22 02:05:10 +0000
commit22054be8351639008aff2acc76dfbffa44916423 (patch)
tree94ad5a7211edfc23660dc31ce822c25eb04cc51e
parent88a30a7f0e54a4ac39f6ff78e5407ba175ac3813 (diff)
downloadvoid-packages-22054be8351639008aff2acc76dfbffa44916423.tar
void-packages-22054be8351639008aff2acc76dfbffa44916423.tar.gz
void-packages-22054be8351639008aff2acc76dfbffa44916423.tar.bz2
void-packages-22054be8351639008aff2acc76dfbffa44916423.tar.lz
void-packages-22054be8351639008aff2acc76dfbffa44916423.tar.xz
void-packages-22054be8351639008aff2acc76dfbffa44916423.tar.zst
void-packages-22054be8351639008aff2acc76dfbffa44916423.zip
pkglint: forbid /usr/lib/libexec
-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