mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/cntlm: modernize
This commit is contained in:
parent
4bda782ed5
commit
56047c24f7
@ -1,7 +1,7 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=cntlm
|
||||
pkgver=0.92.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="NTLM Session Response / NTLMv2 authenticating HTTP proxy"
|
||||
url="http://cntlm.sourceforge.net/"
|
||||
arch="all"
|
||||
@ -13,33 +13,20 @@ subpackages="$pkgname-doc"
|
||||
source="http://downloads.sourceforge.net/project/cntlm/cntlm/cntlm%20$pkgver/cntlm-$pkgver.tar.gz
|
||||
cntlm.initd
|
||||
"
|
||||
_builddir="$srcdir"/cntlm-$pkgver
|
||||
|
||||
prepare() {
|
||||
local i
|
||||
cd "$_builddir"
|
||||
for i in $source; do
|
||||
case $i in
|
||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
builddir="$srcdir"/cntlm-$pkgver
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info \
|
||||
--localstatedir=/var \
|
||||
|| return 1
|
||||
make || return 1
|
||||
--localstatedir=/var
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user