Added global Makefile option to enable sshd in the appliance

This commit is contained in:
Albert Hopkins 2011-01-20 18:17:32 -05:00
parent 4ba07fdd86
commit a67cef9da2
1 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,7 @@ ARCH = amd64
MAKEOPTS = -j4
PRUNE_CRITICAL = NO
REMOVE_PORTAGE_TREE = YES
ENABLE_SSHD = NO
CHANGE_PASSWORD = YES
HEADLESS = NO
ACCEPT_KEYWORDS = amd64
@ -69,6 +70,10 @@ ifeq ($(HEADLESS),YES)
HEADLESS_GRUB = sed -i -f grub-headless.sed $(CHROOT)/boot/grub/grub.conf
endif
ifeq ($(ENABLE_SSHD),YES)
enable_sshd = chroot $(CHROOT) rc-update add sshd default
endif
gcc_config = chroot $(CHROOT) gcc-config 1
export APPLIANCE ACCEPT_KEYWORDS CHROOT EMERGE HEADLESS M4 M4C
@ -212,6 +217,7 @@ software: systools issue etc-update.conf $(CRITICAL) $(WORLD)
$(gcc_config)
chroot $(CHROOT) etc-update
$(MAKE) -C $(APPLIANCE) postinstall
$(enable_sshd)
$(change_password)
$(UNMERGE_CRITICAL)
touch software