Commit 8a36351f authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Initial commit

parents
include:
- project: 'gitlab/gitlab-ci-package-template'
ref: master
file: '/packages.yml'
# Maintainer: Nigel Kukard <nkukard@lbsd.net>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Jan de Groot <jgc@archlinxu.org>
# Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>
# Contributor: Tor Krill <tor@krill.nu>
# Contributor: Will Rea <sillywilly@gmail.com>
# Contributor: Valentine Sinitsyn <e_val@inbox.ru>
pkgbase=networkmanager
pkgname=(networkmanager libnm nm-cloud-setup)
pkgver=1.26.2
pkgrel=1.1
pkgdesc="Network connection manager and user applications"
url="https://wiki.gnome.org/Projects/NetworkManager"
arch=(x86_64)
license=(GPL2 LGPL2.1)
_pppver=2.4.8
makedepends=(intltool dhclient iptables gobject-introspection gtk-doc "ppp=$_pppver" modemmanager
iproute2 nss polkit wpa_supplicant curl systemd libmm-glib
libnewt libndp libteam vala perl-yaml python-gobject git vala jansson bluez-libs
glib2-docs iwd dnsmasq openresolv libpsl audit meson)
checkdepends=(libx11 python-dbus)
_commit=c3c6c426dfca621fa71dceacbba2789b9f8ce144 # tags/1.26.2^0
source=("git+https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd NetworkManager
git describe | sed 's/-dev/dev/;s/-rc/rc/;s/-/+/g'
}
prepare() {
cd NetworkManager
}
build() {
local meson_args=(
# system paths
-D dbus_conf_dir=/usr/share/dbus-1/system.d
# platform
-D dist_version="$pkgver-$pkgrel"
-D session_tracking_consolekit=false
-D suspend_resume=systemd
-D modify_system=true
-D polkit_agent=true
-D selinux=false
# features
-D iwd=true
-D pppd_plugin_dir=/usr/lib/pppd/$_pppver
-D teamdctl=true
-D nm_cloud_setup=true
-D bluez5_dun=true
-D ebpf=true
# configuration plugins
-D config_plugins_default=keyfile
# dhcp clients
-D dhcpcd=no
# miscellaneous
-D vapi=true
-D docs=true
-D more_asserts=no
-D more_logging=false
-D qt=false
)
arch-meson NetworkManager build "${meson_args[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
package_networkmanager() {
depends=(libnm iproute2 polkit wpa_supplicant libmm-glib libnewt libndp libteam curl
bluez-libs libpsl audit mobile-broadband-provider-info)
optdepends=('dnsmasq: connection sharing'
'bluez: Bluetooth support'
'ppp: dialup connection support'
'modemmanager: cellular network support'
'iwd: wpa_supplicant alternative'
'dhclient: alternative DHCP client'
'openresolv: alternative resolv.conf manager'
'firewalld: Firewall support')
backup=(etc/NetworkManager/NetworkManager.conf)
groups=(gnome)
DESTDIR="$pkgdir" meson install -C build
# /etc/NetworkManager
install -d "$pkgdir"/etc/NetworkManager/{conf,dnsmasq}.d
install -dm700 "$pkgdir/etc/NetworkManager/system-connections"
install -m644 /dev/stdin "$pkgdir/etc/NetworkManager/NetworkManager.conf" <<END
# Configuration file for NetworkManager.
# See "man 5 NetworkManager.conf" for details.
END
# packaged configuration
install -Dm644 /dev/stdin "$pkgdir/usr/lib/NetworkManager/conf.d/20-connectivity.conf" <<END
[connectivity]
uri=http://www.archlinux.org/check_network_status.txt
END
shopt -s globstar
_pick libnm "$pkgdir"/usr/include/libnm
_pick libnm "$pkgdir"/usr/lib/girepository-1.0/NM-*
_pick libnm "$pkgdir"/usr/lib/libnm.*
_pick libnm "$pkgdir"/usr/lib/pkgconfig/libnm.pc
_pick libnm "$pkgdir"/usr/share/gir-1.0/NM-*
_pick libnm "$pkgdir"/usr/share/gtk-doc/html/libnm
_pick libnm "$pkgdir"/usr/share/vala/vapi/libnm.*
_pick nm-cloud-setup "$pkgdir"/usr/lib/**/*nm-cloud-setup*
# Restore empty dir
mkdir "$pkgdir/usr/lib/NetworkManager/dispatcher.d/no-wait.d"
}
package_libnm() {
pkgdesc="NetworkManager client library"
depends=(glib2 nss libutil-linux jansson systemd-libs)
provides=(libnm.so)
mv libnm/* "$pkgdir"
}
package_nm-cloud-setup() {
pkgdesc="Automatically configure NetworkManager in cloud"
depends=(networkmanager)
mv nm-cloud-setup/* "$pkgdir"
}
# vim:set sw=2 et:
[package networkmanager]
set=idms
repo=idms-extra
path=.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment