2017-06-26 18:06:33 +09:00
|
|
|
# Description: Network configuration tool
|
2019-08-07 23:02:07 +00:00
|
|
|
# URL: https://wiki.gnome.org/Projects/NetworkManager/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-06-18 13:44:57 +00:00
|
|
|
# Depends on: curl dbus gnutls libndp libnewt libxslt nss polkit python3-gobject
|
2021-04-20 20:26:55 +00:00
|
|
|
# Optional: ppp avahi bash-completion dbus libnl jansson libteam dnsmasq wireguard-tools
|
2013-09-28 21:12:52 +09:00
|
|
|
|
|
|
|
name=networkmanager
|
2022-05-14 11:18:56 +02:00
|
|
|
version=1.38.0
|
2021-09-24 18:14:32 +02:00
|
|
|
release=1
|
2020-02-02 09:30:23 +01:00
|
|
|
source=(https://download.gnome.org/sources/NetworkManager/${version::4}/NetworkManager-$version.tar.xz
|
2021-01-24 00:31:02 +00:00
|
|
|
networkmanager.rc NetworkManager.conf polkit.conf dhcp.conf org.freedesktop.NetworkManager.rules)
|
2013-09-28 21:12:52 +09:00
|
|
|
|
|
|
|
build() {
|
2021-04-20 20:26:55 +00:00
|
|
|
prt-get isinst ppp || PKGMK_NM+=' -D ppp=false'
|
|
|
|
prt-get isinst jansson || PKGMK_NM+=' -D ovs=false'
|
|
|
|
prt-get isinst libpsl || PKGMK_NM+=' -D libpsl=false'
|
2021-01-24 00:31:02 +00:00
|
|
|
|
|
|
|
meson setup NetworkManager-$version build $PKGMK_NM \
|
2020-05-30 11:30:32 +00:00
|
|
|
--prefix /usr \
|
2019-08-07 23:02:07 +00:00
|
|
|
--sysconfdir /etc \
|
|
|
|
--localstatedir /var \
|
|
|
|
--libexecdir /usr/lib/networkmanager \
|
2020-11-03 20:12:26 +00:00
|
|
|
--buildtype=plain \
|
2021-08-13 02:20:04 +02:00
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true \
|
2021-09-08 12:09:54 +02:00
|
|
|
-D crypto=nss \
|
2021-01-24 00:31:02 +00:00
|
|
|
-D dbus_conf_dir=/usr/share/dbus-1/system.d \
|
|
|
|
-D udev_dir=/lib/udev \
|
|
|
|
-D resolvconf=true \
|
|
|
|
-D config_dns_rc_manager_default=resolvconf \
|
|
|
|
-D modify_system=true \
|
|
|
|
-D ifupdown=true \
|
|
|
|
-D docs=false \
|
|
|
|
-D selinux=false \
|
2021-04-20 20:26:55 +00:00
|
|
|
-D session_tracking=no \
|
2021-01-24 00:31:02 +00:00
|
|
|
-D libaudit=no \
|
|
|
|
-D modem_manager=false \
|
|
|
|
-D more_logging=false \
|
|
|
|
-D qt=false \
|
|
|
|
-D systemdsystemunitdir=no \
|
|
|
|
-D systemd_journal=false
|
2020-11-03 20:12:26 +00:00
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2013-09-28 21:12:52 +09:00
|
|
|
|
2019-08-07 23:02:07 +00:00
|
|
|
# Install config file
|
|
|
|
install -Dm 644 $SRC/NetworkManager.conf $PKG/etc/NetworkManager/NetworkManager.conf
|
|
|
|
install -Dm 644 $SRC/dhcp.conf $PKG/etc/NetworkManager/conf.d/dhcp.conf
|
2021-01-24 00:31:02 +00:00
|
|
|
|
|
|
|
# install polkit rules
|
|
|
|
install -Dm 644 $SRC/org.freedesktop.NetworkManager.rules $PKG/usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules
|
2019-08-07 23:02:07 +00:00
|
|
|
install -Dm 644 $SRC/polkit.conf $PKG/etc/NetworkManager/conf.d/polkit.conf
|
2013-09-28 21:12:52 +09:00
|
|
|
|
2019-08-07 23:02:07 +00:00
|
|
|
# Install startup script
|
|
|
|
install -Dm 755 $SRC/$name.rc $PKG/etc/rc.d/$name
|
2017-03-03 20:21:46 +09:00
|
|
|
|
2019-08-07 23:02:07 +00:00
|
|
|
# Remove rundir etc
|
2021-01-24 00:31:02 +00:00
|
|
|
rm -rf $PKG/var/run $PKG/usr/share/{gtk-,}doc $PKG/usr/share/man/man5/nmcli-examples.5 $PKG/usr/share/locale
|
2019-08-07 23:02:07 +00:00
|
|
|
|
2020-05-30 11:30:32 +00:00
|
|
|
# cleanup
|
|
|
|
rm -rf $PKG/usr/lib/firewalld
|
2022-03-25 16:24:22 +01:00
|
|
|
prt-get isinst bash-completion || rm -rf $PKG/usr/share/bash-completion
|
2013-09-28 21:12:52 +09:00
|
|
|
}
|