core/networkmanager/PKGBUILD

124 lines
4.0 KiB
Bash
Raw Normal View History

2010-03-14 23:48:48 +08:00
pkgname=networkmanager
_pkgname=NetworkManager
2017-05-07 01:02:13 +08:00
pkgver=1.8rc3+10+gddd6f94
pkgrel=4
2010-03-14 23:48:48 +08:00
pkgdesc="Network Management daemon"
2012-12-07 06:12:54 +08:00
arch=('x86_64')
2017-05-07 01:02:13 +08:00
license=(GPL2 LGPL2.1)
url="https://wiki.gnome.org/Projects/NetworkManager"
2017-01-19 07:31:12 +08:00
_pppver=2.4.7
2017-05-07 01:02:13 +08:00
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)
2016-12-11 02:50:17 +08:00
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)
2016-12-11 02:50:17 +08:00
checkdepends=(libx11 python3-dbus)
2017-05-07 01:02:13 +08:00
_commit=ddd6f94ab70eae875641ab593e17326acf65644c # nm-1-8
2016-12-11 02:50:17 +08:00
optdepends=('dnsmasq: connection sharing'
'bluez: Bluetooth support'
2014-09-06 06:06:44 +08:00
'openresolv: resolvconf support'
'ppp: dialup connection support'
'rp-pppoe: ADSL support'
2016-12-11 02:50:17 +08:00
'dhclient: External DHCP client'
2014-09-06 06:06:44 +08:00
'modemmanager: cellular network support')
backup=('etc/NetworkManager/NetworkManager.conf')
install=networkmanager.install
2016-12-11 02:50:17 +08:00
source=("git+https://anongit.freedesktop.org/git/NetworkManager/NetworkManager#commit=$_commit"
2017-05-07 01:02:13 +08:00
NetworkManager.conf 20-connectivity.conf)
2016-12-11 02:50:17 +08:00
sha256sums=('SKIP'
'dd2d3a9c8a08ce961e263e1847453890f1b24c72a806d8c83a5b69b227a5ccec'
2017-05-09 21:30:12 +08:00
'b1266936545fb8747ca31e7672a1867536982c7e9c2967bda746e0ec24c1ab0c')
2015-05-15 21:16:51 +08:00
prepare() {
2016-12-11 02:50:17 +08:00
cd NetworkManager
2to3 -w libnm src tools
NOCONFIGURE=1 ./autogen.sh
2015-05-15 21:16:51 +08:00
}
2016-12-11 02:50:17 +08:00
pkgver() {
cd NetworkManager
2017-05-07 01:02:13 +08:00
git describe | sed 's/-dev/dev/;s/-rc/rc/;s/-/+/g'
2016-12-11 02:50:17 +08:00
}
2016-12-11 02:50:17 +08:00
build() {
cd NetworkManager
2017-05-07 01:02:13 +08:00
PYTHON=python3 ./configure --prefix=/usr \
2011-06-09 17:51:06 +08:00
--sysconfdir=/etc \
--localstatedir=/var \
2017-05-07 01:02:13 +08:00
runstatedir=/run \
2014-09-06 06:06:44 +08:00
--sbindir=/usr/bin \
2017-05-07 01:02:13 +08:00
--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 \
2011-06-09 17:51:06 +08:00
--with-crypto=nss \
2017-05-07 01:02:13 +08:00
--with-dbus-sys-dir=/usr/share/dbus-1/system.d \
2014-01-20 17:25:43 +08:00
--with-dhclient=/usr/bin/dhclient \
2017-05-07 01:02:13 +08:00
--with-dist-version="$pkgver-$pkgrel, Chakra Linux" \
2014-09-06 06:06:44 +08:00
--with-dnsmasq=/usr/bin/dnsmasq \
2017-05-07 01:02:13 +08:00
--with-dnssec-trigger=/usr/lib/dnssec-trigger \
--with-hostname-persist=default \
2014-01-20 17:25:43 +08:00
--with-iptables=/usr/bin/iptables \
2014-09-06 06:06:44 +08:00
--with-kernel-firmware-dir=/usr/lib/firmware \
2017-05-07 01:02:13 +08:00
--with-libnm-glib \
--with-libsoup \
2014-09-06 06:06:44 +08:00
--with-modem-manager-1 \
2017-05-07 01:02:13 +08:00
--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
2016-12-11 02:50:17 +08:00
2017-05-07 01:02:13 +08:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2010-03-14 23:48:48 +08:00
2010-11-07 22:19:50 +08:00
make
2011-06-09 17:51:06 +08:00
}
package() {
2016-12-11 02:50:17 +08:00
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"
2011-11-25 07:18:26 +08:00
}