aboutsummaryrefslogtreecommitdiffstats
path: root/main/rpcbind
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 13:49:01 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-12 15:02:22 +0000
commit2b0cc62675101eb442f323f9e48272fc03ca5949 (patch)
tree73198be8c32e7bcaead4dd9111fac1b1935f035e /main/rpcbind
parent8e66ee7e6d64ae4654b71b57c17a32fd4dd5796b (diff)
downloadaports-2b0cc62675101eb442f323f9e48272fc03ca5949.tar.bz2
aports-2b0cc62675101eb442f323f9e48272fc03ca5949.tar.xz
main/rpcbind: modernise, mark no tests, fix license
Diffstat (limited to 'main/rpcbind')
-rw-r--r--main/rpcbind/APKBUILD20
1 files changed, 8 insertions, 12 deletions
diff --git a/main/rpcbind/APKBUILD b/main/rpcbind/APKBUILD
index cb8998c18f..4501416072 100644
--- a/main/rpcbind/APKBUILD
+++ b/main/rpcbind/APKBUILD
@@ -1,11 +1,12 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rpcbind
pkgver=0.2.4
-pkgrel=0
+pkgrel=1
pkgdesc="portmap replacement which supports RPC over various protocols"
url="http://rpcbind.sourceforge.net"
arch="all"
-license="custom"
+options="!check" # No test suite.
+license="BSD-3-Clause"
depends=
install="$pkgname.pre-install $pkgname.pre-upgrade"
makedepends="libtirpc-dev autoconf automake bsd-compat-headers"
@@ -25,12 +26,8 @@ source="http://downloads.sourceforge.net/project/rpcbind/rpcbind/$pkgver/rpcbind
builddir="$srcdir"/rpcbind-$pkgver
prepare() {
cd "$builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
- sh autogen.sh || return 1
+ default_prepare
+ sh autogen.sh
}
build() {
@@ -46,14 +43,13 @@ build() {
--with-statedir=/var/lib/rpcbind \
--with-rpcuser=rpc \
--enable-debug \
- --with-systemdsystemunitdir='no' \
- || return 1
- make -j1 || return 1
+ --with-systemdsystemunitdir='no'
+ make -j1
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
install -Dm755 "$srcdir"/rpcbind.initd "$pkgdir"/etc/init.d/rpcbind
install -Dm644 "$srcdir"/rpcbind.confd "$pkgdir"/etc/conf.d/rpcbind
install -D -m644 COPYING "$pkgdir"/usr/share/licenses/rpcbind/COPYING