reenabled libgcrypt and make it the default again 111/head
authorChristian Pointner <equinox@spreadspace.org>
Mon, 21 Jul 2014 21:25:52 +0000 (23:25 +0200)
committerChristian Pointner <equinox@spreadspace.org>
Mon, 21 Jul 2014 22:17:44 +0000 (00:17 +0200)
Signed-off-by: Christian Pointner <equinox@spreadspace.org>
net/uanytun/Makefile

index 7643a1f693d83fef171773661af35f2eb1583e87..dbb3dc19f2859a39f1a62308c2388480a57e0b5b 100644 (file)
@@ -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))