| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 | # This file is part of the OpenADK project. OpenADK is copyrighted# material, please see the LICENCE file in the top-level directory.include $(ADK_TOPDIR)/rules.mkPKG_NAME:=		dropbearPKG_VERSION:=		2014.63PKG_RELEASE:=		2PKG_MD5SUM:=		7066bb9a2da708f3ed06314fdc9c47fdPKG_DESCR:=		ssh server/client designed for embedded systemsPKG_SECTION:=		net/securityPKG_URL:=		http://matt.ucc.asn.au/dropbear/PKG_SITES:=		http://matt.ucc.asn.au/dropbear/releases/DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2PKG_SUBPKGS:=		DROPBEAR DBCONVERTPKGSD_DBCONVERT:=	Utility for converting SSH private keysPKG_FLAVOURS_DROPBEAR:=	WITH_UTMPPKGFD_WITH_UTMP:=	support writing /var/run/utmpinclude $(ADK_TOPDIR)/mk/package.mk$(eval $(call PKG_template,DROPBEAR,dropbear,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))$(eval $(call PKG_template,DBCONVERT,dropbearconvert,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DBCONVERT},${PKG_SECTION}))BUILD_STYLE:=		manualINSTALL_STYLE:=		manualCONFIGURE_ARGS+=	--disable-pam \			--enable-openpty \			--enable-syslog \			--enable-shadow \			--disable-lastlog \			--disable-utmpx \			--disable-wtmp \			--disable-wtmpx \			--disable-loginfunc \			--disable-pututxline \			--disable-zlibifeq (${ADK_PACKAGE_DROPBEAR_WITH_UTMP},)CONFIGURE_ARGS+=	--disable-utmp --disable-pututlineelseCONFIGURE_ENV+=		conf_utmp_location=/var/run/utmpendifpre-configure:	$(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(WRKBUILD)/options.h	$(SED) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(WRKBUILD)/options.hdo-build:	cd ${WRKBUILD} && env ${MAKE_ENV} ${MAKE} \	    PROGRAMS="dropbear dbclient dropbearkey scp" MULTI=1 SCPPROGRESS=1	cd ${WRKBUILD} && env ${MAKE_ENV} ${MAKE} \	    PROGRAMS=dropbearconvertdo-install:	# main package	$(INSTALL_DIR) $(IDIR_DROPBEAR)/usr/bin $(IDIR_DROPBEAR)/bin	$(INSTALL_DIR) $(IDIR_DROPBEAR)/usr/sbin	$(INSTALL_BIN) $(WRKBUILD)/dropbearmulti \		$(IDIR_DROPBEAR)/usr/sbin/dropbear	ln -sf ../usr/sbin/dropbear $(IDIR_DROPBEAR)/bin/scp	ln -sf ../usr/sbin/dropbear $(IDIR_DROPBEAR)/bin/ssh	ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dbclient	ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dropbearkey	# subpackage dropbearconvert	$(INSTALL_DIR) $(IDIR_DBCONVERT)/usr/bin	$(INSTALL_BIN) $(WRKBUILD)/dropbearconvert \		$(IDIR_DBCONVERT)/usr/bin/dropbearconvert	# ssh pubkey	test -z $(ADK_RUNTIME_SSH_PUBKEY) || ( \		$(INSTALL_DIR) $(IDIR_DROPBEAR)/etc/dropbear; \		echo $(ADK_RUNTIME_SSH_PUBKEY) \		>$(IDIR_DROPBEAR)/etc/dropbear/authorized_keys; \        )include ${ADK_TOPDIR}/mk/pkg-bottom.mk
 |