########################################## # openssh package for PADS ########################################## ifeq ($(strip $(PADS_WARP)),y) #Define version of your package OPENSSH_VER=5.0p1 OPENSSH_DIR=$(BUILD_DIR)/openssh-$(OPENSSH_VER) OPENSSH_SOURCE=openssh-$(OPENSSH_VER).tar.gz OPENSSH_SITE=ftp://ftp.pikatech.com/outgoing/pads/utils OPENSSH_UNZIP=zcat endif SSHCONFIG := --host=powerpc SSHCONFIG += --prefix=/usr --sysconfdir=/etc SSHCONFIG += --with-libs=-lcrypt SSHCONFIG += --disable-strip $(DL_DIR)/$(OPENSSH_SOURCE): $(WGET) -P $(DL_DIR) $(OPENSSH_SITE)/$(OPENSSH_SOURCE) openssh-source: $(DL_DIR)/$(OPENSSH_SOURCE) $(OPENSSH_DIR)/.unpacked: $(DL_DIR)/$(OPENSSH_SOURCE) $(OPENSSH_UNZIP) $(DL_DIR)/$(OPENSSH_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - touch $(OPENSSH_DIR)/.unpacked $(OPENSSH_DIR)/.configured: $(OPENSSH_DIR)/.unpacked cd $(OPENSSH_DIR); ./configure $(SSHCONFIG) touch $(OPENSSH_DIR)/.configured openssh: $(OPENSSH_DIR)/.configured CC=$(TARGET_CC) $(MAKE) -C $(OPENSSH_DIR) \ DESTDIR="$(TARGET_DIR)" $(MFLAGS) install $(RM) -r $(TARGET_DIR)/usr/share/man $(RM) $(TARGET_DIR)/usr/libexec/ssh-keysign $(RM) $(TARGET_DIR)/usr/bin/ssh-keyscan $(RM) $(TARGET_DIR)/usr/bin/ssh-agent $(RM) $(TARGET_DIR)/usr/bin/ssh-add echo "openssh" $(OPENSSH_VER) >> $(PERSISTENT_STORAGE)/version_info.txt openssh-configure: $(OPENSSH_DIR)/.configured openssh-clean: if test -d $(OPENSSH_DIR) then; \ DESTDIR="$(TARGET_DIR)" \ PERSISTENT_STORAGE=$(PERSISTENT_STORAGE) \ $(MAKE) -C $(OPENSSH_DIR) $(MFLAGS) clean ;\ # This doesn't work yet, the makefile needs a patch to remove the line DESTDIR= # Otherwise, it deletes files on the local machine. # DESTDIR="$(TARGET_DIR)" prefix="$(TARGET_DIR)" \ PERSISTENT_STORAGE=$(PERSISTENT_STORAGE) \ $(MAKE) -C $(OPENSSH_DIR) $(MFLAGS) uninstall; \ fi openssh-dirclean: openssh-clean $(RM) -r $(OPENSSH_DIR) ################################################ # # Toplevel Makefile options # ################################################# # Over here we check for "y" on our package and add it to the list of targets. # If your app requires other packages, please specify them here # Toplevel Makefile options ifeq ($(strip $(PADS_OPENSSH)),y) TARGETS+=openssh endif