Merge updates from master

This commit is contained in:
Repository mirror & CI
2021-05-13 06:50:12 +00:00
5 changed files with 80 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ src_configure() {
src_compile() {
cmake_src_compile
docs_compile
docs_compile
}
src_install() {

View File

@@ -1 +1 @@
DIST rocketchat-3.1.1.x86_64.rpm 55360392 BLAKE2B 6384297c1707c549d9a8a26662a610b7fd9c168886b65ebe875eee15553c600be1f322716284011ccc8f6db70d489feea8ae3b7934651315968caccf4e871c1a SHA512 685e64b1c023baf69b1689aac83ebbfd990a0ae35b3c7b3447058595c04a7d845074d845f33dac698d59506069d05aead03b117039782c7703954b324be3cbf2
DIST rocketchat-3.2.0.x86_64.rpm 55347176 BLAKE2B 69f5dc15a61029aee97638dbde40ede5fd860f8ef51dc40bec09b142f31d2b5ab2d1ca81604ce909327888174a5f549775d4f7a03e55d9a3251004c4164f9a1e SHA512 7d5827c5f8822ab7c1966e5938801de8a8ef73d49f594647294cdb69e0ea37315ed6277830aa1680442577157d705455e1b832b04d7d7a821bdd4e5810598e0d

View File

@@ -7,11 +7,16 @@ inherit systemd
DESCRIPTION="A small SSH server with state-of-the-art cryptography"
HOMEPAGE="https://tinyssh.org"
SRC_URI="https://github.com/janmojzis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/janmojzis/tinyssh.git"
else
SRC_URI="https://github.com/janmojzis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+sodium"

View File

@@ -0,0 +1,71 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd
DESCRIPTION="A small SSH server with state-of-the-art cryptography"
HOMEPAGE="https://tinyssh.org"
if [[ "${PV}" == "99999999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/janmojzis/tinyssh.git"
else
SRC_URI="https://github.com/janmojzis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="public-domain"
SLOT="0"
IUSE="+sodium"
DEPEND="
sodium? ( dev-libs/libsodium )
"
RDEPEND="
${DEPEND}
sys-apps/ucspi-tcp
"
src_prepare() {
# Leave optimization level to user CFLAGS
sed -i 's/-Os -fomit-frame-pointer -funroll-loops//g' ./conf-cc || die
# Use make-tinysshcc.sh script, which has no tests and doesn't execute
# binaries. See https://github.com/janmojzis/tinyssh/issues/2
sed -i 's/make-tinyssh\.sh/make-tinysshcc.sh/g' ./Makefile || die
default
}
src_compile() {
if use sodium
then
emake \
CC="$(tc-getCC)"
LIBS="-lsodium" \
CFLAGS="${CFLAGS} -I/usr/include/sodium" \
LDFLAGS="${LDFLAGS} -L/usr/lib"
else
emake CC="$(tc-getCC)"
fi
}
src_install() {
dosbin build/bin/tinysshd{,-makekey}
dobin build/bin/tinysshd-printkey
doman man/*
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
systemd_newunit "${FILESDIR}/${PN}.service" "${PN}@.service"
systemd_newunit "${FILESDIR}/${PN}.socket" "${PN}@.socket"
systemd_dounit "${FILESDIR}/${PN}-makekey.service"
}
pkg_postinst() {
einfo "TinySSH is in beta stage, and ready for production use."
einfo "See https://tinyssh.org for more information."
}