diff options
Diffstat (limited to 'perl/perl-Net-Telnet')
-rw-r--r-- | perl/perl-Net-Telnet/README | 15 | ||||
-rw-r--r-- | perl/perl-Net-Telnet/perl-Net-Telnet.SlackBuild | 18 |
2 files changed, 21 insertions, 12 deletions
diff --git a/perl/perl-Net-Telnet/README b/perl/perl-Net-Telnet/README index 890da5b2f9..edfff9bebb 100644 --- a/perl/perl-Net-Telnet/README +++ b/perl/perl-Net-Telnet/README @@ -1,9 +1,10 @@ Net::Telnet - interact with TELNET port or other TCP ports -Net::Telnet allows you to make client connections to a TCP port and do network -I/O, especially to a port using the TELNET protocol. Simple I/O methods such -as print, get, and getline are provided. More sophisticated interactive -features are provided because connecting to a TELNET port ultimately means -communicating with a program designed for human interaction. These interactive -features include the ability to specify a time-out and to wait for patterns to -appear in the input stream, such as the prompt from a shell. +Net::Telnet allows you to make client connections to a TCP port and do +network I/O, especially to a port using the TELNET protocol. Simple +I/O methods such as print, get, and getline are provided. More +sophisticated interactive features are provided because connecting to +a TELNET port ultimately means communicating with a program designed +for human interaction. These interactive features include the ability +to specify a time-out and to wait for patterns to appear in the input +stream, such as the prompt from a shell. diff --git a/perl/perl-Net-Telnet/perl-Net-Telnet.SlackBuild b/perl/perl-Net-Telnet/perl-Net-Telnet.SlackBuild index b29e5da7e5..6f14847693 100644 --- a/perl/perl-Net-Telnet/perl-Net-Telnet.SlackBuild +++ b/perl/perl-Net-Telnet/perl-Net-Telnet.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for perl-Net-Telnet @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=perl-Net-Telnet VERSION=${VERSION:-3.04} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRC_PRGNAM=Net-Telnet DOCS="ChangeLog README" @@ -38,7 +41,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -77,10 +87,8 @@ make make test make install DESTDIR=$PKG -# Move man pages mv $PKG/usr/share/man $PKG/usr/ -# Compress man pages ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done @@ -106,4 +114,4 @@ 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} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |