diff options
author | davidovski <david@davidovski.xyz> | 2022-05-04 23:52:30 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-04 23:52:30 +0100 |
commit | 739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch) | |
tree | 09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/util/openssh/openssh.xibuild | |
parent | 4c585ad54388285500fd18a6aaa516894e0f2c16 (diff) |
moved everything to new file formatting
Diffstat (limited to 'repo/util/openssh/openssh.xibuild')
-rw-r--r-- | repo/util/openssh/openssh.xibuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/repo/util/openssh/openssh.xibuild b/repo/util/openssh/openssh.xibuild new file mode 100644 index 0000000..869bcb9 --- /dev/null +++ b/repo/util/openssh/openssh.xibuild @@ -0,0 +1,41 @@ +#!/bin/sh + +MAKEDEPS="make " +DEPS="musl krb5 openssl libedit ldns libxcrypt zlib pam argp-standalone" + +PKG_VER=8.8p1 +SOURCE=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$PKG_VER.tar.gz +DESC="Premier connectivity tool for remote login with the SSH protocol" + +ADDITIONAL="sshd.initd sshd.confd" + +build () { + ./configure --prefix=/usr \ + --sysconfdir=/etc/ssh \ + --with-md5-passwords \ + --with-privsep-path=/var/lib/sshd \ + --with-default-path=/usr/bin \ + --with-superuser-path=/usr/sbin:/usr/bin \ + --with-pid-dir=/run + make +} + + +package () { + make DESTDIR=$PKG_DEST install + install -Dm755 contrib/ssh-copy-id $PKG_DEST/usr/bin + + install -Dm644 contrib/ssh-copy-id.1 \ + $PKG_DEST/usr/share/man/man1 + install -Dm755 -d $PKG_DEST/usr/share/doc/openssh-$PKG_VER + install -Dm644 INSTALL LICENCE OVERVIEW README* \ + $PKG_DEST/usr/share/doc/openssh-$PKG_VER + + install -Dm755 sshd.initd $PKG_DEST/etc/init.d/sshd + install -Dm755 sshd.confd $PKG_DEST/etc/conf.d/sshd +} + +postinstall () { + groupadd -g 33 sshd + useradd -u 33 -g 33 -c sshd -d / sshd +} |