]>
Commit | Line | Data |
---|---|---|
678c8194 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
678c8194 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = logrotate |
32ca32bb MT |
7 | version = 3.9.1 |
8 | release = 1 | |
678c8194 | 9 | |
b1b61dee | 10 | groups = System/Base |
802ea3af MT |
11 | url = https://fedorahosted.org/releases/l/o/logrotate/ |
12 | license = GPL+ | |
13 | summary = Rotates, compresses, removes and mails system log files. | |
678c8194 | 14 | |
802ea3af | 15 | description |
32ca32bb MT |
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, | |
678c8194 | 20 | monthly or when the log file gets to a certain size. |
802ea3af MT |
21 | end |
22 | ||
32ca32bb | 23 | source_dl = https://fedorahosted.org/releases/l/o/logrotate/ |
802ea3af MT |
24 | |
25 | build | |
26 | requires | |
27 | coreutils | |
28 | gzip | |
802ea3af MT |
29 | popt-devel |
30 | which | |
31 | end | |
32 | ||
33 | build | |
32ca32bb | 34 | make RPM_OPT_FLAGS="%{CFLAGS}" %{PARALLELISMFLAGS} |
802ea3af MT |
35 | end |
36 | ||
37 | install | |
32ca32bb MT |
38 | make install BASEDIR=%{prefix} PREFIX=%{BUILDROOT} \ |
39 | MANDIR=%{mandir} | |
802ea3af | 40 | |
32ca32bb MT |
41 | mkdir -pv %{BUILDROOT}%{localstatedir} |
42 | touch %{BUILDROOT}%{localstatedir}/logrotate.status | |
802ea3af MT |
43 | |
44 | # Creating directory for config files | |
32ca32bb | 45 | mkdir -pv %{BUILDROOT}%{sysconfdir}/logrotate.d |
802ea3af MT |
46 | end |
47 | end | |
48 | ||
49 | packages | |
50 | package %{name} | |
b1b61dee | 51 | groups += Base |
802ea3af | 52 | end |
1f9bc2f0 MT |
53 | |
54 | package %{name}-debuginfo | |
55 | template DEBUGINFO | |
56 | end | |
802ea3af | 57 | end |