diff options
-rw-r--r-- | net-misc/sslh/Manifest | 1 | ||||
-rw-r--r-- | net-misc/sslh/sslh-2.1.4.ebuild | 76 |
2 files changed, 77 insertions, 0 deletions
diff --git a/net-misc/sslh/Manifest b/net-misc/sslh/Manifest index f04331d5d8e9..5bad26d1f598 100644 --- a/net-misc/sslh/Manifest +++ b/net-misc/sslh/Manifest @@ -1,2 +1,3 @@ DIST sslh-2.1.2.tar.gz 214091 BLAKE2B 220841c7105032b02351b6073ffd994a22efb0241ebec96704bd2ec534197a19c366d925ebf07a494773e89d83df5f284567e34d419b887edb73545523abb71e SHA512 4f0b3c61e6153b912b11c49baba2df1a9df6732ea9fcdee628bf02043efc1b6505ac97eec97740c67d09f7d58a1bb79e0e06d949cb7fabcffa1fb91733372631 DIST sslh-2.1.3.tar.gz 461954 BLAKE2B 93b84130077933fe05f825d19972b85bfb03abe09b6ee63a8dc31ba90076e55d9851155e2a9e4c1ed86a2350eb890e0daf7105a450f568b4f3db786b5f7abac3 SHA512 680ad2ac8c6e5fbbbee3973c7862533c12722f0633c7dc545cfea7873031a918d6a8529c707d2fa1ec097b7abe5420d9a11f9eb15c9d84e12a9a954fdb987dab +DIST sslh-2.1.4.tar.gz 461963 BLAKE2B 82194b7cfe2a41b4d0c85b1ddf9c84b5b81dd8cc38e4d66f2c69aab2f9eb4091b3747c194e52a571dffb6d63308a9d1b1a53c9e8df59e1a78d314aae76b08d73 SHA512 1678682bfe28aa2615068ab738b8413632f7799744fb5ee69287f759b1bc600b891e89fed2ff28a92b6d91b79ff4e52fe12ba448572828b38471efbeffdb4f62 diff --git a/net-misc/sslh/sslh-2.1.4.ebuild b/net-misc/sslh/sslh-2.1.4.ebuild new file mode 100644 index 000000000000..9e89e052625b --- /dev/null +++ b/net-misc/sslh/sslh-2.1.4.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit flag-o-matic systemd toolchain-funcs + +DESCRIPTION="Port multiplexer - accept both HTTPS and SSH connections on the same port" +HOMEPAGE="https://www.rutschle.net/tech/sslh/README.html" +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/yrutschle/sslh.git" + inherit git-r3 +else + KEYWORDS="~amd64 ~arm ~m68k ~mips ~s390 ~x86" + SRC_URI="https://github.com/yrutschle/sslh/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S=${WORKDIR}/${P} +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="caps libev systemd tcpd" + +RDEPEND="caps? ( sys-libs/libcap ) + dev-libs/libpcre2:= + systemd? ( sys-apps/systemd:= ) + tcpd? ( sys-apps/tcp-wrappers ) + dev-libs/libconfig:= + libev? ( dev-libs/libev ) + >=dev-libs/libconfig-1.5:=" +DEPEND="${RDEPEND} + dev-lang/perl" + +RESTRICT="test" + +src_prepare() { + sed -i \ + -e '/MAN/s:| gzip -9 - >:>:' \ + -e '/MAN=sslh.8.gz/s:.gz::' \ + Makefile.in || die + default +} + +src_compile() { + append-lfs-flags + + emake \ + CC="$(tc-getCC)" \ + USELIBCAP=$(usev caps) \ + USELIBEV=$(usev libev) \ + USELIBWRAP=$(usev tcpd) \ + USESYSTEMD=$(usev systemd) +} + +src_install() { + dosbin sslh-{fork,select} + if use libev; then + dosbin sslh-ev + dosym sslh-fork /usr/sbin/sslh + else + dosym sslh-fork /usr/sbin/sslh + fi + + doman ${PN}.8 + + dodoc ChangeLog README.md + + newinitd "${FILESDIR}"/sslh.init.d-3 sslh + newconfd "${FILESDIR}"/sslh.conf.d-2 sslh + + if use systemd; then + # Gentoo puts the binaries in /usr/sbin, but upstream puts them in /usr/bin + systemd_newunit "${FILESDIR}/sslh.service" sslh.service + exeinto /usr/lib/systemd/system-generators/ + doexe systemd-sslh-generator + fi +} |