OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src openpkg-web Date: 12-Sep-2003 16:30:30
Branch: HEAD Handle: 2003091215302702
Added files:
openpkg-src/inetutils inetutils.patch
Modified files:
openpkg-src/inetutils inetutils.spec
openpkg-web news.txt
Log:
port to FreeBSD
Summary:
Revision Changes Path
1.1 +66 -0 openpkg-src/inetutils/inetutils.patch
1.2 +3 -1 openpkg-src/inetutils/inetutils.spec
1.6534 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/inetutils/inetutils.patch
============================================================================
$ cvs diff -u -r0 -r1.1 inetutils.patch
--- /dev/null 2003-09-12 16:30:29.000000000 +0200
+++ inetutils.patch 2003-09-12 16:30:29.000000000 +0200
@@ -0,0 +1,66 @@
+--- libinetutils/xalloc.h.orig 2002-12-11 13:51:10.000000000 +0100
++++ libinetutils/xalloc.h 2003-09-12 16:25:19.000000000 +0200
+@@ -39,7 +39,9 @@
+ /* Exit value when the requested amount of memory is not available.
+ It is initialized to EXIT_FAILURE, but the caller may set it to
+ some other value. */
++#ifdef __GLIBC__
+ extern int xalloc_exit_failure;
++#endif
+
+ /* If this pointer is non-zero, run the specified function upon each
+ allocation failure. It is initialized to zero. */
+--- libinetutils/xmalloc.c.orig 2002-12-11 13:42:01.000000000 +0100
++++ libinetutils/xmalloc.c 2003-09-12 16:25:51.000000000 +0200
+@@ -23,6 +23,7 @@
+
+ #if STDC_HEADERS
+ # include <stdlib.h>
++# include <stdio.h>
+ #else
+ void *calloc ();
+ void *malloc ();
+@@ -34,7 +35,9 @@
+ #define _(msgid) gettext (msgid)
+ #define N_(msgid) msgid
+
++#ifdef __GLIBC__
+ #include "error.h"
++#endif
+ #include "xalloc.h"
+
+ #ifndef EXIT_FAILURE
+@@ -53,7 +56,9 @@
+
+ /* Exit value when the requested amount of memory is not available.
+ The caller may set it to some other value. */
++#ifdef __GLIBC__
+ int xalloc_exit_failure = EXIT_FAILURE;
++#endif
+
+ /* If non NULL, call this function when memory is exhausted. */
+ void (*xalloc_fail_func) PARAMS ((void)) = 0;
+@@ -67,7 +72,11 @@
+ {
+ if (xalloc_fail_func)
+ (*xalloc_fail_func) ();
++#ifdef __GLIBC__
+ error (xalloc_exit_failure, 0, "%s", _(xalloc_msg_memory_exhausted));
++#else
++ fprintf(stderr, "%s", _(xalloc_msg_memory_exhausted));
++#endif
+ /* The `noreturn' cannot be given to error, since it may return if
+ its first argument is 0. To help compilers understand the
+ xalloc_die does terminate, call exit. */
+--- talk/io.c.orig 2001-06-02 17:27:15.000000000 +0200
++++ talk/io.c 2003-09-12 16:27:15.000000000 +0200
+@@ -129,7 +129,9 @@
+ }
+
+ extern int errno;
++#if !defined(__FreeBSD__)
+ extern int sys_nerr;
++#endif
+
+ /*
+ * p_error prints the system error message on the standard location
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/inetutils/inetutils.spec
============================================================================
$ cvs diff -u -r1.1 -r1.2 inetutils.spec
--- openpkg-src/inetutils/inetutils.spec 21 Aug 2003 13:18:02 -0000 1.1
+++ openpkg-src/inetutils/inetutils.spec 12 Sep 2003 14:30:29 -0000 1.2
@@ -33,7 +33,7 @@
Group: Network
License: GPL
Version: 1.4.2
-Release: 20030821
+Release: 20030912
# package options
%option with_fsl yes
@@ -41,6 +41,7 @@
# list of sources
Source0: ftp://ftp.gnu.org/gnu/inetutils/inetutils-%{version}.tar.gz
+Patch0: inetutils.patch
# build information
Prefix: %{l_prefix}
@@ -63,6 +64,7 @@
%prep
%setup -q
+ %patch -p0
%build
CC="%{l_cc}" \
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.6533 -r1.6534 news.txt
--- openpkg-web/news.txt 12 Sep 2003 13:59:35 -0000 1.6533
+++ openpkg-web/news.txt 12 Sep 2003 14:30:27 -0000 1.6534
@@ -1,3 +1,4 @@
+12-Sep-2003: Upgraded package: P<inetutils-1.4.2-20030912>
12-Sep-2003: Upgraded package: P<fping-2.4b2to-20030912>
12-Sep-2003: Upgraded package: P<qt-3.2.1-20030912>
12-Sep-2003: Upgraded package: P<coreutils-5.0.91-20030912>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]