# Copyright (C) 1997-2000 SpellCaster Telecommunications Inc. # $Id: Makefile.in,v 1.2 2004/04/05 02:51:37 bcrl Exp $ # Released under the GNU Public License. See LICENSE file for details. TOPDIR=.. include ../common.mak all: .phony: install: ifeq ($(CONFIG_START_BOOT),Y) if [ -f /etc/redhat-release ] ; then \ $(INSTALL) -o root -g root -m755 babylon.init /etc/rc.d/init.d/ ; \ ln -sf ../init.d/babylon.init /etc/rc.d/rc2.d/S70babylon ; \ ln -sf ../init.d/babylon.init /etc/rc.d/rc3.d/S70babylon ; \ ln -sf ../init.d/babylon.init /etc/rc.d/rc4.d/S70babylon ; \ ln -sf ../init.d/babylon.init /etc/rc.d/rc0.d/K70babylon ; \ ln -sf ../init.d/babylon.init /etc/rc.d/rc6.d/K70babylon ; \ fi if [ -f /etc/debian_version ] ; then \ $(INSTALL) -o root -g root -m755 babylon.init /etc/init.d/ ; \ ln -sf ../init.d/babylon.init /etc/rc2.d/S70babylon ; \ ln -sf ../init.d/babylon.init /etc/rc3.d/S70babylon ; \ ln -sf ../init.d/babylon.init /etc/rc4.d/S70babylon ; \ ln -sf ../init.d/babylon.init /etc/rc0.d/K70babylon ; \ ln -sf ../init.d/babylon.init /etc/rc6.d/K70babylon ; \ fi if [ -f /etc/slackware-release ] ; then \ $(INSTALL) -o root -g root -m755 babylon.init /etc/init.d/ ; \ if [ -f /etc/rc.d/rc.local ] ; then echo "/etc/rc.d/babylon.init" >> /etc/rc.d/rc.local ; fi \ fi echo "sh conf/babylon.init start" >>../babylon.start endif mkdir -p /etc/babylon if [ -e /etc/babylon.conf ] ; then mkdir -p /etc/babylon ; mv /etc/babylon.conf /etc/babylon ; fi if [ ! -e /etc/babylon/babylon.conf ] ; then echo "Installing sample /etc/babylon/babylon.conf" ; $(INSTALL) -o root -g root -m 600 babylon.conf /etc/babylon/ ; fi uninstall: $(RM) /etc/rc.d/babylon.init distclean: $(RM) Makefile babylon.init clean: