| Summary: | security/openssh-portable: support self-generated moduli in opensshd-portable | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Michał "rysiek" Woźniak <rysiek> | ||||
| Component: | Individual Port(s) | Assignee: | Mateusz Piotrowski <0mp> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | 0mp | ||||
| Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(bdrewery) |
||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| URL: | https://mastodon.social/@mpts/105044922334515993 | ||||||
| Attachments: |
|
||||||
|
Description
Michał "rysiek" Woźniak
2020-10-23 14:14:39 UTC
Comment on attachment 219000 [details] the moduli.sample patch >diff -u ./Makefile ../openssh-portable-moduli-patch/Makefile >--- ./Makefile 2020-03-23 23:15:09.000000000 +0000 >+++ ../openssh-portable-moduli-patch/Makefile 2020-10-22 22:04:34.305030000 +0000 >@@ -191,8 +191,12 @@ > @${ECHO_CMD} "#define WITH_XMSS 1" >> ${WRKSRC}/config.h > > post-install: >+ ${MV} ${STAGEDIR}${ETCDIR}/moduli \ >+ ${STAGEDIR}${ETCDIR}/moduli.sample >+ ${RLN} ${STAGEDIR}${ETCDIR}/moduli.sample \ >+ ${STAGEDIR}${ETCDIR}/moduli I am not sure but this RLN command should not be needed. AFAIR, @sample in pkg-plist instructs pkg to 1. copy file.sample to file if file does not exist 2. on package upgrade, the new file.sample is copied again to file if it has not been modified since the last time. I'd have to double check with the documentation/implementation. A commit references this bug: Author: 0mp Date: Sat Nov 7 14:46:39 UTC 2020 New revision: 554395 URL: https://svnweb.freebsd.org/changeset/ports/554395 Log: Install the moduli file as a @sample PR: 250559 Submitted by: Micha? "rysiek" Wo?niak <rysiek % isnic.is> Approved by: maintainer timeout Changes: head/security/openssh-portable/Makefile head/security/openssh-portable/pkg-plist Committed! Thanks! |