27 lines
881 B
Python
27 lines
881 B
Python
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class ConnectProxy(MakefilePackage):
|
|
"""`connect.c` is a simple relaying command to make network connection
|
|
via SOCKS and https proxy. The original docs are https://bitbucket.org/gotoh/connect
|
|
are now 404, so the manpage is provided instead.
|
|
"""
|
|
|
|
homepage = "https://manpages.debian.org/testing/connect-proxy/connect-proxy.1.en.html"
|
|
url = "https://bitbucket.org/gotoh/connect/get/1.105.tar.bz2"
|
|
|
|
version("1.105", sha256="07366026b1f81044ecd8da9b5b5b51321327ecdf6ba23576271a311bbd69d403")
|
|
|
|
depends_on("c", type="build")
|
|
|
|
def build(self, spec, prefix):
|
|
make("CC={0}".format(spack_cc))
|
|
|
|
def install(self, spec, prefix):
|
|
mkdir(prefix.bin)
|
|
install("connect", prefix.bin)
|