summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <darmac@163.com>2019-11-27 02:19:16 +0800
committerAdam J. Stewart <ajstewart426@gmail.com>2019-11-26 12:19:16 -0600
commitb75f2e2c24794e954d36f102a4163e46e78742e0 (patch)
tree240d3ca9d43390e52590210736267d2015b8d1f3 /var
parent327de3b3d4b018c5c5732766aac62cc827744e56 (diff)
downloadspack-b75f2e2c24794e954d36f102a4163e46e78742e0.tar.gz
spack-b75f2e2c24794e954d36f102a4163e46e78742e0.tar.bz2
spack-b75f2e2c24794e954d36f102a4163e46e78742e0.tar.xz
spack-b75f2e2c24794e954d36f102a4163e46e78742e0.zip
add new package : busybox@1.31.1 (#13871)
* add new package : busybox@1.31.1 * 1. add some other version for busybox 2. change Busybox class to MakefilePackage 3. move make('defconfig') and make() to build() function 4. change install_tree('', prefix) to install_tree('.', prefix)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/busybox/package.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/busybox/package.py b/var/spack/repos/builtin/packages/busybox/package.py
new file mode 100644
index 0000000000..1a8ee240b9
--- /dev/null
+++ b/var/spack/repos/builtin/packages/busybox/package.py
@@ -0,0 +1,28 @@
+# Copyright 2013-2019 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 Busybox(MakefilePackage):
+ """BusyBox combines tiny versions of many common UNIX utilities into
+ a single small executable. It provides replacements for most of
+ the utilities you usually find in GNU fileutils, shellutils, etc"""
+
+ homepage = "https://busybox.net"
+ url = "https://busybox.net/downloads/busybox-1.31.0.tar.bz2"
+
+ version('1.31.1', sha256='d0f940a72f648943c1f2211e0e3117387c31d765137d92bd8284a3fb9752a998')
+ version('1.31.0', sha256='0e4925392fd9f3743cc517e031b68b012b24a63b0cf6c1ff03cce7bb3846cc99')
+ version('1.30.1', sha256='3d1d04a4dbd34048f4794815a5c48ebb9eb53c5277e09ffffc060323b95dfbdc')
+ version('1.30.0', sha256='9553da068c0a30b1b8b72479908c1ba58672e2be7b535363a88de5e0f7bc04ce')
+
+ def build(self, spec, prefix):
+ make('defconfig')
+ make()
+
+ def install(self, spec, prefix):
+ make('install')
+ install_tree('.', prefix)