1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-29 19:32:47 +02:00

Make modular and fix linking

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1179 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2005-06-08 21:31:46 +00:00
parent 63167d79a6
commit 7d52908f08
9 changed files with 167 additions and 57 deletions

View File

@ -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

View File

@ -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) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \ --prefix=/usr \
--exec-prefix=/usr \ --exec-prefix=/usr \
--bindir=/usr/bin \ --bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib \
--sysconfdir=/etc/ssh \
--datadir=/usr/share \ --datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var \ --localstatedir=/var \
--mandir=/usr/man \ --mandir=/usr/share/man \
--infodir=/usr/info \ --sbindir=/usr/sbin \
--with-zlib=$(STAGING_DIR)/usr \ --sysconfdir=/etc/ssh \
--with-ssl-dir=$(STAGING_DIR)/usr \ $(DISABLE_LARGEFILE) \
$(DISABLE_NLS) \
--enable-shared \
--disable-static \
--disable-debug \
--disable-strip \ --disable-strip \
--disable-lastlog \
--disable-etc-default-login \ --disable-etc-default-login \
--disable-lastlog \
--disable-utmp \ --disable-utmp \
--disable-utmpx \ --disable-utmpx \
--disable-wtmp \ --disable-wtmp \
--disable-wtmpx \ --disable-wtmpx \
--with-cflags="$(TARGET_CFLAGS)" \
--includedir=$(STAGING_DIR)/include \
--without-pam \
--without-bsd-auth \ --without-bsd-auth \
--without-kerberos5 \ --without-kerberos5 \
--without-pam \
--without-x \ --without-x \
--disable-debug \
); );
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)

View 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

View File

@ -0,0 +1 @@
/etc/ssh/ssh_config

View File

@ -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

View File

@ -0,0 +1 @@
/etc/ssh/sshd_config

View 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

View 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

View 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