diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-05-24 16:33:10 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-05-24 16:33:10 +0100 |
commit | 7373d6f51fc587c1fd312020025a6fa5d740c46c (patch) | |
tree | 27903b33eee7d256c643b64272f7a4c7fa8d0d79 /elements/foundation/openssh.bst | |
parent | 1c79c155a3d75c763cbba37cdfaffe0ce1b1f8d8 (diff) | |
download | definitions-7373d6f51fc587c1fd312020025a6fa5d740c46c.tar.gz |
Add the newly converted-to-BuildStream definitions
This is not a conversion of all systems, just a subset.
Diffstat (limited to 'elements/foundation/openssh.bst')
-rw-r--r-- | elements/foundation/openssh.bst | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/elements/foundation/openssh.bst b/elements/foundation/openssh.bst new file mode 100644 index 00000000..bc737161 --- /dev/null +++ b/elements/foundation/openssh.bst @@ -0,0 +1,36 @@ +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 \\\n --prefix=\"%{prefix}\" --sysconfdir=/etc/ssh\ + \ \\\n --datadir=\"%{prefix}/share/sshd\" \\\n --libexecdir=\"%{prefix}/lib/openssh\"\ + \ \\\n --with-privsep-path=/var/lib/sshd\t \\\n --with-pam\n" + 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 |