2019-08-11 22:23:32 +10:00
|
|
|
# Description: Network configuration tool
|
|
|
|
# URL: https://wiki.gnome.org/Projects/NetworkManager/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2019-08-16 16:30:40 +00:00
|
|
|
# Depends on: curl dbus-glib intltool jansson libndp libxslt nss
|
2019-08-11 22:23:32 +10:00
|
|
|
|
|
|
|
name=libnm
|
2020-10-17 14:39:30 +00:00
|
|
|
version=1.18.10
|
2019-08-11 22:23:32 +10:00
|
|
|
release=1
|
|
|
|
source=(https://ftp.gnome.org/pub/gnome/sources/NetworkManager/${version%.*}/NetworkManager-${version}.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
2020-11-03 19:54:05 +00:00
|
|
|
sed '/initrd/d' -i NetworkManager-$version/src/meson.build
|
2019-08-11 22:23:32 +10:00
|
|
|
|
|
|
|
CXXFLAGS+="-O2 -fPIC" \
|
2020-11-03 19:54:05 +00:00
|
|
|
meson setup NetworkManager-$version build \
|
|
|
|
--prefix /usr \
|
2019-08-11 22:23:32 +10:00
|
|
|
--sysconfdir /etc \
|
|
|
|
--localstatedir /var \
|
|
|
|
--libexecdir /usr/lib/networkmanager \
|
2020-11-03 19:54:05 +00:00
|
|
|
--buildtype=plain \
|
|
|
|
-Db_ndebug=true \
|
2019-08-11 22:23:32 +10:00
|
|
|
-Ddbus_conf_dir=/usr/share/dbus-1/system.d \
|
|
|
|
-Dudev_dir=/lib/udev \
|
|
|
|
-Ddhcpcd=/sbin/dhcpcd \
|
|
|
|
-Dresolvconf=true \
|
|
|
|
-Dconfig_dns_rc_manager_default=resolvconf \
|
|
|
|
-Dcrypto=nss \
|
|
|
|
-Dintrospection=false \
|
|
|
|
-Dsession_tracking_consolekit=false \
|
|
|
|
-Dwifi=false \
|
|
|
|
-Dwext=false \
|
|
|
|
-Dpolkit=false \
|
|
|
|
-Dmodify_system=true \
|
|
|
|
-Dlibnm_glib=true \
|
|
|
|
-Difupdown=false \
|
|
|
|
-Dnmtui=false \
|
|
|
|
-Dnmcli=false \
|
|
|
|
-Dsession_tracking=no \
|
|
|
|
-Db_lto=false \
|
|
|
|
-Dlibaudit=no \
|
|
|
|
-Dlibpsl=false \
|
|
|
|
-Dppp=false \
|
|
|
|
-Dofono=false \
|
|
|
|
-Dselinux=false \
|
|
|
|
-Dmodem_manager=false \
|
|
|
|
-Dsystemdsystemunitdir=false \
|
|
|
|
-Dsystemd_journal=false \
|
|
|
|
-Dqt=false \
|
|
|
|
-Ddocs=false \
|
|
|
|
-Dtests=no \
|
|
|
|
-Djson_validation=true \
|
|
|
|
-Dovs=false \
|
|
|
|
-Dmore_logging=false \
|
|
|
|
-Dmore_asserts=0 \
|
2020-11-03 19:54:05 +00:00
|
|
|
-Dlibpsl=false
|
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$SRC/install meson install -C build
|
2019-08-11 22:23:32 +10:00
|
|
|
|
|
|
|
install -d -m 0755 $PKG/usr/lib/pkgconfig
|
|
|
|
cp -dr --no-preserve='ownership' $SRC/install/usr/lib/{libnm,libnm-glib,libnm-glib-vpn,libnm-util}.so* $PKG/usr/lib/
|
2019-08-16 16:30:40 +00:00
|
|
|
cp -dr --no-preserve='ownership' $SRC/install/usr/lib/pkgconfig/{libnm,libnm-glib,libnm-glib-vpn,libnm-util}.pc $PKG/usr/lib/pkgconfig/
|
2019-08-11 22:23:32 +10:00
|
|
|
rm $PKG/usr/lib/*.so
|
|
|
|
|
|
|
|
# conflicts with networkmanager
|
|
|
|
rm \
|
|
|
|
$PKG/usr/lib/libnm.so.0 \
|
|
|
|
$PKG/usr/lib/libnm.so.0.1.0 \
|
|
|
|
$PKG/usr/lib/pkgconfig/libnm.pc
|
|
|
|
}
|