From 522a7c8ee0d51f92aa8cd685f378d54735a5307e Mon Sep 17 00:00:00 2001 From: Pat Riehecky <3534830+jcpunk@users.noreply.github.com> Date: Tue, 21 Dec 2021 18:55:15 -0600 Subject: New package: microsocks (#27859) --- .../repos/builtin/packages/microsocks/package.py | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 var/spack/repos/builtin/packages/microsocks/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/microsocks/package.py b/var/spack/repos/builtin/packages/microsocks/package.py new file mode 100644 index 0000000000..16fd83dbc0 --- /dev/null +++ b/var/spack/repos/builtin/packages/microsocks/package.py @@ -0,0 +1,31 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Microsocks(MakefilePackage): + """Microsocks is a multithreaded, small, efficient SOCKS5 server. + It is a SOCKS5 service that you can run on your remote boxes to + tunnel connections through them, if for some reason SSH doesn't + cut it for you.""" + + homepage = "https://github.com/rofl0r/microsocks" + url = "https://github.com/rofl0r/microsocks/archive/refs/tags/v1.0.2.tar.gz" + git = "https://github.com/rofl0r/microsocks.git" + + maintainers = ["jcpunk"] + + version("develop", branch="master") + version("1.0.2", sha256="5ece77c283e71f73b9530da46302fdb4f72a0ae139aa734c07fe532407a6211a") + + def flag_handler(self, name, flags): + if name == "cflags": + flags.append(self.compiler.c99_flag) + return (flags, None, None) + + @property + def install_targets(self): + return ["prefix={0}".format(self.prefix), "install"] -- cgit v1.2.3-60-g2f50