openssh-server: added runit service.

This commit is contained in:
Juan RP 2014-10-13 16:20:20 +02:00
parent 10b3bf3a9c
commit 95c0ff2506
2 changed files with 6 additions and 1 deletions

3
srcpkgs/openssh/files/sshd/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
ssh-keygen -A # Will generate host keys if they don't already exist
exec /usr/sbin/sshd -D

View File

@ -3,7 +3,7 @@ _desc="The OpenSSH implementation of SSH protocol"
pkgname=openssh
version=6.7p1
revision=1
revision=2
build_style=gnu-configure
configure_args="--without-tcp-wrappers --datadir=/usr/share/openssh
--sysconfdir=/etc/ssh --without-selinux --with-privsep-user=nobody
@ -58,6 +58,7 @@ post_install() {
openssh-server_package() {
conf_files="/etc/ssh/sshd_config /etc/pam.d/sshd"
make_dirs="/var/chroot/ssh 0755 root root"
replaces="runit-void<20141013_2"
depends="openssh>=$version"
short_desc="${_desc} - server"
pkg_install() {
@ -74,5 +75,6 @@ openssh-server_package() {
install -m644 ${FILESDIR}/*.{socket,service} \
${PKGDESTDIR}/usr/lib/systemd/system
fi
vsv sshd
}
}