####################################################################################
# @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
####################################################################################

ROOT_COURIER_CONF=$(ROOT_CONF)/courier

export

install:

	$(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/courier
	$(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_CONF)
#
#	MTA Configuration Files;
#
	cp ./authdaemonrc $(SYSTEM_CONF)/courier
	cp ./authmodulelist $(SYSTEM_CONF)/courier
	cp ./imapd $(SYSTEM_CONF)/courier
	cp ./pop3d $(SYSTEM_CONF)/courier
	cp ./userdb $(SYSTEM_CONF)/courier
	
#	cp -p -R ./courier-cfg-setup.sh $(SYSTEM_CONF)/courier
#
#	MTA Configuration Directories;
#
	cp -R ./backup $(SYSTEM_CONF)/courier
	cp -R ./working $(SYSTEM_CONF)/courier

	cp ./authdaemonrc $(ROOT_COURIER_CONF)
	cp ./authmodulelist $(ROOT_COURIER_CONF)
	cp ./imapd $(ROOT_COURIER_CONF)
	cp ./pop3d $(ROOT_COURIER_CONF)
	cp ./userdb $(ROOT_COURIER_CONF)

uninstall:

	rm -rf $(SYSTEM_CONF)/courier


