3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=7b36f28fc16e1b7f4ba3c1dca191ac92
10 PKG_SOURCE_URL
:=ftp
://ftp.openbsd.org
/pub
/OpenBSD
/OpenSSH
/portable
/ \
11 ftp
://openbsd.wiretapped.net
/pub
/OpenBSD
/OpenSSH
/portable
/ \
12 ftp
://ftp.belnet.be
/packages
/openbsd
/OpenSSH
/portable
/ \
13 ftp
://ftp.de.openbsd.org
/pub
/unix
/OpenBSD
/OpenSSH
/portable
/
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/rules.mk
24 $(eval
$(call PKG_template
,OPENSSH_CLIENT
,openssh-client
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
25 $(eval
$(call PKG_template
,OPENSSH_CLIENT_UTILS
,openssh-client-utils
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
26 $(eval
$(call PKG_template
,OPENSSH_SERVER
,openssh-server
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
27 $(eval
$(call PKG_template
,OPENSSH_SFTP_CLIENT
,openssh-sftp-client
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
28 $(eval
$(call PKG_template
,OPENSSH_SFTP_SERVER
,openssh-sftp-server
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
30 $(PKG_BUILD_DIR
)/.configured
:
31 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
32 $(TARGET_CONFIGURE_OPTS
) \
33 CFLAGS
="$(TARGET_CFLAGS)" \
34 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
36 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
38 --target
=$(GNU_TARGET_NAME
) \
39 --host
=$(GNU_TARGET_NAME
) \
40 --build
=$(GNU_HOST_NAME
) \
46 --datadir=/usr
/share \
47 --includedir=/usr
/include \
48 --infodir=/usr
/share
/info \
50 --libexecdir
=/usr
/lib \
51 --localstatedir
=/var \
52 --mandir=/usr
/share
/man \
54 --sysconfdir
=/etc
/ssh \
55 $(DISABLE_LARGEFILE
) \
61 --disable-etc-default-login \
74 $(PKG_BUILD_DIR
)/.built
:
75 rm -rf
$(PKG_INSTALL_DIR
)
76 mkdir
-p
$(PKG_INSTALL_DIR
)
77 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
78 DESTDIR
="$(PKG_INSTALL_DIR)" \
82 $(IPKG_OPENSSH_CLIENT
):
83 install -m0700
-d
$(IDIR_OPENSSH_CLIENT
)/etc
/ssh
84 cp
-fpR
$(PKG_INSTALL_DIR
)/etc
/ssh
/ssh_config
$(IDIR_OPENSSH_CLIENT
)/etc
/ssh
/
85 install -m0755
-d
$(IDIR_OPENSSH_CLIENT
)/usr
/bin
86 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/ssh
$(IDIR_OPENSSH_CLIENT
)/usr
/bin
/
87 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/scp
$(IDIR_OPENSSH_CLIENT
)/usr
/bin
/
88 $(RSTRIP
) $(IDIR_OPENSSH_CLIENT
)
89 $(IPKG_BUILD
) $(IDIR_OPENSSH_CLIENT
) $(PACKAGE_DIR
)
91 $(IPKG_OPENSSH_CLIENT_UTILS
):
92 install -m0755
-d
$(IDIR_OPENSSH_CLIENT_UTILS
)/usr
/bin
93 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/ssh-add
$(IDIR_OPENSSH_CLIENT_UTILS
)/usr
/bin
/
94 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/ssh-agent
$(IDIR_OPENSSH_CLIENT_UTILS
)/usr
/bin
/
95 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/ssh-keyscan
$(IDIR_OPENSSH_CLIENT_UTILS
)/usr
/bin
/
96 $(RSTRIP
) $(IDIR_OPENSSH_CLIENT_UTILS
)
97 $(IPKG_BUILD
) $(IDIR_OPENSSH_CLIENT_UTILS
) $(PACKAGE_DIR
)
99 $(IPKG_OPENSSH_SERVER
):
100 install -m0700
-d
$(IDIR_OPENSSH_SERVER
)/etc
/ssh
101 cp
-fpR
$(PKG_INSTALL_DIR
)/etc
/ssh
/sshd_config
$(IDIR_OPENSSH_SERVER
)/etc
/ssh
/
102 install -m0755
-d
$(IDIR_OPENSSH_SERVER
)/etc
/init.d
103 install -m0755 .
/files
/S50sshd
$(IDIR_OPENSSH_SERVER
)/etc
/init.d
/
104 install -m0755
-d
$(IDIR_OPENSSH_SERVER
)/usr
/bin
105 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/ssh-keygen
$(IDIR_OPENSSH_SERVER
)/usr
/bin
/
106 install -m0755
-d
$(IDIR_OPENSSH_SERVER
)/usr
/sbin
107 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/sshd
$(IDIR_OPENSSH_SERVER
)/usr
/sbin
/
108 $(RSTRIP
) $(IDIR_OPENSSH_SERVER
)
109 $(IPKG_BUILD
) $(IDIR_OPENSSH_SERVER
) $(PACKAGE_DIR
)
111 $(IPKG_OPENSSH_SFTP_CLIENT
):
112 install -m0755
-d
$(IDIR_OPENSSH_SFTP_CLIENT
)/usr
/bin
113 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/sftp
$(IDIR_OPENSSH_SFTP_CLIENT
)/usr
/bin
/
114 $(RSTRIP
) $(IDIR_OPENSSH_SFTP_CLIENT
)
115 $(IPKG_BUILD
) $(IDIR_OPENSSH_SFTP_CLIENT
) $(PACKAGE_DIR
)
117 $(IPKG_OPENSSH_SFTP_SERVER
):
118 install -m0755
-d
$(IDIR_OPENSSH_SFTP_SERVER
)/usr
/lib
119 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/sftp-server
$(IDIR_OPENSSH_SFTP_SERVER
)/usr
/lib
/
120 $(RSTRIP
) $(IDIR_OPENSSH_SFTP_SERVER
)
121 $(IPKG_BUILD
) $(IDIR_OPENSSH_SFTP_SERVER
) $(PACKAGE_DIR
)