klibc-module-init-tools: move bins to /usr/lib/klibc/sbin.
--HG-- extra : convert_revision : 09521aa313418746411ca0cbcf023c3725d67f06
This commit is contained in:
parent
26a8c1b1fa
commit
0e265b5ebd
|
@ -15,7 +15,7 @@ long_desc="
|
||||||
|
|
||||||
This package uses klibc for use in the initramfs."
|
This package uses klibc for use in the initramfs."
|
||||||
|
|
||||||
Add_dependency build klibc-devel
|
Add_dependency build klibc
|
||||||
Add_dependency run klibc
|
Add_dependency run klibc
|
||||||
|
|
||||||
do_install()
|
do_install()
|
||||||
|
@ -23,14 +23,14 @@ do_install()
|
||||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||||
|
|
||||||
cd $wrksrc
|
cd $wrksrc
|
||||||
CFLAGS="${CFLAGS} -DCONFIG_NO_BACKWARDS_COMPAT" \
|
CFLAGS="-O2 -DCONFIG_NO_BACKWARDS_COMPAT" \
|
||||||
CC=klcc LD=klcc ./configure --prefix=
|
CC=klcc LD=klcc ./configure --prefix=
|
||||||
# klibc lacks getc_unlocked, so use getc instead
|
# klibc lacks getc_unlocked, so use getc instead
|
||||||
sed 's|getc_unlocked|getc|g' -i *.c
|
sed 's|getc_unlocked|getc|g' -i *.c
|
||||||
make || return 1
|
make || return 1
|
||||||
|
|
||||||
install -d ${destdir}/usr/lib/klibc/bin
|
install -d ${destdir}/usr/lib/klibc/sbin
|
||||||
for f in depmod modinfo modprobe insmod lsmod rmmod; do
|
for f in depmod modinfo modprobe insmod lsmod rmmod; do
|
||||||
install -s -m755 ${f} ${destdir}/usr/lib/klibc/bin
|
install -s -m755 ${f} ${destdir}/usr/lib/klibc/sbin
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue