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
|
2019-10-12 13:24:25 +00:00
|
|
|
# Depends on: curl dbus libndp libnewt libxslt nss polkit python3-gobject
|
2019-08-07 23:02:07 +00:00
|
|
|
# Optional: ppp avahi bash-completion dbus libnl jansson libteam dnsmasq
|
2013-09-28 21:12:52 +09:00
|
|
|
|
|
|
|
name=networkmanager
|
2020-08-20 01:30:26 +02:00
|
|
|
version=1.26.2
|
2020-09-28 19:55:46 +00:00
|
|
|
release=2
|
2020-02-02 09:30:23 +01:00
|
|
|
source=(https://download.gnome.org/sources/NetworkManager/${version::4}/NetworkManager-$version.tar.xz
|
2020-09-28 19:55:46 +00:00
|
|
|
networkmanager.rc NetworkManager.conf polkit.conf dhcp.conf
|
|
|
|
org.freedesktop.NetworkManager.rules docs.patch)
|
2013-09-28 21:12:52 +09:00
|
|
|
|
|
|
|
build() {
|
2020-05-30 11:30:32 +00:00
|
|
|
sed '/initrd/d' -i NetworkManager-$version/src/meson.build
|
2013-09-28 21:12:52 +09:00
|
|
|
|
2020-09-28 19:55:46 +00:00
|
|
|
patch -Np1 -d NetworkManager-$version -i $SRC/docs.patch
|
2019-08-07 23:02:07 +00:00
|
|
|
CXXFLAGS+="-O2 -fPIC" \
|
2020-05-30 11:30:32 +00:00
|
|
|
meson NetworkManager-$version build \
|
|
|
|
--prefix /usr \
|
2019-08-07 23:02:07 +00:00
|
|
|
--sysconfdir /etc \
|
|
|
|
--localstatedir /var \
|
|
|
|
--libexecdir /usr/lib/networkmanager \
|
|
|
|
-Ddbus_conf_dir=/usr/share/dbus-1/system.d \
|
|
|
|
-Dudev_dir=/lib/udev \
|
|
|
|
-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 21:12:52 +09:00
|
|
|
|
2020-05-30 11:30:32 +00:00
|
|
|
ninja -C build
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
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
|
|
|
|
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
|
|
|
|
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 11:30:32 +00: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 21:12:52 +09:00
|
|
|
}
|