[111814] trunk/dports/sysutils/sudo/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Oct 2 10:42:21 PDT 2013


Revision: 111814
          https://trac.macports.org/changeset/111814
Author:   ryandesign at macports.org
Date:     2013-10-02 10:42:21 -0700 (Wed, 02 Oct 2013)
Log Message:
-----------
sudo: update to 1.8.8; always install sudoers as sudoers.dist instead of dependent on whether it alreday existed on the build system or not

Modified Paths:
--------------
    trunk/dports/sysutils/sudo/Portfile

Modified: trunk/dports/sysutils/sudo/Portfile
===================================================================
--- trunk/dports/sysutils/sudo/Portfile	2013-10-02 17:39:30 UTC (rev 111813)
+++ trunk/dports/sysutils/sudo/Portfile	2013-10-02 17:42:21 UTC (rev 111814)
@@ -4,11 +4,12 @@
 PortSystem          1.0
 
 name                sudo
-version             1.8.6p7
 epoch               1
+version             1.8.8
 categories          sysutils security
 license             ISC
 maintainers         nomaintainer
+
 description         Allow users to run programs as other users, eg, root
 long_description \
     Sudo is a program designed to allow a sysadmin to give limited root \
@@ -22,8 +23,8 @@
 master_sites        ${homepage}dist/ \
                     ${homepage}dist/OLD/
 
-checksums           rmd160  7ae53dbd5a01fadcf87bf9a345dede2cfc0b5b28 \
-                    sha256  301089edb22356f59d097f6abbe1303f03927a38691b02959d618546c2125036
+checksums           rmd160  54511ce07a8882364a180356eb3813c0afeeab39 \
+                    sha256  9f911c1e9297fb8006deb52fa81197a8d06b9d54e70672f723c467ecae992fc9
 
 patchfiles          patch-sudoers.in.diff
 
@@ -48,13 +49,17 @@
 }
 
 post-destroot {
-    if {[file exists ${prefix}/etc/sudoers]} {
-        file rename ${destroot}${prefix}/etc/sudoers ${destroot}${prefix}/etc/sudoers.dist
-    }
+    move ${destroot}${prefix}/etc/sudoers ${destroot}${prefix}/etc/sudoers.dist
     xinstall -d ${destroot}${prefix}/var/run/sudo
 }
 destroot.keepdirs ${destroot}${prefix}/var/run/sudo
 
+post-activate {
+    if {![file exists ${prefix}/etc/sudoers]} {
+        copy ${destroot}${prefix}/etc/sudoers.dist ${prefix}/etc/sudoers
+    }
+}
+
 notes "
 To complete the installation, run:
 
@@ -69,6 +74,7 @@
 
 variant openldap description {Add ldap support via OpenLDAP.} {
     depends_lib-append      port:openldap
+
     configure.args-append   --with-ldap
 
     post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131002/0dc2ff7c/attachment.html>


More information about the macports-changes mailing list