2017-06-26 11:06:33 +02:00
|
|
|
# Description: Network configuration tool
|
2019-08-08 01:02:07 +02:00
|
|
|
# URL: https://wiki.gnome.org/Projects/NetworkManager/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2019-10-12 15:24:25 +02:00
|
|
|
# Depends on: curl dbus libndp libnewt libxslt nss polkit python3-gobject
|
2019-08-08 01:02:07 +02:00
|
|
|
# Optional: ppp avahi bash-completion dbus libnl jansson libteam dnsmasq
|
2013-09-28 14:12:52 +02:00
|
|
|
|
|
|
|
name=networkmanager
|
2020-08-20 01:30:26 +02:00
|
|
|
version=1.26.2
|
2019-08-08 01:02:07 +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
|
2019-10-09 19:25:01 +02:00
|
|
|
networkmanager.rc
|
|
|
|
NetworkManager.conf
|
|
|
|
polkit.conf
|
|
|
|
dhcp.conf
|
2020-05-30 13:30:32 +02:00
|
|
|
org.freedesktop.NetworkManager.rules)
|
2013-09-28 14:12:52 +02:00
|
|
|
|
|
|
|
build() {
|
2020-05-30 13:30:32 +02:00
|
|
|
sed '/initrd/d' -i NetworkManager-$version/src/meson.build
|
2013-09-28 14:12:52 +02:00
|
|
|
|
2019-08-08 01:02:07 +02:00
|
|
|
CXXFLAGS+="-O2 -fPIC" \
|
2020-05-30 13:30:32 +02:00
|
|
|
meson NetworkManager-$version build \
|
|
|
|
--prefix /usr \
|
2019-08-08 01:02:07 +02:00
|
|
|
--sysconfdir /etc \
|
|
|
|
--localstatedir /var \
|
|
|
|
--libexecdir /usr/lib/networkmanager \
|
|
|
|
-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=true \
|
|
|
|
-Dsession_tracking_consolekit=true \
|
|
|
|
-Dwifi=true \
|
|
|
|
-Dwext=true \
|
|
|
|
-Dpolkit=true \
|
|
|
|
-Dpolkit_agent=true \
|
|
|
|
-Dmodify_system=true \
|
|
|
|
-Difupdown=true \
|
|
|
|
-Dnmtui=true \
|
|
|
|
-Dnmcli=true \
|
|
|
|
-Dlibnm_glib=false \
|
|
|
|
-Dsession_tracking=no \
|
|
|
|
-Db_lto=false \
|
|
|
|
-Dlibaudit=no \
|
|
|
|
-Dlibpsl=false \
|
|
|
|
-Dppp=false \
|
|
|
|
-Dofono=false \
|
|
|
|
-Dselinux=false \
|
|
|
|
-Djson_validation=false \
|
|
|
|
-Dovs=false \
|
|
|
|
-Dmodem_manager=false \
|
|
|
|
-Dsystemdsystemunitdir=no \
|
|
|
|
-Dsystemd_journal=false \
|
|
|
|
-Dqt=false \
|
|
|
|
-Ddocs=false \
|
|
|
|
-Dtests=no \
|
|
|
|
-Dmore_logging=false \
|
|
|
|
-Dmore_asserts=0 \
|
|
|
|
-Dlibpsl=false \
|
2013-09-28 14:12:52 +02:00
|
|
|
|
2020-05-30 13:30:32 +02:00
|
|
|
ninja -C build
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
2013-09-28 14:12:52 +02:00
|
|
|
|
2019-08-08 01:02:07 +02: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
|
|
|
|
install -Dm 644 $SRC/polkit.conf $PKG/etc/NetworkManager/conf.d/polkit.conf
|
2013-09-28 14:12:52 +02:00
|
|
|
|
2019-08-08 01:02:07 +02:00
|
|
|
# Install startup script
|
|
|
|
install -Dm 755 $SRC/$name.rc $PKG/etc/rc.d/$name
|
2017-03-03 12:21:46 +01:00
|
|
|
|
2019-08-08 01:02:07 +02:00
|
|
|
# Remove rundir etc
|
|
|
|
rm -rf $PKG/var/run $PKG/usr/share/{gtk-,}doc $PKG/usr/share/man/man5/nmcli-examples.5 $PKG/usr/share/locale $PKG/usr/share/bash-completion
|
|
|
|
|
|
|
|
# install polkit rules
|
|
|
|
install -Dm 644 $SRC/org.freedesktop.NetworkManager.rules $PKG/usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules
|
|
|
|
|
2020-05-30 13:30:32 +02:00
|
|
|
# cleanup
|
|
|
|
|
|
|
|
rm -rf $PKG/usr/lib/firewalld
|
|
|
|
[ -e /usr/lib/pkgconfig/bash-completion.pc ] || rm -rf $PKG/usr/share/bash-completion
|
2013-09-28 14:12:52 +02:00
|
|
|
}
|