#!/bin/bash

source debian/vars.sh

# Clean the build root first
rm -rf $buildroot
# Installing directories
install -d -m 755 $buildroot/usr
install -d -m 755 $buildroot/usr/local
install -d -m 755 $buildroot/usr/local/cpanel
install -d -m 755 $buildroot/usr/local/cpanel/scripts
install -d -m 755 $buildroot/var
install -d -m 755 $buildroot/var/cpanel
install -d -m 755 $buildroot/var/cpanel/plugins
install -d -m 755 $buildroot/var/cpanel/plugins/common
# Installing source files
install -D -m 700 $SOURCE4 $buildroot/usr/local/cpanel/scripts/manage_extra_marketing
install -D -m 644 $SOURCE5 $buildroot/var/cpanel/plugins/common/README.md
echo "Tree for buildroot: $buildroot"
tree $buildroot
