Skip to content

Commit

Permalink
main/openssh: use tmpfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
q66 committed Sep 29, 2024
1 parent 64aa4c8 commit 952b583
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions main/openssh/files/tmpfiles.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Create ssh state dirs

d /etc/ssh/ssh_config.d 0755 root root -
d /etc/ssh/sshd_config.d 0755 root root -

d /var/chroot/ssh 0755 root root -
7 changes: 2 additions & 5 deletions main/openssh/template.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgname = "openssh"
pkgver = "9.9_p1"
pkgrel = 0
pkgrel = 1
build_style = "gnu_configure"
configure_args = [
"--datadir=/usr/share/openssh",
Expand Down Expand Up @@ -67,10 +67,7 @@ def post_install(self):
self.install_bin("contrib/ssh-copy-id")
self.install_man("contrib/ssh-copy-id.1")

self.install_dir("var/chroot/ssh", empty=True)

self.install_dir("etc/ssh/ssh_config.d", empty=True)
self.install_dir("etc/ssh/sshd_config.d", empty=True)
self.install_tmpfiles(self.files_path / "tmpfiles.conf")

self.install_service(self.files_path / "ssh-keygen")
self.install_service(self.files_path / "sshd")

0 comments on commit 952b583

Please sign in to comment.