summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/portmap
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-01-14 05:23:14 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-01-14 05:23:14 (GMT)
commit7f188658c1e6a9eaf4d9644bc725c78c3f6cc5c6 (patch)
tree06fe118c0a42902b81ba2ce2b311e0c865b0aa3f /abs/extra-testing/portmap
parent95cf6290d2172b876965de46d78db8ac5d6f6192 (diff)
downloadlinhes_pkgbuild-7f188658c1e6a9eaf4d9644bc725c78c3f6cc5c6.zip
linhes_pkgbuild-7f188658c1e6a9eaf4d9644bc725c78c3f6cc5c6.tar.gz
linhes_pkgbuild-7f188658c1e6a9eaf4d9644bc725c78c3f6cc5c6.tar.bz2
Various packages needed for deps of Miro.
Diffstat (limited to 'abs/extra-testing/portmap')
-rw-r--r--abs/extra-testing/portmap/PKGBUILD24
-rw-r--r--abs/extra-testing/portmap/gcc3-errno_h.patch18
-rwxr-xr-xabs/extra-testing/portmap/portmap38
-rw-r--r--abs/extra-testing/portmap/portmap_5beta.patch.bz2bin0 -> 9958 bytes
4 files changed, 80 insertions, 0 deletions
diff --git a/abs/extra-testing/portmap/PKGBUILD b/abs/extra-testing/portmap/PKGBUILD
new file mode 100644
index 0000000..dc51a0c
--- /dev/null
+++ b/abs/extra-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/extra-testing/portmap/gcc3-errno_h.patch b/abs/extra-testing/portmap/gcc3-errno_h.patch
new file mode 100644
index 0000000..a440e61
--- /dev/null
+++ b/abs/extra-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/extra-testing/portmap/portmap b/abs/extra-testing/portmap/portmap
new file mode 100755
index 0000000..fb83a0a
--- /dev/null
+++ b/abs/extra-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/extra-testing/portmap/portmap_5beta.patch.bz2 b/abs/extra-testing/portmap/portmap_5beta.patch.bz2
new file mode 100644
index 0000000..ecaf95e
--- /dev/null
+++ b/abs/extra-testing/portmap/portmap_5beta.patch.bz2
Binary files differ