]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - logrotate/logrotate.nm
kernel: update to 4.12.10
[people/arne_f/ipfire-3.x.git] / logrotate / logrotate.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = logrotate
7 version = 3.9.1
8 release = 1
9
10 groups = System/Base
11 url = https://fedorahosted.org/releases/l/o/logrotate/
12 license = GPL+
13 summary = Rotates, compresses, removes and mails system log files.
14
15 description
16 The logrotate utility is designed to simplify the administration of
17 log files on a system which generates a lot of log files. Logrotate
18 allows for the automatic rotation compression, removal and mailing of
19 log files. Logrotate can be set to handle a log file daily, weekly,
20 monthly or when the log file gets to a certain size.
21 end
22
23 source_dl = https://fedorahosted.org/releases/l/o/logrotate/
24
25 build
26 requires
27 coreutils
28 gzip
29 popt-devel
30 which
31 end
32
33 build
34 make RPM_OPT_FLAGS="%{CFLAGS}" %{PARALLELISMFLAGS}
35 end
36
37 install
38 make install BASEDIR=%{prefix} PREFIX=%{BUILDROOT} \
39 MANDIR=%{mandir}
40
41 mkdir -pv %{BUILDROOT}%{localstatedir}
42 touch %{BUILDROOT}%{localstatedir}/logrotate.status
43
44 # Creating directory for config files
45 mkdir -pv %{BUILDROOT}%{sysconfdir}/logrotate.d
46 end
47 end
48
49 packages
50 package %{name}
51 groups += Base
52 end
53
54 package %{name}-debuginfo
55 template DEBUGINFO
56 end
57 end