summaryrefslogtreecommitdiff
path: root/package/dropbear/Makefile
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2012-01-12 19:36:27 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2012-01-15 11:04:44 +0100
commite696319db107c0cf30d0e8f97ab98ce71583bf7a (patch)
tree9bc7b634c8a6eeb65855965d9dca15c33896735a /package/dropbear/Makefile
parent1006235818897c890b4d5cb47a9d78b9c7135fe9 (diff)
package/dropbear: add flavour for utmp support
Diffstat (limited to 'package/dropbear/Makefile')
-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