diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-07-21 23:25:52 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-07-22 00:17:44 +0200 |
commit | 45d4c1b288fc8125d9ce81525a87224ada5bb613 (patch) | |
tree | cd772eca03b635eea83f7acfaffd5ed0ae83cd2e | |
parent | 65718af1fcb19d6b506b4e3b2882b2cee5265e7e (diff) |
reenabled libgcrypt and make it the default again
Signed-off-by: Christian Pointner <equinox@spreadspace.org>
-rw-r--r-- | net/uanytun/Makefile | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/net/uanytun/Makefile b/net/uanytun/Makefile index 7643a1f69..dbb3dc19f 100644 --- a/net/uanytun/Makefile +++ b/net/uanytun/Makefile @@ -37,9 +37,9 @@ endef define Package/uanytun $(call Package/uanytun/template) - TITLE+= (nettle) - VARIANT:=nettle - DEPENDS+=+libnettle + TITLE+= (gcrypt) + VARIANT:=gcrypt + DEPENDS+=+libgcrypt endef define Package/uanytun/conffiles @@ -61,6 +61,17 @@ uAnytun is a tiny implementation of SATP the secure anycast tunneling protocol. endef +define Package/uanytun-nettle + $(call Package/uanytun/template) + TITLE+= (nettle) + VARIANT:=nettle + DEPENDS+=+libnettle +endef + +Package/uanytun-nettle/conffiles=$(Package/uanytun/conffiles) +Package/uanytun-nettle/description=$(Package/uanytun/description) + + define Package/uanytun-sslcrypt $(call Package/uanytun/template) TITLE+= (openssl) @@ -101,6 +112,11 @@ VARIANT_CFLAGS:= VARIANT_LDFLAGS:=-ldl VARIANT_MAKE_OPTS:= +ifeq ($(BUILD_VARIANT),gcrypt) +VARIANT_CFLAGS+=-DUSE_GCRYPT +VARIANT_LDFLAGS+=-lgpg-error -lgcrypt +endif + ifeq ($(BUILD_VARIANT),nettle) VARIANT_CFLAGS+=-DUSE_NETTLE VARIANT_LDFLAGS+=-lnettle @@ -140,6 +156,10 @@ define Package/uanytun/install $(call Package/uanytun/install-generic,$(1),uanytun.config) endef +define Package/uanytun-nettle/install + $(call Package/uanytun/install-generic,$(1),uanytun.config) +endef + define Package/uanytun-sslcrypt/install $(call Package/uanytun/install-generic,$(1),uanytun.config) endef @@ -150,5 +170,6 @@ endef $(eval $(call BuildPackage,uanytun)) +$(eval $(call BuildPackage,uanytun-nettle)) $(eval $(call BuildPackage,uanytun-sslcrypt)) $(eval $(call BuildPackage,uanytun-nocrypt)) |