From a2a5720f6630f1674b0679bfbcdc7255df771a5f Mon Sep 17 00:00:00 2001 From: freaj Date: Sun, 29 Mar 2015 20:27:44 +0200 Subject: networkmanager-consolekit: add new package to [pcr] --- pcr/networkmanager-consolekit/NetworkManager.conf | 10 +++ pcr/networkmanager-consolekit/PKGBUILD | 100 +++++++++++++++++++++ .../disable_set_hostname.patch | 19 ++++ .../networkmanager.install | 9 ++ 4 files changed, 138 insertions(+) create mode 100644 pcr/networkmanager-consolekit/NetworkManager.conf create mode 100644 pcr/networkmanager-consolekit/PKGBUILD create mode 100644 pcr/networkmanager-consolekit/disable_set_hostname.patch create mode 100644 pcr/networkmanager-consolekit/networkmanager.install (limited to 'pcr/networkmanager-consolekit') diff --git a/pcr/networkmanager-consolekit/NetworkManager.conf b/pcr/networkmanager-consolekit/NetworkManager.conf new file mode 100644 index 000000000..e01e3c52f --- /dev/null +++ b/pcr/networkmanager-consolekit/NetworkManager.conf @@ -0,0 +1,10 @@ +[main] +plugins=keyfile + +## Set static hostname +#[keyfile] +#hostname=foobar + +## HTTP-based connectivity check +#[connectivity] +#uri=http://nmcheck.gnome.org/check_network_status.txt diff --git a/pcr/networkmanager-consolekit/PKGBUILD b/pcr/networkmanager-consolekit/PKGBUILD new file mode 100644 index 000000000..423bc1b87 --- /dev/null +++ b/pcr/networkmanager-consolekit/PKGBUILD @@ -0,0 +1,100 @@ +# Maintainer : freaj +# Maintainer (Manjaro): artoo +# Contributor (Manjaro): Alexey D. +# Contributor (Manjaro): DaZ +# Contributor (Manjaro): Lukas Jirkovsky +# Contributor (Manjaro): Jan Alexander Steffens (heftig) +# Contributor (Manjaro): Jan de Groot +# Contributor (Manjaro): Wael Nasreddine +# Contributor (Manjaro): Tor Krill +# Contributor (Manjaro): Will Rea +# Contributor (Manjaro): Valentine Sinitsyn + +pkgname=networkmanager-consolekit +_pkgname=NetworkManager +pkgver=1.0.0 +pkgrel=3 +_pppver=2.4.7 +pkgdesc="NetworkManager with ConsoleKit support for non-systemd systems" +arch=('i686' 'x86_64') +license=('GPL' 'LGPL2.1') +url="http://www.gnome.org/projects/$_pkgname/" +depends=("libnm-glib>=${pkgver}" 'iproute2' 'libnl' 'polkit-consolekit' 'consolekit' + 'wpa_supplicant' 'dhcp-client' 'libsoup' 'libmm-glib' 'libnewt' 'libndp' + 'libteam') +makedepends=('intltool' 'dhcpcd' 'iptables' 'gobject-introspection' 'gtk-doc' 'git' + "ppp=$_pppver" 'modemmanager' 'rp-pppoe' 'vala') +optdepends=('modemmanager: for modem management service' + 'dhcpcd: alternative DHCP client; does not support DHCPv6' + 'iptables: connection sharing' + 'dnsmasq: connection sharing' + 'bluez: bluetooth support' + 'openresolv: resolvconf support' + 'ppp: dialup connection support') +provides=("networkmanager=$pkgver") +# replaces=('networkmanager') +conflicts=('networkmanager') +backup=('etc/NetworkManager/NetworkManager.conf') +install=networkmanager.install +source=("http://ftp.gnome.org/pub/gnome/sources/$_pkgname/${pkgver:0:3}/$_pkgname-$pkgver.tar.xz" + 'disable_set_hostname.patch' + 'NetworkManager.conf') + + +prepare() { + cd $_pkgname-$pkgver + + patch -Np1 -i ../disable_set_hostname.patch + NOCONFIGURE=1 ./autogen.sh +} + +build() { + cd $_pkgname-$pkgver + + AUTOPOINT="intltoolize -f -c --automake" autoreconf -fi + ./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 \ + --with-dnsmasq=/usr/bin/dnsmasq \ + --with-iptables=/usr/bin/iptables \ + --with-systemdsystemunitdir=/usr/lib/systemd/system \ + --with-udev-dir=/usr/lib/udev \ + --with-resolvconf=/usr/bin/resolvconf \ + --with-pppd=/usr/bin/pppd \ + --with-pppd-plugin-dir=/usr/lib/pppd/$_pppver \ + --with-pppoe=/usr/bin/pppoe \ + --with-kernel-firmware-dir=/usr/lib/firmware \ + --with-session-tracking=ck \ + --with-modem-manager-1 \ + --disable-static \ + --enable-more-warnings=no \ + --disable-wimax \ + --enable-modify-system \ + --enable-doc + + make +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="${pkgdir}" install + make DESTDIR="$pkgdir" -C libnm uninstall + make DESTDIR="$pkgdir" -C libnm-glib uninstall + make DESTDIR="$pkgdir" -C libnm-util uninstall + make DESTDIR="$pkgdir" -C vapi uninstall + + install -m644 $srcdir/NetworkManager.conf "$pkgdir/etc/NetworkManager/" + + rm -rf "$pkgdir/usr/include" + rm -rf "$pkgdir/usr/lib/pkgconfig" + + rm -r "${pkgdir}/var/run" +} +sha256sums=('3a66afec670c975edd9832e620b725a5f16ed267a1b9e1b2d51ef27250d85947' + '25056837ea92e559f09563ed817e3e0cd9333be861b8914e45f62ceaae2e0460' + '759db295ddae7a6dc6b29211fc0ec08695f875584d456dd146d3679e2c33e2e3') diff --git a/pcr/networkmanager-consolekit/disable_set_hostname.patch b/pcr/networkmanager-consolekit/disable_set_hostname.patch new file mode 100644 index 000000000..ee95dd0e1 --- /dev/null +++ b/pcr/networkmanager-consolekit/disable_set_hostname.patch @@ -0,0 +1,19 @@ +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. + */ diff --git a/pcr/networkmanager-consolekit/networkmanager.install b/pcr/networkmanager-consolekit/networkmanager.install new file mode 100644 index 000000000..de40c17ed --- /dev/null +++ b/pcr/networkmanager-consolekit/networkmanager.install @@ -0,0 +1,9 @@ +post_upgrade() { + (( $(vercmp 0.8.3 $2) > 0 )) && cat <