Skip to content

Commit

Permalink
Merge pull request #1422 from mariux64/fix-openssh-79p1
Browse files Browse the repository at this point in the history
openssh: fix package
  • Loading branch information
wwwutz authored Oct 31, 2019
2 parents d557613 + 160c22b commit 5d20e76
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions openssh.be0
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
#!/bin/env beesh

# BEE_VERSION openssh-7.9_p1-0
# BEE_VERSION openssh-7.9_p1-1

SRCURL[0]="https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PKGVERSION}${PKGEXTRAVERSION}.tar.gz"

SYSCONFDIR=/etc/ssh
DATADIR=/usr/share/sshd
LIBEXECDIR=/usr/lib/openssh

mee_patch() {
# check-config fails anyway
sed -i -e '/^install:.*check-config/ s/check-config//' ${S}/Makefile.in
}

mee_configure() {
bee_configure \
--sysconfdir=${SYSCONFDIR} \
Expand All @@ -18,12 +23,8 @@ mee_configure() {
}

mee_install_post() {
mv ${D}${SYSCONFDIR}/ssh_config ${D}${SYSCONFDIR}/ssh_config.example
mv ${D}${SYSCONFDIR}/sshd_config ${D}${SYSCONFDIR}/sshd_config.example
install -v -m755 ${S}/contrib/ssh-copy-id ${D}/${BINDIR}
install -v -m644 ${S}/contrib/ssh-copy-id.1 \
${MANDIR}/man1
install -v -m755 -d ${DOCDIR}
install -v -m644 ${S}/{INSTALL,LICENCE,OVERVIEW,README*} \
${DOCDIR}
mv -v ${D}${SYSCONFDIR}/ssh_config ${D}${SYSCONFDIR}/ssh_config.example
mv -v ${D}${SYSCONFDIR}/sshd_config ${D}${SYSCONFDIR}/sshd_config.example
install -v -m755 ${S}/contrib/ssh-copy-id ${D}${BINDIR}
install -v -m644 ${S}/contrib/ssh-copy-id.1 ${D}${MANDIR}/man1
}

0 comments on commit 5d20e76

Please sign in to comment.