debian/0000755000000000000000000000000012107116513007163 5ustar debian/control0000644000000000000000000000220112106715000010554 0ustar Source: libkeepalive Section: libs Priority: optional Maintainer: Thorsten Alteholz Standards-Version: 3.9.3 Build-Depends: debhelper (>= 9) Homepage: https://github.com/sengaya/libkeepalive Package: libkeepalive0 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: enable tcp keepalive support in programs using shared libraries Many systems provide the ability to keep tcp connections alive, so they aren't reset by peers or by routers because of inactivity. . Even if this feature is present, only a few programs correctly implement the code to use it. If your favourite foo-client is not written with support for tcp keepalive, you'll continue to see your connection reset. . libkeepalive library provides a way to enable tcp keepalive support in any program that uses shared libraries (e.g.: glibc shared object) to perform network operations. Using the preload method, you will be able to intercept normal program execution and to inject the code needed to enable the keepalive routines, everything done without modifying the original binary file and with no need to gain root privileges. debian/copyright0000644000000000000000000000231012106704745011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libkeepalive Source: https://github.com/sengaya/libkeepalive Files: * Copyright: 2011 Fabio Busatto License: GPL-2 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. . This package 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 General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". Files: debian/* Copyright: 2013, Thorsten Alteholz License: GPL-2 On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/libkeepalive0.install0000644000000000000000000000003212106714432013265 0ustar libkeepalive.so* /usr/lib debian/changelog0000644000000000000000000000024312107116407011036 0ustar libkeepalive (0.2-1) unstable; urgency=low * Initial package. (Closes: #700518) -- Thorsten Alteholz Wed, 13 Feb 2013 18:00:00 +0100 debian/compat0000644000000000000000000000000212106703151010360 0ustar 9 debian/postinst0000644000000000000000000000011712106707152010774 0ustar #! /bin/sh set -e if [ "$1" = "configure" ]; then ldconfig; fi #DEBHELPER# debian/postrm0000644000000000000000000000011412106707152010432 0ustar #! /bin/sh set -e if [ "$1" = "remove" ]; then ldconfig; fi #DEBHELPER# debian/watch0000644000000000000000000000013112106705215010211 0ustar version=3 # # there is no release in tarball # the source needs to be cloned from github debian/libkeepalive0.symbols0000644000000000000000000000007012106716562013317 0ustar libkeepalive.so.0 libkeepalive0 #MINVER# socket@Base 0 debian/get-orig-source0000700000000000000000000000053612106705636012127 0ustar #!/bin/bash mkdir -p ../tarballs cd ../tarballs git clone https://github.com/sengaya/libkeepalive.git # remove debian directory from upstream rm -rf libkeepalive/debian # remove git stuff rm -rf libkeepalive/.git # get version version=`cat libkeepalive/VERSION` tar -zcf libkeepalive-$version.tar.gz libkeepalive # clean up rm -rf libkeepalive debian/patches/0000755000000000000000000000000012106716717010625 5ustar debian/patches/series0000644000000000000000000000002412106712272012026 0ustar hardening-lib.patch debian/patches/hardening-lib.patch0000644000000000000000000000212212106716717014346 0ustar Description: add hardening flags and soname Author: Thorsten Alteholz Last-Update: 2013-02-12 Index: libkeepalive/src/Makefile =================================================================== --- libkeepalive.orig/src/Makefile 2013-02-13 14:45:05.000000000 +0100 +++ libkeepalive/src/Makefile 2013-02-13 14:46:07.000000000 +0100 @@ -9,7 +9,8 @@ CC=gcc CFLAGS=-fPIC -LDFLAGS=-shared -Wl,-soname,libkeepalive.so +LDFLAGS=-shared -Wl,-soname,libkeepalive.so.0 +LDFLAGS += $(shell dpkg-buildflags --get LDFLAGS) LDLIBS=-ldl default: libkeepalive.so Index: libkeepalive/Makefile =================================================================== --- libkeepalive.orig/Makefile 2013-02-13 14:45:05.000000000 +0100 +++ libkeepalive/Makefile 2013-02-13 14:47:47.000000000 +0100 @@ -11,9 +11,10 @@ make -C src/ make -C test/ cp src/libkeepalive.so libkeepalive.so - strip -s libkeepalive.so + strip --strip-unneeded libkeepalive.so + ln -s libkeepalive.so libkeepalive.so.0 clean: make -C src/ clean make -C test/ clean - rm -f libkeepalive.so + rm -f libkeepalive.so* debian/rules0000755000000000000000000000023112106711277010246 0ustar #!/usr/bin/make -f # -*- makefile -*- PREFIX = ./debian/libkeepalive LIBDIR = $(PREFIX)/usr/lib/ %: dh $@ get-orig-source: ./debian/get-orig-source debian/source/0000755000000000000000000000000012106706174010472 5ustar debian/source/format0000644000000000000000000000001412106706174011700 0ustar 3.0 (quilt)