cifs-utils: unbreak musl
This commit is contained in:
parent
781e6783b1
commit
f25c8a462d
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'cifs-utils'
|
# Template file for 'cifs-utils'
|
||||||
pkgname=cifs-utils
|
pkgname=cifs-utils
|
||||||
version=6.4
|
version=6.4
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sbindir=/usr/bin"
|
configure_args="--sbindir=/usr/bin"
|
||||||
make_install_args="ROOTSBINDIR=/usr/bin"
|
make_install_args="ROOTSBINDIR=/usr/bin"
|
||||||
|
@ -14,6 +14,19 @@ homepage="http://wiki.samba.org/index.php/LinuxCIFS_utils"
|
||||||
distfiles="https://ftp.samba.org/pub/linux-cifs/$pkgname/$pkgname-$version.tar.bz2"
|
distfiles="https://ftp.samba.org/pub/linux-cifs/$pkgname/$pkgname-$version.tar.bz2"
|
||||||
checksum=38fc63926af435dae4ebcf4406275580a692d9fb9ee3e32170317cf2ba68e6e3
|
checksum=38fc63926af435dae4ebcf4406275580a692d9fb9ee3e32170317cf2ba68e6e3
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
# Fix musl build
|
||||||
|
sed -i ${wrksrc}/mtab.c \
|
||||||
|
-e "/#include <stdlib.h>/a #include <limits.h>" \
|
||||||
|
-e "/#include <stdlib.h>/a #include <paths.h>"
|
||||||
|
sed -i ${wrksrc}/getcifsacl.c \
|
||||||
|
-e "/#include <stdlib.h>/a #include <endian.h>" \
|
||||||
|
-e "/#include <stdlib.h>/a #include <linux/limits.h>"
|
||||||
|
sed -i ${wrksrc}/setcifsacl.c \
|
||||||
|
-e "/#include <stdlib.h>/a #include <paths.h>" \
|
||||||
|
-e "/#include <stdlib.h>/a #include <endian.h>" \
|
||||||
|
-e "/#include <stdlib.h>/a #include <linux/limits.h>"
|
||||||
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
chmod +s ${DESTDIR}/usr/bin/mount.cifs
|
chmod +s ${DESTDIR}/usr/bin/mount.cifs
|
||||||
rm -rf ${DESTDIR}/usr/include
|
rm -rf ${DESTDIR}/usr/include
|
||||||
|
|
Loading…
Reference in New Issue