summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-09-09 22:58:50 -0400
committerMike Gilbert <floppym@gentoo.org>2023-09-09 23:03:54 -0400
commitb1c9259d5f0e54624b558ab7e88e3a341ec7f6ff (patch)
treebe6dd4e054c11b7461f5998cb8d5eda4712330b1 /net-misc/inetutils
parentdev-ruby/facter: missing dep dev-ruby/sys-filesystem (diff)
downloadgentoo-b1c9259d5f0e54624b558ab7e88e3a341ec7f6ff.tar.gz
gentoo-b1c9259d5f0e54624b558ab7e88e3a341ec7f6ff.tar.bz2
gentoo-b1c9259d5f0e54624b558ab7e88e3a341ec7f6ff.zip
net-misc/inetutils: new package, add 2.4
Closes: https://bugs.gentoo.org/913036 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-misc/inetutils')
-rw-r--r--net-misc/inetutils/Manifest1
-rw-r--r--net-misc/inetutils/inetutils-2.4.ebuild87
-rw-r--r--net-misc/inetutils/metadata.xml35
3 files changed, 123 insertions, 0 deletions
diff --git a/net-misc/inetutils/Manifest b/net-misc/inetutils/Manifest
new file mode 100644
index 000000000000..81c1302e7a72
--- /dev/null
+++ b/net-misc/inetutils/Manifest
@@ -0,0 +1 @@
+DIST inetutils-2.4.tar.xz 1558308 BLAKE2B 1f7a33f313b736b305f62587c727ba843659621fbd89610dea81a0acf0e74aca8d3005cca2e3451fe30517880678023d4949bf1b1276bb660b80802e97c06bc8 SHA512 e7e6a5d7e2e02f07a2a6cfc09694e3c0a4e4a8ef8a435eed41902eba13caeed329ae6d6ba94b0de8f789e307f04656d12c48c1c0217b69d162bc5efb0ff6adee
diff --git a/net-misc/inetutils/inetutils-2.4.ebuild b/net-misc/inetutils/inetutils-2.4.ebuild
new file mode 100644
index 000000000000..9d0f0cfa8c4a
--- /dev/null
+++ b/net-misc/inetutils/inetutils-2.4.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit pam
+
+DESCRIPTION="Collection of common network programs"
+HOMEPAGE="https://www.gnu.org/software/inetutils/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+SERVERS="ftpd inetd rexecd rlogind rshd syslogd talkd telnetd tftpd uucpd"
+CLIENTS="ftp dnsdomainname hostname ping ping6 rcp rexec rlogin rsh logger telnet tftp whois ifconfig traceroute"
+PROGRAMS="${SERVERS} ${CLIENTS}"
+IUSE="idn kerberos pam tcpd ${PROGRAMS}"
+REQUIRED_USE="|| ( ${PROGRAMS} )"
+
+DEPEND="
+ sys-libs/readline:0=
+ ftpd? ( virtual/libcrypt:0= )
+ idn? ( net-dns/libidn2:= )
+ kerberos? ( virtual/krb5 )
+ pam? ( sys-libs/pam )
+ tcpd? ( sys-apps/tcp-wrappers )
+ uucpd? ( virtual/libcrypt:0= )
+"
+RDEPEND="${DEPEND}
+ ftpd? ( net-ftp/ftpbase[pam?] )
+ ftp? ( !net-ftp/ftp )
+ dnsdomainname? ( !sys-apps/net-tools )
+ hostname? ( !sys-apps/coreutils[hostname(-)] !sys-apps/net-tools[hostname(+)] )
+ ping? ( !net-misc/iputils )
+ ping6? ( !net-misc/iputils[ipv6(+)] )
+ rcp? ( !net-misc/netkit-rsh )
+ rexec? ( !net-misc/netkit-rsh )
+ rlogin? ( !net-misc/netkit-rsh )
+ rsh? ( !net-misc/netkit-rsh )
+ logger? ( !sys-apps/util-linux[logger(+)] )
+ telnet? ( !net-misc/telnet-bsd !net-misc/netkit-telnetd )
+ tftp? ( !net-ftp/tftp-hpa )
+ whois? ( !net-misc/whois )
+ ifconfig? ( !sys-apps/net-tools )
+ traceroute? ( !net-analyzer/traceroute )
+"
+
+QA_CONFIG_IMPL_DECL_SKIP=( MIN static_assert alignof )
+
+src_configure() {
+ local myconf=(
+ --disable-clients
+ --disable-servers
+ $(use_with idn)
+ --without-krb4
+ $(use_with kerberos krb5)
+ --without-shishi
+ $(use_with pam)
+ $(use_with tcpd wrap)
+ )
+
+ local prog
+ for prog in ${PROGRAMS}; do
+ myconf+=( $(use_enable "${prog}") )
+ done
+
+ econf "${myconf[@]}"
+}
+
+iu_pamd() {
+ if use "$1"; then
+ pamd_mimic system-remote-login "$2" auth account password session
+ fi
+}
+
+src_install() {
+ default
+ iu_pamd rexecd rexec
+ iu_pamd rlogind rlogin
+ iu_pamd rshd rsh
+ if use kerberos; then
+ iu_pamd rlogind krlogin
+ iu_pamd rshd krsh
+ fi
+}
diff --git a/net-misc/inetutils/metadata.xml b/net-misc/inetutils/metadata.xml
new file mode 100644
index 000000000000..41d63ea6caed
--- /dev/null
+++ b/net-misc/inetutils/metadata.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>floppym@gentoo.org</email>
+ <name>Mike Gilbert</name>
+ </maintainer>
+ <use>
+ <flag name="ftpd">Enable ftpd</flag>
+ <flag name="inetd">Enable inetd</flag>
+ <flag name="rexecd">Enable rexecd</flag>
+ <flag name="rlogind">Enable rlogind</flag>
+ <flag name="rshd">Enable rshd</flag>
+ <flag name="syslogd">Enable syslogd</flag>
+ <flag name="talkd">Enable talkd</flag>
+ <flag name="telnetd">Enable telnetd</flag>
+ <flag name="tftpd">Enable tftpd</flag>
+ <flag name="uucpd">Enable uucpd</flag>
+ <flag name="ftp">Enable ftp</flag>
+ <flag name="dnsdomainname">Enable domainname</flag>
+ <flag name="hostname">Enable hostname</flag>
+ <flag name="ping">Enable ping</flag>
+ <flag name="ping6">Enable ping6</flag>
+ <flag name="rcp">Enable rcp</flag>
+ <flag name="rexec">Enable rexec</flag>
+ <flag name="rlogin">Enable rlogin</flag>
+ <flag name="rsh">Enable rsh</flag>
+ <flag name="logger">Enable logger</flag>
+ <flag name="telnet">Enable telnet</flag>
+ <flag name="tftp">Enable tftp</flag>
+ <flag name="whois">Enable whois</flag>
+ <flag name="ifconfig">Enable ifconfig</flag>
+ <flag name="traceroute">Enable traceroute</flag>
+ </use>
+</pkgmetadata>