define Package/uanytun
$(call Package/uanytun/template)
- TITLE+= (nettle)
- VARIANT:=nettle
- DEPENDS+=+libnettle
+ TITLE+= (gcrypt)
+ VARIANT:=gcrypt
+ DEPENDS+=+libgcrypt
endef
define Package/uanytun/conffiles
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)
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
$(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
$(eval $(call BuildPackage,uanytun))
+$(eval $(call BuildPackage,uanytun-nettle))
$(eval $(call BuildPackage,uanytun-sslcrypt))
$(eval $(call BuildPackage,uanytun-nocrypt))