summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/dropbear/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile
index 07dc414b3..917edb016 100644
--- a/package/dropbear/Makefile
+++ b/package/dropbear/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= dropbear
PKG_VERSION:= 0.53.1
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 6b8d901859d9b8a18e2f6bfe0a892a03
PKG_DESCR:= SSH 2 server/client designed for embedded systems
PKG_SECTION:= net/security
@@ -16,6 +16,9 @@ PKG_DFLT_DROPBEAR:= y if !ADK_TOOLCHAIN_ONLY
PKG_SUBPKGS:= DROPBEAR DBCONVERT
PKGSD_DBCONVERT:= Utility for converting SSH private keys
+PKG_FLAVOURS_DROPBEAR:= WITH_UTMP
+PKGFD_WITH_UTMP:= support writing /var/run/utmp
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,DROPBEAR,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
@@ -28,7 +31,6 @@ CONFIGURE_ARGS+= --disable-pam \
--enable-syslog \
--enable-shadow \
--disable-lastlog \
- --disable-utmp \
--disable-utmpx \
--disable-wtmp \
--disable-wtmpx \
@@ -36,6 +38,11 @@ CONFIGURE_ARGS+= --disable-pam \
--disable-pututline \
--disable-pututxline \
--disable-zlib
+ifeq (${ADK_PACKAGE_DROPBEAR_WITH_UTMP},)
+CONFIGURE_ARGS+= --disable-utmp
+else
+CONFIGURE_ARGS+= --enable-utmp
+endif
pre-configure:
$(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(WRKBUILD)/options.h