# $HeadURL$ $LastChangedRevision$ ifndef FACILITY_SSH_MK FACILITY_SSH_MK = 1 # In pass #1: load recipe generators # In pass #0: load generated recipes include method-install.mk include method-copy.mk include file-ak.mk # Variables mentioned both in pass#1 and pass#0. # Tell recipe generators what to generate recipes for ifeq ($(PCMS_PASS_NUM),1) all.install: openssh-server.install openssh-client.install all.copy: $(shell encode /etc/ssh/sshd_config).copy all.copy: $(shell encode /etc/ssh/ssh_config).copy # The real Makefile else ifeq ($(PCMS_PASS_NUM),0) all.facility: ssh.facility ssh.facility: openssh-server.install openssh-client.install ak.file $(shell encode /etc/ssh/sshd_config).copy $(shell encode /etc/ssh/ssh_config).copy systemctl restart ssh touch $@ # Prevent our config being moved to .dpkg-old $(shell encode /etc/ssh/sshd_config).copy: openssh-server.install # Prevent our config being moved to .dpkg-old $(shell encode /etc/ssh/ssh_config).copy: openssh-client.install endif # PCMS_PASS_NUM endif # FACILITY_SSH_MK