debian/0000755000000000000000000000000012260517574007177 5ustar debian/rules0000755000000000000000000000155612233507537010264 0ustar #!/usr/bin/make -f DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) %: dh $@ --with autoreconf override_dh_autoreconf: dh_autoreconf ./autogen override_dh_clean: dh_clean depcomp config.guess compile install-sh config.sub ltmain.sh missing doc/texinfo.tex SOVERSION = 1 pkg_lib = libsocket++$(SOVERSION) pkg_dev = libsocket++-dev override_dh_install: # pkg_lib dh_install -p$(pkg_lib) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/lib*.so.* usr/lib/$(DEB_HOST_MULTIARCH) # pkg_dev #dh_install -p$(pkg_dev) debian/tmp/usr/lib/lib*.a usr/lib dh_install -p$(pkg_dev) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/lib*.so usr/lib/$(DEB_HOST_MULTIARCH) dh_install -p$(pkg_dev) --autodest debian/tmp/usr/include/socket++/* dh_install -p$(pkg_dev) --autodest usr/share/info/socket++.info get-orig-source: uscan --verbose --force-download --rename debian/watch0000644000000000000000000000017312232764701010224 0ustar version=3 http://www.linuxhacker.at/socketxx/download \ http://src.linuxhacker.at/socket\+\+/socket\+\+-([\d\.]*)\.tar\.gz debian/changelog0000644000000000000000000000221012260517333011035 0ustar socket++ (1.12.13-7) unstable; urgency=low * Hurd does not support sys_errlist -- Mathieu Malaterre Tue, 31 Dec 2013 11:39:02 +0100 socket++ (1.12.13-6) unstable; urgency=low * Final fixes for Hurd -- Mathieu Malaterre Tue, 31 Dec 2013 08:39:12 +0100 socket++ (1.12.13-5) unstable; urgency=low * Yet another round of fixes for Hurd/kFreeBSD -- Mathieu Malaterre Mon, 30 Dec 2013 14:15:34 +0100 socket++ (1.12.13-4) unstable; urgency=low * Fix remaining issues on Hurd/kFreeBSD -- Mathieu Malaterre Sun, 29 Dec 2013 12:07:03 +0100 socket++ (1.12.13-3) unstable; urgency=low * Another round of fixes for Hurd/kFreeBSD -- Mathieu Malaterre Fri, 13 Dec 2013 09:14:27 +0100 socket++ (1.12.13-2) unstable; urgency=low * Fix compilation on hurd/kFreeBSD * Bump Std-Vers to 3.9.5, no changes needed -- Mathieu Malaterre Wed, 11 Dec 2013 09:03:55 +0100 socket++ (1.12.13-1) unstable; urgency=low * Initial release. (Closes: #278940) -- Mathieu Malaterre Sun, 27 Oct 2013 07:08:17 +0100 debian/control0000644000000000000000000000341712260517441010600 0ustar Source: socket++ Maintainer: Debian Med Packaging Team Uploaders: Mathieu Malaterre Section: libs Priority: optional Build-Depends: debhelper (>= 9~), dh-autoreconf, texinfo, install-info Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/socket++/trunk/ Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/socket++/trunk/ Homepage: http://www.linuxhacker.at/socketxx Package: libsocket++1 Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Description: lightweight convenience library to handle low level BSD sockets in C++ - libs Socket++ library defines a family of C++ classes that can be used more effectively than directly calling the underlying low-level system functions. One distinct advantage of the socket++ is that it has the same interface as that of the iostream so that the users can perform type-safe input output. See your local IOStream library documentation for more information on iostreams. . This package contains the libraries needed to run socket++ applications. Package: libsocket++-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, libsocket++1 (= ${binary:Version}) Description: lightweight convenience library to handle low level BSD sockets in C++ -devel Socket++ library defines a family of C++ classes that can be used more effectively than directly calling the underlying low-level system functions. One distinct advantage of the socket++ is that it has the same interface as that of the iostream so that the users can perform type-safe input output. See your local IOStream library documentation for more information on iostreams. . Headers and shared libraries for socket++. debian/copyright0000644000000000000000000000211612233431131011112 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Socket++ Upstream-Contact: Herbert Straub Source: http://www.linuxhacker.at/socketxx/download Files: * Copyright: 1992-1996 Gnanasekaran Swaminathan 2002-2003 Herbert Straub License: Permission is granted to use at your own risk and distribute this software in source and binary forms provided the above copyright notice and this paragraph are preserved on all copies. This software is provided "as is" with no express or implied warranty. Comment: Modification is explicitly added by upstream in an email: > +++ > Hi Herbert, > > That was not the intention. It is a free code. You can modify, > copy, and distribute and use it in anyway as you see fit. > > Other people are maintaining it and ported it to different > OSes. Other than that, not much has changed as far as I know. > I haven't looked at it recently. > > -Sekar ref: http://bugs.debian.org/278940#10 Files: debian/* Copyright: 2013 Mathieu Malaterre License: PD Public Domain debian/source/0000755000000000000000000000000012260517463010474 5ustar debian/source/format0000644000000000000000000000001412233127225011673 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212232764701010370 0ustar 9 debian/patches/0000755000000000000000000000000012260517463010623 5ustar debian/patches/fixinfo.patch0000644000000000000000000000112012233507537013301 0ustar Description: Fix issue with subsection vs section Author: Mathieu Malaterre Forwarded: no --- socket++-1.12.13.orig/doc/socket++.texi +++ socket++-1.12.13/doc/socket++.texi @@ -2334,7 +2334,7 @@ an @code{echo} object is a smart pointer @end table -@subsection tsecho.C +@section tsecho.C @example // echo server. Serves clients at port 4000. #include @@ -2449,7 +2449,7 @@ recipient previously established through @end table -@subsection tcsmtp.C +@section tcsmtp.C @example // smtp client. // The president sends a message to gs4t@@virginia.edu. debian/patches/hurd5.patch0000644000000000000000000000107512260472547012701 0ustar Description: Fix compilation issue on kFreeBSD and HURD Author: Mathieu Malaterre Forwarded: no Index: socket++-1.12.13/socket++/ftp.h =================================================================== --- socket++-1.12.13.orig/socket++/ftp.h 2013-12-31 08:36:53.000000000 +0100 +++ socket++-1.12.13/socket++/ftp.h 2013-12-31 08:38:09.338459766 +0100 @@ -14,6 +14,9 @@ #include #ifndef WIN32 # include +#ifndef MAXPATHLEN +#define MAXPATHLEN 4096 +#endif #else #define MAXPATHLEN MAX_PATH #endif // !WIN32 debian/patches/hurd3.patch0000644000000000000000000000201712260001557012661 0ustar Description: Fix compilation issue on kFreeBSD and HURD Author: Mathieu Malaterre Forwarded: no --- socket++-1.12.13.orig/socket++/sockinet.cpp +++ socket++-1.12.13/socket++/sockinet.cpp @@ -36,6 +36,8 @@ typedef int socklen_t; # include # include # include +# include +# include EXTERN_C_END #else # define socklen_t int --- socket++-1.12.13.orig/socket++/local.h +++ socket++-1.12.13/socket++/local.h @@ -93,7 +93,7 @@ extern "C" int shutdown (int, int); // t #if !(defined (__linux__) || defined(__FreeBSD__)) // extern "C" int gethostname (char* hostname, int len); -#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) +#if !(defined(__FreeBSD__) || defined(__GNU__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) extern char* SYS_SIGLIST []; #endif #endif debian/patches/hurd4.patch0000644000000000000000000000172212260271322012663 0ustar Description: Fix compilation issue on kFreeBSD and HURD Author: Mathieu Malaterre Forwarded: no --- socket++-1.12.13.orig/socket++/ftp.cpp +++ socket++-1.12.13/socket++/ftp.cpp @@ -20,6 +20,10 @@ #include // for sprintf #include +#include +#include +#include + using namespace std; #if defined (__osf__) && defined (__DECCXX) --- socket++-1.12.13.orig/socket++/sockstream.h +++ socket++-1.12.13/socket++/sockstream.h @@ -137,7 +137,7 @@ public: msg_peek = MSG_PEEK, msg_dontroute = MSG_DONTROUTE, -#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) +#if !(defined(__FreeBSD__) || defined(__GNU__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) msg_maxiovlen = MSG_MAXIOVLEN #endif }; debian/patches/kfreebsd.patch0000644000000000000000000000551312252540546013434 0ustar Description: Fix compilation issue on kFreeBSD and HURD Author: Mathieu Malaterre Forwarded: no Index: socket++-1.12.13/socket++/local.h =================================================================== --- socket++-1.12.13.orig/socket++/local.h 2013-12-13 09:11:52.000000000 +0100 +++ socket++-1.12.13/socket++/local.h 2013-12-13 09:11:55.000000000 +0100 @@ -81,17 +81,19 @@ #if !defined (__linux__) // LN extern "C" int shutdown (int, int); // they have forgotten this +#else +# include #endif // does not have a prototype for inet_addr () and gethostname() -extern "C" unsigned long inet_addr (const char*); +//extern "C" unsigned long inet_addr (const char*); // arpa/in.h does not provide a protype for the following -extern "C" char* inet_ntoa (in_addr ina); +//extern "C" char* inet_ntoa (in_addr ina); #if !(defined (__linux__) || defined(__FreeBSD__)) - extern "C" int gethostname (char* hostname, int len); -#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) +// extern "C" int gethostname (char* hostname, int len); +#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) extern char* SYS_SIGLIST []; #endif #endif Index: socket++-1.12.13/socket++/sockstream.cpp =================================================================== --- socket++-1.12.13.orig/socket++/sockstream.cpp 2013-12-13 09:11:52.000000000 +0100 +++ socket++-1.12.13/socket++/sockstream.cpp 2013-12-13 09:11:55.000000000 +0100 @@ -232,7 +232,7 @@ case EWOULDBLOCK: // On FreeBSD (and probably on Linux too) // EAGAIN has the same value as EWOULDBLOCK -#if !defined(__linux__) && !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) // LN +#if defined(EAGAIN) && (EAGAIN != EWOULDBLOCK) case EAGAIN: #endif return true; Index: socket++-1.12.13/socket++/sockstream.h =================================================================== --- socket++-1.12.13.orig/socket++/sockstream.h 2011-12-27 12:26:23.000000000 +0100 +++ socket++-1.12.13/socket++/sockstream.h 2013-12-13 09:11:55.000000000 +0100 @@ -37,7 +37,7 @@ # pragma comment(lib, "Wininet") #endif -#ifdef __linux__ +#if defined(__linux__) /*|| defined(__FreeBSD_kernel__)*/ # define MSG_MAXIOVLEN 16 #endif // __linux__ @@ -137,7 +137,7 @@ msg_peek = MSG_PEEK, msg_dontroute = MSG_DONTROUTE, -#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) +#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) msg_maxiovlen = MSG_MAXIOVLEN #endif }; debian/patches/series0000644000000000000000000000012312260517333012030 0ustar fixinfo.patch kfreebsd.patch hurd3.patch hurd4.patch hurd5.patch sys_errlist.patch debian/patches/sys_errlist.patch0000644000000000000000000000074212260517333014225 0ustar Description: Fix compilation issue on HURD http://www.gnu.org/software/hurd/hurd/porting/guidelines.html#sys_errlist_tt_vs_strerror_tt_ Author: Mathieu Malaterre Forwarded: no --- socket++-1.12.13.orig/socket++/sockstream.cpp +++ socket++-1.12.13/socket++/sockstream.cpp @@ -127,7 +127,7 @@ using namespace std; const char* sockerr::errstr () const { #ifndef WIN32 - return SYS_ERRLIST [err]; + return strerror(err); #else return 0; // TODO #endif