2001-11-03 21:57:45 +00:00
|
|
|
# Makefile for MBSE BBS under Linux
|
2001-11-03 22:45:03 +00:00
|
|
|
# $Id$
|
2001-11-03 21:57:45 +00:00
|
|
|
|
|
|
|
include ../Makefile.global
|
|
|
|
|
2004-01-25 10:57:35 +00:00
|
|
|
OTHER = Makefile README maint midnight weekly monthly installinit.sh setup.mbse \
|
2004-08-09 19:52:41 +00:00
|
|
|
bbsdoor.sh rundoor.sh runvirtual.sh init.Debian init.RedHat init.FreeBSD init.NetBSD \
|
2004-08-11 10:55:56 +00:00
|
|
|
init.Slackware init.SuSE init.Gentoo hatch editor.in bbsjoerc bbsjmacsrc \
|
|
|
|
doors.bat mbsedos
|
2001-11-03 21:57:45 +00:00
|
|
|
|
|
|
|
####################################################################################################
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f core filelist Makefile.bak
|
|
|
|
|
|
|
|
install:
|
|
|
|
@if [ "`id -un`" != "root" ] ; then \
|
|
|
|
echo; echo " Must be root to install!"; echo; exit 3; \
|
|
|
|
fi
|
|
|
|
@if [ ! -x ${ETCDIR}/maint ]; then \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 maint ${ETCDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 maint ${ETCDIR}" ; \
|
2004-01-21 20:32:00 +00:00
|
|
|
else \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 maint ${ETCDIR}/maint.new ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 maint ${ETCDIR}/maint.new" ; \
|
2001-11-03 21:57:45 +00:00
|
|
|
fi
|
|
|
|
@if [ ! -x ${ETCDIR}/midnight ]; then \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 midnight ${ETCDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 midnight ${ETCDIR}" ; \
|
2004-01-21 20:32:00 +00:00
|
|
|
else \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 midnight ${ETCDIR}/midnight.new ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 midnight ${ETCDIR}/midnight.new" ; \
|
2001-11-03 21:57:45 +00:00
|
|
|
fi
|
|
|
|
@if [ ! -x ${ETCDIR}/weekly ]; then \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 weekly ${ETCDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 weekly ${ETCDIR}" ; \
|
2004-01-21 20:32:00 +00:00
|
|
|
else \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 weekly ${ETCDIR}/weekly.new ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 weekly ${ETCDIR}/weekly.new" ; \
|
2001-11-03 21:57:45 +00:00
|
|
|
fi
|
|
|
|
@if [ ! -x ${ETCDIR}/monthly ]; then \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 monthly ${ETCDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 monthly ${ETCDIR}" ; \
|
2004-01-21 20:32:00 +00:00
|
|
|
else \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 monthly ${ETCDIR}/monthly.new ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 monthly ${ETCDIR}/monthly.new" ; \
|
2001-11-03 21:57:45 +00:00
|
|
|
fi
|
2002-02-23 20:28:36 +00:00
|
|
|
@if [ ! -x ${BINDIR}/hatch ]; then \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 hatch ${BINDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 hatch ${BINDIR}" ; \
|
2004-01-21 20:32:00 +00:00
|
|
|
else \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 hatch ${BINDIR}/hatch.new ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 hatch ${BINDIR}/hatch/new" ; \
|
2002-02-23 20:28:36 +00:00
|
|
|
fi
|
2002-07-27 20:09:37 +00:00
|
|
|
@if [ -x ${JOEBIN}/joe ]; then \
|
2002-07-27 20:15:07 +00:00
|
|
|
echo "Installing support for joe editor" ; \
|
2002-07-27 20:09:37 +00:00
|
|
|
rm -f ${JOEBIN}/bbsjoe ; \
|
|
|
|
rm -f ${JOEBIN}/bbsjmacs ; \
|
2004-04-04 14:55:58 +00:00
|
|
|
echo "${LN_S} ${JOEBIN}/joe ${JOEBIN}/bbsjoe" ; \
|
|
|
|
${LN_S} ${JOEBIN}/joe ${JOEBIN}/bbsjoe ; \
|
|
|
|
echo "${LN_S} ${JOEBIN}/joe ${JOEBIN}/bbsjmacs" ; \
|
|
|
|
${LN_S} ${JOEBIN}/joe ${JOEBIN}/bbsjmacs ; \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 editor ${BINDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 editor ${BINDIR}" ; \
|
2002-03-12 19:41:41 +00:00
|
|
|
fi
|
2002-07-27 20:09:37 +00:00
|
|
|
@if [ -d ${JOELIB} ]; then \
|
2003-12-23 14:01:22 +00:00
|
|
|
${INSTALL} -c -o ${ROWNER} -g ${RGROUP} -m 0644 bbsjoerc ${JOELIB} ; \
|
|
|
|
echo "${INSTALL} -c -o ${ROWNER} -g ${RGROUP} -m 0644 bbsjoerc ${JOELIB}" ; \
|
|
|
|
${INSTALL} -c -o ${ROWNER} -g ${RGROUP} -m 0644 bbsjmacsrc ${JOELIB} ; \
|
|
|
|
echo "${INSTALL} -c -o ${ROWNER} -g ${RGROUP} -m 0644 bbsjmacsrc ${JOELIB}" ; \
|
2002-04-18 19:37:16 +00:00
|
|
|
fi
|
2002-07-10 21:16:57 +00:00
|
|
|
@if [ ! -x ${BINDIR}/bbsdoor.sh ]; then \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 bbsdoor.sh ${BINDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 bbsdoor.sh ${BINDIR}" ; \
|
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 rundoor.sh ${BINDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 rundoor.sh ${BINDIR}" ; \
|
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 runvirtual.sh ${BINDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 runvirtual.sh ${BINDIR}" ; \
|
2004-01-21 20:32:00 +00:00
|
|
|
else \
|
2004-08-11 19:37:30 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 bbsdoor.sh ${BINDIR}/bbsdoor.sh.new ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 bbsdoor.sh ${BINDIR}/bbsdoor.sh.new" ; \
|
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 rundoor.sh ${BINDIR}/rundoor.sh.new ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 rundoor.sh ${BINDIR}/rundoor.sh.new" ; \
|
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 runvirtual.sh ${BINDIR}/runvirtual.sh.new ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0750 runvirtual.sh ${BINDIR}/runvirtual.sh.new" ; \
|
2002-07-10 21:16:57 +00:00
|
|
|
fi
|
2005-08-17 18:55:16 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0640 doors.bat ${VARDIR}/dosemu/c
|
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0700 mbsedos ${BINDIR}
|
2001-11-03 21:57:45 +00:00
|
|
|
@bash ./installinit.sh
|
|
|
|
|
|
|
|
filelist: Makefile
|
|
|
|
BASE=`pwd`; \
|
|
|
|
BASE=`basename $${BASE}`; \
|
|
|
|
(for f in ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
|
|
|
|
|
|
|
|
depend:
|
|
|
|
|