diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/netkit-base |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/netkit-base')
-rw-r--r-- | sys-apps/netkit-base/Manifest | 9 | ||||
-rw-r--r-- | sys-apps/netkit-base/files/003_all_netkit-base-0.17-gcc4.patch | 11 | ||||
-rw-r--r-- | sys-apps/netkit-base/files/004_all_netkit-base-0.17-misc-fixes.patch | 54 | ||||
-rw-r--r-- | sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch | 26 | ||||
-rw-r--r-- | sys-apps/netkit-base/files/inetd.rc6 | 23 | ||||
-rw-r--r-- | sys-apps/netkit-base/metadata.xml | 8 | ||||
-rw-r--r-- | sys-apps/netkit-base/netkit-base-0.17-r9.ebuild | 42 |
7 files changed, 173 insertions, 0 deletions
diff --git a/sys-apps/netkit-base/Manifest b/sys-apps/netkit-base/Manifest new file mode 100644 index 000000000000..c727f4d8d61c --- /dev/null +++ b/sys-apps/netkit-base/Manifest @@ -0,0 +1,9 @@ +AUX 003_all_netkit-base-0.17-gcc4.patch 321 SHA256 8ab9c712ce08fc62591303e54348d9cacd36a6cd5a25b7c002edbdaa16cbba78 SHA512 a7ba0110ac7febb956933594cc6bb0bf804fd00b2f30ac6683d22d4abad7b4f091de18147e32b5a40203a30efaf5bf25b98ccfc084fe374e270bac42ed607edd WHIRLPOOL f18b5b14174b9d955631b6399bcdcdc8a57766a95a9a6c873d48acf61d90f893d01215318c92563ef462933a7b2dde71e11e5669350a14527ef7059eb8af2a97 +AUX 004_all_netkit-base-0.17-misc-fixes.patch 1601 SHA256 a820d7daef5b03a821f94f14a2a0998465db579a6abfbad17eece55a1753b1ef SHA512 86533af9f1784d976baf27695f9af25933886bfa1e571d6d967084d1952bb7b31620b5135d2d88c2881a1ce7a39f6be4d74bc9483d9d78236451a0c68f1488a5 WHIRLPOOL f1ef48758a6b7882b2f5466fc173e6ec98592fe25090f2674fe9003363292cc4a2324e825bf2346889ada912ef5a94ee9a7b5ed51732bffa8849980566fd0375 +AUX 005_all_netkit-base-0.17-no-rpc.patch 522 SHA256 fe76d64667a8ef0633cb4eb2d0cd8eede4732bc84ac79cd2eabf4635d940f9fe SHA512 0dff7bb005c1d480444b8ff61f53626ed0a5748730c2a1ff489a277a1bbd61e08bd9c46261acc040f5030d7048a291fa5f22cb7b1a58bb468d8264d4b6272d0b WHIRLPOOL b006d67dacb04db967718265d949c3c22dd1e229fa2c9d0d1c6eb37bfe3597201de014468effc09b2982669d0a46dc0858becd3622cac2b3c308c5853364a6c9 +AUX inetd.rc6 470 SHA256 de265032bdb3ed2f28b25a54122b79760d3e90a611b065ac9114ca5ad0f77e16 SHA512 525f4f948721553f051a929d5c6b7c49208256170c423ac10ad49427cc89fdc19dbadf81e7a3d8eed07c54c5a266e73cb0ac24c8f95f60f731fab571ccbbd5d2 WHIRLPOOL 9a97bd277dd11f94bca326eaf9b6f76084aa186f6fd1a8ea24de6266e1fd95804d2655a6c4e0d5072721fa3e808c4a36513536c58d2e25acfa1c99c873a9fd20 +DIST netkit-base-0.17.tar.gz 56473 SHA256 16dd81625ebfc8f5dcb0dfd2e6bac223aad325a9405d66a556fe349446b3c332 SHA512 2faae6471251647ea0d499c96d13faf72bc9aa4ab408f9f7f4c9fc41b1e1e2ce0bcad626ca027135b5a20f311362e90af57c7197885d02a0839beea5b4fdb821 WHIRLPOOL 9f9a61ec463b22ff3a1daa2da9673eb8854e2d6fa76c50f2bdb996d3119714246410938399f8bc92e661918434207f195bf1256cc8ade8755405bf3949a73bec +EBUILD netkit-base-0.17-r9.ebuild 1010 SHA256 e009c35d4d07c0e689adc2213d7c54450da68060b853ceca24c3e493e4b04841 SHA512 d3260e5da8605ec369ed096f826c93e374caeddb72d5a53f3a751524cdc82a3b159e9238a09392833aef2ab299e499a703a2bc1aa514005bc05a6d65c5187e4c WHIRLPOOL e50d53b371b3dc51f5d9a33748ce312f5562870ff5729d1783bc167fe3ff8d00e9323f3eb6b985a99614a1febbee66d44cb90106e2353e252967231b4e54924d +MISC ChangeLog 3232 SHA256 8645ddab9f49971a7c6cd807ccc5d01211043df0d5c2bddfee8514c2eb8018d5 SHA512 247d455618c82fe92f2d3384bc8a74d6ba75087b68da0aca51bf059310fa121635220729141c53658ff1feedf3705849f1d47b7bc6b407fd740f8a96299af12f WHIRLPOOL 96c334814d8362a3e475d82b187e285b7dbacf041b4ce2f68cac6ea5a93c00bd790ea4e699c05ccf5c855a6f436cab99de4ad37b39cca3063b4e7aae9279e24e +MISC ChangeLog-2015 6564 SHA256 b9e969f6c427c0f9971c1121e89fd195fa76b49392e53641206792da48401370 SHA512 e3189228a12a727576be8cae752d6e025747f9ad769e7d4704e9ef5c0ae27eca926b96e91ecb61f67382ad214403491cb3d0dd868f6d487e7e650e779cf5b1b6 WHIRLPOOL 6a18c0edd51dcbcbd3301fae31a5af2641c39199d0c030580a910014b27b3ba7d6d7a58a754509fe84b62c54bdc25af7ecff488561666ff2206fdc3e5c69219b +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-apps/netkit-base/files/003_all_netkit-base-0.17-gcc4.patch b/sys-apps/netkit-base/files/003_all_netkit-base-0.17-gcc4.patch new file mode 100644 index 000000000000..266df811fd77 --- /dev/null +++ b/sys-apps/netkit-base/files/003_all_netkit-base-0.17-gcc4.patch @@ -0,0 +1,11 @@ +--- netkit-base-0.17/inetd/servtab.c ++++ netkit-base-0.17/inetd/servtab.c +@@ -771,7 +771,7 @@ + return; + } + +-#define SWAP(type, a, b) {type c=(type)a; (type)a=(type)b; (type)b=(type)c;} ++#define SWAP(type, a, b) {type c=(type)a; a=(type)b; b=(type)c;} + + /* + * sep->se_wait may be holding the pid of a daemon diff --git a/sys-apps/netkit-base/files/004_all_netkit-base-0.17-misc-fixes.patch b/sys-apps/netkit-base/files/004_all_netkit-base-0.17-misc-fixes.patch new file mode 100644 index 000000000000..9492d715e20f --- /dev/null +++ b/sys-apps/netkit-base/files/004_all_netkit-base-0.17-misc-fixes.patch @@ -0,0 +1,54 @@ +--- netkit-base-0.17/inetd/builtins.c ++++ netkit-base-0.17/inetd/builtins.c +@@ -12,6 +12,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <unistd.h> ++#include <time.h> + + #include "servtab.h" + #include "builtins.h" +--- netkit-base-0.17/inetd/inetd.c ++++ netkit-base-0.17/inetd/inetd.c +@@ -869,8 +869,8 @@ + int on = 1; + + if ((sep->se_fd = socket(sep->se_family, sep->se_socktype, 0)) < 0) { +- syslog(LOG_ERR, "%s: socket: %m", service_name(sep), +- sep->se_service, sep->se_proto); ++ syslog(LOG_ERR, "%s: socket: %m", service_name(sep)); ++/* sep->se_service, sep->se_proto); */ + + if (errno == EMFILE) { + syslog(LOG_ALERT, +@@ -888,8 +888,8 @@ + syslog(LOG_ERR, "setsockopt (SO_REUSEADDR): %m"); + #undef turnon + if (bind(sep->se_fd, &sep->se_ctrladdr, sep->se_ctrladdr_size) < 0) { +- syslog(LOG_ERR, "%s: bind: %m", service_name(sep), +- sep->se_service, sep->se_proto); ++ syslog(LOG_ERR, "%s: bind: %m", service_name(sep)); ++/* sep->se_service, sep->se_proto); */ + (void) close(sep->se_fd); + sep->se_fd = -1; + if (!timingout) { +@@ -938,8 +938,8 @@ + } + m = sizeof(sn); + if (getsockname(sep->se_fd, (struct sockaddr *)&sn, &m) < 0) { +- syslog(LOG_ERR, "%s: getsockname: %m", service_name(sep), +- sep->se_service, sep->se_proto); ++ syslog(LOG_ERR, "%s: getsockname: %m", service_name(sep)); ++/* sep->se_service, sep->se_proto); */ + return; + } + +@@ -1026,7 +1026,7 @@ + if (rl.rlim_cur <= rlim_ofile_cur) { + syslog(LOG_ERR, + "bump_nofile: cannot extend file limit, max = %d", +- rl.rlim_cur); ++ (int)rl.rlim_cur); + return -1; + } + diff --git a/sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch b/sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch new file mode 100644 index 000000000000..3981b50e76e1 --- /dev/null +++ b/sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch @@ -0,0 +1,26 @@ +the rpc logic here isn't terribly useful, so just punt it + +http://bugs.gentoo.org/371395 + +--- a/inetd/inetd.c ++++ b/inetd/inetd.c +@@ -158,8 +158,8 @@ + #include <rpc/rpc.h> + #include <rpc/pmap_clnt.h> + #undef __wait +-#endif + #include <rpc/pmap_clnt.h> ++#endif + + #ifndef MIN + #define MIN(a, b) ((a) < (b) ? (a) : (b)) +--- a/inetd/inetd.h ++++ b/inetd/inetd.h +@@ -4,7 +4,6 @@ + + #define RETRYTIME (60*10) /* retry time after bind/server fail */ + +-#define RPC /* Use SunRPC */ + + + /* globals */ diff --git a/sys-apps/netkit-base/files/inetd.rc6 b/sys-apps/netkit-base/files/inetd.rc6 new file mode 100644 index 000000000000..e124cf8b303d --- /dev/null +++ b/sys-apps/netkit-base/files/inetd.rc6 @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net +} + +start() { + ebegin "Starting inetd" + ( + # workaround for #25754 + unset -f `declare -F | sed 's:declare -f::g'` + start-stop-daemon --start --quiet --pidfile /var/run/inetd.pid --exec /usr/sbin/inetd + ) + eend $? +} + +stop() { + ebegin "Stopping inetd" + start-stop-daemon --stop --quiet --pidfile /var/run/inetd.pid + eend $? +} diff --git a/sys-apps/netkit-base/metadata.xml b/sys-apps/netkit-base/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-apps/netkit-base/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> diff --git a/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild b/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild new file mode 100644 index 000000000000..02a23dbfa4de --- /dev/null +++ b/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="Old-style inetd" +HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/" +SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/*.patch +} + +src_configure() { + tc-export CC + ./configure || die + sed -i \ + -e "/^CFLAGS=/s:=.*:=${CFLAGS} -Wall -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline:" \ + -e "/^LDFLAGS=/s:=.*:=${LDFLAGS}:" \ + MCONFIG || die +} + +src_install() { + sed -i \ + -e 's:in\.telnetd$:in.telnetd -L /usr/sbin/telnetlogin:' \ + etc.sample/inetd.conf + + dosbin inetd/inetd + doman inetd/inetd.8 + newinitd "${FILESDIR}"/inetd.rc6 inetd + + dodoc BUGS ChangeLog README + docinto samples + dodoc etc.sample/* +} |