mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 15:04:36 +08:00
124 lines
4.0 KiB
Bash
124 lines
4.0 KiB
Bash
pkgname=networkmanager
|
|
_pkgname=NetworkManager
|
|
pkgver=1.8rc3+10+gddd6f94
|
|
pkgrel=4
|
|
pkgdesc="Network Management daemon"
|
|
arch=('x86_64')
|
|
license=(GPL2 LGPL2.1)
|
|
url="https://wiki.gnome.org/Projects/NetworkManager"
|
|
_pppver=2.4.7
|
|
makedepends=(intltool dhclient iptables gobject-introspection gtk-doc "ppp=$_pppver" modemmanager
|
|
dbus-glib iproute2 nss polkit wpa_supplicant libsoup systemd libgudev rp-pppoe
|
|
libnewt libndp libteam vala perl-yaml python3-gobject git vala jansson bluez-libs)
|
|
depends=(iproute2 polkit wpa_supplicant libsoup modemmanager
|
|
libnewt libndp libteam curl "ppp=$_pppver"
|
|
libgudev nss dbus-glib util-linux jansson systemd bluez-libs glib-networking)
|
|
checkdepends=(libx11 python3-dbus)
|
|
_commit=ddd6f94ab70eae875641ab593e17326acf65644c # nm-1-8
|
|
optdepends=('dnsmasq: connection sharing'
|
|
'bluez: Bluetooth support'
|
|
'openresolv: resolvconf support'
|
|
'ppp: dialup connection support'
|
|
'rp-pppoe: ADSL support'
|
|
'dhclient: External DHCP client'
|
|
'modemmanager: cellular network support')
|
|
backup=('etc/NetworkManager/NetworkManager.conf')
|
|
install=networkmanager.install
|
|
source=("git+https://anongit.freedesktop.org/git/NetworkManager/NetworkManager#commit=$_commit"
|
|
NetworkManager.conf 20-connectivity.conf)
|
|
sha256sums=('SKIP'
|
|
'dd2d3a9c8a08ce961e263e1847453890f1b24c72a806d8c83a5b69b227a5ccec'
|
|
'b1266936545fb8747ca31e7672a1867536982c7e9c2967bda746e0ec24c1ab0c')
|
|
|
|
prepare() {
|
|
cd NetworkManager
|
|
|
|
2to3 -w libnm src tools
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
pkgver() {
|
|
cd NetworkManager
|
|
git describe | sed 's/-dev/dev/;s/-rc/rc/;s/-/+/g'
|
|
}
|
|
|
|
build() {
|
|
cd NetworkManager
|
|
PYTHON=python3 ./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
runstatedir=/run \
|
|
--sbindir=/usr/bin \
|
|
--libexecdir=/usr/lib/NetworkManager \
|
|
--disable-ifcfg-rh \
|
|
--disable-ifcfg-suse \
|
|
--disable-ifnet \
|
|
--disable-ifupdown \
|
|
--disable-lto \
|
|
--disable-more-warnings \
|
|
--disable-static \
|
|
--enable-bluez5-dun \
|
|
--enable-concheck \
|
|
--enable-config-plugin-ibft \
|
|
--disable-gtk-doc \
|
|
--enable-introspection \
|
|
--enable-json-validation \
|
|
--enable-ld-gc \
|
|
--enable-modify-system \
|
|
--enable-polkit \
|
|
--enable-polkit-agent \
|
|
--enable-teamdctl \
|
|
--enable-wifi \
|
|
--with-config-dhcp-default=dhclient \
|
|
--with-config-dns-rc-manager-default=resolvconf \
|
|
--with-config-logging-backend-default=journal \
|
|
--with-config-plugins-default=keyfile,ibft \
|
|
--with-crypto=nss \
|
|
--with-dbus-sys-dir=/usr/share/dbus-1/system.d \
|
|
--with-dhclient=/usr/bin/dhclient \
|
|
--with-dist-version="$pkgver-$pkgrel, Chakra Linux" \
|
|
--with-dnsmasq=/usr/bin/dnsmasq \
|
|
--with-dnssec-trigger=/usr/lib/dnssec-trigger \
|
|
--with-hostname-persist=default \
|
|
--with-iptables=/usr/bin/iptables \
|
|
--with-kernel-firmware-dir=/usr/lib/firmware \
|
|
--with-libnm-glib \
|
|
--with-libsoup \
|
|
--with-modem-manager-1 \
|
|
--with-nmcli \
|
|
--with-nmtui \
|
|
--with-pppd-plugin-dir=/usr/lib/pppd/$_pppver \
|
|
--with-pppd=/usr/bin/pppd \
|
|
--with-resolvconf=/usr/bin/resolvconf \
|
|
--with-session-tracking=systemd \
|
|
--with-suspend-resume=systemd \
|
|
--with-system-ca-path=/etc/ssl/certs \
|
|
--with-systemd-journal \
|
|
--with-systemd-logind \
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
|
--with-udev-dir=/usr/lib/udev \
|
|
--with-wext \
|
|
--without-consolekit \
|
|
--without-dhcpcd \
|
|
--without-libaudit \
|
|
--without-netconfig \
|
|
--without-ofono \
|
|
--without-selinux
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $_pkgname
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -dm700 "$pkgdir/etc/NetworkManager/system-connections"
|
|
install -d "$pkgdir"/etc/NetworkManager/{conf,dnsmasq}.d
|
|
install -m644 ../NetworkManager.conf "$pkgdir/etc/NetworkManager/"
|
|
install -Dm644 ../20-connectivity.conf \
|
|
"$pkgdir/usr/lib/NetworkManager/conf.d/20-connectivity.conf"
|
|
}
|