X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e81f9be1bf5d567644961d3458c1f454f36698bc..ed44d0003fc99234e16251414b0e32b767c3f41f:/openwrt/package/openssh/Makefile diff --git a/openwrt/package/openssh/Makefile b/openwrt/package/openssh/Makefile index c0d296d23..a720de7b8 100644 --- a/openwrt/package/openssh/Makefile +++ b/openwrt/package/openssh/Makefile @@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=openssh PKG_VERSION:=4.2p1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MD5SUM:=df899194a340c933944b193477c628fa PKG_SOURCE_URL:=ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \ @@ -80,43 +80,45 @@ $(PKG_BUILD_DIR)/.built: touch $@ $(IPKG_OPENSSH_CLIENT): - install -m0700 -d $(IDIR_OPENSSH_CLIENT)/etc/ssh - cp -fpR $(PKG_INSTALL_DIR)/etc/ssh/ssh_config $(IDIR_OPENSSH_CLIENT)/etc/ssh/ + install -m0755 -d $(IDIR_OPENSSH_CLIENT)/etc/ssh + chmod 0700 $(IDIR_OPENSSH_CLIENT)/etc/ssh + $(CP) $(PKG_INSTALL_DIR)/etc/ssh/ssh_config $(IDIR_OPENSSH_CLIENT)/etc/ssh/ install -m0755 -d $(IDIR_OPENSSH_CLIENT)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh $(IDIR_OPENSSH_CLIENT)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/scp $(IDIR_OPENSSH_CLIENT)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh $(IDIR_OPENSSH_CLIENT)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/scp $(IDIR_OPENSSH_CLIENT)/usr/bin/ $(RSTRIP) $(IDIR_OPENSSH_CLIENT) $(IPKG_BUILD) $(IDIR_OPENSSH_CLIENT) $(PACKAGE_DIR) $(IPKG_OPENSSH_CLIENT_UTILS): install -m0755 -d $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh-add $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh-agent $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh-keyscan $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-add $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-agent $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-keyscan $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ $(RSTRIP) $(IDIR_OPENSSH_CLIENT_UTILS) $(IPKG_BUILD) $(IDIR_OPENSSH_CLIENT_UTILS) $(PACKAGE_DIR) $(IPKG_OPENSSH_SERVER): - install -m0700 -d $(IDIR_OPENSSH_SERVER)/etc/ssh - cp -fpR $(PKG_INSTALL_DIR)/etc/ssh/sshd_config $(IDIR_OPENSSH_SERVER)/etc/ssh/ + install -m0755 -d $(IDIR_OPENSSH_SERVER)/etc/ssh + chmod 0700 $(IDIR_OPENSSH_SERVER)/etc/ssh + $(CP) $(PKG_INSTALL_DIR)/etc/ssh/sshd_config $(IDIR_OPENSSH_SERVER)/etc/ssh/ install -m0755 -d $(IDIR_OPENSSH_SERVER)/etc/init.d install -m0755 ./files/S50sshd $(IDIR_OPENSSH_SERVER)/etc/init.d/ install -m0755 -d $(IDIR_OPENSSH_SERVER)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh-keygen $(IDIR_OPENSSH_SERVER)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-keygen $(IDIR_OPENSSH_SERVER)/usr/bin/ install -m0755 -d $(IDIR_OPENSSH_SERVER)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/sshd $(IDIR_OPENSSH_SERVER)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/sshd $(IDIR_OPENSSH_SERVER)/usr/sbin/ $(RSTRIP) $(IDIR_OPENSSH_SERVER) $(IPKG_BUILD) $(IDIR_OPENSSH_SERVER) $(PACKAGE_DIR) $(IPKG_OPENSSH_SFTP_CLIENT): install -m0755 -d $(IDIR_OPENSSH_SFTP_CLIENT)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/sftp $(IDIR_OPENSSH_SFTP_CLIENT)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/sftp $(IDIR_OPENSSH_SFTP_CLIENT)/usr/bin/ $(RSTRIP) $(IDIR_OPENSSH_SFTP_CLIENT) $(IPKG_BUILD) $(IDIR_OPENSSH_SFTP_CLIENT) $(PACKAGE_DIR) $(IPKG_OPENSSH_SFTP_SERVER): install -m0755 -d $(IDIR_OPENSSH_SFTP_SERVER)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/sftp-server $(IDIR_OPENSSH_SFTP_SERVER)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/sftp-server $(IDIR_OPENSSH_SFTP_SERVER)/usr/lib/ install -m0755 -d $(IDIR_OPENSSH_SFTP_SERVER)/usr/libexec ln -sf ../lib/sftp-server $(IDIR_OPENSSH_SFTP_SERVER)/usr/libexec/sftp-server $(RSTRIP) $(IDIR_OPENSSH_SFTP_SERVER)