aboutsummaryrefslogtreecommitdiff
path: root/libraries/libtelnet
diff options
context:
space:
mode:
authorZhu Qun-Ying <zhu.qunying@gmail.com>2015-07-31 10:35:44 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-07-31 10:35:44 +0700
commit1d72f44ff962a4a71266525e5e0fbd4cc4c38895 (patch)
tree034698bea50921cdcbc1f54b642e15143fc19de8 /libraries/libtelnet
parent307563d7edbe715ca25eabf39589560c7fdaf4f2 (diff)
libraries/libtelnet: Added (TELNET protocol handling library).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libtelnet')
-rw-r--r--libraries/libtelnet/README4
-rw-r--r--libraries/libtelnet/libtelnet.SlackBuild94
-rw-r--r--libraries/libtelnet/libtelnet.info10
-rw-r--r--libraries/libtelnet/slack-desc19
4 files changed, 127 insertions, 0 deletions
diff --git a/libraries/libtelnet/README b/libraries/libtelnet/README
new file mode 100644
index 0000000000000..4be5e8810edc3
--- /dev/null
+++ b/libraries/libtelnet/README
@@ -0,0 +1,4 @@
+libtelnet provides safe and correct handling of the core TELNET
+protocol. In addition to the base TELNET protocol, libtelnet also
+implements the Q method of TELNET option negotiation. libtelnet can
+be used for writing servers, clients, or proxies.
diff --git a/libraries/libtelnet/libtelnet.SlackBuild b/libraries/libtelnet/libtelnet.SlackBuild
new file mode 100644
index 0000000000000..40e10ec61681d
--- /dev/null
+++ b/libraries/libtelnet/libtelnet.SlackBuild
@@ -0,0 +1,94 @@
+#!/bin/sh
+
+# Slackware build script for libtelnet
+
+# Copyright 2015 Zhu Qun-Ying
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=libtelnet
+VERSION=${VERSION:-0.21}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+sed -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+
+autoreconf -fi
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --enable-static=no \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README COPYING ChangeLog NEWS AUTHORS doc/html $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/libtelnet/libtelnet.info b/libraries/libtelnet/libtelnet.info
new file mode 100644
index 0000000000000..8e9e3789f9ba8
--- /dev/null
+++ b/libraries/libtelnet/libtelnet.info
@@ -0,0 +1,10 @@
+PRGNAM="libtelnet"
+VERSION="0.21"
+HOMEPAGE="https://github.com/seanmiddleditch/libtelnet"
+DOWNLOAD="https://github.com/seanmiddleditch/libtelnet/archive/0.21.tar.gz"
+MD5SUM="73f66c693c23daa10bf65976f47b7f4b"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Zhu Qun-Ying"
+EMAIL="zhu.qunying@gmail.com"
diff --git a/libraries/libtelnet/slack-desc b/libraries/libtelnet/slack-desc
new file mode 100644
index 0000000000000..651bf73f37c71
--- /dev/null
+++ b/libraries/libtelnet/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler-----------------------------------------------------|
+libtelnet: libtelnet (TELNET protocol handling library)
+libtelnet:
+libtelnet: libtelnet provides safe and correct handling of the core TELNET
+libtelnet: protocol. In addition to the base TELNET protocol, libtelnet also
+libtelnet: implements the Q method of TELNET option negotiation. libtelnet can
+libtelnet: be used for writing servers, clients, or proxies.
+libtelnet:
+libtelnet: https://github.com/seanmiddleditch/libtelnet
+libtelnet:
+libtelnet:
+libtelnet: