47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Template file for 'connman'
|
|
pkgname=connman
|
|
version=1.39
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-polkit --enable-client --enable-pie --enable-ethernet
|
|
--enable-wifi --enable-bluetooth --enable-loopback --enable-nmcompat
|
|
--enable-openvpn --with-openvpn=/usr/bin/openvpn --enable-openconnect
|
|
--disable-tools --disable-wispr --with-openconnect=/usr/bin/openconnect"
|
|
hostmakedepends="automake iptables libtool pkg-config wpa_supplicant"
|
|
makedepends="gnutls-devel iptables-devel libglib-devel libmnl-devel"
|
|
depends="dbus wpa_supplicant"
|
|
short_desc="Open Source CONNection MANager"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://01.org/connman"
|
|
distfiles="${KERNEL_SITE}/network/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=9f62a7169b7491c670a1ff2e335b0d966308fb2f62e285c781105eb90f181af3
|
|
lib32disabled=yes
|
|
|
|
pre_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
for f in ${FILESDIR}/musl/*.patch; do
|
|
patch -Np1 -i $f
|
|
done
|
|
;;
|
|
*) export CFLAGS+=" -D_GNU_SOURCE";;
|
|
esac
|
|
autoreconf -fi
|
|
}
|
|
post_install() {
|
|
# Install the client connmanctl.
|
|
vbin client/connmanctl
|
|
vsv connmand
|
|
vinstall ${FILESDIR}/connmand.conf 755 usr/share/dbus-1/system.d/
|
|
}
|
|
|
|
connman-devel_package() {
|
|
depends="dbus-devel libglib-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|