debian/0000755000000000000000000000000012255061472007172 5ustar debian/libsdl-net1.2.lintian-overrides0000644000000000000000000000010211745606006015022 0ustar libsdl-net1.2: package-name-doesnt-match-sonames libSDL-net-1.2-0 debian/source/0000755000000000000000000000000011666750751010504 5ustar debian/source/format0000644000000000000000000000001411666750751011712 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000002202612255061340011040 0ustar sdl-net1.2 (1.2.8-4) unstable; urgency=medium * Bump Policy Standards-Version to 3.9.5 (no changes needed) * Regenerate with dh_autoreconf without using upstream's autogen.sh -- Manuel A. Fernandez Montecelo Fri, 20 Dec 2013 15:31:39 +0000 sdl-net1.2 (1.2.8-3) unstable; urgency=low * Update debian/copyright format now that 1.0 is approved (quells lintian unversioned-copyright-format-uri) * Bump Policy Standards-Version to 3.9.4 (no changes needed) * Add package -dbg with debugging information * Remove field "DM-Upload-Allowed: yes", obsolete * Change maintainer address -- Manuel A. Fernandez Montecelo Thu, 09 May 2013 20:31:30 +0100 sdl-net1.2 (1.2.8-2) unstable; urgency=low * Bump Standards-Version to 3.9.3 (no changes needed) * Build-Depends on debhelper>=9~, quells lintian warning "package-needs-versioned-debhelper-build-depends 9" * Build-Depends and Depends on SDL with added ~ to the version number, in order to allow to work with backported/local versions * Adding lintian overrides for the slightly different names "libsdl-net1.2" and "libSDL-net-1.2-0" -- the package names are not going to change by now for the 1.2 series -- Manuel A. Fernandez Montecelo Thu, 26 Apr 2012 14:15:56 +0100 sdl-net1.2 (1.2.8-1) unstable; urgency=low * New upstream release - debian/copyright: License switched to zlib/libpng * Modifying slightly the long description: removing the URL from there, it's in the Homepage field since a while ago * Disabled patches: - pkgconfig_hgd61d0055d08c.patch: Picked from upsteam, now released * Refresh patches: - arm.patch - endian.patch - UDP_Bind.patch -- Manuel A. Fernandez Montecelo Fri, 20 Jan 2012 23:06:48 +0000 sdl-net1.2 (1.2.7-5) unstable; urgency=low * Add also 'Multi-Arch: same' to -dev package, since the headers are all architecture-independent. Thanks to Steve Langasek. (Closes: #652873) -- Manuel A. Fernandez Montecelo Wed, 21 Dec 2011 18:43:32 +0000 sdl-net1.2 (1.2.7-4) unstable; urgency=low * Remove previous uploader, inactive for years * Switch to debhelper compat level v9 * Build for multiarch * Quell lintian warnings: - binary-control-field-duplicates-source (remove field from binary package libsdl-net1.2) -- Manuel A. Fernandez Montecelo Mon, 19 Dec 2011 00:17:25 +0000 sdl-net1.2 (1.2.7-3) unstable; urgency=low * New maintainer - Make package as part of SDL team - Add myself to uploaders, and setting DM-Upload-Allowed: yes * Incorporated changes from Roman Vasiyarov : - Added pkg-config files (Closes: #631085) * Bump Standards-Version to 3.9.2 (no changes needed) * Changed debhelper compat to level 8 (level 4 before): - Updated dependency on debhelper to (>= 8.0.0) - Simplify a lot debian/rules file by leveraging debhelper capabilities, only acting when deviating from auto behaviour * Added 'source/format', with '3.0 (quilt)' - Removed dependency on dpatch - Convert patches, documenting and refreshing them * Convert ${pkg}.dirs and ${pkg}.files into ${pkg}.install * Updating 'watch' file to version=3 * Added Vcs-Git and Vcs-Browser in 'control' file * Modifications to dependencies and build options: - Depending on newer dpkg-dev - Depending on SDL >= 1.2.14 (instead of misc old versions) - Removed Conflict dependencies on libsdl-net1.1. It's very old and not present in any of the last Debian releases, long unsupported. * debian/copyright: updated and converted to DEP-5 * Stop shipping .la files (Closes: #633328). The command given in the bug report to remove dependency_libs is not working, and I don't think that any Debian package use .la anyway -- 0 rdepends for the -dev package. -- Manuel A. Fernandez Montecelo Sun, 04 Dec 2011 10:12:42 +0000 sdl-net1.2 (1.2.7-2) unstable; urgency=low * Fix the clean rule to check for Makefile first -- Mike Furr Thu, 30 Aug 2007 16:58:14 -0400 sdl-net1.2 (1.2.7-1) unstable; urgency=low * New upstream release (Closes: #399914, #437003) * Fixed copyright file to say LGPL instead of GPL (Closes: #433475) * Fixed several lintian errors (pkg is now binNMU-safe). * Updated to latest standards version (no changes). -- Mike Furr Thu, 30 Aug 2007 16:32:29 -0400 sdl-net1.2 (1.2.5-7) unstable; urgency=low * Argh, added semicolon patch to list of patches to actually apply * Hand verified resulting package has this fix! -- Mike Furr Wed, 29 Mar 2006 15:33:39 -0500 sdl-net1.2 (1.2.5-6) unstable; urgency=low * Accidentally dropped semicolon patch when I switched to dpatch. Added patch back to remove ; at end of extern block in SDL_net.h (Closes: 346132) -- Mike Furr Sun, 8 Jan 2006 15:02:27 -0500 sdl-net1.2 (1.2.5-5) unstable; urgency=low * Touch auto-* files so that make doesn't try to rebuild them after they are patched by the .diff.gz (Closes: 327316) -- Mike Furr Mon, 3 Oct 2005 22:17:12 -0400 sdl-net1.2 (1.2.5-4) unstable; urgency=low * dpatch-ification * Added patch from Sam Hocevar which doesn't byteswap on big endian arches when SDL_DATA_ALIGNED is true * Changed comment for SDLNet_UDP_Bind to reflect implementation - Since upstream has not responded to this (and seems dead), and a fair number of packages use sdl-net, I don't want to change the behavior just for debian, only properly document the actual behavior. - (Closes: 211570) * Updated libtool for kfreebsd-gnu support (Closes: 278595) * Updated debian/copyright to say GPL is the license instead of copyright (Closes: 290202) -- Mike Furr Sat, 2 Jul 2005 17:51:00 -0400 sdl-net1.2 (1.2.5-3) unstable; urgency=low * Improved the package description (Closes: 209732) * Added ARM to list in SDL_net.h of CPU's that are have data alignment issues. (Closes: 212570) [also forwared this upstream] -- Mike Furr Tue, 7 Oct 2003 23:15:39 -0400 sdl-net1.2 (1.2.5-2) unstable; urgency=low * Removed illegal semicolon at end of extern "C" block in SDL_net.h. (Closes: 204186) -- Mike Furr Wed, 6 Aug 2003 21:01:30 -0400 sdl-net1.2 (1.2.5-1) unstable; urgency=low * New upstream release. * Updated control's standard's version to 3.5.9 * Added upstream's CHANGES files to the package. -- Mike Furr Sun, 20 Apr 2003 19:06:35 -0400 sdl-net1.2 (1.2.4-3) unstable; urgency=low * New Maintainer (Closes: 188630) * control: Changed -dev package to section libdevel. * rules: updated config* handling as guided by the autotools-dev README.Debian.gz -- Mike Furr Mon, 14 Apr 2003 22:19:50 -0400 sdl-net1.2 (1.2.4-2) unstable; urgency=low * rules: changed DEB_BUILD_OPTIONS to policy 3.5.7.0 * control: Standards-Version: 3.5.8.0 * watch: added uscan watch file * control: removed superfluous automake, autoconf and libtool dependencies -- Arthur Korn Thu, 12 Dec 2002 01:07:18 +0100 sdl-net1.2 (1.2.4-1) unstable; urgency=low * New upstream release - now build depends on libsdl1.2-dev (>= 1.2.4) -- Arthur Korn Wed, 30 Oct 2002 11:25:56 +0100 sdl-net1.2 (1.2.2-1) unstable; urgency=low * New upstream release -- Arthur Korn Thu, 18 Oct 2001 19:46:18 +0200 sdl-net1.2 (1.2.0-5.1) unstable; urgency=low * NMU * acinclude.m4: remove AM_PATH_SDL macro * configure.in: don't add SDL_LIBS to LIBS * re-ran libtoolize --force-copy; aclocal; automake --foreign; autoconf with libsdl1.2-dev 1.2.2-3.1 installed * debian/control: update relationships with libsdl1.2-dev to (>= 1.2.2-3.1) -- Branden Robinson Mon, 15 Oct 2001 13:30:48 -0500 sdl-net1.2 (1.2.0-5) unstable; urgency=low * Standards-Version 3.5.4.0, no changes necessary. -- Arthur Korn Sun, 3 Jun 2001 18:08:31 +0200 sdl-net1.2 (1.2.0-4) unstable; urgency=low * [brownbag] /usr/lib symlinks to -dev, actual .so to the libsdl-net1.2 * reverted that lack-of-coffeine symptom of crap I did last time with that conflict ... -- Arthur Korn Mon, 7 May 2001 23:40:49 +0200 sdl-net1.2 (1.2.0-3) unstable; urgency=low * changed section off the -dev package to "devel" (override disparity). * added missing Conflicts: libsdl-net1.1 for libsdl-net1.2 -- Arthur Korn Mon, 7 May 2001 23:05:12 +0200 sdl-net1.2 (1.2.0-2) unstable; urgency=low * changed section to "libs", correcting override disparity. * added Conflicts and Replaces on libsdl-net1.1-dev (common files). * so this is libsdl-net1.2 then, closes: #94455. -- Arthur Korn Thu, 26 Apr 2001 16:38:04 +0200 sdl-net1.2 (1.2.0-1) unstable; urgency=low * Initial Release. -- Arthur Korn Sun, 22 Apr 2001 18:07:38 +0200 debian/watch0000644000000000000000000000012411673501750010221 0ustar version=3 http://www.libsdl.org/projects/SDL_net/release/SDL_net-([\d\.]+)\.tar\..* debian/libsdl-net1.2-dev.install0000644000000000000000000000010311673502675013616 0ustar usr/include usr/lib/*/lib*.a usr/lib/*/lib*.so usr/lib/*/pkgconfig debian/control0000644000000000000000000000345712255056562010612 0ustar Source: sdl-net1.2 Section: libs Priority: optional Maintainer: Debian SDL packages maintainers Uploaders: Manuel A. Fernandez Montecelo Standards-Version: 3.9.5 Build-Depends: debhelper (>= 9~), dh-autoreconf, dpkg-dev (>= 1.16.1~), libsdl1.2-dev (>= 1.2.14~) Homepage: http://www.libsdl.org/projects/SDL_net/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-sdl/packages/sdl-net1.2.git Vcs-Git: git://anonscm.debian.org/pkg-sdl/packages/sdl-net1.2.git Package: libsdl-net1.2 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: Network library for Simple DirectMedia Layer 1.2, libraries This is a small, low-level, cross-platform networking library, that can be used with the Simple DirectMedia Layer library. . This package contains the shared library. Package: libsdl-net1.2-dbg Section: debug Architecture: any Multi-Arch: same Priority: extra Depends: ${misc:Depends}, libsdl-net1.2 (= ${binary:Version}) Description: Network library for Simple DirectMedia Layer 1.2, debugging This is a small, low-level, cross-platform networking library, that can be used with the Simple DirectMedia Layer library. . This package contains the debugging information for the shared library. Package: libsdl-net1.2-dev Section: libdevel Architecture: any Multi-Arch: same Depends: ${misc:Depends}, libc6-dev, libsdl-net1.2 (= ${binary:Version}), libsdl1.2-dev (>= 1.2.14~) Description: Network library for Simple DirectMedia Layer 1.2, development files This is a small, low-level, cross-platform networking library, that can be used with the Simple DirectMedia Layer library. . This package contains the development files. debian/libsdl-net1.2-dev.examples0000644000000000000000000000003011666750751013767 0ustar chat.cpp chatd.c chat.h debian/libsdl-net1.2.docs0000644000000000000000000000000711666750751012331 0ustar README debian/libsdl-net1.2-dev.docs0000644000000000000000000000000711666750751013105 0ustar README debian/rules0000755000000000000000000000124512255057135010255 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 export DEB_CFLAGS_MAINT_APPEND := -pipe -Wall export DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined -Wl,-Bsymbolic -Wl,--as-needed # according to help: speeds up one-time build confflags = --disable-dependency-tracking # GUI needed only for examples, don't even try to support it confflags += --disable-gui %: dh $@ --with autoreconf --parallel override_dh_autoreconf: AUTOMAKE="automake --foreign" dh_autoreconf --as-needed override_dh_auto_configure: dh_auto_configure -- $(confflags) override_dh_auto_installchangelogs: dh_auto_installchangelogs -- CHANGES override_dh_strip: dh_strip --dbg-package=libsdl-net1.2-dbg debian/libsdl-net1.2.install0000644000000000000000000000002411673502675013044 0ustar usr/lib/*/lib*.so.* debian/compat0000644000000000000000000000000211673502124010365 0ustar 9 debian/copyright0000644000000000000000000000354011746247051011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: SDL_net Upstream-Contact: Sam Lantinga Roy Wood Masahiro Minami Source: http://www.libsdl.org/projects/SDL_net/ Files: * Copyright: 1997-2012 Sam Lantinga License: zlib/libpng Files: debian/* Copyright: 2011-2012, Manuel A. Fernandez Montecelo 2003-2007, Mike Furr 2001, Branden Robinson 2001-2002, Arthur Korn License: LGPL-2+ License: zlib/libpng This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. License: LGPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . On Debian systems, the complete text of version 2 of the GNU Lesser Public License can be found in '/usr/share/common-licenses/LGPL-2'. debian/patches/0000755000000000000000000000000011706357265010631 5ustar debian/patches/series0000644000000000000000000000004611706357254012044 0ustar arm.patch endian.patch UDP_Bind.patch debian/patches/arm.patch0000644000000000000000000000116411706267212012423 0ustar Description: bad aligned access considerations on ARM This patch is related with bug report #217221: SDLNet_(Read|Write)(16|32) assume host endianness is always LE) and the endian.patch Author: Sam Hocevar Last-Update: 2003-09-24 Bug-Debian: http://bugs.debian.org/212570 --- a/SDL_net.h +++ b/SDL_net.h @@ -354,7 +354,7 @@ /* Inline macro functions to read/write network data */ /* Warning, some systems have data access alignment restrictions */ -#if defined(sparc) || defined(mips) +#if defined(sparc) || defined(mips) || defined(__arm__) #define SDL_DATA_ALIGNED 1 #endif #ifndef SDL_DATA_ALIGNED debian/patches/endian.patch0000644000000000000000000000562011706357110013100 0ustar Description: SDLNet_(Read|Write)(16|32) assume host endianness is always LE This patch is related with bug report #212570 (bad aligned access considerations on ARM), and the arm.patch Author: Sam Hocevar Last-Update: 2003-10-23 Bug-Debian: http://bugs.debian.org/217221 --- a/SDL_net.h +++ b/SDL_net.h @@ -366,7 +366,6 @@ #define SDLNet_Write16(value, areap) \ (*SDL_reinterpret_cast(Uint16 *, areap) = SDL_SwapBE16(value)) #else -#if SDL_BYTEORDER == SDL_BIG_ENDIAN #define SDLNet_Write16(value, areap) \ do \ { \ @@ -374,15 +373,6 @@ area[0] = (value >> 8) & 0xFF; \ area[1] = value & 0xFF; \ } while ( 0 ) -#else -#define SDLNet_Write16(value, areap) \ -do \ -{ \ - Uint8 *area = SDL_reinterpret_cast(Uint8 *, areap); \ - area[1] = (value >> 8) & 0xFF; \ - area[0] = value & 0xFF; \ -} while ( 0 ) -#endif #endif /* !SDL_DATA_ALIGNED */ /* Write a 32 bit value to network packet buffer */ @@ -390,7 +380,6 @@ #define SDLNet_Write32(value, areap) \ *SDL_reinterpret_cast(Uint32 *, areap) = SDL_SwapBE32(value); #else -#if SDL_BYTEORDER == SDL_BIG_ENDIAN #define SDLNet_Write32(value, areap) \ do \ { \ @@ -400,17 +389,6 @@ area[2] = (value >> 8) & 0xFF; \ area[3] = value & 0xFF; \ } while ( 0 ) -#else -#define SDLNet_Write32(value, areap) \ -do \ -{ \ - Uint8 *area = SDL_reinterpret_cast(Uint8 *, areap); \ - area[3] = (value >> 24) & 0xFF; \ - area[2] = (value >> 16) & 0xFF; \ - area[1] = (value >> 8) & 0xFF; \ - area[0] = value & 0xFF; \ -} while ( 0 ) -#endif #endif /* !SDL_DATA_ALIGNED */ /* Read a 16 bit value from network packet buffer */ @@ -418,13 +396,8 @@ #define SDLNet_Read16(areap) \ (SDL_SwapBE16(*SDL_reinterpret_cast(Uint16 *, areap))) #else -#if SDL_BYTEORDER == SDL_BIG_ENDIAN #define SDLNet_Read16(areap) \ (((SDL_reinterpret_cast(Uint8 *, areap))[0] << 8) | (SDL_reinterpret_cast(Uint8 *, areap))[1] << 0) -#else -#define SDLNet_Read16(areap) \ - (((SDL_reinterpret_cast(Uint8 *, areap))[1] << 8) | (SDL_reinterpret_cast(Uint8 *, areap))[0] << 0) -#endif #endif /* !SDL_DATA_ALIGNED */ /* Read a 32 bit value from network packet buffer */ @@ -432,15 +405,9 @@ #define SDLNet_Read32(areap) \ (SDL_SwapBE32(*SDL_reinterpret_cast(Uint32 *, areap))) #else -#if SDL_BYTEORDER == SDL_BIG_ENDIAN #define SDLNet_Read32(areap) \ (((SDL_reinterpret_cast(Uint8 *, areap))[0] << 24) | ((SDL_reinterpret_cast(Uint8 *, areap))[1] << 16) | \ ((SDL_reinterpret_cast(Uint8 *, areap))[2] << 8) | (SDL_reinterpret_cast(Uint8 *, areap))[3] << 0) -#else -#define SDLNet_Read32(areap) \ - (((SDL_reinterpret_cast(Uint8 *, areap))[3] << 24) | ((SDL_reinterpret_cast(Uint8 *, areap))[2] << 16) | \ - ((SDL_reinterpret_cast(Uint8 *, areap))[1] << 8) | (SDL_reinterpret_cast(Uint8 *, areap))[0] << 0) -#endif #endif /* !SDL_DATA_ALIGNED */ /* Ends C function definitions when using C++ */ debian/patches/UDP_Bind.patch0000644000000000000000000000406011706270412013222 0ustar Description: SDLNet_UDP_Bind does not behave as described Original bug report: The comment, which is the same as in the header file, describes one behaviour. The code implements another: if channel is -1, it binds to the first channel that has not yet been bound to the maximum number of addresses. The if (binding->numbound... line should be just if ( binding->numbound) { (i.e. choose an unused channel). (Although this may break any apps using the incorrect behaviour.) . Debian changelog: * Changed comment for SDLNet_UDP_Bind to reflect implementation - Since upstream has not responded to this (and seems dead), and a fair number of packages use sdl-net, I don't want to change the behavior just for debian, only properly document the actual behavior. - (Closes: 211570) Author: cph@cph.demon.co.uk Last-Update: 2003-09-18 Bug-Debian: http://bugs.debian.org/211570 --- a/SDL_net.h +++ b/SDL_net.h @@ -200,7 +200,8 @@ extern DECLSPEC void SDLCALL SDLNet_UDP_SetPacketLoss(UDPsocket sock, int percent); /* Bind the address 'address' to the requested channel on the UDP socket. - If the channel is -1, then the first unbound channel will be bound with + If the channel is -1, then the first unbound channel that has not yet + been bound to the maximum number of addresses will be bound with the given address as it's primary address. If the channel is already bound, this new address will be added to the list of valid source addresses for packets arriving on the channel. --- a/SDLnetUDP.c +++ b/SDLnetUDP.c @@ -246,7 +246,8 @@ } /* Bind the address 'address' to the requested channel on the UDP socket. - If the channel is -1, then the first unbound channel will be bound with + If the channel is -1, then the first unbound channel that has not yet + been bound to the maximum number of addresses will be bound with the given address as it's primary address. If the channel is already bound, this new address will be added to the list of valid source addresses for packets arriving on the channel.