diff options
author | Benda Xu <heroxbd@gentoo.org> | 2020-05-13 11:59:13 +0800 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2020-05-13 11:59:48 +0800 |
commit | 267be547af3433faf9d414a1db345b89b51fcffd (patch) | |
tree | a3234e126ec7b5b7a4177f1a187f59e246ff7fe2 /net-analyzer/openbsd-netcat/openbsd-netcat-1.195.ebuild | |
parent | dev-util/nvidia-cuda-toolkit: allow gcc-8.4 for cuda-10.{1,2}. (diff) | |
download | gentoo-267be547af3433faf9d414a1db345b89b51fcffd.tar.gz gentoo-267be547af3433faf9d414a1db345b89b51fcffd.tar.bz2 gentoo-267be547af3433faf9d414a1db345b89b51fcffd.zip |
net-analyzer/openbsd-netcat: version bump.
1.195 is in Debian stable.
Suggested-By: <doj@cubic.org>
Bug: https://bugs.gentoo.org/680224
Package-Manager: Portage-2.3.88, Repoman-2.3.18
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'net-analyzer/openbsd-netcat/openbsd-netcat-1.195.ebuild')
-rw-r--r-- | net-analyzer/openbsd-netcat/openbsd-netcat-1.195.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/net-analyzer/openbsd-netcat/openbsd-netcat-1.195.ebuild b/net-analyzer/openbsd-netcat/openbsd-netcat-1.195.ebuild new file mode 100644 index 000000000000..363c5e7a8193 --- /dev/null +++ b/net-analyzer/openbsd-netcat/openbsd-netcat-1.195.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="The OpenBSD network swiss army knife" +HOMEPAGE="https://cvsweb.openbsd.org/src/usr.bin/nc/ + https://salsa.debian.org/debian/netcat-openbsd" +SRC_URI="http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz + http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}-2.debian.tar.xz" +LICENSE="BSD" +SLOT="0" +IUSE="elibc_Darwin" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos" + +DEPEND="virtual/pkgconfig" +RDEPEND="!elibc_Darwin? ( dev-libs/libbsd ) + !net-analyzer/netcat + !net-analyzer/netcat6 +" + +S=${WORKDIR}/netcat-openbsd-${PV} + +src_prepare() { + for i_patch in $(<"${WORKDIR}"/debian/patches/series); do + eapply "${WORKDIR}"/debian/patches/"${i_patch}" + done + if [[ ${CHOST} == *-darwin* ]] ; then + # this undoes some of the Debian/Linux changes + eapply "${FILESDIR}"/${P}-darwin.patch + fi + default +} + +src_compile() { + emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin nc + doman nc.1 + cd "${WORKDIR}"/debian || die + newdoc netcat-openbsd.README.Debian README + dodoc -r examples +} + +pkg_postinst() { + if [[ ${KERNEL} = "linux" ]]; then + ewarn "SO_REUSEPORT is introduced in linux 3.9. If your running kernel is older" + ewarn "and kernel header is newer, nc will not listen correctly. Matching the header" + ewarn "to the running kernel will do. See bug #490246 for details." + fi +} |