Changeset 82267
- Timestamp:
- 08/11/11 14:04:45 (4 years ago)
- Location:
- users/pixilla/dports/sysutils/logrotate
- Files:
-
- 1 added
- 6 deleted
- 1 edited
-
Portfile (modified) (5 diffs)
-
files/patch-Makefile.diff (deleted)
-
files/patch-config.c.diff (added)
-
files/patch-config.h.diff (deleted)
-
files/patch-examples-logrotate-default.diff (deleted)
-
files/patch-logrotate.c.diff (deleted)
-
files/patch-strndup.c.diff (deleted)
-
files/patch-strndup.h.diff (deleted)
Legend:
- Unmodified
- Added
- Removed
-
users/pixilla/dports/sysutils/logrotate/Portfile
r82235 r82267 7 7 version 3.8.0 8 8 categories sysutils 9 maintainers markd pixilla.com:brad9 maintainers markd openmaintainer 10 10 platforms darwin 11 11 … … 19 19 20 20 homepage https://fedorahosted.org/logrotate/ 21 master_sites https://fedorahosted.org/releases/l/o/logrotate21 master_sites gentoo 22 22 checksums sha1 a79c500c4ce45177b47bb473a6bff4021af7121e \ 23 23 rmd160 7e1e24f53db5230eee2e1db8d90fe3a33692ca01 24 24 25 livecheck.type regex26 livecheck.url ${master_sites}27 livecheck.regex ${name}-(\\d+\\.\\d+(\\.\\d+)?)${extract.suffix}28 29 patchfiles patch-Makefile.diff \30 patch-examples-logrotate-default.diff \31 patch-config.c.diff \32 patch-config.h.diff \33 patch-logrotate.c.diff \34 patch-strndup.c.diff \35 patch-strndup.h.diff36 25 patch.pre_args -p1 26 patchfiles patch-config.c.diff 37 27 38 28 depends_run port:popt port:gettext port:gzip 39 29 30 post-extract { 31 touch ${worksrcpath}/.depend 32 } 33 34 post-patch { 35 reinplace "s|@@PREFIX@@|${prefix}|g" \ 36 ${worksrcpath}/examples/logrotate-default 37 } 38 40 39 use_configure no 41 40 42 set prefix_hack [string trimleft ${destroot}${prefix} /] 43 44 destroot.env-append BASEDIR="${prefix_hack}" 45 46 build.envBASEDIR="${prefix}" \41 build.env-append \ 42 CC="${configure.cc} [get_canonical_archflags]" \ 43 CXX="${configure.cxx} [get_canonical_archflags]" \ 44 CPP="${configure.cpp} [get_canonical_archflags]" \ 45 BASEDIR="${prefix}" \ 47 46 POPT_DIR="${prefix}/include" \ 48 47 STATEFILE="${prefix}/var/run/logrotate/logrotate.status" \ … … 50 49 USEINSTALL="install" 51 50 52 #build.args-append LDFLAGS="-L${prefix}/lib" 53 54 post-patch { 55 reinplace "s|@@PREFIX@@|${prefix}|g" \ 56 ${worksrcpath}/examples/logrotate-default 57 } 58 51 destroot.env-append BASEDIR=[string trimleft ${destroot}${prefix} /] 59 52 destroot.keepdirs ${destroot}${prefix}/etc/logrotate.d \ 60 53 ${destroot}${prefix}/var/run/logrotate 61 62 54 post-destroot { 63 xinstall -m 755 ${worksrcpath}/examples/logrotate-default \64 ${destroot}${prefix}/etc/logrotate.conf.sample55 xinstall -m 755 ${worksrcpath}/examples/logrotate-default \ 56 ${destroot}${prefix}/etc/logrotate.conf.sample 65 57 xinstall -d ${destroot}${prefix}/etc/logrotate.d 66 58 xinstall -d ${destroot}${prefix}/var/run/logrotate … … 68 60 69 61 post-activate { 70 delete ${prefix}/etc/logrotate.d/.turd_${name} \71 ${prefix}/var/run/logrotate/.turd_${name}62 # delete ${prefix}/etc/logrotate.d/.turd_${name} \ 63 # ${prefix}/var/run/logrotate/.turd_${name} 72 64 } 73 65 74 variant bzip2 description {change default compression to bzip} {66 variant bzip2 conflicts gzip description {Use bzip2 compression by default} { 75 67 build.env-append COMPRESS_COMMAND="${prefix}/bin/bzip2" \ 76 68 COMPRESS_EXT=".bz2" \ … … 80 72 } 81 73 82 default_variants bzip2 74 variant gzip conflicts bzip2 description {Use gzip compression by default} { 75 depends_run-append port:gzip 76 } 77 78 if {![variant_isset gzip]} { 79 default_variants +bzip2 80 variant_set bzip2 81 } 82 83 livecheck.type regex 84 livecheck.url ${master_sites} 85 livecheck.regex ${name}-(\\d+\\.\\d+(\\.\\d+)?)${extract.suffix} 83 86 84 87 notes \ 85 "Copy ${prefix}/etc/logrotate.conf.sample to ${prefix}/etc/logrotate.conf for a start. 88 "Copy ${prefix}/etc/logrotate.conf.sample to ${prefix}/etc/logrotate.conf for a start: 89 \$ cp ${prefix}/etc/logrotate.conf.sample ${prefix}/etc/logrotate.conf 86 90 Afterwards putting logrotate scripts in ${prefix}/etc/logrotate.d will cause them to 87 91 be executed with the following command:
Note: See TracChangeset
for help on using the changeset viewer.

