aboutsummaryrefslogtreecommitdiffstats
path: root/main/portmap
diff options
context:
space:
mode:
Diffstat (limited to 'main/portmap')
-rw-r--r--main/portmap/APKBUILD13
-rw-r--r--main/portmap/portmap.pre-install2
2 files changed, 11 insertions, 4 deletions
diff --git a/main/portmap/APKBUILD b/main/portmap/APKBUILD
index a6e76bcf34..fb86bac3a7 100644
--- a/main/portmap/APKBUILD
+++ b/main/portmap/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=portmap
pkgver=6.0
-pkgrel=4
+pkgrel=5
pkgdesc="RPC connection manager"
url="http://neil.brown.name/portmap/"
license="GPL"
@@ -14,15 +14,22 @@ source="http://neil.brown.name/$pkgname/$pkgname-$pkgver.tgz
$pkgname.confd
$pkgname.initd"
-build ()
-{
+
+prepare() {
cd "$srcdir"/portmap_$pkgver
for i in ../*.patch; do
msg "Applying $i"
patch -p1 < $i || return 1
done
+}
+build() {
+ cd "$srcdir"/portmap_$pkgver
make NO_TCP_WRAPPER=NO || return 1
+}
+
+package() {
+ cd "$srcdir"/portmap_$pkgver
mkdir -p "$pkgdir"/sbin
mkdir -p "$pkgdir"/usr/share/man/man8
make BASEDIR="$pkgdir" install
diff --git a/main/portmap/portmap.pre-install b/main/portmap/portmap.pre-install
index b0dcfb9c5c..ea2baf9e3a 100644
--- a/main/portmap/portmap.pre-install
+++ b/main/portmap/portmap.pre-install
@@ -1,3 +1,3 @@
#!/bin/sh
-adduser -h /dev/null -s /bin/false -D rpc 2>/dev/null || true
+adduser -h /var/lib/empty -H -s /bin/false -S -D rpc 2>/dev/null || true