diff options
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 |
commit | 22054be8351639008aff2acc76dfbffa44916423 (patch) | |
tree | 94ad5a7211edfc23660dc31ce822c25eb04cc51e | |
parent | 88a30a7f0e54a4ac39f6ff78e5407ba175ac3813 (diff) | |
download | void-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.sh | 9 |
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 |