[117304] trunk/dports/sysutils

raimue at macports.org raimue at macports.org
Fri Feb 21 08:47:02 PST 2014


Revision: 117304
          https://trac.macports.org/changeset/117304
Author:   raimue at macports.org
Date:     2014-02-21 08:47:01 -0800 (Fri, 21 Feb 2014)
Log Message:
-----------
sysutils/molly-guard:
New port, a port of the molly-guard utility from the Debian Linux project

Added Paths:
-----------
    trunk/dports/sysutils/molly-guard/
    trunk/dports/sysutils/molly-guard/Portfile

Added: trunk/dports/sysutils/molly-guard/Portfile
===================================================================
--- trunk/dports/sysutils/molly-guard/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/molly-guard/Portfile	2014-02-21 16:47:01 UTC (rev 117304)
@@ -0,0 +1,42 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup github 1.0
+
+github.setup        raimue molly-guard 0.4.5 macports/
+categories          sysutils
+platforms           darwin
+supported_archs     noarch
+license             Artistic-2
+maintainers         raimue
+description         Avoid accidental shutdowns or reboots
+long_description \
+    This ports overrides the existing shutdown, reboot, halt commands with \
+    its own version that first executes some checks before invoking the real \
+    system functionality. For example, one script shipped with this port \
+    checks for existing SSH sessions. If any of the three commands are called \
+    interactively over an SSH session, the shell script prompts you to enter \
+    the name of the host you wish to shut down. This should adequately \
+    prevent you from accidental shutdowns and reboots.
+
+checksums           rmd160  082d2f4b02ceefa51a3303ec29715b41eb7acb53 \
+                    sha256  4a5af40677cb3784023a3f2e4d307aa9821d775677943c1823a6fd167f64a0c6
+
+depends_build       port:libxslt \
+                    port:docbook-xsl
+depends_run         port:debianutils
+
+use_configure       no
+build.args          prefix=${prefix}
+destroot.args       prefix=${prefix}
+destroot.destdir    DEST=${destroot}
+
+post-destroot {
+    move ${destroot}${prefix}/etc/molly-guard/rc ${destroot}${prefix}/etc/molly-guard/rc.default
+}
+
+post-activate {
+    if {![file exists ${prefix}/etc/molly-guard/rc]} {
+        file copy ${prefix}/etc/molly-guard/rc.default ${prefix}/etc/molly-guard/rc
+    }
+}


Property changes on: trunk/dports/sysutils/molly-guard/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140221/b6813459/attachment.html>


More information about the macports-changes mailing list