Browse Source

upgrading package: ghostunnel 1.2.2 -> 1.4.0.20190418

master
parent
commit
a08933b24c
  1. 23
      ghostunnel/ghostunnel.spec

23
ghostunnel/ghostunnel.spec

@ -21,6 +21,10 @@
## SUCH DAMAGE.
##
# package information
%define V_ghostunnel_base 1.4.0
%define V_ghostunnel_snap 20190418
# package information
Name: ghostunnel
Summary: TLS Proxy Client/Server
@ -31,11 +35,11 @@ Distribution: OpenPKG Community
Class: EVAL
Group: Cryptography
License: Apache
Version: 1.2.2
Release: 20180906
Version: %{V_ghostunnel_base}.%{V_ghostunnel_snap}
Release: 20190418
# list of sources
Source0: https://github.com/square/ghostunnel/archive/v%{version}.tar.gz
Source0: http://download.openpkg.org/components/versioned/ghostunnel/ghostunnel-%{V_ghostunnel_snap}.tar.xz
# build information
BuildPreReq: OpenPKG, openpkg >= 20160101, go
@ -50,24 +54,25 @@ PreReq: OpenPKG, openpkg >= 20160101
a TCP domain/port or a UNIX domain socket. Ghostunnel in client
mode accepts (insecure) connections through a TCP or UNIX domain
socket and proxies them to a TLS-secured service. In other words,
ghostunnel is a replacement for stunnel.
ghostunnel(1) is a replacement for stunnel(1).
%track
prog ghostunnel = {
version = %{version}
version = %{V_ghostunnel_base}
url = https://github.com/square/ghostunnel/releases
regex = v(__VER__)\.tar\.gz
}
%prep
%setup -q
%setup -q -n ghostunnel
%build
# build program
export GOPATH=`pwd`
mkdir -p $GOPATH/src/github.com/square
ln -s ../../.. $GOPATH/src/github.com/square/ghostunnel
go build -x -o ghostunnel github.com/square/ghostunnel
go build -v \
-ldflags '-X main.version=%{version}' \
-o ghostunnel \
github.com/square/ghostunnel
%install
# install program

Loading…
Cancel
Save