pkglint: forbid /usr/lib/libexec

This commit is contained in:
Đoàn Trần Công Danh 2022-11-21 17:22:51 +07:00 committed by Đoàn Trần Công Danh
parent 88a30a7f0e
commit 22054be835
1 changed files with 9 additions and 0 deletions

View File

@ -29,6 +29,15 @@ hook() {
fi fi
done 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 for f in "$PKGDESTDIR"/*; do
f="${f##*/}" f="${f##*/}"
case "$f" in case "$f" in