summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Riehecky <3534830+jcpunk@users.noreply.github.com>2021-12-21 18:55:15 -0600
committerGitHub <noreply@github.com>2021-12-21 16:55:15 -0800
commit522a7c8ee0d51f92aa8cd685f378d54735a5307e (patch)
tree08f353de6c3fc1164e0bcb4fa3f74e525fbe68b4
parent433f743074ffd8d0369c3a31dd054a7edab0ca8d (diff)
downloadspack-522a7c8ee0d51f92aa8cd685f378d54735a5307e.tar.gz
spack-522a7c8ee0d51f92aa8cd685f378d54735a5307e.tar.bz2
spack-522a7c8ee0d51f92aa8cd685f378d54735a5307e.tar.xz
spack-522a7c8ee0d51f92aa8cd685f378d54735a5307e.zip
New package: microsocks (#27859)
-rw-r--r--var/spack/repos/builtin/packages/microsocks/package.py31
1 files changed, 31 insertions, 0 deletions
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"]