Advertisement
Guest User

PKGBUILD

a guest
Jul 4th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. # Maintainer: Limao Luo <luolimao+AUR@gmail.com>
  2. #
  3. # (Added from network-manager package)
  4. # Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
  5. # Contributor: Jan de Groot <jgc@archlinxu.org>
  6. # Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>
  7. # Contributor: Tor Krill <tor@krill.nu>
  8. # Contributor: Will Rea <sillywilly@gmail.com>
  9. # Contributor: Valentine Sinitsyn <e_val@inbox.ru>
  10.  
  11. _gitname=NetworkManager
  12. _pkgname=networkmanager
  13. pkgname=$_pkgname-git
  14. pkgver=20130704
  15. pkgrel=1
  16. pkgdesc="Network Management daemon"
  17. arch=(i686 x86_64)
  18. url=http://www.gnome.org/projects/$_gitname
  19. license=(GPL3)
  20. depends=(dbus-glib dhclient libsoup polkit wpa_supplicant)
  21. makedepends=(git gobject-introspection gtk-doc intltool)
  22. optdepends=('modemmanager: for modem management service'
  23. 'dnsmasq: Connection sharing'
  24. 'bluez: Bluetooth support'
  25. 'openresolv: resolvconf support')
  26. provides=($_pkgname=$pkgver)
  27. conflicts=($_pkgname)
  28. backup=(etc/NetworkManager/NetworkManager.conf)
  29. options=(!emptydirs !libtool)
  30. install=$pkgname.install
  31. source=($pkgname::git://anongit.freedesktop.org/$_gitname/$_gitname.git
  32. git://git.gnome.org/libgsystem
  33. NetworkManager.conf
  34. disable_set_hostname.patch
  35. dnsmasq-path.patch
  36. nm-polkit-permissive.patch)
  37. sha256sums=('SKIP' 'SKIP'
  38. '44b048804c7c0b8b3b0c29b8632b6ad613c397d0a1635ec918e10c0fbcdadf21'
  39. '46f3d7cc5fdc449e613b1e6a651879f87f0a9fa65818e7e0ebae20b11d2eef39'
  40. 'e7753d8ae42395289c0294f039a658628086383a56ea03cafe38a4579012879f'
  41. '91881a6ba962800895901fcc6929955b9d49095b6ed97fd913c99c77ddd630db')
  42. sha512sums=('SKIP' 'SKIP'
  43. '1f4e6c09da5a8921ee7759861cfa5e808c64cd27e733cd62cfb35776db05a226a73443c071730035480c9ba4abe85fa7daeb14aeffbbdae20ed193d78341f451'
  44. '8527e8dfe5b46fc44b85f93532e8a0431d6a7934c4f782aca90a451ac3a3576dd15aa28df040f1b114f65e9037bc9895eb908e92bd4e4c621e6a9c7178a3ec34'
  45. 'a2276623bb1d8e7c5f0c647a2bd24aca54a138c353bb9ff137263090af4141d184d943010052836de829158c7f1f0b873c67c05af5e1433efe9611f5e37c9c1a'
  46. 'c8668a85332065f5cd89650951a15725bae1f5a530b61fbc2fe57d51a8924b1f3e8765cd3784d89476db3d2d9c8992156c4986424670d91d8f960425abbacde5')
  47.  
  48. pkgver() {
  49. cd $pkgname/
  50. git log -1 --format='%cd' --date=short | tr -d -- '-'
  51. }
  52.  
  53. prepare() {
  54. cd $pkgname/
  55. find ../ -name '*.patch' -exec patch -Np1 -i '{}' \;
  56. }
  57.  
  58. build() {
  59. cd $pkgname/
  60.  
  61. cp -r ../libgsystem .
  62.  
  63. gtkdocize
  64. autopoint --force
  65. AUTOPOINT="intltoolize -f -c --automake" autoreconf -fi
  66.  
  67. ./configure \
  68. --prefix=/usr \
  69. --sysconfdir=/etc \
  70. --localstatedir=/var \
  71. --libexecdir=/usr/lib/networkmanager \
  72. --with-crypto=nss \
  73. --with-distro=arch \
  74. --with-dhclient=/usr/sbin/dhclient \
  75. --with-dhcpcd=/usr/sbin/dhcpcd \
  76. --with-iptables=/usr/sbin/iptables \
  77. --with-systemdsystemunitdir=/usr/lib/systemd/system \
  78. --with-udev-dir=/usr/lib/udev \
  79. --with-resolvconf=/usr/sbin/resolvconf \
  80. --with-session-tracking=systemd \
  81. --with-system-libndp=yes \
  82. --disable-static \
  83. --enable-more-warnings=no \
  84. --disable-wimax
  85.  
  86. make
  87. }
  88.  
  89. package() {
  90. make -C $pkgname DESTDIR="$pkgdir" install
  91. install -m644 $_gitname.conf "$pkgdir"/etc/$_gitname/
  92. rm -r "$pkgdir"/var/run
  93. # Provide native service for arch-daemons generator
  94. ln -s $_gitname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement