[82285] users/pixilla/dports/sysutils/logrotate/Portfile

pixilla at macports.org pixilla at macports.org
Thu Aug 11 14:58:37 PDT 2011


Revision: 82285
          http://trac.macports.org/changeset/82285
Author:   pixilla at macports.org
Date:     2011-08-11 14:58:37 -0700 (Thu, 11 Aug 2011)
Log Message:
-----------
sysutils/logrotate: Fix destroot.

Modified Paths:
--------------
    users/pixilla/dports/sysutils/logrotate/Portfile

Modified: users/pixilla/dports/sysutils/logrotate/Portfile
===================================================================
--- users/pixilla/dports/sysutils/logrotate/Portfile	2011-08-11 21:53:31 UTC (rev 82284)
+++ users/pixilla/dports/sysutils/logrotate/Portfile	2011-08-11 21:58:37 UTC (rev 82285)
@@ -38,31 +38,27 @@
 
 use_configure       no
 
-build.env-append \
-                    CC="${configure.cc} [get_canonical_archflags]" \
+build.env           CC="${configure.cc} [get_canonical_archflags]" \
                     CXX="${configure.cxx} [get_canonical_archflags]" \
                     CPP="${configure.cpp} [get_canonical_archflags]" \
                     BASEDIR="${prefix}" \
                     POPT_DIR="${prefix}/include" \
                     STATEFILE="${prefix}/var/run/logrotate/logrotate.status" \
-                    DEFAULT_MAIL_COMMAND="/usr/sbin/mail" \
-                    USEINSTALL="install"
+                    DEFAULT_MAIL_COMMAND="/usr/sbin/mail"
 
-destroot.env-append BASEDIR=[string trimleft ${destroot}${prefix} /]
+destroot.env-append INSTALL="install" \
+                    BASEDIR=[string trimleft ${destroot}${prefix} /]
 destroot.keepdirs   ${destroot}${prefix}/etc/logrotate.d \
                     ${destroot}${prefix}/var/run/logrotate
 post-destroot {
-        xinstall -m 755 ${worksrcpath}/examples/logrotate-default \
-    ${destroot}${prefix}/etc/logrotate.conf.sample
-    xinstall -d ${destroot}${prefix}/etc/logrotate.d
-    xinstall -d ${destroot}${prefix}/var/run/logrotate
+    xinstall -m 755 ${worksrcpath}/examples/logrotate-default \
+        ${destroot}${prefix}/etc/logrotate.conf.sample
+    move ${destroot}${prefix}/man/man5/logrotate.conf.5 \
+        ${destroot}${prefix}/share/man/man5/logrotate.conf.5
+    move ${destroot}${prefix}/man/man8/logrotate.8 \
+        ${destroot}${prefix}/share/man/man8/logrotate.8
 }
 
-post-activate {
-#    delete  ${prefix}/etc/logrotate.d/.turd_${name} \
-#            ${prefix}/var/run/logrotate/.turd_${name}
-}
-
 variant bzip2 conflicts gzip description {Use bzip2 compression by default} {
     build.env-append    COMPRESS_COMMAND="${prefix}/bin/bzip2" \
                         COMPRESS_EXT=".bz2" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110811/3ffacfb4/attachment.html>


More information about the macports-changes mailing list