PKGBUILDs/extra/networkmanager/PKGBUILD

40 lines
1.6 KiB
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 38812 2009-05-10 14:32:17Z jgc $
# Maintainer: Jan de Groot <jgc@archlinxu.org>
# Contri-butor: 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>
pkgname=networkmanager
pkgver=0.7.1
pkgrel=1
pkgdesc="Network Management daemon"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.gnome.org/projects/NetworkManager/"
depends=('wireless_tools' 'iproute' 'hal>=0.5.12git20090421.4fc367' 'libnl>=1.1' 'ppp' 'dhcpcd>=4.0' 'wpa_supplicant>=0.6.9' 'iptables' 'nss>=3.12.3')
makedepends=('pkgconfig' 'intltool')
options=('!libtool' '!makeflags')
backup=('etc/NetworkManager/nm-system-settings.conf')
replaces=('libnetworkmanager')
provides=("libnetworkmanager=${pkgver}")
conflicts=('libnetworkmanager')
source=(http://ftp.gnome.org/pub/gnome/sources/NetworkManager/0.7/NetworkManager-${pkgver}.tar.bz2
nm-system-settings.conf)
md5sums=('954742cfd47191204d62d8d57f2bc6dd'
'1653159d6634fb62d3a5c548b7a56151')
build() {
cd "${srcdir}/NetworkManager-${pkgver}"
sed -e 's/"\/sbin\/iptables/"\/usr\/sbin\/iptables/g' -i src/nm-activation-request.c || return 1
./configure --prefix=/usr --sysconfdir=/etc \
--with-distro=arch --localstatedir=/var \
--libexecdir=/usr/lib/networkmanager \
--disable-static --with-dhcp-client=dhcpcd \
--with-crypto=nss || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
install -m644 "${srcdir}/nm-system-settings.conf" "${pkgdir}/etc/NetworkManager/" || return 1
}