diff options
| author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2014-10-04 23:44:58 +0200 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-03-08 15:53:12 +0100 |
| commit | 6aa6a84de0c08da282c443c7688409ce3c1a0edf (patch) | |
| tree | 5599b5291399c8d6f657a3c807a1b7c1631e1275 /package/softether/softether.mk | |
| parent | 063ff25f6aeb626da03c49d5216bdd3c6b4f0482 (diff) | |
| download | buildroot-6aa6a84de0c08da282c443c7688409ce3c1a0edf.tar.gz buildroot-6aa6a84de0c08da282c443c7688409ce3c1a0edf.zip | |
package/softether: New package
Package description was copied from
https://launchpad.net/~dajhorn/+archive/ubuntu/softether/
[Thomas:
- reorganize patches by pulling the two biggest patches from Github,
and only having the remaining patches in Buildroot.
- use a full destination path when installing hamcorebuilder in
$(HOST_DIR)/usr/bin.
- minor reformatting.]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/softether/softether.mk')
| -rw-r--r-- | package/softether/softether.mk | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/package/softether/softether.mk b/package/softether/softether.mk new file mode 100644 index 0000000000..7f2dfb8997 --- /dev/null +++ b/package/softether/softether.mk @@ -0,0 +1,42 @@ +################################################################################ +# +# softether +# +################################################################################ + +SOFTETHER_VERSION = 16b713b98da8dba29f0f845d5a8c36d6f7c34824 +SOFTETHER_SITE = $(call github,SoftEtherVPN,SoftEtherVPN,$(SOFTETHER_VERSION)) +SOFTETHER_PATCH = \ + https://github.com/dajhorn/SoftEtherVPN/commit/c5e5d7e93c6f3302adf5821c29c4efdb7630e418.patch \ + https://github.com/dajhorn/SoftEtherVPN/commit/75625af541fd128f51079d0ffe5ef24645b8f421.patch +SOFTETHER_LICENSE = GPLv2 +SOFTETHER_LICENSE_FILES = LICENSE +SOFTETHER_DEPENDENCIES = host-softether openssl readline +SOFTETHER_AUTORECONF = YES + +ifeq ($(BR2_ENABLE_LOCALE),) +SOFTETHER_DEPENDENCIES += libiconv +SOFTETHER_CONF_ENV = LIBS="-liconv" +endif + +SOFTETHER_CONF_OPTS = \ + --with-openssl="$(STAGING_DIR)/usr" \ + --with-zlib="$(STAGING_DIR)/usr" + +# host-libiconv does not exist, therefore we need this extra line +HOST_SOFTETHER_DEPENDENCIES = host-pkgconf host-openssl host-readline + +# target build creates the file hamcore.se2 which needs the host variant of +# hamcorebuilder, for details see http://www.vpnusers.com/viewtopic.php?p=5426 +define HOST_SOFTETHER_BUILD_CMDS + $(MAKE) -C $(@D)/src/Mayaqua + $(MAKE) -C $(@D)/src/Cedar + $(MAKE) -C $(@D)/src/hamcorebuilder +endef + +define HOST_SOFTETHER_INSTALL_CMDS + $(INSTALL) -m 0755 $(@D)/src/hamcorebuilder/hamcorebuilder $(HOST_DIR)/usr/bin/hamcorebuilder +endef + +$(eval $(autotools-package)) +$(eval $(host-autotools-package)) |

