summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-08-29 12:06:04 +0800
committerGitHub <noreply@github.com>2020-08-28 23:06:04 -0500
commit654f52bc080e7d3a86eb4dbb359a6c34ce21dacb (patch)
tree448df7c67c67f24b0e974387db033f8bca85dd90
parenta206d2aebd5ae6f084377b4b7f2261a83afe4e70 (diff)
downloadspack-654f52bc080e7d3a86eb4dbb359a6c34ce21dacb.tar.gz
spack-654f52bc080e7d3a86eb4dbb359a6c34ce21dacb.tar.bz2
spack-654f52bc080e7d3a86eb4dbb359a6c34ce21dacb.tar.xz
spack-654f52bc080e7d3a86eb4dbb359a6c34ce21dacb.zip
Add new package: rinetd (#18303)
-rw-r--r--var/spack/repos/builtin/packages/rinetd/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rinetd/package.py b/var/spack/repos/builtin/packages/rinetd/package.py
new file mode 100644
index 0000000000..bc02248539
--- /dev/null
+++ b/var/spack/repos/builtin/packages/rinetd/package.py
@@ -0,0 +1,27 @@
+# Copyright 2013-2020 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 Rinetd(AutotoolsPackage):
+ """This program is used to efficiently redirect connections
+ from one IP address/port combination to another."""
+
+ homepage = "https://github.com/samhocevar/rinetd"
+ url = "https://github.com/samhocevar/rinetd/archive/v0.70.tar.gz"
+
+ version('0.70', sha256='e69538e9d1fdc1ba5cc24733a52c571568e9cad0876c09144aa1eaa71e13fba5')
+ version('0.63', sha256='1f0e8cda524b8f4811a876e69e16d11f12c33a63d00b55c66e2129f87444000c')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+
+ def setup_run_environment(self, env):
+ env.prepend_path('PATH', self.prefix.sbin)
+
+ def autoreconf(self, spec, prefix):
+ bash = which('bash')
+ bash('./bootstrap')