server for accessing CD-ROM books with NDTP.
PR: 4734 Submitted by: Motoyuki Kasahara <m-kasahr@sra.co.jp>
This commit is contained in:
parent
9f6e7bc267
commit
2fcf6f3e00
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=10621
77
japanese/ebnetd/Makefile
Normal file
77
japanese/ebnetd/Makefile
Normal file
@ -0,0 +1,77 @@
|
||||
# New ports collection makefile for: ndtpd
|
||||
# Version required: 1.0.6
|
||||
# Date created: 2 Oct 1997
|
||||
# Whom: Motoyuki Kasahara <m-kasahr@sra.co.jp>
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= ndtpd-1.0.6
|
||||
PKGNAME= ja-ndtpd-1.0.6
|
||||
CATEGORIES= japanese
|
||||
MASTER_SITES= ftp://ftp.sra.co.jp/pub/net/ndtp/ndtpd/appendix/ \
|
||||
ftp://ftp.sra.co.jp/pub/net/ndtp/ndtpd/appendix/old/ \
|
||||
ftp://ftp.sra.co.jp/pub/net/ndtp/ndtpd/ \
|
||||
ftp://ftp.sra.co.jp/pub/net/ndtp/ndtpd/old/
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
||||
${APPENDIXFILES}
|
||||
|
||||
MAINTAINER= m-kasahr@sra.co.jp
|
||||
|
||||
APPENDIXFILES= chujiten-2.3.tar.gz \
|
||||
chujiten2-2.0.tar.gz \
|
||||
chujiten6-2.3.tar.gz \
|
||||
heritage-2.2.tar.gz \
|
||||
jitenban-2.4.tar.gz \
|
||||
jitenban97-2.1.tar.gz \
|
||||
kanjigen-2.0.tar.gz \
|
||||
kojien-2.3.tar.gz \
|
||||
kojien2-2.0.tar.gz \
|
||||
kojien4-2.2.tar.gz \
|
||||
readers-2.2.tar.gz \
|
||||
readers2-2.0.tar.gz
|
||||
|
||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --localstatedir=/var --enable-ja-info
|
||||
CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
|
||||
INSTALL_DATA="${INSTALL_DATA}"
|
||||
|
||||
APPENDIXDIR= share/ndtpd/appendix
|
||||
|
||||
post-install:
|
||||
for i in ${APPENDIXFILES}; do \
|
||||
dir="`echo $$i | ${SED} 's/\.tar\.gz$$//'`"; \
|
||||
${RM} -rf ${PREFIX}/${APPENDIXDIR}/$$dir; \
|
||||
(cd ${PREFIX}/${APPENDIXDIR} && ${EXTRACT_CMD} \
|
||||
${EXTRACT_BEFORE_ARGS} ${DISTDIR}/$$i ${EXTRACT_AFTER_ARGS}); \
|
||||
done
|
||||
if [ ! -f ${PREFIX}/info/dir ]; then \
|
||||
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
|
||||
fi
|
||||
.for info in ndtpd.info
|
||||
install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
|
||||
.endfor
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} \
|
||||
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
||||
|
||||
plist: extract
|
||||
${RM} -f ${PKGDIR}/PLIST
|
||||
${CAT} ${PKGDIR}/PLIST.top > ${PKGDIR}/PLIST
|
||||
for i in ${APPENDIXFILES}; do \
|
||||
(cd ${WRKDIR}; \
|
||||
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/$$i \
|
||||
${EXTRACT_AFTER_ARGS}; \
|
||||
find "`echo $$i | ${SED} 's/\.tar\.gz$$//'`" -type f -print \
|
||||
| ${SED} 's;^;${APPENDIXDIR}/;' >> ${PKGDIR}/PLIST); \
|
||||
done
|
||||
for i in ${APPENDIXFILES}; do \
|
||||
(cd ${WRKDIR}; \
|
||||
find "`echo $$i | ${SED} 's/\.tar\.gz$$//'`" -type d \
|
||||
-depth -print | ${SED} 's;^;@dirrm ${APPENDIXDIR}/;' \
|
||||
>> ${PKGDIR}/PLIST); \
|
||||
done
|
||||
${CAT} ${PKGDIR}/PLIST.bot >> ${PKGDIR}/PLIST
|
||||
|
||||
.include <bsd.port.mk>
|
13
japanese/ebnetd/distinfo
Normal file
13
japanese/ebnetd/distinfo
Normal file
@ -0,0 +1,13 @@
|
||||
MD5 (ndtpd-1.0.6.tar.gz) = fd543f48921ebde6b06b40cde6eff422
|
||||
MD5 (chujiten-2.3.tar.gz) = 750c15b8e94faca7cb4b15b98d1fbb19
|
||||
MD5 (chujiten2-2.0.tar.gz) = 62a86bdb51a38b554bc6c3bb40da443a
|
||||
MD5 (chujiten6-2.3.tar.gz) = 76718d9ad23c75f0eb68f54222c6066d
|
||||
MD5 (heritage-2.2.tar.gz) = 71ef3b257474c83a0af385001eee3fbf
|
||||
MD5 (jitenban-2.4.tar.gz) = 884c9a57aef50dc55c458d5b17c04d30
|
||||
MD5 (jitenban97-2.1.tar.gz) = 3313235d76dbc57a2df29afd998a2894
|
||||
MD5 (kanjigen-2.0.tar.gz) = f023ec2e0772f3d2cf10972130971815
|
||||
MD5 (kojien-2.3.tar.gz) = baf54b5fd33c1fc3ce53627fc1e80d98
|
||||
MD5 (kojien2-2.0.tar.gz) = 00ec924d7d52d145588bed26aa24a325
|
||||
MD5 (kojien4-2.2.tar.gz) = b5cd05b34d24ec6c25c177550b66c787
|
||||
MD5 (readers-2.2.tar.gz) = 73e27f0f9727a9e225117f4611257fb3
|
||||
MD5 (readers2-2.0.tar.gz) = 5125b2925c76291ee2c0c616a09217c4
|
1
japanese/ebnetd/pkg-comment
Normal file
1
japanese/ebnetd/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
server for accessing CD-ROM books with NDTP.
|
7
japanese/ebnetd/pkg-descr
Normal file
7
japanese/ebnetd/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
NDTPD is a server for accessing CD-ROM books with NDTP (Network
|
||||
Dictionary Transfer Protocol) on TCP. You can replace dserver with
|
||||
NDTPD. NDTPD can run on UNIX derived systems. It supports to access
|
||||
CD-ROM books of EB, EBG, EBXA and EPWING formats. CD-ROM books of
|
||||
those formats are popular in Japan. Since CD-ROM books themseves are
|
||||
stands on the ISO 9660 format, you can mount the discs by the same way
|
||||
as other ISO 9660 discs.
|
105
japanese/ebnetd/pkg-install
Normal file
105
japanese/ebnetd/pkg-install
Normal file
@ -0,0 +1,105 @@
|
||||
#! /bin/sh
|
||||
|
||||
[ "$2" = "POST-INSTALL" ] || exit 0
|
||||
|
||||
#
|
||||
# Make directories under /var.
|
||||
#
|
||||
[ ! -d /var/ndtpd ] && mkdir /var/ndtpd
|
||||
[ ! -d /var/ndtpd/log ] && mkdir /var/ndtpd/log
|
||||
|
||||
#
|
||||
# Add `ndtp' to /etc/services.
|
||||
#
|
||||
sed -e 's/#.*//' -e 's/^/ /' -e 's/$/ /g' -e 's/ / /g' /etc/services \
|
||||
| grep ' ndtp ' > /dev/null 2>&1
|
||||
|
||||
if [ $? -ne 0 ] ; then
|
||||
YESNO=YET
|
||||
while [ "${YESNO}" = YET ] ; do
|
||||
echo -n "May I register the \`ndtp' service name to /etc/services? ([y]/n) "
|
||||
read LINE
|
||||
case "X${LINE}" in
|
||||
Xy|XY|X)
|
||||
YESNO=YES
|
||||
;;
|
||||
Xn|XN)
|
||||
YESNO=NO
|
||||
;;
|
||||
*)
|
||||
echo "Please answer \`y' or \`n'."
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ "${YESNO}" = YES ] ; then
|
||||
if grep '[ ]2010/tcp' /etc/services > /dev/null 2>&1 ; then
|
||||
cp /etc/services /etc/services.bak
|
||||
sed -e 's/\([ ]2010\/tcp\)/\1 ndtp/' /etc/services.bak \
|
||||
> /etc/services
|
||||
else
|
||||
echo 'ndtp 2010/tcp' >> /etc/services
|
||||
fi
|
||||
echo "The original file is saved as /etc/services.bak."
|
||||
echo
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
# Copy a rc-file to `${PKG_PREFIX}/etc/rc.d/ndtpd.sh'.
|
||||
#
|
||||
if [ -f ${PKG_PREFIX}/etc/rc.d/ndtpd.sh ] ; then
|
||||
YESNO=YET
|
||||
while [ "${YESNO}" = YET ] ; do
|
||||
echo -n "${PKG_PREFIX}/rc.d/ndtpd.sh already exists. May I overwrite it? (y/[n]) "
|
||||
read LINE
|
||||
case "X${LINE}" in
|
||||
Xy|XY)
|
||||
YESNO=YES
|
||||
;;
|
||||
Xn|XN|X)
|
||||
YESNO=NO
|
||||
;;
|
||||
*)
|
||||
echo "Please answer \`y' or \`n'."
|
||||
;;
|
||||
esac
|
||||
done
|
||||
else
|
||||
YESNO=YES
|
||||
fi
|
||||
|
||||
if [ "${YESNO}" = YES ] ; then
|
||||
sed "s;@prefix@;${PKG_PREFIX};" > ${PKG_PREFIX}/etc/rc.d/ndtpd.sh \
|
||||
<< '__END__'
|
||||
#! /bin/sh
|
||||
#
|
||||
# NDTPD: rc-file for FreeBSD.
|
||||
#
|
||||
|
||||
### NDTPD options: ###
|
||||
ndtpd_enable="NO" # Run ndtpd (or NO).
|
||||
ndtpd_flags="" # Flags to ndtpd (if enabled).
|
||||
### End of NDTPD options: ###
|
||||
|
||||
ndtpd="@prefix@/sbin/ndtpd"
|
||||
if [ "X${ndtpd_enable}" = X"YES" -a -f ${ndtpd} ]; then
|
||||
echo -n " ndtpd"
|
||||
${ndtpd} ${ndtpd_flags}
|
||||
fi
|
||||
__END__
|
||||
|
||||
chmod 755 ${PKG_PREFIX}/etc/rc.d/ndtpd.sh
|
||||
echo
|
||||
echo "I put a rc-file to ${PKG_PREFIX}/etc/rc.d/ndtpd.sh, but ndtpd doesn't"
|
||||
echo "start through the script. If you want to start ndtpd as standalone"
|
||||
echo "daemon through the script, please turn the \`ndtpd_enable' variable"
|
||||
echo "in the script to \`YES', and set \`ndtpd_flags' to an appropriate"
|
||||
echo "value if required."
|
||||
echo ""
|
||||
echo "If you want to start ndtpd through inetd, the script is not"
|
||||
echo "required."
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
162
japanese/ebnetd/pkg-plist
Normal file
162
japanese/ebnetd/pkg-plist
Normal file
@ -0,0 +1,162 @@
|
||||
bin/ebfont
|
||||
bin/ebinfo
|
||||
bin/ebappendix
|
||||
etc/ndtpd.sample
|
||||
include/eb/appendix.h
|
||||
include/eb/defs.h
|
||||
include/eb/eb.h
|
||||
include/eb/error.h
|
||||
include/eb/font.h
|
||||
include/eb/io.h
|
||||
include/eb/language.h
|
||||
include/eb/text.h
|
||||
include/eb/types.h
|
||||
lib/libeb.a
|
||||
libexec/ndtpstat
|
||||
sbin/ndtpd
|
||||
sbin/ndtpcheck
|
||||
sbin/ndtpcontrol
|
||||
sbin/ndtpdaily
|
||||
@unexec install-info --delete %D/info/ndtpd.info %D/info/dir
|
||||
@unexec install-info --delete %D/info/ndtpd-ja.info %D/info/dir
|
||||
info/ndtpd.info
|
||||
info/ndtpd-ja.info
|
||||
@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
|
||||
@exec install-info %D/info/ndtpd.info %D/info/dir
|
||||
@exec install-info %D/info/ndtpd-ja.info %D/info/dir
|
||||
share/ndtpd/appendix/chujiten-2.3/catalog.app
|
||||
share/ndtpd/appendix/chujiten-2.3/waei.app
|
||||
share/ndtpd/appendix/chujiten-2.3/eiwa.app
|
||||
share/ndtpd/appendix/chujiten-2.3/catalog
|
||||
share/ndtpd/appendix/chujiten-2.3/eiwa/appendix
|
||||
share/ndtpd/appendix/chujiten-2.3/waei/appendix
|
||||
share/ndtpd/appendix/chujiten2-2.0/chujiten.app
|
||||
share/ndtpd/appendix/chujiten2-2.0/catalogs.app
|
||||
share/ndtpd/appendix/chujiten2-2.0/catalogs
|
||||
share/ndtpd/appendix/chujiten2-2.0/chujiten/data/furoku
|
||||
share/ndtpd/appendix/chujiten6-2.3/catalog.app
|
||||
share/ndtpd/appendix/chujiten6-2.3/catalog
|
||||
share/ndtpd/appendix/chujiten6-2.3/chujiten.app
|
||||
share/ndtpd/appendix/chujiten6-2.3/chujiten/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/catalog.app
|
||||
share/ndtpd/appendix/heritage-2.2/roget.app
|
||||
share/ndtpd/appendix/heritage-2.2/dict.app
|
||||
share/ndtpd/appendix/heritage-2.2/abbrev.app
|
||||
share/ndtpd/appendix/heritage-2.2/bioentry.app
|
||||
share/ndtpd/appendix/heritage-2.2/geoentry.app
|
||||
share/ndtpd/appendix/heritage-2.2/root.app
|
||||
share/ndtpd/appendix/heritage-2.2/info.app
|
||||
share/ndtpd/appendix/heritage-2.2/catalog
|
||||
share/ndtpd/appendix/heritage-2.2/roget/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/dict/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/abbrev/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/bioentry/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/geoentry/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/colleges.app
|
||||
share/ndtpd/appendix/heritage-2.2/colleges/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/root/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/info/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/font
|
||||
share/ndtpd/appendix/jitenban-2.4/chujiten.app
|
||||
share/ndtpd/appendix/jitenban-2.4/iwakoku.app
|
||||
share/ndtpd/appendix/jitenban-2.4/catalogs
|
||||
share/ndtpd/appendix/jitenban-2.4/chiezo.app
|
||||
share/ndtpd/appendix/jitenban-2.4/mypaedia/data/furoku
|
||||
share/ndtpd/appendix/jitenban-2.4/catalogs.app
|
||||
share/ndtpd/appendix/jitenban-2.4/iwakoku/data/furoku
|
||||
share/ndtpd/appendix/jitenban-2.4/chujiten/data/furoku
|
||||
share/ndtpd/appendix/jitenban-2.4/chiezo/data/furoku
|
||||
share/ndtpd/appendix/jitenban-2.4/mypaedia.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/catalogs.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/chujiten.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/iwakoku.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/chiezo.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/mypaedia.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/catalogs
|
||||
share/ndtpd/appendix/jitenban97-2.1/iwakoku/data/furoku
|
||||
share/ndtpd/appendix/jitenban97-2.1/chujiten/data/furoku
|
||||
share/ndtpd/appendix/jitenban97-2.1/chiezo/data/furoku
|
||||
share/ndtpd/appendix/jitenban97-2.1/mypaedia/data/furoku
|
||||
share/ndtpd/appendix/kanjigen-2.0/catalog
|
||||
share/ndtpd/appendix/kanjigen-2.0/catalog.app
|
||||
share/ndtpd/appendix/kanjigen-2.0/gdd01.app
|
||||
share/ndtpd/appendix/kanjigen-2.0/gdd01/appendix
|
||||
share/ndtpd/appendix/kojien-2.3/catalog.app
|
||||
share/ndtpd/appendix/kojien-2.3/kojien.app
|
||||
share/ndtpd/appendix/kojien-2.3/catalog
|
||||
share/ndtpd/appendix/kojien-2.3/kojien/appendix
|
||||
share/ndtpd/appendix/kojien2-2.0/koujien.app
|
||||
share/ndtpd/appendix/kojien2-2.0/furoku.app
|
||||
share/ndtpd/appendix/kojien2-2.0/catalogs.app
|
||||
share/ndtpd/appendix/kojien2-2.0/catalogs
|
||||
share/ndtpd/appendix/kojien2-2.0/koujien/data/furoku
|
||||
share/ndtpd/appendix/kojien2-2.0/furoku/data/furoku
|
||||
share/ndtpd/appendix/kojien4-2.2/catalog.app
|
||||
share/ndtpd/appendix/kojien4-2.2/koujien/appendix
|
||||
share/ndtpd/appendix/kojien4-2.2/furoku.app
|
||||
share/ndtpd/appendix/kojien4-2.2/catalog
|
||||
share/ndtpd/appendix/kojien4-2.2/furoku/appendix
|
||||
share/ndtpd/appendix/kojien4-2.2/koujien.app
|
||||
share/ndtpd/appendix/readers-2.2/catalog.app
|
||||
share/ndtpd/appendix/readers-2.2/catalog
|
||||
share/ndtpd/appendix/readers-2.2/readers.app
|
||||
share/ndtpd/appendix/readers-2.2/readers/appendix
|
||||
share/ndtpd/appendix/readers2-2.0/readers.app
|
||||
share/ndtpd/appendix/readers2-2.0/catalogs.app
|
||||
share/ndtpd/appendix/readers2-2.0/catalogs
|
||||
share/ndtpd/appendix/readers2-2.0/readers/data/furoku
|
||||
@dirrm share/ndtpd/appendix/chujiten-2.3/eiwa
|
||||
@dirrm share/ndtpd/appendix/chujiten-2.3/waei
|
||||
@dirrm share/ndtpd/appendix/chujiten-2.3
|
||||
@dirrm share/ndtpd/appendix/chujiten2-2.0/chujiten/data
|
||||
@dirrm share/ndtpd/appendix/chujiten2-2.0/chujiten
|
||||
@dirrm share/ndtpd/appendix/chujiten2-2.0
|
||||
@dirrm share/ndtpd/appendix/chujiten6-2.3/chujiten
|
||||
@dirrm share/ndtpd/appendix/chujiten6-2.3
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/roget
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/dict
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/abbrev
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/bioentry
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/geoentry
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/colleges
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/root
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/info
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/mypaedia/data
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/mypaedia
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/iwakoku/data
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/iwakoku
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/chujiten/data
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/chujiten
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/chiezo/data
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/chiezo
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/iwakoku/data
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/iwakoku
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/chujiten/data
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/chujiten
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/chiezo/data
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/chiezo
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/mypaedia/data
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/mypaedia
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1
|
||||
@dirrm share/ndtpd/appendix/kanjigen-2.0/gdd01
|
||||
@dirrm share/ndtpd/appendix/kanjigen-2.0
|
||||
@dirrm share/ndtpd/appendix/kojien-2.3/kojien
|
||||
@dirrm share/ndtpd/appendix/kojien-2.3
|
||||
@dirrm share/ndtpd/appendix/kojien2-2.0/koujien/data
|
||||
@dirrm share/ndtpd/appendix/kojien2-2.0/koujien
|
||||
@dirrm share/ndtpd/appendix/kojien2-2.0/furoku/data
|
||||
@dirrm share/ndtpd/appendix/kojien2-2.0/furoku
|
||||
@dirrm share/ndtpd/appendix/kojien2-2.0
|
||||
@dirrm share/ndtpd/appendix/kojien4-2.2/koujien
|
||||
@dirrm share/ndtpd/appendix/kojien4-2.2/furoku
|
||||
@dirrm share/ndtpd/appendix/kojien4-2.2
|
||||
@dirrm share/ndtpd/appendix/readers-2.2/readers
|
||||
@dirrm share/ndtpd/appendix/readers-2.2
|
||||
@dirrm share/ndtpd/appendix/readers2-2.0/readers/data
|
||||
@dirrm share/ndtpd/appendix/readers2-2.0/readers
|
||||
@dirrm share/ndtpd/appendix/readers2-2.0
|
||||
@dirrm include/eb
|
||||
@dirrm share/ndtpd/appendix
|
||||
@dirrm share/ndtpd
|
77
japanese/ndtpd/Makefile
Normal file
77
japanese/ndtpd/Makefile
Normal file
@ -0,0 +1,77 @@
|
||||
# New ports collection makefile for: ndtpd
|
||||
# Version required: 1.0.6
|
||||
# Date created: 2 Oct 1997
|
||||
# Whom: Motoyuki Kasahara <m-kasahr@sra.co.jp>
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= ndtpd-1.0.6
|
||||
PKGNAME= ja-ndtpd-1.0.6
|
||||
CATEGORIES= japanese
|
||||
MASTER_SITES= ftp://ftp.sra.co.jp/pub/net/ndtp/ndtpd/appendix/ \
|
||||
ftp://ftp.sra.co.jp/pub/net/ndtp/ndtpd/appendix/old/ \
|
||||
ftp://ftp.sra.co.jp/pub/net/ndtp/ndtpd/ \
|
||||
ftp://ftp.sra.co.jp/pub/net/ndtp/ndtpd/old/
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
||||
${APPENDIXFILES}
|
||||
|
||||
MAINTAINER= m-kasahr@sra.co.jp
|
||||
|
||||
APPENDIXFILES= chujiten-2.3.tar.gz \
|
||||
chujiten2-2.0.tar.gz \
|
||||
chujiten6-2.3.tar.gz \
|
||||
heritage-2.2.tar.gz \
|
||||
jitenban-2.4.tar.gz \
|
||||
jitenban97-2.1.tar.gz \
|
||||
kanjigen-2.0.tar.gz \
|
||||
kojien-2.3.tar.gz \
|
||||
kojien2-2.0.tar.gz \
|
||||
kojien4-2.2.tar.gz \
|
||||
readers-2.2.tar.gz \
|
||||
readers2-2.0.tar.gz
|
||||
|
||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --localstatedir=/var --enable-ja-info
|
||||
CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
|
||||
INSTALL_DATA="${INSTALL_DATA}"
|
||||
|
||||
APPENDIXDIR= share/ndtpd/appendix
|
||||
|
||||
post-install:
|
||||
for i in ${APPENDIXFILES}; do \
|
||||
dir="`echo $$i | ${SED} 's/\.tar\.gz$$//'`"; \
|
||||
${RM} -rf ${PREFIX}/${APPENDIXDIR}/$$dir; \
|
||||
(cd ${PREFIX}/${APPENDIXDIR} && ${EXTRACT_CMD} \
|
||||
${EXTRACT_BEFORE_ARGS} ${DISTDIR}/$$i ${EXTRACT_AFTER_ARGS}); \
|
||||
done
|
||||
if [ ! -f ${PREFIX}/info/dir ]; then \
|
||||
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
|
||||
fi
|
||||
.for info in ndtpd.info
|
||||
install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
|
||||
.endfor
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} \
|
||||
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
||||
|
||||
plist: extract
|
||||
${RM} -f ${PKGDIR}/PLIST
|
||||
${CAT} ${PKGDIR}/PLIST.top > ${PKGDIR}/PLIST
|
||||
for i in ${APPENDIXFILES}; do \
|
||||
(cd ${WRKDIR}; \
|
||||
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/$$i \
|
||||
${EXTRACT_AFTER_ARGS}; \
|
||||
find "`echo $$i | ${SED} 's/\.tar\.gz$$//'`" -type f -print \
|
||||
| ${SED} 's;^;${APPENDIXDIR}/;' >> ${PKGDIR}/PLIST); \
|
||||
done
|
||||
for i in ${APPENDIXFILES}; do \
|
||||
(cd ${WRKDIR}; \
|
||||
find "`echo $$i | ${SED} 's/\.tar\.gz$$//'`" -type d \
|
||||
-depth -print | ${SED} 's;^;@dirrm ${APPENDIXDIR}/;' \
|
||||
>> ${PKGDIR}/PLIST); \
|
||||
done
|
||||
${CAT} ${PKGDIR}/PLIST.bot >> ${PKGDIR}/PLIST
|
||||
|
||||
.include <bsd.port.mk>
|
13
japanese/ndtpd/distinfo
Normal file
13
japanese/ndtpd/distinfo
Normal file
@ -0,0 +1,13 @@
|
||||
MD5 (ndtpd-1.0.6.tar.gz) = fd543f48921ebde6b06b40cde6eff422
|
||||
MD5 (chujiten-2.3.tar.gz) = 750c15b8e94faca7cb4b15b98d1fbb19
|
||||
MD5 (chujiten2-2.0.tar.gz) = 62a86bdb51a38b554bc6c3bb40da443a
|
||||
MD5 (chujiten6-2.3.tar.gz) = 76718d9ad23c75f0eb68f54222c6066d
|
||||
MD5 (heritage-2.2.tar.gz) = 71ef3b257474c83a0af385001eee3fbf
|
||||
MD5 (jitenban-2.4.tar.gz) = 884c9a57aef50dc55c458d5b17c04d30
|
||||
MD5 (jitenban97-2.1.tar.gz) = 3313235d76dbc57a2df29afd998a2894
|
||||
MD5 (kanjigen-2.0.tar.gz) = f023ec2e0772f3d2cf10972130971815
|
||||
MD5 (kojien-2.3.tar.gz) = baf54b5fd33c1fc3ce53627fc1e80d98
|
||||
MD5 (kojien2-2.0.tar.gz) = 00ec924d7d52d145588bed26aa24a325
|
||||
MD5 (kojien4-2.2.tar.gz) = b5cd05b34d24ec6c25c177550b66c787
|
||||
MD5 (readers-2.2.tar.gz) = 73e27f0f9727a9e225117f4611257fb3
|
||||
MD5 (readers2-2.0.tar.gz) = 5125b2925c76291ee2c0c616a09217c4
|
1
japanese/ndtpd/pkg-comment
Normal file
1
japanese/ndtpd/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
server for accessing CD-ROM books with NDTP.
|
7
japanese/ndtpd/pkg-descr
Normal file
7
japanese/ndtpd/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
NDTPD is a server for accessing CD-ROM books with NDTP (Network
|
||||
Dictionary Transfer Protocol) on TCP. You can replace dserver with
|
||||
NDTPD. NDTPD can run on UNIX derived systems. It supports to access
|
||||
CD-ROM books of EB, EBG, EBXA and EPWING formats. CD-ROM books of
|
||||
those formats are popular in Japan. Since CD-ROM books themseves are
|
||||
stands on the ISO 9660 format, you can mount the discs by the same way
|
||||
as other ISO 9660 discs.
|
105
japanese/ndtpd/pkg-install
Normal file
105
japanese/ndtpd/pkg-install
Normal file
@ -0,0 +1,105 @@
|
||||
#! /bin/sh
|
||||
|
||||
[ "$2" = "POST-INSTALL" ] || exit 0
|
||||
|
||||
#
|
||||
# Make directories under /var.
|
||||
#
|
||||
[ ! -d /var/ndtpd ] && mkdir /var/ndtpd
|
||||
[ ! -d /var/ndtpd/log ] && mkdir /var/ndtpd/log
|
||||
|
||||
#
|
||||
# Add `ndtp' to /etc/services.
|
||||
#
|
||||
sed -e 's/#.*//' -e 's/^/ /' -e 's/$/ /g' -e 's/ / /g' /etc/services \
|
||||
| grep ' ndtp ' > /dev/null 2>&1
|
||||
|
||||
if [ $? -ne 0 ] ; then
|
||||
YESNO=YET
|
||||
while [ "${YESNO}" = YET ] ; do
|
||||
echo -n "May I register the \`ndtp' service name to /etc/services? ([y]/n) "
|
||||
read LINE
|
||||
case "X${LINE}" in
|
||||
Xy|XY|X)
|
||||
YESNO=YES
|
||||
;;
|
||||
Xn|XN)
|
||||
YESNO=NO
|
||||
;;
|
||||
*)
|
||||
echo "Please answer \`y' or \`n'."
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ "${YESNO}" = YES ] ; then
|
||||
if grep '[ ]2010/tcp' /etc/services > /dev/null 2>&1 ; then
|
||||
cp /etc/services /etc/services.bak
|
||||
sed -e 's/\([ ]2010\/tcp\)/\1 ndtp/' /etc/services.bak \
|
||||
> /etc/services
|
||||
else
|
||||
echo 'ndtp 2010/tcp' >> /etc/services
|
||||
fi
|
||||
echo "The original file is saved as /etc/services.bak."
|
||||
echo
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
# Copy a rc-file to `${PKG_PREFIX}/etc/rc.d/ndtpd.sh'.
|
||||
#
|
||||
if [ -f ${PKG_PREFIX}/etc/rc.d/ndtpd.sh ] ; then
|
||||
YESNO=YET
|
||||
while [ "${YESNO}" = YET ] ; do
|
||||
echo -n "${PKG_PREFIX}/rc.d/ndtpd.sh already exists. May I overwrite it? (y/[n]) "
|
||||
read LINE
|
||||
case "X${LINE}" in
|
||||
Xy|XY)
|
||||
YESNO=YES
|
||||
;;
|
||||
Xn|XN|X)
|
||||
YESNO=NO
|
||||
;;
|
||||
*)
|
||||
echo "Please answer \`y' or \`n'."
|
||||
;;
|
||||
esac
|
||||
done
|
||||
else
|
||||
YESNO=YES
|
||||
fi
|
||||
|
||||
if [ "${YESNO}" = YES ] ; then
|
||||
sed "s;@prefix@;${PKG_PREFIX};" > ${PKG_PREFIX}/etc/rc.d/ndtpd.sh \
|
||||
<< '__END__'
|
||||
#! /bin/sh
|
||||
#
|
||||
# NDTPD: rc-file for FreeBSD.
|
||||
#
|
||||
|
||||
### NDTPD options: ###
|
||||
ndtpd_enable="NO" # Run ndtpd (or NO).
|
||||
ndtpd_flags="" # Flags to ndtpd (if enabled).
|
||||
### End of NDTPD options: ###
|
||||
|
||||
ndtpd="@prefix@/sbin/ndtpd"
|
||||
if [ "X${ndtpd_enable}" = X"YES" -a -f ${ndtpd} ]; then
|
||||
echo -n " ndtpd"
|
||||
${ndtpd} ${ndtpd_flags}
|
||||
fi
|
||||
__END__
|
||||
|
||||
chmod 755 ${PKG_PREFIX}/etc/rc.d/ndtpd.sh
|
||||
echo
|
||||
echo "I put a rc-file to ${PKG_PREFIX}/etc/rc.d/ndtpd.sh, but ndtpd doesn't"
|
||||
echo "start through the script. If you want to start ndtpd as standalone"
|
||||
echo "daemon through the script, please turn the \`ndtpd_enable' variable"
|
||||
echo "in the script to \`YES', and set \`ndtpd_flags' to an appropriate"
|
||||
echo "value if required."
|
||||
echo ""
|
||||
echo "If you want to start ndtpd through inetd, the script is not"
|
||||
echo "required."
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
162
japanese/ndtpd/pkg-plist
Normal file
162
japanese/ndtpd/pkg-plist
Normal file
@ -0,0 +1,162 @@
|
||||
bin/ebfont
|
||||
bin/ebinfo
|
||||
bin/ebappendix
|
||||
etc/ndtpd.sample
|
||||
include/eb/appendix.h
|
||||
include/eb/defs.h
|
||||
include/eb/eb.h
|
||||
include/eb/error.h
|
||||
include/eb/font.h
|
||||
include/eb/io.h
|
||||
include/eb/language.h
|
||||
include/eb/text.h
|
||||
include/eb/types.h
|
||||
lib/libeb.a
|
||||
libexec/ndtpstat
|
||||
sbin/ndtpd
|
||||
sbin/ndtpcheck
|
||||
sbin/ndtpcontrol
|
||||
sbin/ndtpdaily
|
||||
@unexec install-info --delete %D/info/ndtpd.info %D/info/dir
|
||||
@unexec install-info --delete %D/info/ndtpd-ja.info %D/info/dir
|
||||
info/ndtpd.info
|
||||
info/ndtpd-ja.info
|
||||
@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
|
||||
@exec install-info %D/info/ndtpd.info %D/info/dir
|
||||
@exec install-info %D/info/ndtpd-ja.info %D/info/dir
|
||||
share/ndtpd/appendix/chujiten-2.3/catalog.app
|
||||
share/ndtpd/appendix/chujiten-2.3/waei.app
|
||||
share/ndtpd/appendix/chujiten-2.3/eiwa.app
|
||||
share/ndtpd/appendix/chujiten-2.3/catalog
|
||||
share/ndtpd/appendix/chujiten-2.3/eiwa/appendix
|
||||
share/ndtpd/appendix/chujiten-2.3/waei/appendix
|
||||
share/ndtpd/appendix/chujiten2-2.0/chujiten.app
|
||||
share/ndtpd/appendix/chujiten2-2.0/catalogs.app
|
||||
share/ndtpd/appendix/chujiten2-2.0/catalogs
|
||||
share/ndtpd/appendix/chujiten2-2.0/chujiten/data/furoku
|
||||
share/ndtpd/appendix/chujiten6-2.3/catalog.app
|
||||
share/ndtpd/appendix/chujiten6-2.3/catalog
|
||||
share/ndtpd/appendix/chujiten6-2.3/chujiten.app
|
||||
share/ndtpd/appendix/chujiten6-2.3/chujiten/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/catalog.app
|
||||
share/ndtpd/appendix/heritage-2.2/roget.app
|
||||
share/ndtpd/appendix/heritage-2.2/dict.app
|
||||
share/ndtpd/appendix/heritage-2.2/abbrev.app
|
||||
share/ndtpd/appendix/heritage-2.2/bioentry.app
|
||||
share/ndtpd/appendix/heritage-2.2/geoentry.app
|
||||
share/ndtpd/appendix/heritage-2.2/root.app
|
||||
share/ndtpd/appendix/heritage-2.2/info.app
|
||||
share/ndtpd/appendix/heritage-2.2/catalog
|
||||
share/ndtpd/appendix/heritage-2.2/roget/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/dict/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/abbrev/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/bioentry/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/geoentry/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/colleges.app
|
||||
share/ndtpd/appendix/heritage-2.2/colleges/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/root/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/info/appendix
|
||||
share/ndtpd/appendix/heritage-2.2/font
|
||||
share/ndtpd/appendix/jitenban-2.4/chujiten.app
|
||||
share/ndtpd/appendix/jitenban-2.4/iwakoku.app
|
||||
share/ndtpd/appendix/jitenban-2.4/catalogs
|
||||
share/ndtpd/appendix/jitenban-2.4/chiezo.app
|
||||
share/ndtpd/appendix/jitenban-2.4/mypaedia/data/furoku
|
||||
share/ndtpd/appendix/jitenban-2.4/catalogs.app
|
||||
share/ndtpd/appendix/jitenban-2.4/iwakoku/data/furoku
|
||||
share/ndtpd/appendix/jitenban-2.4/chujiten/data/furoku
|
||||
share/ndtpd/appendix/jitenban-2.4/chiezo/data/furoku
|
||||
share/ndtpd/appendix/jitenban-2.4/mypaedia.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/catalogs.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/chujiten.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/iwakoku.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/chiezo.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/mypaedia.app
|
||||
share/ndtpd/appendix/jitenban97-2.1/catalogs
|
||||
share/ndtpd/appendix/jitenban97-2.1/iwakoku/data/furoku
|
||||
share/ndtpd/appendix/jitenban97-2.1/chujiten/data/furoku
|
||||
share/ndtpd/appendix/jitenban97-2.1/chiezo/data/furoku
|
||||
share/ndtpd/appendix/jitenban97-2.1/mypaedia/data/furoku
|
||||
share/ndtpd/appendix/kanjigen-2.0/catalog
|
||||
share/ndtpd/appendix/kanjigen-2.0/catalog.app
|
||||
share/ndtpd/appendix/kanjigen-2.0/gdd01.app
|
||||
share/ndtpd/appendix/kanjigen-2.0/gdd01/appendix
|
||||
share/ndtpd/appendix/kojien-2.3/catalog.app
|
||||
share/ndtpd/appendix/kojien-2.3/kojien.app
|
||||
share/ndtpd/appendix/kojien-2.3/catalog
|
||||
share/ndtpd/appendix/kojien-2.3/kojien/appendix
|
||||
share/ndtpd/appendix/kojien2-2.0/koujien.app
|
||||
share/ndtpd/appendix/kojien2-2.0/furoku.app
|
||||
share/ndtpd/appendix/kojien2-2.0/catalogs.app
|
||||
share/ndtpd/appendix/kojien2-2.0/catalogs
|
||||
share/ndtpd/appendix/kojien2-2.0/koujien/data/furoku
|
||||
share/ndtpd/appendix/kojien2-2.0/furoku/data/furoku
|
||||
share/ndtpd/appendix/kojien4-2.2/catalog.app
|
||||
share/ndtpd/appendix/kojien4-2.2/koujien/appendix
|
||||
share/ndtpd/appendix/kojien4-2.2/furoku.app
|
||||
share/ndtpd/appendix/kojien4-2.2/catalog
|
||||
share/ndtpd/appendix/kojien4-2.2/furoku/appendix
|
||||
share/ndtpd/appendix/kojien4-2.2/koujien.app
|
||||
share/ndtpd/appendix/readers-2.2/catalog.app
|
||||
share/ndtpd/appendix/readers-2.2/catalog
|
||||
share/ndtpd/appendix/readers-2.2/readers.app
|
||||
share/ndtpd/appendix/readers-2.2/readers/appendix
|
||||
share/ndtpd/appendix/readers2-2.0/readers.app
|
||||
share/ndtpd/appendix/readers2-2.0/catalogs.app
|
||||
share/ndtpd/appendix/readers2-2.0/catalogs
|
||||
share/ndtpd/appendix/readers2-2.0/readers/data/furoku
|
||||
@dirrm share/ndtpd/appendix/chujiten-2.3/eiwa
|
||||
@dirrm share/ndtpd/appendix/chujiten-2.3/waei
|
||||
@dirrm share/ndtpd/appendix/chujiten-2.3
|
||||
@dirrm share/ndtpd/appendix/chujiten2-2.0/chujiten/data
|
||||
@dirrm share/ndtpd/appendix/chujiten2-2.0/chujiten
|
||||
@dirrm share/ndtpd/appendix/chujiten2-2.0
|
||||
@dirrm share/ndtpd/appendix/chujiten6-2.3/chujiten
|
||||
@dirrm share/ndtpd/appendix/chujiten6-2.3
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/roget
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/dict
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/abbrev
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/bioentry
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/geoentry
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/colleges
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/root
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2/info
|
||||
@dirrm share/ndtpd/appendix/heritage-2.2
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/mypaedia/data
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/mypaedia
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/iwakoku/data
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/iwakoku
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/chujiten/data
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/chujiten
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/chiezo/data
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4/chiezo
|
||||
@dirrm share/ndtpd/appendix/jitenban-2.4
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/iwakoku/data
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/iwakoku
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/chujiten/data
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/chujiten
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/chiezo/data
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/chiezo
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/mypaedia/data
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1/mypaedia
|
||||
@dirrm share/ndtpd/appendix/jitenban97-2.1
|
||||
@dirrm share/ndtpd/appendix/kanjigen-2.0/gdd01
|
||||
@dirrm share/ndtpd/appendix/kanjigen-2.0
|
||||
@dirrm share/ndtpd/appendix/kojien-2.3/kojien
|
||||
@dirrm share/ndtpd/appendix/kojien-2.3
|
||||
@dirrm share/ndtpd/appendix/kojien2-2.0/koujien/data
|
||||
@dirrm share/ndtpd/appendix/kojien2-2.0/koujien
|
||||
@dirrm share/ndtpd/appendix/kojien2-2.0/furoku/data
|
||||
@dirrm share/ndtpd/appendix/kojien2-2.0/furoku
|
||||
@dirrm share/ndtpd/appendix/kojien2-2.0
|
||||
@dirrm share/ndtpd/appendix/kojien4-2.2/koujien
|
||||
@dirrm share/ndtpd/appendix/kojien4-2.2/furoku
|
||||
@dirrm share/ndtpd/appendix/kojien4-2.2
|
||||
@dirrm share/ndtpd/appendix/readers-2.2/readers
|
||||
@dirrm share/ndtpd/appendix/readers-2.2
|
||||
@dirrm share/ndtpd/appendix/readers2-2.0/readers/data
|
||||
@dirrm share/ndtpd/appendix/readers2-2.0/readers
|
||||
@dirrm share/ndtpd/appendix/readers2-2.0
|
||||
@dirrm include/eb
|
||||
@dirrm share/ndtpd/appendix
|
||||
@dirrm share/ndtpd
|
Loading…
Reference in New Issue
Block a user