diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-09-24 09:35:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 20:35:14 -0500 |
commit | 9577ed71fee52bbbd3221fa905eaf0579c1f3b5c (patch) | |
tree | bf03fee307a8b83c0ee0960c1aa64d4f30208e91 /var | |
parent | 8c3b0811475c917ca9d177b257e0d686a67c773e (diff) | |
download | spack-9577ed71fee52bbbd3221fa905eaf0579c1f3b5c.tar.gz spack-9577ed71fee52bbbd3221fa905eaf0579c1f3b5c.tar.bz2 spack-9577ed71fee52bbbd3221fa905eaf0579c1f3b5c.tar.xz spack-9577ed71fee52bbbd3221fa905eaf0579c1f3b5c.zip |
Add new package: oci-systemd-hook (#18805)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/oci-systemd-hook/package.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/oci-systemd-hook/package.py b/var/spack/repos/builtin/packages/oci-systemd-hook/package.py new file mode 100644 index 0000000000..3e45811b41 --- /dev/null +++ b/var/spack/repos/builtin/packages/oci-systemd-hook/package.py @@ -0,0 +1,36 @@ +# 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 OciSystemdHook(AutotoolsPackage): + """OCI systemd hook enables users to run systemd in docker and OCI + compatible runtimes such as runc without requiring --privileged flag.""" + + homepage = "https://github.com/projectatomic/oci-systemd-hook/" + url = "https://github.com/projectatomic/oci-systemd-hook/archive/v0.2.0.tar.gz" + + version('0.2.0', sha256='da1ce3a1fd68752fc27b8f2062daa0d273c211474841ecf14737b10031bedcf5') + version('0.1.18', sha256='c17291bf5151e972c502ec3cc9b445967823444b1f3917481eb419c9e476649e') + version('0.1.5', sha256='53f773b055928d0f3d25ccc966d0d0b3ccb4dd00e8ff71a067b105142da22763') + + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('m4', type='build') + depends_on('gettext') + depends_on('yajl') + depends_on('util-linux') + depends_on('go-md2man') + + def configure_args(self): + args = ['LDFLAGS=-lintl'] + return args + + def install(self, spec, prefix): + oci_systemd_hook_jsondir = 'oci_systemd_hook_jsondir=' + oci_systemd_hook_jsondir += '{0}/usr/share/containers/oci/hooks.d' + make('install', oci_systemd_hook_jsondir.format(prefix)) |