diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
commit | 7b29169fff9e7c624890c5edffe85def8a293136 (patch) | |
tree | 47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/netkit-telnet | |
parent | c491dea779dac29afff3578bf8245943817c2339 (diff) | |
download | linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2 |
LinHES 6.01.00
Diffstat (limited to 'abs/core/netkit-telnet')
-rw-r--r-- | abs/core/netkit-telnet/PKGBUILD | 22 | ||||
-rw-r--r-- | abs/core/netkit-telnet/netkit-telnet-0.17.patch | 36 | ||||
-rw-r--r-- | abs/core/netkit-telnet/telnet.xinetd | 10 |
3 files changed, 68 insertions, 0 deletions
diff --git a/abs/core/netkit-telnet/PKGBUILD b/abs/core/netkit-telnet/PKGBUILD new file mode 100644 index 0000000..5afd1a1 --- /dev/null +++ b/abs/core/netkit-telnet/PKGBUILD @@ -0,0 +1,22 @@ +# $Id: PKGBUILD 9079 2008-08-17 03:28:25Z allan $ +# Maintainer: dorphell <dorphell@archlinux.org> +pkgname=netkit-telnet +pkgver=0.17 +pkgrel=8 +pkgdesc="A telnet client (and server)" +arch=(i686 x86_64) +depends=('ncurses') +license=('GPL2' 'GPL3') # parts are GPL2, others GPL3 +source=(ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/$pkgname-$pkgver.tar.gz $pkgname-$pkgver.patch telnet.xinetd) +md5sums=('d6beabaaf53fe6e382c42ce3faa05a36' 'd56497f2c6b96e8909ed57f1be19411d' \ + 'c6e6ca4ba8e084be8ce2a170bebc17cc') + +build() { + cd $startdir/src/$pkgname-$pkgver + patch -Np1 -i ../$pkgname-$pkgver.patch + ./configure --prefix=/usr --installroot=$startdir/pkg + make || return 1 + mkdir -p $startdir/pkg/usr/{bin,sbin,share/{man/man1,man/man5,man/man8}} $startdir/pkg/etc/xinetd.d + make MANDIR=/usr/share/man install + install -m644 $startdir/src/telnet.xinetd $startdir/pkg/etc/xinetd.d/telnet +} diff --git a/abs/core/netkit-telnet/netkit-telnet-0.17.patch b/abs/core/netkit-telnet/netkit-telnet-0.17.patch new file mode 100644 index 0000000..77919e1 --- /dev/null +++ b/abs/core/netkit-telnet/netkit-telnet-0.17.patch @@ -0,0 +1,36 @@ +diff -Naur netkit-telnet-0.17-orig/telnet/proto.h netkit-telnet-0.17/telnet/proto.h +--- netkit-telnet-0.17-orig/telnet/proto.h 1997-05-19 09:32:36.000000000 +0000 ++++ netkit-telnet-0.17/telnet/proto.h 2002-09-05 01:17:24.000000000 +0000 +@@ -3,6 +3,9 @@ + void auth_encrypt_init(void); + #endif + ++#include <stdlib.h> ++#include <string.h> ++ + void Exit(int); + void ExitString(const char *, int); + int TerminalAutoFlush(void); +diff -Naur netkit-telnet-0.17-orig/telnetd/telnetd.h netkit-telnet-0.17/telnetd/telnetd.h +--- netkit-telnet-0.17-orig/telnetd/telnetd.h 1999-03-27 07:46:21.000000000 +0000 ++++ netkit-telnet-0.17/telnetd/telnetd.h 2002-09-05 01:17:34.000000000 +0000 +@@ -38,6 +38,7 @@ + #include "defs.h" + #include "ext.h" + #include <errno.h> ++#include <stdlib.h> + + #ifdef DIAGNOSTICS + #define DIAG(a,b) if (diagnostic & (a)) b +diff -Naur netkit-telnet-0.17-orig/configure netkit-telnet-0.17/configure +--- netkit-telnet-0.17-orig/configure 2003-11-04 13:10:07.000000000 -0500 ++++ netkit-telnet-0.17/configure 2003-11-04 13:10:49.000000000 -0500 +@@ -252,7 +252,7 @@ + fi + + +-LDFLAGS= ++LDFLAGS=-lstdc++ + LIBS= + + rm -f __conftest* diff --git a/abs/core/netkit-telnet/telnet.xinetd b/abs/core/netkit-telnet/telnet.xinetd new file mode 100644 index 0000000..1a1f4ed --- /dev/null +++ b/abs/core/netkit-telnet/telnet.xinetd @@ -0,0 +1,10 @@ +service telnet +{ + flags = REUSE + socket_type = stream + wait = no + user = root + server = /usr/sbin/in.telnetd + log_on_failure += USERID + disable = yes +} |