blob: 47992860af02f75290817c4b4885940afb6633bd (
plain)
1 # Description: Network configuration tool
2 # URL: https://wiki.gnome.org/Projects/NetworkManager/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: curl dbus gnutls libndp libnewt libxslt nss polkit python3-gobject
5 # Optional: ppp avahi bash-completion dbus libnl jansson libteam dnsmasq wireguard-tools
6
7 name=networkmanager
8 version=1.40.10
9 release=1
10 source=(https://download.gnome.org/sources/NetworkManager/${version::4}/NetworkManager-$version.tar.xz
11 networkmanager.rc NetworkManager.conf polkit.conf dhcp.conf org.freedesktop.NetworkManager.rules)
12
13 build() {
14 prt-get isinst ppp || PKGMK_NM+=' -D ppp=false'
15 prt-get isinst jansson || PKGMK_NM+=' -D ovs=false'
16 prt-get isinst libpsl || PKGMK_NM+=' -D libpsl=false'
17
18 meson setup NetworkManager-$version build $PKGMK_NM \
19 --prefix /usr \
20 --sysconfdir /etc \
21 --localstatedir /var \
22 --libexecdir /usr/lib/networkmanager \
23 --buildtype=plain \
24 --wrap-mode nodownload \
25 -D b_lto=false \
26 -D b_pie=true \
27 -D crypto=nss \
28 -D dbus_conf_dir=/usr/share/dbus-1/system.d \
29 -D udev_dir=/lib/udev \
30 -D resolvconf=true \
31 -D config_dns_rc_manager_default=resolvconf \
32 -D modify_system=true \
33 -D ifupdown=true \
34 -D docs=false \
35 -D selinux=false \
36 -D session_tracking=no \
37 -D libaudit=no \
38 -D modem_manager=false \
39 -D more_logging=false \
40 -D qt=false \
41 -D systemdsystemunitdir=no \
42 -D systemd_journal=false
43 meson compile -C build
44 DESTDIR=$PKG meson install -C build
45
46 # Install config file
47 install -Dm 644 $SRC/NetworkManager.conf $PKG/etc/NetworkManager/NetworkManager.conf
48 install -Dm 644 $SRC/dhcp.conf $PKG/etc/NetworkManager/conf.d/dhcp.conf
49
50 # install polkit rules
51 install -Dm 644 $SRC/org.freedesktop.NetworkManager.rules $PKG/usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules
52 install -Dm 644 $SRC/polkit.conf $PKG/etc/NetworkManager/conf.d/polkit.conf
53
54 # Install startup script
55 install -Dm 755 $SRC/$name.rc $PKG/etc/rc.d/$name
56
57 # Remove rundir etc
58 rm -rf $PKG/var/run $PKG/usr/share/{gtk-,}doc $PKG/usr/share/man/man5/nmcli-examples.5 $PKG/usr/share/locale
59
60 # cleanup
61 rm -rf $PKG/usr/lib/firewalld
62 prt-get isinst bash-completion || rm -rf $PKG/usr/share/bash-completion
63 }
|