diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-09-24 09:43:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 20:43:29 -0500 |
commit | 28c6f1ddc23ee170522b1225bbf60f9b1d244189 (patch) | |
tree | 10e9e6ef922f8029b2e638a5e462a565e2cf600e /var/spack/repos/builtin/packages/logrotate | |
parent | 4a2b56122c7d5a755bc593226916c59cd1114ea5 (diff) | |
download | spack-28c6f1ddc23ee170522b1225bbf60f9b1d244189.tar.gz spack-28c6f1ddc23ee170522b1225bbf60f9b1d244189.tar.bz2 spack-28c6f1ddc23ee170522b1225bbf60f9b1d244189.tar.xz spack-28c6f1ddc23ee170522b1225bbf60f9b1d244189.zip |
Add new package: logrotate (#18786)
Diffstat (limited to 'var/spack/repos/builtin/packages/logrotate')
-rw-r--r-- | var/spack/repos/builtin/packages/logrotate/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/logrotate/package.py b/var/spack/repos/builtin/packages/logrotate/package.py new file mode 100644 index 0000000000..0416a5f8a5 --- /dev/null +++ b/var/spack/repos/builtin/packages/logrotate/package.py @@ -0,0 +1,28 @@ +# 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 Logrotate(AutotoolsPackage): + """The logrotate utility is designed to simplify the administration of + log files on a system which generates a lot of log files. """ + + homepage = "https://github.com/logrotate/logrotate" + url = "https://github.com/logrotate/logrotate/archive/3.17.0.tar.gz" + + version('3.17.0', sha256='c25ea219018b024988b791e91e9f6070c34d2056efa6ffed878067866c0ed765') + version('3.16.0', sha256='bc6acfd09925045d48b5ff553c24c567cfd5f59d513c4ac34bfb51fa6b79dc8a') + version('3.15.1', sha256='a7b20f5184c9598c36546f9200d3bd616d561478a0423ab8074e97a1cd7b1c25') + + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('m4', type='build') + depends_on('popt') + depends_on('acl') + + def setup_run_environment(self, env): + env.prepend_path('PATH', self.prefix.sbin) |