mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
62 lines
1.9 KiB
Tcl
62 lines
1.9 KiB
Tcl
# -*- 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.5.1 v
|
|
github.tarball_from archive
|
|
revision 0
|
|
|
|
categories security devel
|
|
license ISC
|
|
platforms {darwin any}
|
|
supported_archs noarch
|
|
maintainers {judaew @judaew} openmaintainer
|
|
|
|
description ssh-askpass for OS X/macOS
|
|
long_description {*}${description}
|
|
|
|
checksums rmd160 eeabf46d17c07e3217c3b851031574a5d2ddd4f1 \
|
|
sha256 7497125e452e1cfe671ac05dbb4640f5d82ba6961950c0e519a00afdd8be0880 \
|
|
size 54932
|
|
|
|
patchfiles patch-fix-prefix.diff
|
|
|
|
post-patch {
|
|
reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/ssh-askpass.plist
|
|
}
|
|
|
|
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
|
|
"
|