PortSystem 1.0

name             sudosh
version          1.6.3
revision         0
checksums        md5     700ee8c6060c1512ac0c2731b5727cc6 \
                 rmd160  000afe8770cc0fbdb128c81ea742674e13c8af60 \
                 sha256  1a75c9737ec3a8ceaf4bae90a13fac09993210c48f4c7be83e91fd06a209dcfb \
                 size    119980
categories       shells
# The Open Software License v. 2.0
license          Copyleft GPLConflict
maintainers      nomaintainer
description      sudo shell
long_description \
	Sudosh provides a logged root shell that can be used for \
	auditing. It works just like a VCR, records the root shell \
	session and offers real-time playback. Sudosh is designed \
	to be used with sudo in an enterprise environment.
homepage         http://sourceforge.net/projects/sudosh/
master_sites     sourceforge
patchfiles       implicit.patch
configure.args   --mandir=${prefix}/share/man

platform darwin arm {
    depends_build-append    port:automake

    post-patch {
        # Use newer config.guess and config.sub to support Apple Silicon.
        set automake_dirs [glob -directory ${prefix}/share automake-*]
        set automake_dir [lindex [lsort -command vercmp $automake_dirs] end]
        copy -force ${automake_dir}/config.guess ${automake_dir}/config.sub \
            ${worksrcpath}
    }
}

livecheck.type   none