mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +02:00
testing/doas: add minimal check and minor cleanup
This commit is contained in:
parent
4aa3458d58
commit
81ee4579ec
@ -9,25 +9,31 @@ license="BSD"
|
|||||||
makedepends="bison"
|
makedepends="bison"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="
|
source="
|
||||||
$pkgname-$pkgver.tar.gz::https://github.com/Duncaen/OpenDoas/archive/v6.0.tar.gz
|
$pkgname-$pkgver.tar.gz::https://github.com/Duncaen/OpenDoas/archive/v$pkgver.tar.gz
|
||||||
doas.conf
|
doas.conf
|
||||||
"
|
"
|
||||||
builddir="$srcdir/OpenDoas-$pkgver"
|
builddir="$srcdir/OpenDoas-$pkgver"
|
||||||
options="$options !check suid"
|
options="$options suid"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
--without-pam || return 1
|
--without-pam
|
||||||
make
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
# doas -v returns 1
|
||||||
|
./doas -v || test $? = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
make install DESTDIR="$pkgdir"
|
make install DESTDIR="$pkgdir"
|
||||||
install -Dm440 "$srcdir"/doas.conf "$pkgdir"/etc/doas.conf
|
install -Dm440 "$srcdir"/doas.conf "$pkgdir"/etc/doas.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="2bf5e00895a45d87785e7a494a1506844afd843ef5375e0b0e3795ebc24712bb941c6feeb87e426e41a240d40aca9b4c099f77220745bb7142a7a4b303441f60 doas-6.0.tar.gz
|
sha512sums="2bf5e00895a45d87785e7a494a1506844afd843ef5375e0b0e3795ebc24712bb941c6feeb87e426e41a240d40aca9b4c099f77220745bb7142a7a4b303441f60 doas-6.0.tar.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user