Commit 9e05d21e authored by Xuetian Weng's avatar Xuetian Weng

update networkmanager stack

parent a0779391
Copyright (c) 2009-2013 Robert Djubek
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
......@@ -6,17 +6,19 @@
pkgname=networkmanager-dispatcher-ntpd
pkgver=1.0
pkgrel=6
pkgdesc="Dispatcher script for ntpd."
pkgrel=7
pkgdesc="Dispatcher Script for ntpd"
arch=(any)
license=('BSD')
license=('MIT')
url="http://www.gnome.org/projects/NetworkManager"
depends=('networkmanager' 'ntp')
source=("10-ntpd")
md5sums=('7f1574ac0b7d51c67b9028905715a60e')
source=("10-ntpd" "LICENSE")
md5sums=('6e2ea87331a44dd83dd992d1ed8363ea'
'bade437c691452a83923e5064da20757')
package() {
install -Dm700 "${srcdir}/10-ntpd" "${pkgdir}/etc/NetworkManager/dispatcher.d/10-ntpd"
install -Dm700 $srcdir/10-ntpd $pkgdir/etc/NetworkManager/dispatcher.d/10-ntpd
install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et:
pkgname=networkmanager-openconnect
pkgver=1.0.8
pkgrel=2
pkgdesc="NetworkManager VPN integration for openconnect"
pkgver=1.2.4
pkgrel=1
pkgdesc="NetworkManager VPN plugin for OpenConnect"
url="https://wiki.gnome.org/Projects/NetworkManager"
arch=('x86_64')
license=('GPL')
url="http://www.gnome.org/projects/NetworkManager/"
depends=('networkmanager' 'openconnect' 'dbus-glib')
makedepends=('intltool')
install=$pkgname.install
source=(http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-openconnect/1.0/NetworkManager-openconnect-$pkgver.tar.xz)
sha256sums=('c1bf2884ffaccae327e98d8e6c8caeb16f57993d1321ce43f99ef8312406d7e6')
_commit=5123d7622fcce22da3cea75f878410e8c6dcfd69 # tags/1.2.4^0
source=("git+https://git.gnome.org/browse/network-manager-openconnect#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd network-manager-openconnect
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd network-manager-openconnect
}
build() {
cd NetworkManager-openconnect-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/networkmanager \
--without-gnome \
--disable-static
make
cd network-manager-openconnect
./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib/networkmanager \
--enable-more-warnings=yes \
--without-gnome \
--disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd NetworkManager-openconnect-$pkgver
make DESTDIR=$pkgdir install
cd network-manager-openconnect
make DESTDIR="$pkgdir" install
}
pkgname=networkmanager-openvpn
pkgver=1.0.8
pkgver=1.2.6
pkgrel=1
pkgdesc="NetworkManager VPN plugin for OpenVPN"
url="https://wiki.gnome.org/Projects/NetworkManager"
arch=('x86_64')
license=('GPL')
url="http://www.gnome.org/projects/NetworkManager/"
depends=('networkmanager' 'openvpn')
makedepends=('intltool')
install=networkmanager-openvpn.install
source=("http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-openvpn/1.0/NetworkManager-openvpn-${pkgver}.tar.xz")
sha256sums=('1b979519d72ba4d78e729d4856c5b53fad914ca7ee3ca91209ce489ba78912ac')
_commit=41d2ad56b6436e6e6fa5c41609fd64fb60e33b48 # tags/1.2.7-dev~1
source=("git://git.gnome.org/network-manager-openvpn#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd network-manager-openvpn
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd network-manager-openvpn
# NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "${srcdir}/NetworkManager-openvpn-${pkgver}"
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/networkmanager \
--without-gnome \
--disable-static
make
cd network-manager-openvpn
./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib/networkmanager \
--enable-more-warnings=yes \
-without-gnome \
--disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "${srcdir}/NetworkManager-openvpn-${pkgver}"
make DESTDIR="${pkgdir}" install
cd network-manager-openvpn
make DESTDIR="$pkgdir" install
}
pkgname=networkmanager-pptp
pkgver=1.0.8
_pppver=2.4.7
pkgver=1.2.4
pkgrel=1
pkgdesc="NetworkManager VPN plugin for pptp "
pkgdesc="NetworkManager VPN plugin for PPTP"
url="https://wiki.gnome.org/Projects/NetworkManager"
arch=('x86_64')
license=('GPL')
url="http://www.gnome.org/projects/NetworkManager/"
_pppver=2.4.7
depends=('networkmanager' 'pptpclient' "ppp=$_pppver")
makedepends=('intltool')
source=("http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-pptp/1.0/NetworkManager-pptp-${pkgver}.tar.xz")
sha256sums=('6ff031baf170d890f779cfd15533ff0429999f1513aa3903a60c9d21ae09244c')
_commit=7861022af7edcf4a26b01d30ad6b2f0bbc51e55e # tags/1.2.4^0
source=("git://git.gnome.org/network-manager-pptp#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd network-manager-pptp
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd network-manager-pptp
# NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "${srcdir}/NetworkManager-pptp-${pkgver}"
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/networkmanager \
--without-gnome \
--with-pppd-plugin-dir=/usr/lib/pppd/$_pppver \
--disable-static
make
cd network-manager-pptp
./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib/networkmanager \
--with-pppd-plugin-dir=/usr/lib/pppd/$_pppver \
--enable-more-warnings=yes \
--without-gnome \
--disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "${srcdir}/NetworkManager-pptp-${pkgver}"
make DESTDIR="${pkgdir}" install
cd network-manager-pptp
make DESTDIR="$pkgdir" install
}
pkgname=networkmanager-vpnc
pkgver=1.0.8
pkgver=1.2.4
pkgrel=1
pkgdesc="NetworkManager VPN plugin for vpnc"
pkgdesc="NetworkManager VPN plugin for VPNC"
url="https://wiki.gnome.org/Projects/NetworkManager"
arch=('x86_64')
license=('GPL')
url="http://www.gnome.org/projects/NetworkManager/"
depends=('networkmanager' 'vpnc')
makedepends=('intltool')
source=("http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-vpnc/1.0/NetworkManager-vpnc-${pkgver}.tar.xz")
sha256sums=('5e4034d89e2ccb2845c29f212ec263102bf9819e6c923407073aab6ffb92b66e')
_commit=f6969f0038438d4ef9320e275eb22df98592fe53 # tags/1.2.4^0
source=("git://git.gnome.org/network-manager-vpnc#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd network-manager-vpnc
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd network-manager-vpnc
# NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "${srcdir}/NetworkManager-vpnc-${pkgver}"
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/networkmanager \
--without-gnome \
--disable-static \
--disable-more-warnings
make
cd network-manager-vpnc
./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib/networkmanager \
--enable-more-warnings=yes \
--without-gnome \
--disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "${srcdir}/NetworkManager-vpnc-${pkgver}"
make DESTDIR="${pkgdir}" install
cd network-manager-vpnc
make DESTDIR="$pkgdir" install
}
From 70c0defe753bc98ac75725cc32a84b36f32258e4 Mon Sep 17 00:00:00 2001
From: Francesco Giudici <fgiudici@redhat.com>
Date: Fri, 11 Mar 2016 09:55:39 +0100
Subject: [PATCH] wifi: hack for wext devices reporting IW_MODE_AUTO
configuration mode.
https://bugzilla.gnome.org/show_bug.cgi?id=763388
(cherry picked from commit 0f6febc6fbeafde62e6e0a8c12f57204d94166fb)
---
src/platform/wifi/wifi-utils-wext.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/platform/wifi/wifi-utils-wext.c b/src/platform/wifi/wifi-utils-wext.c
index 470b73d..14a16ec 100644
--- a/src/platform/wifi/wifi-utils-wext.c
+++ b/src/platform/wifi/wifi-utils-wext.c
@@ -122,6 +122,7 @@ wifi_wext_get_mode (WifiData *data)
case IW_MODE_MASTER:
return NM_802_11_MODE_AP;
case IW_MODE_INFRA:
+ case IW_MODE_AUTO: /* hack for WEXT devices reporting IW_MODE_AUTO */
return NM_802_11_MODE_INFRA;
default:
break;
--
2.5.5
[main]
plugins=keyfile
dns=default
## HTTP-based connectivity check
#[connectivity]
#uri=http://nmcheck.gnome.org/check_network_status.txt
#interval=100
pkgname=networkmanager
_pkgname=NetworkManager
pkgver=1.0.12
pkgrel=3
pkgver=1.4.2
pkgrel=1
_pppver=2.4.7
pkgdesc="Network Management daemon"
arch=('x86_64')
license=('GPL')
url="http://www.gnome.org/projects/NetworkManager/"
depends=('dbus-glib' 'iproute2' 'libndp' 'libnl' 'nss' 'polkit' 'systemd' 'libgudev' 'wpa_supplicant'
"ppp=${_pppver}" 'dhclient' 'libsoup' 'modemmanager' 'libnewt' 'libteam')
makedepends=('intltool' 'iptables' 'gobject-introspection' 'rp-pppoe' 'vala')
optdepends=('dhcpcd: Alternative dhcp support'
'dnsmasq: connection sharing'
depends=(iproute2 polkit wpa_supplicant libsoup modemmanager
libnewt libndp libteam "ppp=${_pppver}"
libgudev nss dbus-glib util-linux jansson systemd)
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)
checkdepends=(libx11 python3-dbus)
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=("http://ftp.gnome.org/pub/gnome/sources/$_pkgname/${pkgver:0:3}/$_pkgname-$pkgver.tar.xz"
'NetworkManager.conf'
'disable_set_hostname.patch'
'0001-wifi-hack-for-wext-devices.patch')
md5sums=('ebb273456a81ccf9dfaf2461061b0e96'
'1653159d6634fb62d3a5c548b7a56151'
'6b5415350c04304a28d29294441a07ae'
'd82b9db3ac6050b075ab529cc1e648ee')
_commit=fa4913a5210586c47806c0833ffdaf3beb486541 # tags/1.4.2^0
source=("git+https://anongit.freedesktop.org/git/NetworkManager/NetworkManager#commit=$_commit"
NetworkManager.conf)
sha256sums=('SKIP'
'67f112c1ac8ee3726eb229f5cd783de19f09cc252af49e157343d82b324b923f')
prepare() {
cd $_pkgname-$pkgver
patch -Np1 -i ../disable_set_hostname.patch
patch -Np1 -i ../0001-wifi-hack-for-wext-devices.patch
cd NetworkManager
2to3 -w libnm src tools
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd $_pkgname-$pkgver
pkgver() {
cd NetworkManager
git describe | sed 's/-dev/dev/;s/-/+/g'
}
./configure \
--prefix=/usr \
build() {
cd NetworkManager
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/networkmanager \
--with-crypto=nss \
--with-dhclient=/usr/bin/dhclient \
--with-dhcpcd=/usr/bin/dhcpcd \
--without-dhcpcd \
--with-dnsmasq=/usr/bin/dnsmasq \
--with-iptables=/usr/bin/iptables \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
......@@ -61,13 +68,16 @@ build() {
--enable-more-warnings=no \
--disable-wimax \
--enable-modify-system \
--enable-doc
--enable-doc \
--disable-gtk-doc
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
make
}
package() {
cd $_pkgname-$pkgver
cd $_pkgname
make DESTDIR="$pkgdir" install
install -m644 ../NetworkManager.conf "$pkgdir/etc/NetworkManager/"
......
diff -Nur NetworkManager-0.9.0.orig/src/nm-policy.c NetworkManager-0.9.0/src/nm-policy.c
--- NetworkManager-0.9.0.orig/src/nm-policy.c 2011-08-23 06:41:02.099686450 +0000
+++ NetworkManager-0.9.0/src/nm-policy.c 2011-08-23 06:43:38.227791737 +0000
@@ -302,6 +302,7 @@
return;
}
+#if 0
/* Try automatically determined hostname from the best device's IP config */
if (!best4)
best4 = get_best_ip4_device (policy->manager, &best_req4);
@@ -356,6 +357,7 @@
}
}
+#endif
/* If no automatically-configured hostname, try using the hostname from
* when NM started up.
*/
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