Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2626/main/finkinfo/libs
Modified Files:
libcapsinetwork.info
Added Files:
libcapsinetwork.patch
Log Message:
builds on 10.6
Index: libcapsinetwork.info
===================================================================
RCS file:
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/libcapsinetwork.info,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- libcapsinetwork.info 4 Mar 2007 20:30:57 -0000 1.3
+++ libcapsinetwork.info 8 Sep 2009 16:00:43 -0000 1.4
@@ -1,49 +1,57 @@
Package: libcapsinetwork
Version: 0.3.0
-Revision: 1023
-Description: C++ daemon development library
-License: GPL/LGPL
-Maintainer: Benjamin Reed <[email protected]>
-
+Revision: 1024
+Source:
http://ftp.debian.org/pool/main/libc/libcapsinetwork/libcapsinetwork_0.3.0.orig.tar.gz
+Source-MD5: 9e6e221fdd1ec53c518b2ca61830e8cf
+SourceDirectory: %n-%v
+BuildDepends: <<
+ fink (>= 0.28-1),
+ autoconf (>= 2.63-1),
+ automake1.11,
+ libtool2
+<<
+PatchFile: %n.patch
+PatchFile-MD5: 63f00141cb26fcc62c4329724f2f8c02
+PatchScript: <<
+ patch -p1 < %{PatchFile}
+ autoreconf -fvi
+<<
GCC: 4.0
-
-Source: http://www.robertjohnkaper.com/downloads/atlantik/%n-%v.tar.bz2
-Source-MD5: 47829a36d663dfe6ae8e59e16a9d0bb7
-
SetCFLAGS: -Os
SetCXXFLAGS: -Os
-SetMAKEFLAGS: -j1
NoSetLDFLAGS: true
-NoSetMAKEFLAGS: true
ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info
CompileScript: <<
#!/bin/sh -ex
- export lt_cv_sys_max_cmd_len=65536
- export CXX=g++
- ./configure %c
- perl -pi -e 's,CC="gcc",CC="g++",g' libtool
- perl -pi -e 's,-no-undefined,,g' src/Makefile
- make
+ export lt_cv_sys_max_cmd_len=65536
+ if [ -x /usr/bin/gcc-4.2 ]; then
+ export CC=gcc-4.2 CXX=gcc-4.2 CPP=cpp-4.2
+ fi
+ ./configure %c
+ perl -pi -e 's,-no-undefined,,g' src/Makefile
+ make CCLD=g++ CXXLD=g++
<<
-
InstallScript: <<
- make install DESTDIR="%d"
+ make -j1 install DESTDIR="%d"
ranlib %i/lib/*.a
<<
-DocFiles: AUTHORS COPYING* ChangeLog INSTALL NEWS README TODO
SplitOff: <<
- Package: %N-dev
Description: static libraries and headers for libCapsiNetwork
- Depends: libcapsinetwork (= %v-%r)
+ Package: %N-dev
+ Depends: libcapsinetwork (= %v-%r)
BuildDependsOnly: true
Files: include lib/libcapsinetwork.dylib lib/*.a lib/*.la
<<
-Shlibs: %p/lib/libcapsinetwork.0.dylib 1.0.0 %n (>= 0.2.5-1)
-
-Homepage: http://sourceforge.net/projects/libcapsinetwork/
+Shlibs: <<
+ %p/lib/libcapsinetwork.0.dylib 1.0.0 %n (>= 0.2.5-1)
+<<
+DocFiles: AUTHORS COPYING* ChangeLog INSTALL NEWS README TODO
+Description: C++ daemon development library
DescUsage: <<
libCapsiNetwork is a C++ network library to allow fast development
of server daemon processes.
<<
-
+License: GPL/LGPL
+Maintainer: Benjamin Reed <[email protected]>
+Homepage: http://sourceforge.net/projects/libcapsinetwork/
--- NEW FILE: libcapsinetwork.patch ---
diff -Nurd libcapsinetwork-0.3.0/src/Makefile.am
libcapsinetwork-0.3.0-patched/src/Makefile.am
--- libcapsinetwork-0.3.0/src/Makefile.am 2004-07-15 05:39:28.000000000
-0400
+++ libcapsinetwork-0.3.0-patched/src/Makefile.am 2009-09-08
11:53:00.000000000 -0400
@@ -8,7 +8,7 @@
noinst_PROGRAMS = exampleserver
exampleserver_SOURCES = server.cpp
-exampleserver_LDADD = -L. -lcapsinetwork
+exampleserver_LDADD = ./libcapsinetwork.la
exampleserverincdir = .
noinst_HEADERS = listenport.h server.h
diff -Nurd libcapsinetwork-0.3.0/src/Makefile.in
libcapsinetwork-0.3.0-patched/src/Makefile.in
--- libcapsinetwork-0.3.0/src/Makefile.in 2004-07-15 05:39:51.000000000
-0400
+++ libcapsinetwork-0.3.0-patched/src/Makefile.in 2009-09-08
11:48:36.000000000 -0400
@@ -96,7 +96,7 @@
noinst_PROGRAMS = exampleserver
exampleserver_SOURCES = server.cpp
-exampleserver_LDADD = -L. -lcapsinetwork
+exampleserver_LDADD = ./libcapsinetwork.la
exampleserverincdir = .
noinst_HEADERS = listenport.h server.h
diff -Nurd libcapsinetwork-0.3.0/src/listener.cpp
libcapsinetwork-0.3.0-patched/src/listener.cpp
--- libcapsinetwork-0.3.0/src/listener.cpp 2004-07-15 05:39:28.000000000
-0400
+++ libcapsinetwork-0.3.0-patched/src/listener.cpp 2009-09-08
11:47:51.000000000 -0400
@@ -31,6 +31,7 @@
#include <netdb.h>
#include <unistd.h>
+#include <stdlib.h>
#include "listener.h"
#include "listenport.h"
diff -Nurd libcapsinetwork-0.3.0/src/listenport.cpp
libcapsinetwork-0.3.0-patched/src/listenport.cpp
--- libcapsinetwork-0.3.0/src/listenport.cpp 2004-07-15 05:39:28.000000000
-0400
+++ libcapsinetwork-0.3.0-patched/src/listenport.cpp 2009-09-08
11:47:51.000000000 -0400
@@ -30,6 +30,7 @@
#include <fcntl.h>
#include <netdb.h>
#include <unistd.h>
+#include <string.h>
#include "listenport.h"
diff -Nurd libcapsinetwork-0.3.0/src/server.cpp
libcapsinetwork-0.3.0-patched/src/server.cpp
--- libcapsinetwork-0.3.0/src/server.cpp 2004-07-15 05:39:28.000000000
-0400
+++ libcapsinetwork-0.3.0-patched/src/server.cpp 2009-09-08
11:47:51.000000000 -0400
@@ -26,6 +26,7 @@
#include <string>
#include <stdio.h>
+#include <stdlib.h>
// In real applications, use the following include instead of the local.
// #include <libcapsinetwork/socket.h>
diff -Nurd libcapsinetwork-0.3.0/src/socket.cpp
libcapsinetwork-0.3.0-patched/src/socket.cpp
--- libcapsinetwork-0.3.0/src/socket.cpp 2004-07-15 05:39:28.000000000
-0400
+++ libcapsinetwork-0.3.0-patched/src/socket.cpp 2009-09-08
11:48:48.000000000 -0400
@@ -25,6 +25,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <unistd.h>
+#include <string.h>
#include "socket.h"
@@ -49,7 +50,7 @@
const bool Socket::hasReadLine()
{
static std::string newLine = "\r\n";
- unsigned int pos = m_ioBuf.find_first_of(newLine);
+ std::string::size_type pos = m_ioBuf.find_first_of(newLine);
return (!(pos == std::string::npos));
}
@@ -57,7 +58,7 @@
const std::string Socket::readLine()
{
static std::string newLine = "\r\n";
- unsigned int pos = m_ioBuf.find_first_of(newLine);
+ std::string::size_type pos = m_ioBuf.find_first_of(newLine);
if (pos != std::string::npos)
{
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs