1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/japanese/dserver/scripts/configure
Masafumi Max NAKANE 520b21cc72 New port, dserver:
A CD-ROM dictionary lookup facility (server and clients).

Submitted by:	Yoshio MITA <mita@jp.freebsd.org>
(Closing PR #2311.)
1997-01-29 03:56:05 +00:00

35 lines
1.1 KiB
Bash

#!/bin/sh
# dserver configuration shell script
# usage: /bin/sh configure
if [ X"${BATCH}" != X"yes" ] ; then
/usr/bin/dialog --title "dserver port configuration" --radiolist \
"How do you want to run dserver, standalone or run by inetd?" -1 -1 2 \
"standalone" "standalone" ON \
"inetd" "inetd" OFF 2>/tmp/dserver.ports.selection
if [ X`cat /tmp/dserver.ports.selection` = "Xinetd" ]
then
echo 'Inetd mode is selected'
cp ${FILESDIR}/setup.sh.inetd ${WRKSRC}/setup.sh.template
cp ${FILESDIR}/deinstall.sh.inetd ${WRKSRC}/deinstall.sh.template
cp ${WRKSRC}/server2.2-pl2/Makefile ${WRKSRC}/server2.2-pl2/Makefile.tmp
cat ${WRKSRC}/server2.2-pl2/Makefile.tmp | sed -e "s/-DSTANDALONE//g" \
> ${WRKSRC}/server2.2-pl2/Makefile
else
echo 'Standalone mode is selected'
cp ${FILESDIR}/setup.sh.standalone ${WRKSRC}/setup.sh.template
cp ${FILESDIR}/deinstall.sh.standalone ${WRKSRC}/deinstall.sh.template
fi
rm -f /tmp/dserver.ports.selection
else
echo 'Standalone mode (default) is selected'
cp ${FILESDIR}/setup.sh.standalone ${WRKSRC}/setup.sh.template
cp ${FILESDIR}/deinstall.sh.standalone ${WRKSRC}/deinstall.sh.template
fi