diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-31 11:39:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-31 11:39:43 +0000 |
commit | 56047c24f71d5bfca062ab9bf5c431998b07bfba (patch) | |
tree | 61af74c35f2cb785565cad394b86bc971be424fd | |
parent | 4bda782ed5286fe600a9b52e55bca0618c8fe6f7 (diff) | |
download | aports-56047c24f71d5bfca062ab9bf5c431998b07bfba.tar.bz2 aports-56047c24f71d5bfca062ab9bf5c431998b07bfba.tar.xz |
testing/cntlm: modernize
-rw-r--r-- | testing/cntlm/APKBUILD | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/testing/cntlm/APKBUILD b/testing/cntlm/APKBUILD index 854f2a4782..cb82deba81 100644 --- a/testing/cntlm/APKBUILD +++ b/testing/cntlm/APKBUILD @@ -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 } |