aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-12-07 00:50:49 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-12-07 00:51:00 -0300
commit588e5940e5d1fa0210cf2f9acf8f6a322bb5f5cc (patch)
tree22f83d95f5be1b015edfff7e4efd245b5d5ecf3d
parent414c14536cc7a04fc5f405bdd86f594e53a06291 (diff)
downloadaports-588e5940e5d1fa0210cf2f9acf8f6a322bb5f5cc.tar.gz
aports-588e5940e5d1fa0210cf2f9acf8f6a322bb5f5cc.tar.bz2
aports-588e5940e5d1fa0210cf2f9acf8f6a322bb5f5cc.tar.xz
testing/pwauth: modernize
-rw-r--r--testing/pwauth/APKBUILD25
1 files changed, 9 insertions, 16 deletions
diff --git a/testing/pwauth/APKBUILD b/testing/pwauth/APKBUILD
index 638498045b..3789422566 100644
--- a/testing/pwauth/APKBUILD
+++ b/testing/pwauth/APKBUILD
@@ -2,35 +2,28 @@
# Maintainer: Nathan Rennie-Waldock <nathan.renniewaldock@gmail.com>
pkgname=pwauth
pkgver=2.3.11
-pkgrel=0
+pkgrel=1
pkgdesc="Authenticator for mod_authnz_external and Apache"
-url="https://code.google.com/p/pwauth/"
+url="https://github.com/phokz/pwauth"
arch="all"
license="BSD-3-Clause"
-depends=""
-makedepends=""
-install=""
subpackages="$pkgname-doc"
-source="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pwauth/$pkgname-$pkgver.tar.gz
+source="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pwauth/pwauth-$pkgver.tar.gz
10-config.patch
- 20-fix-warnings.patch"
-builddir="$srcdir/$pkgname-$pkgver"
+ 20-fix-warnings.patch
+ "
options="suid"
build() {
- cd "$builddir"
- make || return 1
-
+ make
}
package() {
- cd "$builddir"
- install -Dm4755 pwauth "$pkgdir/usr/sbin/pwauth" || return 1
+ install -Dm4755 pwauth "$pkgdir/usr/sbin/pwauth"
- local f
- for f in unixgroup INSTALL FORM_AUTH; do
+ local f; for f in unixgroup INSTALL FORM_AUTH; do
install -Dm644 "$f" \
- "$pkgdir/usr/share/doc/$pkgname/$f" || return 1
+ "$pkgdir/usr/share/doc/$pkgname/$f"
done
}