summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/portmap
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/portmap')
-rw-r--r--abs/core-testing/portmap/PKGBUILD24
-rw-r--r--abs/core-testing/portmap/gcc3-errno_h.patch18
-rwxr-xr-xabs/core-testing/portmap/portmap38
-rw-r--r--abs/core-testing/portmap/portmap_5beta.patch.bz2bin0 -> 9958 bytes
4 files changed, 80 insertions, 0 deletions
diff --git a/abs/core-testing/portmap/PKGBUILD b/abs/core-testing/portmap/PKGBUILD
new file mode 100644
index 0000000..dc51a0c
--- /dev/null
+++ b/abs/core-testing/portmap/PKGBUILD
@@ -0,0 +1,24 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: dorphell <dorphell@archlinux.org>
+# Committer: Judd Vinet <jvinet@zeroflux.org>
+pkgname=portmap
+pkgver=6.0
+pkgrel=2
+pkgdesc="RPC connection manager"
+arch=(i686 x86_64)
+depends=('glibc')
+url="http://neil.brown.name/portmap/"
+license=('GPL')
+source=(http://neil.brown.name/portmap/portmap-6.0.tgz portmap)
+md5sums=('ac108ab68bf0f34477f8317791aaf1ff'
+ 'ec37d014a47adc39e52e4bf31bf2a19a')
+
+build() {
+ cd $startdir/src/portmap_$pkgver
+ make || return 1
+ mkdir -p $startdir/pkg/sbin
+ mkdir -p $startdir/pkg/usr/share/man/man8
+ make BASEDIR=$startdir/pkg install
+ mkdir -p $startdir/pkg/etc/rc.d
+ cp ../portmap $startdir/pkg/etc/rc.d
+}
diff --git a/abs/core-testing/portmap/gcc3-errno_h.patch b/abs/core-testing/portmap/gcc3-errno_h.patch
new file mode 100644
index 0000000..a440e61
--- /dev/null
+++ b/abs/core-testing/portmap/gcc3-errno_h.patch
@@ -0,0 +1,18 @@
+--- portmap_5beta/portmap.c.orig 2002-12-31 22:13:17.000000000 +0200
++++ portmap_5beta/portmap.c 2002-12-31 22:13:50.000000000 +0200
+@@ -97,6 +97,7 @@
+
+ extern char *strerror();
+ #include <stdlib.h>
++#include <errno.h>
+
+ #ifndef LOG_PERROR
+ #define LOG_PERROR 0
+@@ -124,7 +125,6 @@
+ static void callit();
+ struct pmaplist *pmaplist;
+ int debugging = 0;
+-extern int errno;
+
+ #include "pmap_check.h"
+
diff --git a/abs/core-testing/portmap/portmap b/abs/core-testing/portmap/portmap
new file mode 100755
index 0000000..fb83a0a
--- /dev/null
+++ b/abs/core-testing/portmap/portmap
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /sbin/portmap`
+case "$1" in
+ start)
+ stat_busy "Starting Portmap"
+ [ -z "$PID" ] && /sbin/portmap
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ echo $PID > /var/run/portmap.pid
+ add_daemon portmap
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Portmap"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm /var/run/portmap.pid
+ rm_daemon portmap
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0
diff --git a/abs/core-testing/portmap/portmap_5beta.patch.bz2 b/abs/core-testing/portmap/portmap_5beta.patch.bz2
new file mode 100644
index 0000000..ecaf95e
--- /dev/null
+++ b/abs/core-testing/portmap/portmap_5beta.patch.bz2
Binary files differ