Advertisement
Guest User

ncpfs-2.2.6-8

a guest
Jan 30th, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.82 KB | None | 0 0
  1. # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
  2. # Contributor: dsa <dsa@unilestemg.br>
  3. # Conributer: gerbra <gerbra@derbrauer.homelinux.net>
  4. # Conributer: Joker-jar <joker-jar@yandex.ru>
  5.  
  6. pkgname=ncpfs
  7. pkgver=2.2.6
  8. pkgrel=8
  9. pkgdesc="ncpfs allows you to mount volumes of NetWare servers under Linux."
  10. url="http://www.novell.com/"
  11. arch=('i686' 'x86_64')
  12. license=('GPL')
  13. depends=('linux>=3.0.0' 'pam')
  14. _url="http://ftp.de.debian.org/debian/pool/main/n/$pkgname"
  15. _with_php=0
  16. source=("${_url}/${pkgname}_${pkgver}.orig.tar.gz"
  17.         '01-linux3.0_uname.patch'
  18.         '02-legacy.patch'
  19.         '03-multiple_security_issues.patch'
  20.         '04-drop-mtab-support.patch')
  21. md5sums=('a9ab9f135d504440202069393dd9eb36'
  22.          'e3e3c7c148fff31162175af02f8111a7'
  23.          '20e438bdd8c141b4b604aaf30a3f5f4a'
  24.          '4b0de0263d1d4b91b3520d2eb0cda3a8'
  25.          '5ab557986d02c2cf26f10db42ffb9f02')
  26. if [ $_with_php -eq 1 ]; then
  27.   makedepends=('php')
  28.   optdepends=('php: PHP NCP authentication support')
  29. fi
  30.  
  31. build() {
  32.   cd $pkgname-$pkgver
  33.  
  34.   patch -p1 -i "$srcdir"/01-linux3.0_uname.patch
  35.   patch -p1 -i "$srcdir"/02-legacy.patch
  36.   patch -p1 -i "$srcdir"/03-multiple_security_issues.patch
  37.   patch -p1 -i "$srcdir"/04-drop-mtab-support.patch
  38.  
  39.   # fix glibc 2.16.0-2
  40.   export ncp_cv_pam_directory='/usr/lib/security'
  41.  
  42.   if [ $_with_php -eq 1 ]; then
  43.     ./configure --prefix=/usr --mandir=/usr/share
  44.     sed 's/function_entry/zend_function_entry/' -i contrib/php/php_auth_nds.c
  45.   else
  46.     ./configure --prefix=/usr --mandir=/usr/share --disable-php
  47.   fi
  48.  
  49.   make
  50. }
  51.  
  52. package() {
  53.   cd $pkgname-$pkgver
  54.   make DESTDIR="$pkgdir" install install-dev
  55.   # fix libncp symlink
  56.   rm "$pkgdir"/usr/lib/libncp.so
  57.   ln -s libncp.so.2.3.0 "$pkgdir"/usr/lib/libncp.so
  58.   ln -s libncp.so.2.3.0 "$pkgdir"/usr/lib/libncp.so.2.3
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement