69 lines
2.0 KiB
Plaintext
69 lines
2.0 KiB
Plaintext
# Description: Network configuration tool
|
|
# URL: https://wiki.gnome.org/Projects/NetworkManager/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: curl dbus-glib intltool jansson libndp libxslt nss
|
|
|
|
name=libnm
|
|
version=1.18.10
|
|
release=1
|
|
source=(https://ftp.gnome.org/pub/gnome/sources/NetworkManager/${version%.*}/NetworkManager-${version}.tar.xz)
|
|
|
|
build() {
|
|
sed '/initrd/d' -i NetworkManager-$version/src/meson.build
|
|
|
|
CXXFLAGS+="-O2 -fPIC" \
|
|
meson setup NetworkManager-$version build \
|
|
--prefix /usr \
|
|
--sysconfdir /etc \
|
|
--localstatedir /var \
|
|
--libexecdir /usr/lib/networkmanager \
|
|
--buildtype=plain \
|
|
-D dbus_conf_dir=/usr/share/dbus-1/system.d \
|
|
-D udev_dir=/lib/udev \
|
|
-D dhcpcd=/sbin/dhcpcd \
|
|
-D resolvconf=true \
|
|
-D config_dns_rc_manager_default=resolvconf \
|
|
-D crypto=nss \
|
|
-D introspection=false \
|
|
-D session_tracking_consolekit=false \
|
|
-D wifi=false \
|
|
-D wext=false \
|
|
-D polkit=false \
|
|
-D modify_system=true \
|
|
-D libnm_glib=true \
|
|
-D ifupdown=false \
|
|
-D nmtui=false \
|
|
-D nmcli=false \
|
|
-D session_tracking=no \
|
|
-D b_lto=false \
|
|
-D libaudit=no \
|
|
-D libpsl=false \
|
|
-D ppp=false \
|
|
-D ofono=false \
|
|
-D selinux=false \
|
|
-D modem_manager=false \
|
|
-D systemdsystemunitdir=false \
|
|
-D systemd_journal=false \
|
|
-D qt=false \
|
|
-D docs=false \
|
|
-D tests=no \
|
|
-D json_validation=true \
|
|
-D ovs=false \
|
|
-D more_logging=false \
|
|
-D more_asserts=0 \
|
|
-D libpsl=false
|
|
meson compile -C build
|
|
DESTDIR=$SRC/install meson install -C build
|
|
|
|
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/
|
|
cp -dr --no-preserve='ownership' $SRC/install/usr/lib/pkgconfig/{libnm,libnm-glib,libnm-glib-vpn,libnm-util}.pc $PKG/usr/lib/pkgconfig/
|
|
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
|
|
}
|