aboutsummaryrefslogtreecommitdiffstats
path: root/main/portmap
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-05 06:25:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-05 06:25:55 +0000
commitd184dae88f067a87efcd7616ad0d3c1772aeec24 (patch)
treef6b59742aa38f383ee1538b4b221b2115a78293e /main/portmap
parentdb5638d0911a1c0320d1ac01768864a7b73ab2d9 (diff)
downloadaports-d184dae88f067a87efcd7616ad0d3c1772aeec24.tar.bz2
aports-d184dae88f067a87efcd7616ad0d3c1772aeec24.tar.xz
main/portmap: fix preinstall that changed premissions on /dev/null
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