Browse Source

Merge pull request #111 from equinox0815/uanytun-gcrypt

reenabled libgcrypt and make it the default again
lilik-openwrt-22.03
sbyx 10 years ago
parent
commit
f94dce1ab4
1 changed files with 24 additions and 3 deletions
  1. +24
    -3
      net/uanytun/Makefile

+ 24
- 3
net/uanytun/Makefile View 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))

Loading…
Cancel
Save