99-pkglint: forbid /usr/etc
data files should go to /usr/share, config files should go to /etc
This commit is contained in:
parent
8dbdd0699b
commit
c22acb3072
|
@ -22,7 +22,7 @@ hook() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for f in var/run usr/local; do
|
for f in var/run usr/local usr/etc; do
|
||||||
if [ -d ${PKGDESTDIR}/${f} ]; then
|
if [ -d ${PKGDESTDIR}/${f} ]; then
|
||||||
msg_red "${pkgver}: /${f} directory is not allowed, remove it!\n"
|
msg_red "${pkgver}: /${f} directory is not allowed, remove it!\n"
|
||||||
error=1
|
error=1
|
||||||
|
|
13
common/wrappers/which.sh
Normal file
13
common/wrappers/which.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
ret=0
|
||||||
|
|
||||||
|
while test $# != 0; do
|
||||||
|
case "$1" in
|
||||||
|
-*) ;;
|
||||||
|
*) command -v "$1" || ret=1 ;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
exit "$ret"
|
Loading…
Reference in New Issue
Block a user