mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 03:30:37 +02:00
Make modular and fix linking
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1179 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
96ec57df0e
commit
11253e5a60
@ -1,10 +1,52 @@
|
|||||||
|
menu "openssh - A free implementation of the Secure Shell protocol"
|
||||||
|
|
||||||
config BR2_PACKAGE_OPENSSH
|
config BR2_PACKAGE_OPENSSH
|
||||||
tristate "OpenSSH"
|
bool "OpenSSH - A free implementation of the Secure Shell protocol"
|
||||||
default m if CONFIG_DEVEL
|
default y if CONFIG_DEVEL
|
||||||
select BR2_PACKAGE_OPENSSL
|
|
||||||
help
|
help
|
||||||
Popular SSH server and client
|
OpenSSH is a FREE version of the SSH protocol suite of network
|
||||||
|
connectivity tools that increasing numbers of people on the Internet
|
||||||
|
are coming to rely on. Many users of telnet, rlogin, ftp, and other
|
||||||
|
such programs might not realize that their password is transmitted
|
||||||
|
across the Internet unencrypted, but it is. OpenSSH encrypts all
|
||||||
|
traffic (including passwords) to effectively eliminate eavesdropping,
|
||||||
|
connection hijacking, and other network-level attacks. Additionally,
|
||||||
|
OpenSSH provides a myriad of secure tunneling capabilities, as well
|
||||||
|
as a variety of authentication methods.
|
||||||
|
|
||||||
http://www.openssh.com/
|
http://www.openssh.com/
|
||||||
|
|
||||||
Depends: openssl
|
Depends: openssl
|
||||||
|
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPENSSH_CLIENT
|
||||||
|
tristate "openssh-client - OpenSSH client"
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
depends BR2_PACKAGE_OPENSSH
|
||||||
|
select BR2_PACKAGE_LIBOPENSSL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPENSSH_CLIENT_UTILS
|
||||||
|
tristate "openssh-client-utils - OpenSSH client utilities"
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
depends BR2_PACKAGE_OPENSSH_CLIENT
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPENSSH_SERVER
|
||||||
|
tristate "openssh-server - OpenSSH server"
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
depends BR2_PACKAGE_OPENSSH
|
||||||
|
select BR2_PACKAGE_LIBOPENSSL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPENSSH_SFTP_CLIENT
|
||||||
|
tristate "openssh-sftp-client - OpenSSH SFTP client"
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
depends BR2_PACKAGE_OPENSSH
|
||||||
|
select BR2_PACKAGE_LIBOPENSSL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPENSSH_SFTP_SERVER
|
||||||
|
tristate "openssh-sftp-server - OpenSSH SFTP server"
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
|
depends BR2_PACKAGE_OPENSSH
|
||||||
|
select BR2_PACKAGE_LIBOPENSSL
|
||||||
|
|
||||||
|
endmenu
|
||||||
|
|
||||||
|
@ -21,64 +21,102 @@ include $(TOPDIR)/package/rules.mk
|
|||||||
|
|
||||||
PKG_DEPEND:="openssl"
|
PKG_DEPEND:="openssl"
|
||||||
|
|
||||||
$(eval $(call PKG_template,OPENSSH,openssh,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
$(eval $(call PKG_template,OPENSSH_CLIENT,openssh-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,OPENSSH_CLIENT_UTILS,openssh-client-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,OPENSSH_SERVER,openssh-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,OPENSSH_SFTP_CLIENT,openssh-sftp-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
$(eval $(call PKG_template,OPENSSH_SFTP_SERVER,openssh-sftp-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
|
$(PKG_BUILD_DIR)/.configured:
|
||||||
(cd $(PKG_BUILD_DIR); rm -rf config.cache; \
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
||||||
|
LD="$(TARGET_CC)" \
|
||||||
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
||||||
./configure \
|
./configure \
|
||||||
--target=$(GNU_TARGET_NAME) \
|
--target=$(GNU_TARGET_NAME) \
|
||||||
--host=$(GNU_TARGET_NAME) \
|
--host=$(GNU_TARGET_NAME) \
|
||||||
--build=$(GNU_HOST_NAME) \
|
--build=$(GNU_HOST_NAME) \
|
||||||
--prefix=/usr \
|
--program-prefix="" \
|
||||||
--exec-prefix=/usr \
|
--program-suffix="" \
|
||||||
--bindir=/usr/bin \
|
--prefix=/usr \
|
||||||
--sbindir=/usr/sbin \
|
--exec-prefix=/usr \
|
||||||
--libexecdir=/usr/lib \
|
--bindir=/usr/bin \
|
||||||
--sysconfdir=/etc/ssh \
|
--datadir=/usr/share \
|
||||||
--datadir=/usr/share \
|
--includedir=/usr/include \
|
||||||
--localstatedir=/var \
|
--infodir=/usr/share/info \
|
||||||
--mandir=/usr/man \
|
--libdir=/usr/lib \
|
||||||
--infodir=/usr/info \
|
--libexecdir=/usr/lib \
|
||||||
--with-zlib=$(STAGING_DIR)/usr \
|
--localstatedir=/var \
|
||||||
--with-ssl-dir=$(STAGING_DIR)/usr \
|
--mandir=/usr/share/man \
|
||||||
--disable-strip \
|
--sbindir=/usr/sbin \
|
||||||
--disable-lastlog \
|
--sysconfdir=/etc/ssh \
|
||||||
--disable-etc-default-login \
|
$(DISABLE_LARGEFILE) \
|
||||||
--disable-utmp \
|
$(DISABLE_NLS) \
|
||||||
--disable-utmpx \
|
--enable-shared \
|
||||||
--disable-wtmp \
|
--disable-static \
|
||||||
--disable-wtmpx \
|
--disable-debug \
|
||||||
--with-cflags="$(TARGET_CFLAGS)" \
|
--disable-strip \
|
||||||
--includedir=$(STAGING_DIR)/include \
|
--disable-etc-default-login \
|
||||||
--without-pam \
|
--disable-lastlog \
|
||||||
--without-bsd-auth \
|
--disable-utmp \
|
||||||
--without-kerberos5 \
|
--disable-utmpx \
|
||||||
--without-x \
|
--disable-wtmp \
|
||||||
--disable-debug \
|
--disable-wtmpx \
|
||||||
|
--without-bsd-auth \
|
||||||
|
--without-kerberos5 \
|
||||||
|
--without-pam \
|
||||||
|
--without-x \
|
||||||
);
|
);
|
||||||
touch $(PKG_BUILD_DIR)/.configured
|
touch $@
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
|
$(PKG_BUILD_DIR)/.built:
|
||||||
$(MAKE) CC=$(TARGET_CC) -C $(PKG_BUILD_DIR)
|
rm -rf $(PKG_INSTALL_DIR)
|
||||||
touch $(PKG_BUILD_DIR)/.built
|
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.installed: $(PKG_BUILD_DIR)/.built
|
|
||||||
mkdir -p $(PKG_INSTALL_DIR)
|
mkdir -p $(PKG_INSTALL_DIR)
|
||||||
$(MAKE) CC=$(TARGET_CC) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
install
|
all install
|
||||||
touch $(PKG_BUILD_DIR)/.installed
|
touch $@
|
||||||
|
|
||||||
$(IPKG_OPENSSH): $(IDIR_OPENSSH)/CONTROL/control $(PKG_BUILD_DIR)/.installed
|
$(IPKG_OPENSSH_CLIENT):
|
||||||
mkdir -p $(IDIR_OPENSSH){/etc/ssh,/usr/sbin,/usr/bin}
|
install -m0700 -d $(IDIR_OPENSSH_CLIENT)/etc/ssh
|
||||||
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/sshd $(IDIR_OPENSSH)/usr/sbin/
|
cp -fpR $(PKG_INSTALL_DIR)/etc/ssh/ssh_config $(IDIR_OPENSSH_CLIENT)/etc/ssh/
|
||||||
cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh-keygen $(IDIR_OPENSSH)/usr/bin/
|
install -m0755 -d $(IDIR_OPENSSH_CLIENT)/usr/bin
|
||||||
#$(RSTRIP) $(IDIR_OPENSSH)
|
cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh $(IDIR_OPENSSH_CLIENT)/usr/bin/
|
||||||
mkdir -p $(PACKAGE_DIR)
|
cp -fpR $(PKG_INSTALL_DIR)/usr/bin/scp $(IDIR_OPENSSH_CLIENT)/usr/bin/
|
||||||
cp $(PKG_INSTALL_DIR)/etc/ssh/* $(IDIR_OPENSSH)/etc/ssh/
|
$(RSTRIP) $(IDIR_OPENSSH_CLIENT)
|
||||||
mkdir -p $(IDIR_OPENSSH)/etc/init.d
|
$(IPKG_BUILD) $(IDIR_OPENSSH_CLIENT) $(PACKAGE_DIR)
|
||||||
install -m 755 ./files/S50sshd $(IDIR_OPENSSH)/etc/init.d/
|
|
||||||
$(IPKG_BUILD) $(IDIR_OPENSSH) $(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/
|
||||||
|
$(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/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/
|
||||||
|
install -m0755 -d $(IDIR_OPENSSH_SERVER)/usr/sbin
|
||||||
|
cp -fpR $(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/
|
||||||
|
$(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/
|
||||||
|
$(RSTRIP) $(IDIR_OPENSSH_SFTP_SERVER)
|
||||||
|
$(IPKG_BUILD) $(IDIR_OPENSSH_SFTP_SERVER) $(PACKAGE_DIR)
|
||||||
|
|
||||||
|
7
package/openssh/ipkg/openssh-client-utils.control
Normal file
7
package/openssh/ipkg/openssh-client-utils.control
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Package: openssh-client-utils
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Maintainer: bugs@openwrt.org
|
||||||
|
Source: buildroot internal
|
||||||
|
Depends: zlib, libopenssl
|
||||||
|
Description: OpenSSH client utilities
|
1
package/openssh/ipkg/openssh-client.conffiles
Normal file
1
package/openssh/ipkg/openssh-client.conffiles
Normal file
@ -0,0 +1 @@
|
|||||||
|
/etc/ssh/ssh_config
|
@ -1,7 +1,7 @@
|
|||||||
Package: openssh
|
Package: openssh-client
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: net
|
Section: net
|
||||||
Maintainer: bugs@openwrt.org
|
Maintainer: bugs@openwrt.org
|
||||||
Source: buildroot internal
|
Source: buildroot internal
|
||||||
Depends: zlib, libopenssl
|
Depends: zlib, libopenssl
|
||||||
Description: SSH Server and Client
|
Description: OpenSSH client
|
1
package/openssh/ipkg/openssh-server.conffiles
Normal file
1
package/openssh/ipkg/openssh-server.conffiles
Normal file
@ -0,0 +1 @@
|
|||||||
|
/etc/ssh/sshd_config
|
7
package/openssh/ipkg/openssh-server.control
Normal file
7
package/openssh/ipkg/openssh-server.control
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Package: openssh-server
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Maintainer: bugs@openwrt.org
|
||||||
|
Source: buildroot internal
|
||||||
|
Depends: zlib, libopenssl
|
||||||
|
Description: OpenSSH server
|
7
package/openssh/ipkg/openssh-sftp-client.control
Normal file
7
package/openssh/ipkg/openssh-sftp-client.control
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Package: openssh-sftp-client
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Maintainer: bugs@openwrt.org
|
||||||
|
Source: buildroot internal
|
||||||
|
Depends: zlib, libopenssl
|
||||||
|
Description: OpenSSH SFTP client
|
7
package/openssh/ipkg/openssh-sftp-server.control
Normal file
7
package/openssh/ipkg/openssh-sftp-server.control
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Package: openssh-sftp-server
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Maintainer: bugs@openwrt.org
|
||||||
|
Source: buildroot internal
|
||||||
|
Depends: zlib, libopenssl
|
||||||
|
Description: OpenSSH SFTP server
|
Loading…
Reference in New Issue
Block a user