{"action":"created","comment":{"url":"https://api.github.com/repos/openwrt/packages/pulls/comments/87414658","pull_request_review_id":8028160,"id":87414658,"diff_hunk":"@@ -0,0 +1,131 @@\n+#\n+# Copyright (C) 2008-2016 OpenWrt.org\n+#\n+# This is free software, licensed under the GNU General Public License v2.\n+# See /LICENSE for more information.\n+#\n+# Based on the initial porting done by el1n\n+\n+include $(TOPDIR)/rules.mk\n+\n+PKG_NAME:=softethervpn\n+PKG_VERSION:=4.21-9613\n+PKG_VERREL:=beta\n+PKG_VERDATE:=2016.04.24\n+PKG_RELEASE:=1\n+\n+PKG_SOURCE:=softether-src-v$(PKG_VERSION)-$(PKG_VERREL).tar.gz\n+PKG_SOURCE_URL:=http://www.softether-download.com/files/softether/v$(PKG_VERSION)-$(PKG_VERREL)-$(PKG_VERDATE)-tree/Source_Code/\n+PKG_MD5SUM:=928d882d5fc23e00f0a5fa4ebf292ab9\n+\n+PKG_BUILD_DIR:=$(BUILD_DIR)/v$(PKG_VERSION)\n+PKG_LICENSE:=GPL-2.0\n+PKG_LICENSE_FILES:=COPYING\n+\n+include $(INCLUDE_DIR)/nls.mk \n+include $(INCLUDE_DIR)/package.mk\n+\n+define Package/softethervpn\n+  SECTION:=net\n+  CATEGORY:=Network\n+  SUBMENU:=VPN\n+  DEPENDS:=+libpthread +librt +libreadline +libopenssl +libncurses +kmod-tun +zlib $(ICONV_DEPENDS)\n+  TITLE:=Free Cross-platform Multi-protocol VPN server and client\n+  URL:=http://www.softether.org/\n+  MAINTAINER:=Federico Di Marco <fededim@gmail.com>\n+endef\n+\n+define Package/softethervpn/description\n+SoftEther VPN (\"SoftEther\" means \"Software Ethernet\") is one of the world's most powerful and easy-to-use multi-protocol VPN software developed as an academic \n+project from University of Tsukuba, Japan. SoftEther VPN has strong compatibility to today's most popular VPN products among the world. It has the interoperability\n+with OpenVPN, L2TP, IPsec, EtherIP, L2TPv3, Cisco VPN Routers and MS-SSTP VPN Clients. SoftEther VPN is the world's only VPN software which supports SSL-VPN, \n+OpenVPN, L2TP, EtherIP, L2TPv3 and IPsec as a single VPN software. SoftEther VPN is not only an alternative VPN server to existing VPN products (OpenVPN, \n+IPsec and MS-SSTP), but has also original strong SSL-VPN protocol to penetrate any kinds of firewalls. Ultra-optimized SSL-VPN Protocol of SoftEther VPN\n+has very fast throughput, low latency and firewall resistance.\n+endef\n+\n+\n+define Package/softethervpn/conffiles\n+/usr/libexec/softethervpn/vpn_server.config\n+/usr/libexec/softethervpn/vpn_client.config\n+/usr/libexec/softethervpn/vpn_bridge.config\n+/usr/libexec/softethervpn/lang.config\n+endef\n+\n+\n+ifeq ($(CONFIG_OPENSSL_WITH_SSL3),y)\n+\tSE_FLAGS=-DSSL3_SUPPORT\n+endif\n+\n+ifeq ($(ARCH),mips)\n+\tSE_FLAGS+= -minterlink-mips16\n+endif\n+\n+ifeq ($(ARCH),mipsel)\n+\tSE_FLAGS+= -minterlink-mips16\n+endif\n+\n+\n+define Build/Configure\n+\tif [ -v CONFIG_64BIT ]; then cp $(PKG_BUILD_DIR)/src/makefiles/linux_64bit.mak $(PKG_BUILD_DIR)/Makefile; else cp $(PKG_BUILD_DIR)/src/makefiles/linux_32bit.mak $(PKG_BUILD_DIR)/Makefile; fi;\n+endef\n+\n+define Build/Compile\n+\t# Softether compiles first a tool called hamcorebuilder which is essentially an archiver. Then the compilation calls this archiver to pack all \n+\t# resource files (*.html, *.config, .txt, readme, languages) it needs to run in an archive file called hamcore.se2. The three executables are then built \n+\t# and they will have a runtime dependency on this resource archive. By default OpenWRT build process cross compiles all targets in the makefile\n+\t# generating therefore an error when the archive is generated since the executable is crosscompiled to run on the router and instead it is run\n+\t# by the build host. The workaround is to compile the archiver with the host environment, generate the hamcore.se2 archive and cross compile everything\n+\t# again without regenerating the archive.\n+\n+\t# we clean the last cross compiled version\n+\tmake -C $(PKG_BUILD_DIR) clean\n+\n+\t# we compile the hamcorebuilder utility and generate hamcore archive using host environment\n+\tmake -C $(PKG_BUILD_DIR) src/bin/BuiltHamcoreFiles/unix/hamcore.se2\n+\n+\t# we clean everything, but we save the built hamcore archive and we update its timestamp to avoid rebuilding the archive with cross compiled hamcorebuilder\n+\tmv $(PKG_BUILD_DIR)/src/bin/BuiltHamcoreFiles/unix/hamcore.se2 $(PKG_BUILD_DIR)/src/bin/BuiltHamcoreFiles/unix/hamcore.se2.1\n+\tmake -C $(PKG_BUILD_DIR) clean\n+\t\tmv $(PKG_BUILD_DIR)/src/bin/BuiltHamcoreFiles/unix/hamcore.se2.1 $(PKG_BUILD_DIR)/src/bin/BuiltHamcoreFiles/unix/hamcore.se2\n+\ttouch -d \"`date -d 1day`\" $(PKG_BUILD_DIR)/src/bin/BuiltHamcoreFiles/unix/hamcore.se2\n+\n+\tls -la $(PKG_BUILD_DIR)/src/bin/BuiltHamcoreFiles/unix\n+\n+\t# we cross compile everything from the scratch\n+\t$(MAKE) \\\n+\t\t$(TARGET_CONFIGURE_OPTS) \\\n+\t\tCCFLAGS=\"$(SE_FLAGS) -I$(STAGING_DIR)/usr/include $(ICONV_CFLAGS)\" \\\n+\t\tLDFLAGS=\"-L$(STAGING_DIR)/usr/lib $(ICONV_LDFLAGS)\" \\\n+\t\t-C $(PKG_BUILD_DIR)\n+endef\n+\n+define Package/softethervpn/install\n+\t$(INSTALL_DIR) $(1)/usr/libexec/softethervpn\n+\t$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/vpnserver/vpnserver $(1)/usr/libexec/softethervpn\n+\t$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/vpnserver/hamcore.se2 $(1)/usr/libexec/softethervpn\n+\t$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/vpnclient/vpnclient $(1)/usr/libexec/softethervpn\n+\t$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/vpnbridge/vpnbridge $(1)/usr/libexec/softethervpn\n+\t$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/vpncmd/vpncmd $(1)/usr/libexec/softethervpn\n+\t$(INSTALL_DATA) files/dummy $(1)/usr/libexec/softethervpn/vpn_server.config\n+\t$(INSTALL_DATA) files/dummy $(1)/usr/libexec/softethervpn/vpn_bridge.config\n+\t$(INSTALL_DATA) files/dummy $(1)/usr/libexec/softethervpn/vpn_client.config\n+\t$(INSTALL_DATA) files/dummy $(1)/usr/libexec/softethervpn/lang.config\n+\n+\t$(INSTALL_DIR) $(1)/usr/bin\n+\n+\t# we can't use links because each command tries to load hamcore.se2 from the directory of the linked command (/usr/bin) and not from\n+\t# /usr/libexec/softether hence they all fail to start","path":"net/softethervpn/Makefile","position":null,"original_position":118,"commit_id":"75fcb14dc0c8cff237f33e0756b58aca6a1ff9e7","original_commit_id":"d89312b9931e61144aaaee00958e81b1e0531623","user":{"login":"fededim","id":8364158,"avatar_url":"https://avatars.githubusercontent.com/u/8364158?v=3","gravatar_id":"","url":"https://api.github.com/users/fededim","html_url":"https://github.com/fededim","followers_url":"https://api.github.com/users/fededim/followers","following_url":"https://api.github.com/users/fededim/following{/other_user}","gists_url":"https://api.github.com/users/fededim/gists{/gist_id}","starred_url":"https://api.github.com/users/fededim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fededim/subscriptions","organizations_url":"https://api.github.com/users/fededim/orgs","repos_url":"https://api.github.com/users/fededim/repos","events_url":"https://api.github.com/users/fededim/events{/privacy}","received_events_url":"https://api.github.com/users/fededim/received_events","type":"User","site_admin":false},"body":"Done, first version works fine.","created_at":"2016-11-10T15:18:30Z","updated_at":"2016-11-10T15:18:30Z","html_url":"https://github.com/openwrt/packages/pull/3498#discussion_r87414658","pull_request_url":"https://api.github.com/repos/openwrt/packages/pulls/3498","_links":{"self":{"href":"https://api.github.com/repos/openwrt/packages/pulls/comments/87414658"},"html":{"href":"https://github.com/openwrt/packages/pull/3498#discussion_r87414658"},"pull_request":{"href":"https://api.github.com/repos/openwrt/packages/pulls/3498"}}},"pull_request":{"url":"https://api.github.com/repos/openwrt/packages/pulls/3498","id":92897507,"html_url":"https://github.com/openwrt/packages/pull/3498","diff_url":"https://github.com/openwrt/packages/pull/3498.diff","patch_url":"https://github.com/openwrt/packages/pull/3498.patch","issue_url":"https://api.github.com/repos/openwrt/packages/issues/3498","number":3498,"state":"open","locked":false,"title":"softethervpn: added new package 4.21-9613","user":{"login":"fededim","id":8364158,"avatar_url":"https://avatars.githubusercontent.com/u/8364158?v=3","gravatar_id":"","url":"https://api.github.com/users/fededim","html_url":"https://github.com/fededim","followers_url":"https://api.github.com/users/fededim/followers","following_url":"https://api.github.com/users/fededim/following{/other_user}","gists_url":"https://api.github.com/users/fededim/gists{/gist_id}","starred_url":"https://api.github.com/users/fededim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fededim/subscriptions","organizations_url":"https://api.github.com/users/fededim/orgs","repos_url":"https://api.github.com/users/fededim/repos","events_url":"https://api.github.com/users/fededim/events{/privacy}","received_events_url":"https://api.github.com/users/fededim/received_events","type":"User","site_admin":false},"body":"- based on the work done by el1n with his authorization (https://github.com/el1n/OpenWRT-package-softether)\r\n- updated softethervpn to latest version\r\n- introduced necessary patches for lede compatibility (nossl3)\r\n\r\nCompile tested: ar71xx, ramips\r\nRun tested: ramips\r\n\r\nSigned-Off-by: Federico Di Marco <fededim@gmail.com>","created_at":"2016-11-09T02:39:33Z","updated_at":"2016-11-10T15:18:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3aa22c9c58f4c1d343c3689b422a20220ea5666e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openwrt/packages/pulls/3498/commits","review_comments_url":"https://api.github.com/repos/openwrt/packages/pulls/3498/comments","review_comment_url":"https://api.github.com/repos/openwrt/packages/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openwrt/packages/issues/3498/comments","statuses_url":"https://api.github.com/repos/openwrt/packages/statuses/75fcb14dc0c8cff237f33e0756b58aca6a1ff9e7","head":{"label":"fededim:master","ref":"master","sha":"75fcb14dc0c8cff237f33e0756b58aca6a1ff9e7","user":{"login":"fededim","id":8364158,"avatar_url":"https://avatars.githubusercontent.com/u/8364158?v=3","gravatar_id":"","url":"https://api.github.com/users/fededim","html_url":"https://github.com/fededim","followers_url":"https://api.github.com/users/fededim/followers","following_url":"https://api.github.com/users/fededim/following{/other_user}","gists_url":"https://api.github.com/users/fededim/gists{/gist_id}","starred_url":"https://api.github.com/users/fededim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fededim/subscriptions","organizations_url":"https://api.github.com/users/fededim/orgs","repos_url":"https://api.github.com/users/fededim/repos","events_url":"https://api.github.com/users/fededim/events{/privacy}","received_events_url":"https://api.github.com/users/fededim/received_events","type":"User","site_admin":false},"repo":{"id":22647513,"name":"packages","full_name":"fededim/packages","owner":{"login":"fededim","id":8364158,"avatar_url":"https://avatars.githubusercontent.com/u/8364158?v=3","gravatar_id":"","url":"https://api.github.com/users/fededim","html_url":"https://github.com/fededim","followers_url":"https://api.github.com/users/fededim/followers","following_url":"https://api.github.com/users/fededim/following{/other_user}","gists_url":"https://api.github.com/users/fededim/gists{/gist_id}","starred_url":"https://api.github.com/users/fededim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fededim/subscriptions","organizations_url":"https://api.github.com/users/fededim/orgs","repos_url":"https://api.github.com/users/fededim/repos","events_url":"https://api.github.com/users/fededim/events{/privacy}","received_events_url":"https://api.github.com/users/fededim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fededim/packages","description":"Packages Repository","fork":true,"url":"https://api.github.com/repos/fededim/packages","forks_url":"https://api.github.com/repos/fededim/packages/forks","keys_url":"https://api.github.com/repos/fededim/packages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fededim/packages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fededim/packages/teams","hooks_url":"https://api.github.com/repos/fededim/packages/hooks","issue_events_url":"https://api.github.com/repos/fededim/packages/issues/events{/number}","events_url":"https://api.github.com/repos/fededim/packages/events","assignees_url":"https://api.github.com/repos/fededim/packages/assignees{/user}","branches_url":"https://api.github.com/repos/fededim/packages/branches{/branch}","tags_url":"https://api.github.com/repos/fededim/packages/tags","blobs_url":"https://api.github.com/repos/fededim/packages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fededim/packages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fededim/packages/git/refs{/sha}","trees_url":"https://api.github.com/repos/fededim/packages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fededim/packages/statuses/{sha}","languages_url":"https://api.github.com/repos/fededim/packages/languages","stargazers_url":"https://api.github.com/repos/fededim/packages/stargazers","contributors_url":"https://api.github.com/repos/fededim/packages/contributors","subscribers_url":"https://api.github.com/repos/fededim/packages/subscribers","subscription_url":"https://api.github.com/repos/fededim/packages/subscription","commits_url":"https://api.github.com/repos/fededim/packages/commits{/sha}","git_commits_url":"https://api.github.com/repos/fededim/packages/git/commits{/sha}","comments_url":"https://api.github.com/repos/fededim/packages/comments{/number}","issue_comment_url":"https://api.github.com/repos/fededim/packages/issues/comments{/number}","contents_url":"https://api.github.com/repos/fededim/packages/contents/{+path}","compare_url":"https://api.github.com/repos/fededim/packages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fededim/packages/merges","archive_url":"https://api.github.com/repos/fededim/packages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fededim/packages/downloads","issues_url":"https://api.github.com/repos/fededim/packages/issues{/number}","pulls_url":"https://api.github.com/repos/fededim/packages/pulls{/number}","milestones_url":"https://api.github.com/repos/fededim/packages/milestones{/number}","notifications_url":"https://api.github.com/repos/fededim/packages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fededim/packages/labels{/name}","releases_url":"https://api.github.com/repos/fededim/packages/releases{/id}","deployments_url":"https://api.github.com/repos/fededim/packages/deployments","created_at":"2014-08-05T14:54:25Z","updated_at":"2016-04-12T23:50:12Z","pushed_at":"2016-11-10T15:16:05Z","git_url":"git://github.com/fededim/packages.git","ssh_url":"git@github.com:fededim/packages.git","clone_url":"https://github.com/fededim/packages.git","svn_url":"https://github.com/fededim/packages","homepage":null,"size":11033,"stargazers_count":0,"watchers_count":0,"language":"Makefile","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openwrt:master","ref":"master","sha":"450101bea226e09791e582ac4912d4ae52af58ef","user":{"login":"openwrt","id":2528830,"avatar_url":"https://avatars.githubusercontent.com/u/2528830?v=3","gravatar_id":"","url":"https://api.github.com/users/openwrt","html_url":"https://github.com/openwrt","followers_url":"https://api.github.com/users/openwrt/followers","following_url":"https://api.github.com/users/openwrt/following{/other_user}","gists_url":"https://api.github.com/users/openwrt/gists{/gist_id}","starred_url":"https://api.github.com/users/openwrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwrt/subscriptions","organizations_url":"https://api.github.com/users/openwrt/orgs","repos_url":"https://api.github.com/users/openwrt/repos","events_url":"https://api.github.com/users/openwrt/events{/privacy}","received_events_url":"https://api.github.com/users/openwrt/received_events","type":"Organization","site_admin":false},"repo":{"id":20307838,"name":"packages","full_name":"openwrt/packages","owner":{"login":"openwrt","id":2528830,"avatar_url":"https://avatars.githubusercontent.com/u/2528830?v=3","gravatar_id":"","url":"https://api.github.com/users/openwrt","html_url":"https://github.com/openwrt","followers_url":"https://api.github.com/users/openwrt/followers","following_url":"https://api.github.com/users/openwrt/following{/other_user}","gists_url":"https://api.github.com/users/openwrt/gists{/gist_id}","starred_url":"https://api.github.com/users/openwrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwrt/subscriptions","organizations_url":"https://api.github.com/users/openwrt/orgs","repos_url":"https://api.github.com/users/openwrt/repos","events_url":"https://api.github.com/users/openwrt/events{/privacy}","received_events_url":"https://api.github.com/users/openwrt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openwrt/packages","description":"Packages Repository","fork":false,"url":"https://api.github.com/repos/openwrt/packages","forks_url":"https://api.github.com/repos/openwrt/packages/forks","keys_url":"https://api.github.com/repos/openwrt/packages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openwrt/packages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openwrt/packages/teams","hooks_url":"https://api.github.com/repos/openwrt/packages/hooks","issue_events_url":"https://api.github.com/repos/openwrt/packages/issues/events{/number}","events_url":"https://api.github.com/repos/openwrt/packages/events","assignees_url":"https://api.github.com/repos/openwrt/packages/assignees{/user}","branches_url":"https://api.github.com/repos/openwrt/packages/branches{/branch}","tags_url":"https://api.github.com/repos/openwrt/packages/tags","blobs_url":"https://api.github.com/repos/openwrt/packages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openwrt/packages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openwrt/packages/git/refs{/sha}","trees_url":"https://api.github.com/repos/openwrt/packages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openwrt/packages/statuses/{sha}","languages_url":"https://api.github.com/repos/openwrt/packages/languages","stargazers_url":"https://api.github.com/repos/openwrt/packages/stargazers","contributors_url":"https://api.github.com/repos/openwrt/packages/contributors","subscribers_url":"https://api.github.com/repos/openwrt/packages/subscribers","subscription_url":"https://api.github.com/repos/openwrt/packages/subscription","commits_url":"https://api.github.com/repos/openwrt/packages/commits{/sha}","git_commits_url":"https://api.github.com/repos/openwrt/packages/git/commits{/sha}","comments_url":"https://api.github.com/repos/openwrt/packages/comments{/number}","issue_comment_url":"https://api.github.com/repos/openwrt/packages/issues/comments{/number}","contents_url":"https://api.github.com/repos/openwrt/packages/contents/{+path}","compare_url":"https://api.github.com/repos/openwrt/packages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openwrt/packages/merges","archive_url":"https://api.github.com/repos/openwrt/packages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openwrt/packages/downloads","issues_url":"https://api.github.com/repos/openwrt/packages/issues{/number}","pulls_url":"https://api.github.com/repos/openwrt/packages/pulls{/number}","milestones_url":"https://api.github.com/repos/openwrt/packages/milestones{/number}","notifications_url":"https://api.github.com/repos/openwrt/packages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openwrt/packages/labels{/name}","releases_url":"https://api.github.com/repos/openwrt/packages/releases{/id}","deployments_url":"https://api.github.com/repos/openwrt/packages/deployments","created_at":"2014-05-29T20:43:16Z","updated_at":"2016-11-10T11:26:42Z","pushed_at":"2016-11-10T15:16:05Z","git_url":"git://github.com/openwrt/packages.git","ssh_url":"git@github.com:openwrt/packages.git","clone_url":"https://github.com/openwrt/packages.git","svn_url":"https://github.com/openwrt/packages","homepage":null,"size":17665,"stargazers_count":771,"watchers_count":771,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":812,"mirror_url":null,"open_issues_count":224,"forks":812,"open_issues":224,"watchers":771,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openwrt/packages/pulls/3498"},"html":{"href":"https://github.com/openwrt/packages/pull/3498"},"issue":{"href":"https://api.github.com/repos/openwrt/packages/issues/3498"},"comments":{"href":"https://api.github.com/repos/openwrt/packages/issues/3498/comments"},"review_comments":{"href":"https://api.github.com/repos/openwrt/packages/pulls/3498/comments"},"review_comment":{"href":"https://api.github.com/repos/openwrt/packages/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openwrt/packages/pulls/3498/commits"},"statuses":{"href":"https://api.github.com/repos/openwrt/packages/statuses/75fcb14dc0c8cff237f33e0756b58aca6a1ff9e7"}}}}
{"actor":{"display_login":"fededim"}}