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
,openssh
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
26 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
27 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
28 $(TARGET_CONFIGURE_OPTS
) \
29 CFLAGS
="$(TARGET_CFLAGS)" \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
38 --libexecdir
=/usr
/lib \
39 --sysconfdir
=/etc
/ssh \
40 --datadir=/usr
/share \
41 --localstatedir
=/var \
44 --with-zlib
=$(STAGING_DIR
)/usr \
45 --with-ssl-dir
=$(STAGING_DIR
)/usr \
48 --disable-etc-default-login \
53 --with-cflags
="$(TARGET_CFLAGS)" \
54 --includedir=$(STAGING_DIR
)/include \
61 touch
$(PKG_BUILD_DIR
)/.configured
63 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
64 $(MAKE
) CC
=$(TARGET_CC
) -C
$(PKG_BUILD_DIR
)
65 touch
$(PKG_BUILD_DIR
)/.built
67 $(PKG_BUILD_DIR
)/.installed
: $(PKG_BUILD_DIR
)/.built
68 mkdir
-p
$(PKG_INSTALL_DIR
)
69 $(MAKE
) CC
=$(TARGET_CC
) -C
$(PKG_BUILD_DIR
) \
70 DESTDIR
="$(PKG_INSTALL_DIR)" \
72 touch
$(PKG_BUILD_DIR
)/.installed
74 $(IPKG_OPENSSH
): $(IDIR_OPENSSH
)/CONTROL
/control
$(PKG_BUILD_DIR
)/.installed
75 mkdir
-p
$(IDIR_OPENSSH
){/etc
/ssh
,/usr
/sbin
,/usr
/bin
}
76 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/sshd
$(IDIR_OPENSSH
)/usr
/sbin
/
77 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/ssh-keygen
$(IDIR_OPENSSH
)/usr
/bin
/
78 #$(RSTRIP) $(IDIR_OPENSSH)
79 mkdir
-p
$(PACKAGE_DIR
)
80 cp
$(PKG_INSTALL_DIR
)/etc
/ssh
/* $(IDIR_OPENSSH
)/etc
/ssh
/
81 mkdir
-p
$(IDIR_OPENSSH
)/etc
/init.d
82 install -m
755 .
/files
/S50sshd
$(IDIR_OPENSSH
)/etc
/init.d
/
83 $(IPKG_BUILD
) $(IDIR_OPENSSH
) $(PACKAGE_DIR
)