source: trunk/dports/sysutils/logrotate/Portfile @ 66354

Last change on this file since 66354 was 66354, checked in by markd@…, 7 years ago

Closes #19430. Add gettext as a dependency, set all dependencies to depends_run (instead of build),
and update the to the latest patch level.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 66354 2010-04-09 18:52:41Z markd@macports.org $
2
3PortSystem      1.0
4
5name                            logrotate
6version                         3.7.1
7revision                        3
8categories                      sysutils
9maintainers                     markd openmaintainer
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}-5.diff.gz md5 619d36e123f8d5d6e25a1544a589cf27
26
27patch_sites                     http://ftp.debian.org/debian/pool/main/l/logrotate/
28patchfiles                      logrotate_${version}-5.diff.gz
29
30depends_run                     port:popt \
31                                port:gettext \
32                                port:gzip
33
34use_configure                   no
35
36build.args                      POPT_DIR=${prefix}/include LDFLAGS="-L${prefix}/lib -lpopt"
37
38post-patch {
39        reinplace "s|\"/bin/gzip\"|\"${prefix}/bin/gzip\"|g" \
40                ${worksrcpath}/config.h
41
42        system "cd ${worksrcpath} && patch -p1 < logrotate-${version}/debian/patches/rh-dateext.patch"
43}
44
45destroot {
46                xinstall -m 755 ${worksrcpath}/logrotate ${destroot}${prefix}/sbin
47                xinstall -m 755 ${worksrcpath}/examples/logrotate-default \
48                        ${destroot}${prefix}/etc/logrotate.conf.sample
49                xinstall -m 444 ${worksrcpath}/logrotate.8 ${destroot}${prefix}/share/man/man8
50}
Note: See TracBrowser for help on using the repository browser.