# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup github 1.0 github.setup theseal ssh-askpass 1.4.0 v github.tarball_from archive revision 2 categories security devel license ISC maintainers {judaew @judaew} openmaintainer description ssh-askpass for OS X/macOS long_description {*}${description} checksums rmd160 5f17a4fa696597b45458bdee9fb3255e23c64649 \ sha256 9f13178d3856e7b280f8cc07bb7e755d8d1cd4ee4411fd48ffaa3235fcef9c32 \ size 17291 patchfiles patch-fix-prefix.diff post-patch { reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/ssh-askpass.plist } if {${os.major} < 19} { # Before Catalina the /System/Applications/Utilities directory was under # /Applications/Utilities. Presumably this was done to put part of the # system in the read-only partition. This fix returns the correct path for # Mojave and below. patchfiles patch-fix-path-to-icns.diff } use_configure no build {} set ssh-askpass.plist ${worksrcpath}/${name}.plist destroot { xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/ set launchd_dir \ ${prefix}/etc/${startupitem.location}/${startupitem.uniquename} xinstall -m 755 -d ${destroot}/${launchd_dir} xinstall -m 644 ${ssh-askpass.plist} \ ${destroot}/${launchd_dir}/${startupitem.plist} if {[getuid] == 0 && ${startupitem.install} ne "no"} { file mkdir ${destroot}/Library/${startupitem.location} ln -sf ${launchd_dir}/${startupitem.plist} \ ${destroot}/Library/${startupitem.location} } else { ln -sf ${launchd_dir}/${startupitem.plist} \ ${destroot}${prefix}/etc/${startupitem.location} } } startupitem.create no startupitem.autostart no startupitem.location LaunchAgents startupitem.executable ${prefix}/bin/${name} notes " Launch ${name} with launchctl load -w \\ /Library/LaunchAgents/org.macports.ssh-askpass.plist "