diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2004-05-15 15:49:17 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2004-05-15 15:49:17 +0000 |
commit | 6f316ce2e89f972a4f22e1b97e1dda5e9d58cefa (patch) | |
tree | fb8d61358190cc429db453d54fb9920ccfde716f /japanese/ebnetd/pkg-install | |
parent | ea16706c62b542adc8f3b887256bf215bf914db6 (diff) | |
download | ports-release/4.10.0.tar.gz ports-release/4.10.0.zip |
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_10_0'.release/4.10.0
Diffstat (limited to 'japanese/ebnetd/pkg-install')
-rw-r--r-- | japanese/ebnetd/pkg-install | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/japanese/ebnetd/pkg-install b/japanese/ebnetd/pkg-install deleted file mode 100644 index d29231b3efb6..000000000000 --- a/japanese/ebnetd/pkg-install +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -# an installation script for ndtpd - -ask() { - local question default answer - - question=$1 - default=$2 - - if [ -z "${PACKAGE_BUILDING}" ]; then - read -p "${question} (y/n) [${default}]? " answer - [ "${answer}" ] && default=${answer} - fi - echo ${default} -} - -yesno() { - local question default - - question=$1 - default=$2 - - while :; do - case `ask "${question}" ${default}` in - [Yy]*) return 0;; - [Nn]*) return 1;; - esac - echo "Please answer yes or no." - done -} - -[ "$2" = POST-INSTALL ] || exit 0 - -# -# Add an entry for `ndtp' to /etc/services. -# -file=/etc/services -back=${file}.bak -name=ndtp -port=2010/tcp -comment="Network Dictionary Transfer Protocol" - -echo "************************************************************************" -if sed 's/#.*//' ${file} | grep -qw ${name}; then - echo "This system has already an entry for ${name} in ${file}." -else - echo "This system has no entry for ${name} in ${file}." - if yesno " Would you like to add it automatically?" y; then - cp -f ${file} ${back} - echo " The original file is saved as ${back}." - - if sed 's/#.*//' ${file} | grep -qw ${port}; then - sed 's,^\([^#]*[ ]'${port}'\),\1 '${name}, ${back} > ${file} - else - echo "${name} ${port} #${comment}" >> ${file} - fi - fi -fi -echo "************************************************************************" - -exit 0 |