abuild: add postcheck for -openrc subpackage
This commit is contained in:
parent
45529e54d2
commit
f5eb69a5bd
10
abuild.in
10
abuild.in
@ -671,6 +671,11 @@ postcheck() {
|
|||||||
error "Found /usr/lib/charset.alias"
|
error "Found /usr/lib/charset.alias"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
# look for /etc/init.d and /etc/conf.d
|
||||||
|
if [ -e "$dir"/etc/init.d -o -e "$dir"/etc/conf.d ] \
|
||||||
|
&& ! is_openrc_pkg "$name"; then
|
||||||
|
warning "Found OpenRC directory (/etc/conf.d or /etc/init.d) but name doesn't end with -openrc"
|
||||||
|
fi
|
||||||
# look for /usr/share/doc
|
# look for /usr/share/doc
|
||||||
if [ -e "$dir"/usr/share/doc ] \
|
if [ -e "$dir"/usr/share/doc ] \
|
||||||
&& ! is_doc_pkg "$name"; then
|
&& ! is_doc_pkg "$name"; then
|
||||||
@ -1072,6 +1077,11 @@ is_doc_pkg() {
|
|||||||
test "${1%-doc}" != "$1"
|
test "${1%-doc}" != "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# returns true if this is the -openrc package
|
||||||
|
is_openrc_pkg() {
|
||||||
|
test "${1%-openrc}" != "$1"
|
||||||
|
}
|
||||||
|
|
||||||
# check that noarch is set if needed
|
# check that noarch is set if needed
|
||||||
archcheck() {
|
archcheck() {
|
||||||
options_has "!archcheck" && return 0
|
options_has "!archcheck" && return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user