]>
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 MT |
6 | name = logrotate |
7 | version = 3.7.7 | |
8 | release = 2 | |
678c8194 | 9 | |
802ea3af MT |
10 | groups = Base System/Base |
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 |
678c8194 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, \ | |
20 | monthly or when the log file gets to a certain size. | |
802ea3af MT |
21 | end |
22 | ||
23 | source_dl = | |
24 | ||
25 | build | |
26 | requires | |
27 | coreutils | |
28 | gzip | |
29 | libselinux-devel | |
30 | popt-devel | |
31 | which | |
32 | end | |
33 | ||
34 | build | |
35 | make RPM_OPT_FLAGS="%{CFLAGS}" WITH_SELINUX=yes %{PARALLELISMFLAGS} | |
36 | end | |
37 | ||
38 | test | |
39 | make test | |
40 | end | |
41 | ||
42 | install | |
43 | make install BASEDIR=/usr PREFIX=%{BUILDROOT} \ | |
44 | MANDIR=/usr/share/man | |
45 | ||
46 | mkdir -pv %{BUILDROOT}/var/lib | |
47 | touch %{BUILDROOT}/var/lib/logrotate.status | |
48 | ||
49 | # Creating directory for config files | |
50 | mkdir -pv %{BUILDROOT}/etc/logrotate.d | |
51 | end | |
52 | end | |
53 | ||
54 | packages | |
55 | package %{name} | |
56 | end | |
57 | end |