diff options
Diffstat (limited to 'elements/foundation/openssh.bst')
-rw-r--r-- | elements/foundation/openssh.bst | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/elements/foundation/openssh.bst b/elements/foundation/openssh.bst new file mode 100644 index 00000000..610ad586 --- /dev/null +++ b/elements/foundation/openssh.bst @@ -0,0 +1,40 @@ +kind: manual +depends: +- coreutils-common.bst +- foundation/groff.bst +sources: +- kind: git + url: upstream:openssh-git + track: baserock/morph + ref: 782fe9e725243eeb5ad6ab9a1783b5d6bedfe0d7 +config: + configure-commands: + - autoreconf -if + - | + OPENSSL_SEEDS_ITSELF=yes ./configure \ + --prefix="%{prefix}" --sysconfdir=/etc/ssh \ + --datadir="%{prefix}/share/sshd" \ + --libexecdir="%{prefix}/lib/openssh" \ + --with-privsep-path=/var/lib/sshd \ + --with-pam + build-commands: + - make + - | + sed -e "s|@prefix@|%{prefix}|g" \ + -e 's|@STARTUP_SCRIPT_SHELL@|/bin/sh|g' \ + -e 's|@sysconfdir@|/etc/ssh|g' \ + -e 's|@COMMENT_OUT_ECC@||g' \ + sshd-keygen.in >sshd-keygen + - sed -e "s|@prefix@|%{prefix}|g" opensshd.service.in >opensshd.service + install-commands: + - make DESTDIR="%{install-root}" install + - mkdir -p "%{install-root}/%{prefix}/sbin" + - chmod go= "%{install-root}"/var/lib/sshd + - install -m 744 sshd-keygen "%{install-root}/%{prefix}/sbin/sshd-keygen" + - install -m 755 contrib/ssh-copy-id "%{install-root}/%{prefix}/bin/ssh-copy-id" + - mkdir -p "%{install-root}%{prefix}/lib/systemd/system/" + - install -m 644 opensshd.service "%{install-root}%{prefix}/lib/systemd/system/opensshd.service" +public: + bst: + integration-commands: + - systemctl enable opensshd |