sys-apps/netctl-1.9: Update to multiarch
Change-Id: I0f167eb2f1777679b15c81a37efa215d4259b387
This commit is contained in:
parent
4c37ccdc0d
commit
95362ad151
|
@ -22,7 +22,14 @@ DEPENDENCIES="
|
||||||
sys-apps/dialog
|
sys-apps/dialog
|
||||||
virtual/dhcp-client
|
virtual/dhcp-client
|
||||||
"
|
"
|
||||||
DEFAULT_SRC_INSTALL_PARAMS+=( DESTDIR="${IMAGE}" )
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
LIBDIR=/usr/$(exhost --target)/lib
|
||||||
|
BINDIR=/usr/$(exhost --target)/bin
|
||||||
|
edo sed -e "s#/usr/lib#${LIBDIR}#" -i Makefile
|
||||||
|
edo sed -e "s#/usr/bin#${BINDIR}#" -i Makefile
|
||||||
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
# nothing to do
|
# nothing to do
|
||||||
|
@ -32,12 +39,6 @@ src_compile() {
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
|
|
||||||
if [ "lib64" = "${LIBDIR}" ]
|
|
||||||
then
|
|
||||||
edo mv "${IMAGE}/usr/lib/"* "${IMAGE}/usr/lib64"
|
|
||||||
edo rmdir "${IMAGE}/usr/lib/"
|
|
||||||
fi
|
|
||||||
|
|
||||||
keepdir /etc/netctl/interfaces
|
keepdir /etc/netctl/interfaces
|
||||||
keepdir /etc/netctl/hooks
|
keepdir /etc/netctl/hooks
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue