--- hawknl-1.6.8+dfsg2.orig/debian/copyright +++ hawknl-1.6.8+dfsg2/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Barry deFreese on +Mon, 30 Nov 2009 13:28:21 -0500. + +It was downloaded from: http://hawksoft.com/download/ + +Upstream Author: Phil Frisbie, Jr. + +Copyright: + Copyright (C) 2000-2003 Phil Frisbie, Jr. + +License: + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the + Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301, USA. + + On Debian GNU/Linux systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/LGPL-2'. + +The Debian packaging is Copyright (C) 2009, Barry deFreese +is licensed under the LGPL, see `/usr/share/common-licenses/LGPL-2'. --- hawknl-1.6.8+dfsg2.orig/debian/README.source +++ hawknl-1.6.8+dfsg2/debian/README.source @@ -0,0 +1,68 @@ +This source package was repackaged to remove Windows dll files shipped +in the upstream source. To reproduce: + + 1. Get the tarball from http://hawksoft.com/download/ + 2. Unzip .zip + 3. mv HawkNLnnn hawknl-n.n.n+dfsg + 4. rm hawknl-n.n.n/*.vc* (Microsoft visual studio files). + 5. rm -rf hawknl-n.n.n+dfsg/src/win32 + 6. tar -czf hawknl-n.n.n+dfsg.orig.tar.gz hawknl-n.n.n+dfsg + +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + break + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- hawknl-1.6.8+dfsg2.orig/debian/libhawknl-dev.links +++ hawknl-1.6.8+dfsg2/debian/libhawknl-dev.links @@ -0,0 +1,2 @@ +usr/lib/libNL.so.1.6.8 usr/lib/libNL.so +usr/lib/libNL.so.1.6.8 usr/lib/NL.so --- hawknl-1.6.8+dfsg2.orig/debian/libhawknl.links +++ hawknl-1.6.8+dfsg2/debian/libhawknl.links @@ -0,0 +1,5 @@ +usr/lib/libNL.so.1.6.8 usr/lib/libNL.so.1.6 +usr/lib/libNL.so.1.6.8 usr/lib/libNL.so.1 +usr/lib/libNL.so.1.6.8 usr/lib/NL.so.1.6 +usr/lib/libNL.so.1.6.8 usr/lib/NL.so.1 + --- hawknl-1.6.8+dfsg2.orig/debian/changelog +++ hawknl-1.6.8+dfsg2/debian/changelog @@ -0,0 +1,16 @@ +hawknl (1.6.8+dfsg2-1) unstable; urgency=low + + [ Barry deFreese ] + * Repack upstream again to add LGPL v2 license text as COPYING. + * Fix copyright dates in debian/copyright. + + -- Barry deFreese Wed, 02 Dec 2009 22:14:59 -0500 + +hawknl (1.6.8+dfsg-1) unstable; urgency=low + + [ Barry deFreese ] + * Initial release. (Closes: #558825) + + Repack upstream tarball to remove Windows dll and VS files. + + 001_makefile.diff - Hack makefile for libdir and to use DESTDIR. + + -- Barry deFreese Mon, 30 Nov 2009 11:53:49 -0500 --- hawknl-1.6.8+dfsg2.orig/debian/libhawknl.install +++ hawknl-1.6.8+dfsg2/debian/libhawknl.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/lib*.so.* usr/lib --- hawknl-1.6.8+dfsg2.orig/debian/compat +++ hawknl-1.6.8+dfsg2/debian/compat @@ -0,0 +1 @@ +5 --- hawknl-1.6.8+dfsg2.orig/debian/watch +++ hawknl-1.6.8+dfsg2/debian/watch @@ -0,0 +1,4 @@ +version=3 + +opts="uversionmangle=s/(.)(.)(.)/$1.$2.$3/,dversionmangle=s/\+dfsg//" \ +http://hawksoft.com/download/ files\/HawkNL(.*)src\.zip --- hawknl-1.6.8+dfsg2.orig/debian/rules +++ hawknl-1.6.8+dfsg2/debian/rules @@ -0,0 +1,77 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_HOST_GNU_TYPE) +else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +include /usr/share/quilt/quilt.make + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +build: patch build-stamp +build-stamp: + dh_testdir + + $(MAKE) -C src -f makefile.linux + + touch build-stamp + +clean: patch clean-stamp unpatch +clean-stamp: + dh_testdir + dh_testroot + rm -f build-stamp + + $(MAKE) -C src -f makefile.linux clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + + $(MAKE) -C src -f makefile.linux install DESTDIR=$(CURDIR)/debian/tmp + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs src/NLchanges.txt + dh_installdocs + dh_installexamples + dh_installman + dh_install + dh_strip --dbg-package=libhawknl-dbg + dh_link + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- hawknl-1.6.8+dfsg2.orig/debian/control +++ hawknl-1.6.8+dfsg2/debian/control @@ -0,0 +1,68 @@ +Source: hawknl +Section: libs +Priority: optional +Maintainer: Debian Games Team +Uploaders: Barry deFreese +Build-Depends: debhelper (>= 5.0.0), quilt +Standards-Version: 3.8.3 +Homepage: http://hawksoft.com/hawknl/ +Vcs-Git: git://git.debian.org/pkg-games/hawknl.git +Vcs-Browser: http://git.debian.org/?p=pkg-games/hawknl.git;a=summary + +Package: libhawknl-dev +Section: libdevel +Architecture: any +Depends: ${misc:Depends}, libhawknl (= ${binary:Version}) +Description: Hawk game oriented network library API (development headers) + HawkNL is a free, open source, game oriented network API. + . + HawkNL (NL) is a fairly low level API, a wrapper over Berkeley/Unix + Sockets and Winsock. But NL also provides other features + including support for: + * Multiple operating systems. + * Groups of sockets + * Socket statistics + * High accuracy timer + * CRC functions + * Macros to read and write data to packets with endian conversion + * Multiple network transports. + . + This package contains the development libraries and headers. + +Package: libhawknl +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Hawk game oriented network library API + HawkNL is a free, open source, game oriented network API. + . + HawkNL (NL) is a fairly low level API, a wrapper over Berkeley/Unix + Sockets and Winsock. But NL also provides other features + including support for: + * Multiple operating systems. + * Groups of sockets + * Socket statistics + * High accuracy timer + * CRC functions + * Macros to read and write data to packets with endian conversion + * Multiple network transports. + +Package: libhawknl-dbg +Section: debug +Architecture: any +Depends: ${misc:Depends}, libhawknl (= ${binary:Version}) +Priority: extra +Description: Hawk game oriented network library API (debug package) + HawkNL is a free, open source, game oriented network API. + . + HawkNL (NL) is a fairly low level API, a wrapper over Berkeley/Unix + Sockets and Winsock. But NL also provides other features + including support for: + * Multiple operating systems. + * Groups of sockets + * Socket statistics + * High accuracy timer + * CRC functions + * Macros to read and write data to packets with endian conversion + * Multiple network transports. + . + This package contains the debug symbols. --- hawknl-1.6.8+dfsg2.orig/debian/libhawknl-dev.install +++ hawknl-1.6.8+dfsg2/debian/libhawknl-dev.install @@ -0,0 +1,3 @@ +debian/tmp/usr/include/* usr/include +debian/tmp/usr/lib/lib*.a usr/lib +#debian/tmp/usr/lib/lib*.so usr/lib --- hawknl-1.6.8+dfsg2.orig/debian/patches/series +++ hawknl-1.6.8+dfsg2/debian/patches/series @@ -0,0 +1 @@ +001_makefile.diff --- hawknl-1.6.8+dfsg2.orig/debian/patches/001_makefile.diff +++ hawknl-1.6.8+dfsg2/debian/patches/001_makefile.diff @@ -0,0 +1,52 @@ +Author: Barry deFreese +Description: Change libdir and incdir to /usr not /usr/local. Add DESTDIR support. +Index: hawknl-1.6.8+dfsg/src/makefile.linux +=================================================================== +--- hawknl-1.6.8+dfsg.orig/src/makefile.linux 2009-11-30 16:29:11.000000000 -0500 ++++ hawknl-1.6.8+dfsg/src/makefile.linux 2009-11-30 16:32:29.000000000 -0500 +@@ -5,8 +5,8 @@ + MINOR_VERSION = 6 + PATCH_LEVEL = 8 + VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL) +-LIBDIR = /usr/local/lib +-INCDIR = /usr/local/include ++LIBDIR = /usr/lib ++INCDIR = /usr/include + INCLUDE = -I../include + OUTPUT = libNL.so.$(VERSION) + LIBNAME = NL +@@ -34,15 +34,17 @@ + nltime.o : nlinternal.h nltime.c + + install: +- cp $(OUTPUT) $(LIBDIR) +- cp $(STATIC) $(LIBDIR) +- chmod 755 $(LIBDIR)/$(OUTPUT) +- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION) +- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION) +- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so +- ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/$(LIBNAME).so +- cp ../include/nl.h $(INCDIR)/nl.h +- chmod 644 $(INCDIR)/nl.h ++ mkdir -p $(DESTDIR)$(LIBDIR) ++ mkdir -p $(DESTDIR)$(INCDIR) ++ cp $(OUTPUT) $(DESTDIR)$(LIBDIR) ++ cp $(STATIC) $(DESTDIR)$(LIBDIR) ++ chmod 755 $(DESTDIR)$(LIBDIR)/$(OUTPUT) ++# ln -s $(DESTDIR)$(LIBDIR)/$(OUTPUT) $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION) ++# ln -s $(DESTDIR)$(LIBDIR)/$(OUTPUT) $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION) ++# ln -s $(DESTDIR)$(LIBDIR)/$(OUTPUT) $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).so ++# ln -s $(DESTDIR)$(LIBDIR)/$(OUTPUT) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so ++ cp ../include/nl.h $(DESTDIR)$(INCDIR)/nl.h ++ chmod 644 $(DESTDIR)$(INCDIR)/nl.h + @echo "" + @echo "*************************************************" + @echo "* Installed HawkNL. *" +@@ -62,6 +64,6 @@ + + .PHONY : clean + clean: +- rm $(OBJECTS) $(OUTPUT) $(STATIC) ++ rm -f $(OBJECTS) $(OUTPUT) $(STATIC) + +