Subject: pkg/14262: New package: textproc/ndtpd
To: None <gnats-bugs@gnats.netbsd.org>
From: None <uebayasi@soum.co.jp>
List: netbsd-bugs
Date: 10/15/2001 21:47:56
>Number: 14262
>Category: pkg
>Synopsis: New package: textproc/ndtpd
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 15 21:49:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Masao Uebayashi
>Release: 1.5.1
>Organization:
SOUM Corporation.
>Environment:
NetBSD sebastes.soum.co.jp 1.5.1 NetBSD 1.5.1 (SEBASTES_NO_INET6) #0: Thu Aug 2 13:14:51 JST 2001 root@sebastes.soum.co.jp:/usr/src-1.5.1/sys/arch/i386/compile/SEBASTES_NO_INET6 i386
>Description:
NDTPD is a server for accessing CD-ROM books (dictionaries)
via NDTP (Network Dictionary Transfer Protocol) with EB
library. Available CD-ROM books include EB, EBG, EBXA,
EBXA-C, S-EBXA and EPWING formats which are widely used in
Japan.
>How-To-Repeat:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# ndtpd/Makefile
# ndtpd/distinfo
# ndtpd/files/ndtpd.sh
# ndtpd/pkg/DESCR
# ndtpd/pkg/INSTALL
# ndtpd/pkg/MESSAGE
# ndtpd/pkg/PLIST
# ndtpd/plist
#
echo x - ndtpd/Makefile
sed 's/^X//' >ndtpd/Makefile << 'END-of-ndtpd/Makefile'
X# $NetBSD$
X# FreeBSD Id: ports/japanese/ndtpd/Makefile,v 1.20 2000/08/29 20:16:57 knu Exp
X
XDISTNAME= ndtpd-3.0.2
XCATEGORIES= textproc japanese
XMASTER_SITES= ftp://ftp.sra.co.jp/pub/net/ndtp/ndtpd/
X
XMAINTAINER= uebayasi@soum.co.jp
XHOMEPAGE= http://www.sra.co.jp/people/m-kasahr/ndtpd/
XCOMMENT= Server for accessing CD-ROM books with NDTP
X
XDEPENDS= eb>=3:../../textproc/eb
X
XUSE_LIBTOOL= yes
XUSE_LIBINTL= yes
XUSE_GTEXINFO= yes
XGNU_CONFIGURE= yes
XCONFIGURE_ARGS= --localstatedir=${RUNDIR} --with-logdir=${LOGDIR} \
X --with-eb --with-eb-includes=${PREFIX}/include \
X --with-eb-libraries=${PREFIX}/lib --with-zlib
X
X# local variables
XLOGDIR= /var/log
XRUNDIR= /var/run
X
Xpre-install:
X @{ \
X cd ${WRKSRC}/doc-ja; \
X ${RM} -f ndtpd-ja.info*; \
X if [ -f /usr/bin/makeinfo ]; then \
X ${MAKE} MAKEINFO="/usr/bin/makeinfo --no-split" ndtpd-ja.info; \
X else \
X ${MAKE} MAKEINFO="${PREFIX}/bin/makeinfo --no-split" ndtpd-ja.info; \
X fi; \
X }
X
Xpost-install:
X ${SED} -e "s|@PREFIX@|${PREFIX}|g" \
X -e "s|@ECHO@|${ECHO}|g" \
X ${FILESDIR}/ndtpd.sh > ${WRKDIR}/ndtpd.sh
X ${INSTALL_SCRIPT} ${WRKDIR}/ndtpd.sh ${PREFIX}/etc/rc.d/ndtpd.sh
X @PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
X
X.include "../../mk/bsd.pkg.mk"
END-of-ndtpd/Makefile
echo x - ndtpd/distinfo
sed 's/^X//' >ndtpd/distinfo << 'END-of-ndtpd/distinfo'
X$NetBSD$
X
XSHA1 (ndtpd-3.0.2.tar.gz) = dc8e8989c1f764c9e4dc9c1cd23fa41332ce22a3
XSize (ndtpd-3.0.2.tar.gz) = 538385 bytes
END-of-ndtpd/distinfo
echo x - ndtpd/files/ndtpd.sh
sed 's/^X//' >ndtpd/files/ndtpd.sh << 'END-of-ndtpd/files/ndtpd.sh'
X#!/bin/sh
X#
X# $NetBSD$
X#
X# PROVIDE: ndtpd
X# REQUIRE: DAEMON
X# KEYWORD: shutdown
X#
X# To start ndtpd at startup, copy this script to /etc/rc.d and set
X# ndtpd=YES in /etc/rc.conf.
X
Xname="ndtpd"
Xrcvar=$name
X
Xprog=@PREFIX@/sbin/ndtpd
Xpidfile=/var/run/ndtpd/ndtpd.pid
Xcommand=${1:-start}
X
Xcase ${command} in
Xstart)
X { @ECHO@ "Starting ${name}."; ${prog}; } || {
X @ECHO@ "Configuration error?" 1>&2
X @ECHO@ "Try @PREFIX@/sbin/ndtpdcheck" 1>&2
X exit 1
X }
X ;;
Xstop)
X if [ -f ${pidfile} ]; then
X pid=`head -1 ${pidfile}`
X @ECHO@ "Stopping ${name}."
X kill -TERM ${pid}
X else
X @ECHO@ "${name} not running?"
X fi
X ;;
X*)
X @ECHO@ "Usage: $0 [start|stop]" 1>&2
X exit 1
X ;;
Xesac
X
Xexit 0
END-of-ndtpd/files/ndtpd.sh
echo x - ndtpd/pkg/DESCR
sed 's/^X//' >ndtpd/pkg/DESCR << 'END-of-ndtpd/pkg/DESCR'
XNDTPD is a server for accessing CD-ROM books with NDTP (Network
XDictionary Transfer Protocol) on TCP. You can replace dserver with
XNDTPD. NDTPD can run on UNIX derived systems. It supports to access
XCD-ROM books of EB, EBG, EBXA and EPWING formats. CD-ROM books of
Xthose formats are popular in Japan. Since CD-ROM books themseves are
Xstands on the ISO 9660 format, you can mount the discs by the same way
Xas other ISO 9660 discs.
X
X-- Motoyuki Kasahara <m-kasahr@sra.co.jp>
X
XYou can get information about NDTPD from their website.
XWWW: http://www.sra.co.jp/people/m-kasahr/ndtpd/
X
X-- Kazutoki TAKAMUNE <takamune@avrl.mei.co.jp>
END-of-ndtpd/pkg/DESCR
echo x - ndtpd/pkg/INSTALL
sed 's/^X//' >ndtpd/pkg/INSTALL << 'END-of-ndtpd/pkg/INSTALL'
X#!/bin/sh
X#
X# $NetBSD$
X#
X
Xcase $2 in
XPRE-INSTALL)
X ;;
XPOST-INSTALL)
X /bin/cat << EOF
X===========================================================================
XYou need to add the following to /etc/services:
X
X#
X# NDTPD services
X#
Xisectd 2010/tcp # NDTPD
X
XThe port number you specify should not conflict with any others that are
Xreserved.
X
XYou can start the isect daemon by editing /etc/rc.local to run
X${PKG_PREFIX}/etc/rc.d/ndtpd.
X===========================================================================
XEOF
X ;;
X*)
X echo "Unexpected argument: $2"
X exit 1
X ;;
Xesac
Xexit 0
END-of-ndtpd/pkg/INSTALL
echo x - ndtpd/pkg/MESSAGE
sed 's/^X//' >ndtpd/pkg/MESSAGE << 'END-of-ndtpd/pkg/MESSAGE'
X========================================================================
XYou'll need manual configurations to actually activate `ndtpd'.
X
X==== IF YOU WANT TO SETUP PRIVATE SYSLOG, edit /etc/syslog.conf.
X
X1st) Copy a sample configuration file `ndtpd.conf.sample' to `ndtpd.conf'
X in `${PREFIX}/etc' directory, and edit it.
X Consult the "Configuration File" section of info file.
X
X2nd) Copy a sample startup script `ndtpd.sh.sample' to `ndtpd.sh'
X in `${PREFIX}/etc/rc.d' directory, and edit it.
X
X a) To start `ndtpd' as a standalone daemon, set the variable
X `standalone' in the script to `YES', and exec it.
X
X b) Otherwise, to start as a child process of `inetd',
X set `standalone' to `NO', and edit the file `/etc/inetd.conf'.
X Consult the "Run as a Child of inetd" section of info file.
X========================================================================
END-of-ndtpd/pkg/MESSAGE
echo x - ndtpd/pkg/PLIST
sed 's/^X//' >ndtpd/pkg/PLIST << 'END-of-ndtpd/pkg/PLIST'
X@comment $NetBSD$
Xetc/ndtpd.conf.sample
Xetc/rc.d/ndtpd.sh
X@unexec install-info --delete %D/info/ndtpd-ja.info %D/info/dir
X@unexec install-info --delete %D/info/ndtpd.info %D/info/dir
Xinfo/ndtpd-ja.info
Xinfo/ndtpd.info
X@exec install-info %D/info/ndtpd-ja.info %D/info/dir
X@exec install-info %D/info/ndtpd.info %D/info/dir
Xlibexec/ndtpstat
Xsbin/ndtpcheck
Xsbin/ndtpcontrol
Xsbin/ndtpd
Xsbin/ndtpdaily
Xsbin/ndtpupgrade
END-of-ndtpd/pkg/PLIST
echo x - ndtpd/plist
sed 's/^X//' >ndtpd/plist << 'END-of-ndtpd/plist'
Xetc/ndtpd.conf.sample
Xinfo/dir
Xinfo/ndtpd-ja.info
Xinfo/ndtpd-ja.info-1
Xinfo/ndtpd-ja.info-2
Xinfo/ndtpd.info
Xlibexec/ndtpstat
Xsbin/ndtpcheck
Xsbin/ndtpcontrol
Xsbin/ndtpd
Xsbin/ndtpdaily
Xsbin/ndtpupgrade
END-of-ndtpd/plist
exit
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: