summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/logrotate/package.py28
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)