New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

root/trunk/dports/sysutils/logrotate/Portfile

Revision 51023, 1.4 KB (checked in by markd@…, 7 weeks ago)

Linted.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1# $Id$
2
3PortSystem      1.0
4
5name                            logrotate
6version                         3.7.1
7revision                        2
8categories                      sysutils
9maintainers                     markd
10platforms                       darwin
11
12description                     Rotates, compresses, and mails system logs
13
14long_description                The logrotate utility simplifies the administration of log \
15                                files.  It provides automatic logfile rotation, compression, \
16                                removal, and mailing.
17
18distname                        ${name}_${version}.orig
19worksrcdir                      ${name}-${version}
20
21homepage                        http://packages.debian.org/stable/admin/logrotate
22
23master_sites                    http://ftp.debian.org/debian/pool/main/l/logrotate
24checksums                       ${distname}${extract.suffix} md5 552639142e163745f6bcd4f1f3816d8a \
25                                        logrotate_${version}-3.diff.gz md5 7b0dd9835339bbf85f106d4adb25cf0c
26
27patch_sites                     http://ftp.debian.org/debian/pool/main/l/logrotate/
28patchfiles                      logrotate_${version}-3.diff.gz
29
30depends_build                   port:popt \
31                                port:gzip
32
33use_configure                   no
34
35build.args                      POPT_DIR=${prefix}/include LDFLAGS="-L${prefix}/lib -lpopt"
36
37post-patch {
38        reinplace "s|\"/bin/gzip\"|\"${prefix}/bin/gzip\"|g" \
39                ${worksrcpath}/config.h
40
41        system "cd ${worksrcpath} && patch -p1 < logrotate-${version}/debian/patches/rh-dateext.patch"
42}
43
44destroot {
45                xinstall -m 755 ${worksrcpath}/logrotate ${destroot}${prefix}/sbin
46                xinstall -m 755 ${worksrcpath}/examples/logrotate-default \
47                        ${destroot}${prefix}/etc/logrotate.conf.sample
48                xinstall -m 444 ${worksrcpath}/logrotate.8 ${destroot}${prefix}/share/man/man8
49}
Note: See TracBrowser for help on using the browser.