Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/libs
In directory vz-cvs-3.sog:/tmp/cvs-serv30210/10.7/stable/main/finkinfo/libs
Added Files:
libcapsinetwork.info libcapsinetwork.patch
Log Message:
Bring forward from 10.4.
--- NEW FILE: libcapsinetwork.info ---
Package: libcapsinetwork
Version: 0.3.0
Revision: 1025
Description: C++ daemon development library
License: GPL/LGPL
Maintainer: Benjamin Reed <[email protected]>
BuildDepends: <<
fink (>= 0.29.7-1),
autoconf2.6,
automake1.11,
libtool2
<<
GCC: 4.0
Source:
http://ftp.debian.org/pool/main/libc/libcapsinetwork/libcapsinetwork_0.3.0.orig.tar.gz
Source-MD5: 9e6e221fdd1ec53c518b2ca61830e8cf
SourceDirectory: %n-%v
PatchScript: <<
patch -p1 < %{PatchFile}
autoreconf -fvi
<<
PatchFile: %n.patch
PatchFile-MD5: 63f00141cb26fcc62c4329724f2f8c02
SetCFLAGS: -Os
SetCXXFLAGS: -Os
NoSetLDFLAGS: true
ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info
CompileScript: <<
#!/bin/sh -ex
export lt_cv_sys_max_cmd_len=65536
if [ -x /usr/bin/gcc-4.2 ]; then
export CC=gcc-4.2 CXX=g++-4.2 CPP=cpp-4.2
fi
./configure %c
perl -pi -e 's,-no-undefined,,g' src/Makefile
make
<<
InstallScript: <<
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)
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/
DescUsage: <<
libCapsiNetwork is a C++ network library to allow fast development
of server daemon processes.
<<
--- 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)
{
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs