aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/linux-atm/Manifest6
-rw-r--r--net-dialup/linux-atm/files/linux-atm-2.5.2-headers.patch30
-rw-r--r--net-dialup/linux-atm/files/linux-atm-2.5.2-mask-on_exit.patch14
-rw-r--r--net-dialup/linux-atm/files/linux-atm-2.5.2-remove-SYS_poll-hack.patch18
-rw-r--r--net-dialup/linux-atm/linux-atm-2.5.2-r99.ebuild48
-rw-r--r--net-dialup/linux-atm/metadata.xml9
6 files changed, 125 insertions, 0 deletions
diff --git a/net-dialup/linux-atm/Manifest b/net-dialup/linux-atm/Manifest
new file mode 100644
index 0000000..d2372f0
--- /dev/null
+++ b/net-dialup/linux-atm/Manifest
@@ -0,0 +1,6 @@
+AUX linux-atm-2.5.2-headers.patch 646 SHA256 1af9ad2106d0a6e53cc360e1f052db1437c8286481c9b4cd4166018e9413e26d SHA512 4248a0063de9723ca6a3abdd07c5c3f4bda5a43f21bb5d19f931e898abd3e10f52b20c9d1a21415a17bee70ac6bdba83e13704f2a7c5489fb12d6e93a5a8e113 WHIRLPOOL 1897069af35688e102c4ff957b098720a5b659beeb06eb4fcf9d754286677b6677e50149b2a59e25357ad9fc903fc25a5e0ea817d0580c7041f293a526b6e6d7
+AUX linux-atm-2.5.2-mask-on_exit.patch 486 SHA256 4daf19533f682b93c1040b90d80540ce7868474475a687a850693637a2eb659e SHA512 c5fa90cba6e322e2c779e8176007338d0d3f8e844b66f52e4a19523f7f1d0a406f7d32c4870d2670d207a76149621ebcfc3fec34f53ec844e0976bb01cef192e WHIRLPOOL 402bbc5e2c1f3e46fe40dfb778ead29fb0b61cae0d645b38f6cb5a1d674619399023439c7ad2e6151dc616003a0825cb456cdcb7db0d423da6dcd81ee9cb2037
+AUX linux-atm-2.5.2-remove-SYS_poll-hack.patch 654 SHA256 5d167f63b7d57b4165cac106b83568bc8bc9a540cf25f79f8f071b0b36fbab2c SHA512 6347356b3f160e62fd8b2578503c29f920bfa404a73553f9cde35f2bdde2d001aa5df490c3a348decff1e915ab34e99989aa0ea517a8c31fb097e108d51ab0e8 WHIRLPOOL b818c13ffa1d44ebb06d6484f0497dff914fa4570b5c15a07b3d83efa16faf60a311195bb46e6e5802fac65d639d7758b67ce8296b955e6222ded6d92b41055e
+DIST linux-atm-2.5.2.tar.gz 1082256 SHA256 9645481a2b16476b59220aa2d6bc5bc41043f291326c9b37581018fbd16dd53a SHA512 0a50e91513e4e1f882dc6f4792dc032e89497ff745c0eaea0c0c848b0f84e40d19e038e4ab5aa70c1f915c28a9f845340c332ac5c3ae838b8f539466e10a0a08 WHIRLPOOL ddff2b022bd94a64662e2feb8588b0b7a1d33380aaca91888d57c90602ec777f8db308f62b33846f9b2f40dfd7d6b40ca4ddd9d430e1c6bc8a36cdbb4e370771
+EBUILD linux-atm-2.5.2-r99.ebuild 1060 SHA256 2a3b9a148a0101f084801dcf929628ed4ecf8f0a3638b298f1fd162715c7b3a5 SHA512 dec99034975a8e019e2b0701729b5c0df7699044139847602c8f3b3879e79979e1a326d0ba90f68b2a16ae877b93a7947750e2119fe3d7ea22ad8938acf35653 WHIRLPOOL a64d261484aa5702eeba2f4c27bc97d8e8885af3d4a3d4ae8748a28ef14e41f2e594667856efe16dddedf0a36e628129098bc1225064ff423135dd6d889b16cd
+MISC metadata.xml 300 SHA256 e314700d28526216302aef8a8dbac4a08b208a6d2420341cfe70ad398de5f53a SHA512 67c47018a7b1326a4f860cbd40a63462c6086721992770a2bf640c8ae7fcb2ceca4b5404305a780b9afad7bf95f018c71b37834d4df2a59d8441f0b4ebfea776 WHIRLPOOL cf1ce2540ce06650c2ad73c0ddc47422428c783739aab3a7c5e32805f2b628dd0e9516bb4c99914d6994ea31f31519c866e88a372d9c0e1be2e6f1e9be103df8
diff --git a/net-dialup/linux-atm/files/linux-atm-2.5.2-headers.patch b/net-dialup/linux-atm/files/linux-atm-2.5.2-headers.patch
new file mode 100644
index 0000000..edfb38d
--- /dev/null
+++ b/net-dialup/linux-atm/files/linux-atm-2.5.2-headers.patch
@@ -0,0 +1,30 @@
+--- linux-atm/src/maint/hediag.c.orig
++++ linux-atm/src/maint/hediag.c
+@@ -1,5 +1,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <unistd.h>
+ #include <sys/ioctl.h>
+ #include <sys/types.h>
+--- linux-atm/src/qgen/ql_y.y
++++ linux-atm/src/qgen/ql_y.y
+@@ -17,6 +17,8 @@
+ static STRUCTURE *structures = NULL;
+ static const char *abort_id; /* indicates abort flag */
+
++void yyerror(const char *s);
++int yylex ( void );
+
+ static NAME_LIST *get_name_list(const char *name)
+ {
+--- linux-atm/src/test/ispl_y.y
++++ linux-atm/src/test/ispl_y.y
+@@ -16,6 +16,7 @@
+
+ static struct atmsvc_msg msg;
+
++int yylex ( void );
+
+ %}
+
diff --git a/net-dialup/linux-atm/files/linux-atm-2.5.2-mask-on_exit.patch b/net-dialup/linux-atm/files/linux-atm-2.5.2-mask-on_exit.patch
new file mode 100644
index 0000000..db1e1c0
--- /dev/null
+++ b/net-dialup/linux-atm/files/linux-atm-2.5.2-mask-on_exit.patch
@@ -0,0 +1,14 @@
+diff --git a/linux-atm-2.5.2.orig/src/sigd/atmsigd.c b/linux-atm-2.5.2/src/sigd/atmsigd.c
+index 52e41c7..3546f65 100644
+--- a/linux-atm-2.5.2.orig/src/sigd/atmsigd.c
++++ b/linux-atm-2.5.2/src/sigd/atmsigd.c
+@@ -517,7 +517,9 @@ int main(int argc,char **argv)
+ exit(0);
+ }
+ }
++ /* on_exit() is not implemented on musl.
+ (void) on_exit(trace_on_exit,NULL);
++ */
+ poll_loop();
+ close_all();
+ for (sig = entities; sig; sig = sig->next) stop_saal(&sig->saal);
diff --git a/net-dialup/linux-atm/files/linux-atm-2.5.2-remove-SYS_poll-hack.patch b/net-dialup/linux-atm/files/linux-atm-2.5.2-remove-SYS_poll-hack.patch
new file mode 100644
index 0000000..8a00b67
--- /dev/null
+++ b/net-dialup/linux-atm/files/linux-atm-2.5.2-remove-SYS_poll-hack.patch
@@ -0,0 +1,18 @@
+diff -Naur linux-atm-2.5.2.orig/src/mpoad/io.c linux-atm-2.5.2/src/mpoad/io.c
+--- linux-atm-2.5.2.orig/src/mpoad/io.c 2007-12-31 19:14:51.000000000 -0500
++++ linux-atm-2.5.2/src/mpoad/io.c 2015-07-15 13:25:41.500014905 -0400
+@@ -10,14 +10,7 @@
+ #include <errno.h>
+ #include <sys/ioctl.h>
+ #include <sys/param.h> /* for OPEN_MAX */
+-#if __GLIBC__ >= 2
+ #include <sys/poll.h>
+-#else /* ugly hack to make it compile on RH 4.2 - WA */
+-#include <syscall.h>
+-#include <linux/poll.h>
+-#define SYS_poll 168
+-_syscall3(int,poll,struct pollfd *,ufds,unsigned int,nfds,int,timeout);
+-#endif
+ #include <atm.h>
+ #include <linux/types.h>
+ #include <linux/atmioc.h>
diff --git a/net-dialup/linux-atm/linux-atm-2.5.2-r99.ebuild b/net-dialup/linux-atm/linux-atm-2.5.2-r99.ebuild
new file mode 100644
index 0000000..f612e9b
--- /dev/null
+++ b/net-dialup/linux-atm/linux-atm-2.5.2-r99.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/linux-atm/linux-atm-2.5.2.ebuild,v 1.2 2014/01/19 20:03:06 vapier Exp $
+
+EAPI=5
+
+inherit eutils flag-o-matic libtool linux-info
+
+DESCRIPTION="Tools for ATM"
+HOMEPAGE="http://linux-atm.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ~mips ppc x86"
+IUSE="static-libs"
+
+RDEPEND=""
+DEPEND="virtual/yacc"
+
+RESTRICT="test"
+
+DOCS=( AUTHORS BUGS ChangeLog NEWS README THANKS )
+
+CONFIG_CHECK="~ATM"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-headers.patch
+ epatch "${FILESDIR}"/${P}-mask-on_exit.patch
+ epatch "${FILESDIR}"/${P}-remove-SYS_poll-hack.patch
+
+ sed -i '/#define _LINUX_NETDEVICE_H/d' \
+ src/arpd/*.c || die "sed command on arpd/*.c files failed"
+
+ elibtoolize
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+ dodoc doc/README* doc/atm*
+}
diff --git a/net-dialup/linux-atm/metadata.xml b/net-dialup/linux-atm/metadata.xml
new file mode 100644
index 0000000..cf1b28e
--- /dev/null
+++ b/net-dialup/linux-atm/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-dialup</herd>
+ <longdescription>Tools for ATM.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">linux-atm</remote-id>
+ </upstream>
+</pkgmetadata>