<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f1adafb17de25b5ced31625b172e8d2d7ccdeef1">https://github.com/macports/macports-ports/commit/f1adafb17de25b5ced31625b172e8d2d7ccdeef1</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new f1adafb17de pam-watchid: submission (#13751)
</span>f1adafb17de is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f1adafb17de25b5ced31625b172e8d2d7ccdeef1
</span>Author: Zhenfu Shi <szf1234@me.com>
AuthorDate: Mon Jan 24 01:20:44 2022 +0800
<span style='display:block; white-space:pre;color:#404040;'> pam-watchid: submission (#13751)
</span>---
security/pam-watchid/Portfile | 48 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/pam-watchid/Portfile b/security/pam-watchid/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a3867ec93ac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/pam-watchid/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,48 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup makefile 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup biscuitehh pam-watchid 6061b86e96c766085718d4589c974184d86cf1d3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 20201011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories security
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {i0ntempest @i0ntempest} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Unlicense
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description PAM plugin module that allows the Apple Watch to be used for authentication
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description A PAM plugin that allows the Apple Watch to be used for authentication, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ using the new kLAPolicyDeviceOwnerAuthenticationWithBiometricsOrWatch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ API in macOS 10.15, written in Swift.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 961cae147fbd38e0133cfcfa7e970fa2ace41eee \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 48c5f07c8b8495e348ed2416fa5f3e5ef89ab8ec9155652e58b564f552c08283 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1312638
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Makefile fix-ups and enable verbose
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s| = | ?= |g" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|install: all|install:|" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|swiftc|swiftc -v|g" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env-append TARGET=${build_arch}-apple-darwin${os.major}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.env-append DESTINATION=${destroot}${prefix}/lib/pam
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+notes-append "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Edit /etc/pam.d/sudo to include the following line as the first line (not including comments)\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ to enable authentication with Apple Watch for sudo:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ auth sufficient ${prefix}/lib/pam/pam_watchid.so \"reason=execute a command as root\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Remove this line before uninstalling this port or sudo will stop working.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 19} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ known_fail yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-fetch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${subport} requires macOS 10.15 or newer"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "unsupported OS X version"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>