1 # Contributor: Graziano <graziano.giuliani@poste.it>
2 # Maintainer: John Gerritse <reaphsharc@gmail.com>
7 pkgdesc="'NTLM Authorization Proxy Server' (APS) is a proxy software that allows you to authenticate via an MS Proxy Server using the proprietary NTLM protocol."
8 url="http://ntlmaps.sourceforge.net/"
12 backup=('etc/conf.d/ntlmaps')
13 install=$pkgname.install
14 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}-${pkgver}.tar.gz paths.patch ntlmaps)
15 md5sums=('7ee0a00d5446f39ebbe5f0f90465986e'
16 '601415667ede96abd7f608ea2551ed22'
17 '86d2cef545e5548073b24032d70ee0fe')
20 PYTHONVER=`python2 -c 'import sys;print(sys.version[0:3])'`
21 cd $srcdir/$pkgname-$pkgver/
22 patch -Np1 -i ../paths.patch
23 sed -i "s/#! \/usr\/bin\/python/#! \/usr\/bin\/python2/" main.py
24 #mkdir -p $pkgdir/usr/bin
25 #mkdir -p $pkgdir/etc/conf.d
26 #mkdir -p $pkgdir/etc/rc.d
27 install -D -m 600 server.cfg $pkgdir/etc/conf.d/$pkgname
28 PYDEST_SITE=$pkgdir/usr/lib/python$PYTHONVER/site-packages
29 mkdir -p $PYDEST_SITE/$pkgname
30 cp -a lib/* $PYDEST_SITE/$pkgname
31 install -m 644 __init__.py $PYDEST_SITE/$pkgname/__init__.py
32 install -D -m 755 main.py $pkgdir/usr/bin/$pkgname
33 install -D -m 755 ../ntlmaps $pkgdir/etc/rc.d/ntlmaps
34 echo $pkgname > $PYDEST_SITE/$pkgname.pth