diff options
author | James Meyer <james.meyer@operamail.com> | 2008-10-28 21:09:59 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-10-28 21:09:59 (GMT) |
commit | 9f392cc1b6e39b4cde757e18aa8259f2724e41fe (patch) | |
tree | 23e894766d68e5d8805f195f737e0533d89deaa3 /abs/core-testing/portmap | |
parent | c848d1b444b9e03f047830c04f5e1e70183035e9 (diff) | |
download | linhes_pkgbuild-9f392cc1b6e39b4cde757e18aa8259f2724e41fe.zip linhes_pkgbuild-9f392cc1b6e39b4cde757e18aa8259f2724e41fe.tar.gz linhes_pkgbuild-9f392cc1b6e39b4cde757e18aa8259f2724e41fe.tar.bz2 |
Add nfs-utils and related programs
Diffstat (limited to 'abs/core-testing/portmap')
-rw-r--r-- | abs/core-testing/portmap/PKGBUILD | 24 | ||||
-rw-r--r-- | abs/core-testing/portmap/gcc3-errno_h.patch | 18 | ||||
-rwxr-xr-x | abs/core-testing/portmap/portmap | 38 | ||||
-rw-r--r-- | abs/core-testing/portmap/portmap_5beta.patch.bz2 | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000..ecaf95e --- /dev/null +++ b/abs/core-testing/portmap/portmap_5beta.patch.bz2 |