####################################################################################
# @version $Id: Makefile 20070308 1:49 durtle
# @package VHCP
# @copyright Copyright (C) 2007 [VHCP] Virtual Host Control Panel. All rights reserved.
# @license http://www.mozilla.org/MPL/ [MPL] Mozilla Public License, see LICENSE.php
#
# VHCP is free software; you can redistribute it and/or
# modify it under the terms of the MPL General Public License
# as published by the Free Software Foundation; either version 1.1
# of the License, or (at your option) any later version.
#
# You should have received a copy of the MPL Mozilla Public License
# along with this program; if not, write to the Open Source Initiative (OSI)
# http://opensource.org | osi@opensource.org
#
# See COPYRIGHT.php for copyright notices and details.
#
# For more information please see our website at http://www.vhcp.org
####################################################################################

export

install:

	$(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/init.d
        
	cp vhcp_daemon $(ROOT_CONF)/init.d
	cp vhcp_network $(ROOT_CONF)/init.d

	chown root:root $(ROOT_CONF)/init.d/vhcp_network $(ROOT_CONF)/init.d/vhcp_daemon
	chmod 0755 $(ROOT_CONF)/init.d/vhcp_network $(ROOT_CONF)/init.d/vhcp_daemon
        
uninstall:

	rm -f $(ROOT_CONF)/init.d/vhcp_daemon
	rm -f $(ROOT_CONF)/init.d/vhcp_network

