source "package/nettle/Config.in"
source "package/openssl/Config.in"
source "package/polarssl/Config.in"
+ source "package/trousers/Config.in"
endmenu
menu "Database"
--- /dev/null
+config BR2_PACKAGE_TROUSERS
+ bool "trousers"
+ select BR2_PACKAGE_OPENSSL
+ select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ # doesn't build properly in static only configurations
+ depends on !BR2_STATIC_LIBS
+ help
+ The open-source TCG Software Stack (TSS).
+
+ This library enables the use of a Trusted Platform Module that
+ complies with the TPM specification, version 1.2. It implements the
+ TSS specification, version 1.2.
+
+ http://trousers.sourceforge.net/
+
+comment "trousers needs a toolchain w/ threads, dynamic library"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
--- /dev/null
+# http://sourceforge.net/projects/trousers/files/trousers/0.3.13/
+sha1 d23f1a3df4febffc4174f5cca7d1c54230477bb2 trousers-0.3.13.tar.gz
+md5 ad508f97b406f6e48cd90e85d78e7ca8 trousers-0.3.13.tar.gz
--- /dev/null
+#############################################################
+#
+# trousers
+#
+##############################################################
+
+TROUSERS_VERSION = 0.3.13
+TROUSERS_SOURCE = trousers-$(TROUSERS_VERSION).tar.gz
+TROUSERS_SITE = http://downloads.sourceforge.net/project/trousers/trousers/$(TROUSERS_VERSION)
+TROUSERS_LICENSE = BSD-3c
+TROUSERS_LICENSE_FILES = LICENSE
+TROUSERS_INSTALL_STAGING = YES
+TROUSERS_DEPENDENCIES = openssl
+
+ifeq ($(BR2_PACKAGE_LIBICONV),y)
+TROUSERS_DEPENDENCIES += libiconv
+endif
+
+# The TrouSerS build system attempts to create the tss user and group
+# on the host system. Disable the user checking feature as a
+# workaround.
+TROUSERS_CONF_OPTS += --disable-usercheck
+
+$(eval $(autotools-package))