This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/script/Makefile

73 lines
2.8 KiB
Makefile
Raw Normal View History

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
OTHER = Makefile README maint midnight weekly monthly installinit.sh rc rc.shutdown \
2002-02-04 15:18:06 +00:00
mbse.start mbse.stop bbsdoor.sh rundoor.sh init.Debian init.RedHat \
2002-03-06 22:37:01 +00:00
init.Slackware init.SuSE hatch editor bbsjoerc bbsjmacsrc
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 \
2001-12-20 21:52:13 +00:00
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0711 maint ${ETCDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0711 maint ${ETCDIR}" ; \
2001-11-03 21:57:45 +00:00
fi
@if [ ! -x ${ETCDIR}/midnight ]; then \
2001-12-20 21:52:13 +00:00
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0711 midnight ${ETCDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0711 midnight ${ETCDIR}" ; \
2001-11-03 21:57:45 +00:00
fi
@if [ ! -x ${ETCDIR}/weekly ]; then \
2001-12-20 21:52:13 +00:00
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0711 weekly ${ETCDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0711 weekly ${ETCDIR}" ; \
2001-11-03 21:57:45 +00:00
fi
@if [ ! -x ${ETCDIR}/monthly ]; then \
2001-12-20 21:52:13 +00:00
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0711 monthly ${ETCDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0711 monthly ${ETCDIR}" ; \
2001-11-03 21:57:45 +00:00
fi
2002-02-23 20:28:36 +00:00
@if [ ! -x ${BINDIR}/hatch ]; then \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 hatch ${BINDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 hatch ${BINDIR}" ; \
fi
2002-03-12 19:41:41 +00:00
@if [ -x /usr/bin/joe ]; then \
2002-03-12 22:09:05 +00:00
rm -f /usr/bin/bbsjoe ; \
rm -f /usr/bin/bbsjmacs ; \
echo "ln -s /usr/bin/joe /usr/bin/bbsjoe" ; \
2002-03-12 19:41:41 +00:00
ln -s /usr/bin/joe /usr/bin/bbsjoe ; \
2002-03-12 22:09:05 +00:00
echo "ln -s /usr/bin/joe /usr/bin/bbsjmacs" ; \
2002-03-12 19:41:41 +00:00
ln -s /usr/bin/joe /usr/bin/bbsjmacs ; \
fi
@if [ -d /usr/lib/joe ]; then \
2002-03-12 22:09:05 +00:00
${INSTALL} -c -o root -g root -m 0644 bbsjoerc /usr/lib/joe ; \
echo "${INSTALL} -c -o root -g root -m 0644 bbsjoerc /usr/lib/joe" ; \
${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc /usr/lib/joe ; \
echo "${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc /usr/lib/joe" ; \
2002-03-12 19:41:41 +00:00
fi
2002-04-18 19:37:16 +00:00
@if [ -d /etc/joe ]; then \
${INSTALL} -c -o root -g root -m 0644 bbsjoerc /etc/joe ; \
echo "${INSTALL} -c -o root -g root -m 0644 bbsjoerc /etc/joe" ; \
${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc /etc/joe ; \
echo "${INSTALL} -c -o root -g root -m 0644 bbsjmacsrc /etc/joe" ; \
fi
2002-03-12 22:09:05 +00:00
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 editor ${BINDIR}
2001-12-20 21:52:13 +00:00
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 bbsdoor.sh ${BINDIR}
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 rundoor.sh ${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: