source: trunk/dports/sysutils/molly-guard/Portfile

Last change on this file was 117304, checked in by raimue@…, 3 years ago

sysutils/molly-guard:
New port, a port of the molly-guard utility from the Debian Linux project

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 117304 2014-02-21 16:47:01Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup github 1.0
5
6github.setup        raimue molly-guard 0.4.5 macports/
7categories          sysutils
8platforms           darwin
9supported_archs     noarch
10license             Artistic-2
11maintainers         raimue
12description         Avoid accidental shutdowns or reboots
13long_description \
14    This ports overrides the existing shutdown, reboot, halt commands with \
15    its own version that first executes some checks before invoking the real \
16    system functionality. For example, one script shipped with this port \
17    checks for existing SSH sessions. If any of the three commands are called \
18    interactively over an SSH session, the shell script prompts you to enter \
19    the name of the host you wish to shut down. This should adequately \
20    prevent you from accidental shutdowns and reboots.
21
22checksums           rmd160  082d2f4b02ceefa51a3303ec29715b41eb7acb53 \
23                    sha256  4a5af40677cb3784023a3f2e4d307aa9821d775677943c1823a6fd167f64a0c6
24
25depends_build       port:libxslt \
26                    port:docbook-xsl
27depends_run         port:debianutils
28
29use_configure       no
30build.args          prefix=${prefix}
31destroot.args       prefix=${prefix}
32destroot.destdir    DEST=${destroot}
33
34post-destroot {
35    move ${destroot}${prefix}/etc/molly-guard/rc ${destroot}${prefix}/etc/molly-guard/rc.default
36}
37
38post-activate {
39    if {![file exists ${prefix}/etc/molly-guard/rc]} {
40        file copy ${prefix}/etc/molly-guard/rc.default ${prefix}/etc/molly-guard/rc
41    }
42}
Note: See TracBrowser for help on using the repository browser.