--- swapspace-1.10.orig/debian/VERSION +++ swapspace-1.10/debian/VERSION @@ -0,0 +1 @@ +1.10-4 --- swapspace-1.10.orig/debian/changelog +++ swapspace-1.10/debian/changelog @@ -0,0 +1,180 @@ +swapspace (1.10-4ubuntu3) quantal; urgency=low + + * Remove bogus match-anything target in debian/rules, incorrectly detected + as indicating build-arch support. Add required binary-indep target. + + -- Colin Watson Thu, 04 Oct 2012 15:38:34 +0100 + +swapspace (1.10-4ubuntu2) precise; urgency=low + + * No-change rebuild to drop spurious libsfgcc1 dependency on armhf. + + -- Adam Conrad Fri, 02 Dec 2011 21:25:04 -0700 + +swapspace (1.10-4ubuntu1) jaunty; urgency=low + + * Add debian/patches/101-ubuntu-toolchain.patch, fix FTBFS caused by + -D_FORTIFY_SOURCE=2 compiler flag enabled in Ubuntu. + + -- Devid Antonio Filoni Mon, 23 Feb 2009 12:23:55 +0100 + +swapspace (1.10-4) unstable; urgency=low + + * New maintainer. (Closes: #499116) + * debian/rules: + - Converted to debhelper v7. + - Some cleanup. + - Turned off verbose building mode. + - Moved dh_installman parameter to debian/manpages. + - Added quilt makefile. + - Made 'nostrip' and 'noopt' in DEB_BUILD_OPTIONS really working. + * debian/control: + - Added build-dependency on quilt. + - Bumped debhelper dependency to (>= 7). + - Bumped 'Standards-Version' to 3.8.0. + - Added dependency on lsb-base (>= 3.2-14) for status_of_proc in + initscript. + - Short descriptions now starts with the non-capital letter. + - As package conflicts with swapd that is optional, swapspace went to + extra (by policy). + * debian/copyright: + - Renewed download place. + * debian/swapspace.init: + - Implemented 'status' option as required by LSB. + - Replaces 'echo's by proper LSB functions lsb_daemon_msg, lsb_end_msg. + - Removed displayed by swapspace daemon output as it breaks LSB script + output. + - Added '--oknodo' option to STARTCMD to make 'start' return 0 when daemon + is already running. + * debian/patches: + - Started to use quilt patching system. + - Converted useful stuff from diff.gz to 100-makefile-debian-flags.patch. + - 100-makefile-debian-flags.patch: corrected to use Debian-specified build + flags. + * debian/watch: + - Added. + * debian/compat: + - Bumped to 7. + + -- Eugene V. Lyubimkin Wed, 17 Sep 2008 23:14:13 +0300 + +swapspace (1.10-3) unstable; urgency=low + + * Fixed FTBFS: cc1: error: unrecognized command line option. Closes: #475988 + + -- Anibal Monsalve Salazar Thu, 17 Apr 2008 22:15:17 +1000 + +swapspace (1.10-2) unstable; urgency=low + + * NMU acknowledgement. Closes: #468748, #438078 + * Updated homepage. Closes: #474100 + * Fixed the following lintian messages: + - swapspace source: debian-rules-ignores-make-clean-error line 44 + - swapspace source: out-of-date-standards-version 3.7.2 (current is 3.7.3) + - swapspace: description-contains-homepage + + -- Anibal Monsalve Salazar Sat, 05 Apr 2008 22:16:57 +1000 + +swapspace (1.10-1.1) unstable; urgency=low + + * Non-maintainer upload to solve release goal. + * Add LSB dependency header to init.d scripts (Closes: #468748). + * Make sure package build properly with DEB_BUILD_OPTIONS=nostrip + (Closes: #438078). + + -- Petter Reinholdtsen Fri, 4 Apr 2008 19:06:56 +0200 + +swapspace (1.10-1) unstable; urgency=low + + * New upstream release. + - Fixed "dies when memory low". Closes: #383214. + + -- Anibal Monsalve Salazar Wed, 16 Aug 2006 19:02:30 +1000 + +swapspace (1.8-2) unstable; urgency=low + + * Applied patch from upstream author to deal with the format of + /proc/meminfo when it doesn't end with a unit, like "kB". + Closes: #377449. + + -- Anibal Monsalve Salazar Mon, 14 Aug 2006 14:24:21 +1000 + +swapspace (1.8-1) unstable; urgency=low + + * New upstream release. + + -- Anibal Monsalve Salazar Sat, 22 Jul 2006 10:32:40 +1000 + +swapspace (1.6-2) unstable; urgency=high + + * Fixed "Fails to start with /proc/meminfo parse error", closes: #377449. + Patch by Robert August Vincent II . + + -- Anibal Monsalve Salazar Sun, 09 Jul 2006 15:26:27 +1000 + +swapspace (1.6-1) unstable; urgency=low + + * New upstream release. + + -- Anibal Monsalve Salazar Thu, 15 Jun 2006 21:01:30 +1000 + +swapspace (1.5-1) unstable; urgency=low + + * Initial debian release, closes: #322282. + + -- Anibal Monsalve Salazar Tue, 13 Jun 2006 14:52:35 +1000 + +swapspace (1.5) unstable; urgency=low + + * Redesigned internal state machine; improved corner-case behaviour + * Custom signal handlers are now reusable + * Signal-triggered stats dump now goes to log if appropriate + * New -v|--verbose option logs state transitions and other debug info + * Updated documentation + * Makefile installs binary as world-executable (and strips it first) + * Can be built with most configuration features disabled + * Much more extensive dumps of internal state on signal receipt + * Add own C/cpp options to those set in environment + * New -P|--paranoid option wipes swapfiles after use + * More thorough checking of swap path setting + * Handles swapfiles being deactivated by third party + * Improved handling of kill signals + * SIGUSR2 forces algorithm to "diet" state + * New -e|--erase option: deallocate all swap files and exit + * Checks for sufficient disk space before attempting to create swapfile + * Checks swapdir's filesystem size on startup + * Rewritten swapfile sizing formula + * Cleaned up logging system + * Rephrased "meekness" as "elasticity" + + -- Jeroen T. Vermeulen Thu, 01 Aug 2005 18:30:00 +0700 + +swapspace (1.4) unstable; urgency=low + + * Supports Linux 2.4's /proc/meminfo format; no longer requires 2.6 kernel + * Only deallocates if enough memory stays free for entire cooldown period + * Failure to parse /proc/meminfo is now fatal + * New --version option + * Additional sanity checking of memory statistics + + -- Jeroen T. Vermeulen Thu, 16 June 2005 19:30:00 +0700 + +swapspace (1.3) unstable; urgency=low + + * Consider part of non-dirty cached memory (and buffers) to be free space + * Re-tuned default parameters for new accounting + * Unified logging code--it's not pretty, but it's prettier + * No longer bother with "negotiable" minimum swapfile sizes + * Clarified startup message ("require n extra bytes" to "would prefer []") + * Systematic rounding of swap sizes to page size + * Pad help output to align long options names vertically + * Fix: "smaller than expected" informational message was printed too often + + -- Jeroen T. Vermeulen Thu, 26 May 2005 17:00:00 +0700 + +swapspace (1.2) unstable; urgency=low + + * Initial Debian package. + + -- Jeroen T. Vermeulen Fri, 20 May 2005 14:00:00 +0700 + --- swapspace-1.10.orig/debian/rules +++ swapspace-1.10/debian/rules @@ -0,0 +1,37 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +# export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh build --before dh_auto_build + $(MAKE) DEB_FLAGS="$(CFLAGS)" + dh build --after dh_auto_build + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + # Add here commands to clean up after the build process. + rm -f src/svn-commit.tmp src/swapspace src/hog + [ ! -f Makefile ] || $(MAKE) clean + dh_clean + +install: build + dh install --before dh_auto_install + $(MAKE) install DESTDIR=$(CURDIR)/debian/swapspace + dh install --after dh_auto_install + +# Build architecture-dependent files here. +binary-arch: build install + dh binary-arch + +binary-indep: + +binary: binary-arch +.PHONY: build clean binary-arch binary-indep binary install --- swapspace-1.10.orig/debian/watch +++ swapspace-1.10/debian/watch @@ -0,0 +1,2 @@ +version=3 +ftp://pqxx.org/software/swapspace/ swapspace-(.+)\.tar\.gz --- swapspace-1.10.orig/debian/DATE +++ swapspace-1.10/debian/DATE @@ -0,0 +1 @@ +Wed, 17 Sep 2008 --- swapspace-1.10.orig/debian/swapspace.init +++ swapspace-1.10/debian/swapspace.init @@ -0,0 +1,85 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: swapspace +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Linux init script for swapspace +### END INIT INFO + +# Swapspace 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. +# +# Swapspace 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 swapspace; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +. /lib/lsb/init-functions + +set -e + +PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" +DESC="dynamic swap manager" +NAME=swapspace +DAEMON="/usr/sbin/$NAME" +PIDFILE="/var/run/$NAME.pid" + +PARANOID="no" + +# Exit gracefully if the package has been removed +test -x "$DAEMON" || exit 0 + +PIDOPT="--pidfile $PIDFILE" +#DAEMON_ARGS="--daemon $PIDOPT" +DAEMON_ARGS="-d -p" +STDOPTS="--quiet $PIDOPT" + +if test "$PARANOID" = "yes" ; then + DAEMON_ARGS = "$DAEMON_ARGS -P" +fi + +STARTCMD="start-stop-daemon --start --oknodo --exec $DAEMON $STDOPTS -- $DAEMON_ARGS" +STOPCMD="start-stop-daemon --stop --oknodo $STDOPTS" + + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + $STARTCMD >/dev/null + log_end_msg $? + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + set +e + $STOPCMD + exit_code=$? + set -e + if test "$PARANOID" = "yes" ; then + # Make an extra attempt to clean up any remaining swapfiles + $DAEMON $DAEMON_ARGS -e + fi + log_end_msg $exit_code + ;; + reload|restart|force-reload) + $0 stop + $0 start + ;; + status) + status_of_proc -p "$PIDFILE" "$DAEMON" swapspace && exit 0 || exit $? + ;; + *) + echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 + --- swapspace-1.10.orig/debian/compat +++ swapspace-1.10/debian/compat @@ -0,0 +1 @@ +7 --- swapspace-1.10.orig/debian/manpages +++ swapspace-1.10/debian/manpages @@ -0,0 +1 @@ +doc/swapspace.8 --- swapspace-1.10.orig/debian/control +++ swapspace-1.10/debian/control @@ -0,0 +1,18 @@ +Source: swapspace +Section: admin +Priority: extra +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Eugene V. Lyubimkin +Build-Depends: debhelper (>= 7), quilt (>= 0.40) +Standards-Version: 3.8.0 +Homepage: http://pqxx.org/development/swapspace + +Package: swapspace +Architecture: any +Conflicts: swapd +Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.2-14) +Description: dynamic swap space manager + Small, stable system add-on that continuously and automatically adapts + available virtual memory space to your actual memory needs. Claims disk space + for use as swap space when needed; frees it up for use by the filesystem when + not needed. --- swapspace-1.10.orig/debian/dirs +++ swapspace-1.10/debian/dirs @@ -0,0 +1,5 @@ +usr/sbin +etc +etc/init.d +usr/share/man/man8 +var/lib/swapspace --- swapspace-1.10.orig/debian/copyright +++ swapspace-1.10/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Jeroen T. Vermeulen on +Fri, 13 May 2005 15:42:12 +0700. + +It was downloaded from ftp://pqxx.org/software/swapspace/ + +Copyright (c) 2004-2005 Software Industry Promotion Agency of Thailand +Copyright (C) 2005, Software Industry Industry Promotion Agency (SIPA), Thailand + +License: + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- swapspace-1.10.orig/debian/postinst +++ swapspace-1.10/debian/postinst @@ -0,0 +1,4 @@ +#! /bin/sh +dpkg-statoverride --update --add root root 0700 /var/lib/swapspace +#DEBHELPER# + --- swapspace-1.10.orig/debian/swapspace.install +++ swapspace-1.10/debian/swapspace.install @@ -0,0 +1,2 @@ +src/swapspace usr/sbin +swapspace.conf etc --- swapspace-1.10.orig/debian/docs +++ swapspace-1.10/debian/docs @@ -0,0 +1 @@ +README --- swapspace-1.10.orig/debian/patches/100-makefile-use-debian-flags.patch +++ swapspace-1.10/debian/patches/100-makefile-use-debian-flags.patch @@ -0,0 +1,52 @@ +Index: swapspace-1.10/Makefile +=================================================================== +--- swapspace-1.10.orig/Makefile 2008-09-17 22:23:24.980226538 +0300 ++++ swapspace-1.10/Makefile 2008-09-17 22:22:29.068926150 +0300 +@@ -3,9 +3,9 @@ + SWAPPARENT=/var/lib + SWAPDIR=$(SWAPPARENT)/swapspace + +-all: VERSION DATE +- +$(MAKE) -C src VERSION="`cat VERSION`" DATE="`cat DATE`" +- +$(MAKE) -C doc VERSION="`cat VERSION`" DATE="`cat DATE`" ++all: debian/VERSION debian/DATE ++ +$(MAKE) -C src VERSION="`cat debian/VERSION`" DATE="`cat debian/DATE`" ++ +$(MAKE) -C doc VERSION="`cat debian/VERSION`" DATE="`cat debian/DATE`" + + clean: + +$(MAKE) -C src clean +@@ -18,7 +18,7 @@ + install -d -m700 $(DESTDIR)/$(SWAPDIR) + install -d $(DESTDIR)/usr/sbin $(DESTDIR)/etc $(DESTDIR)/etc/init.d + install -d $(DESTDIR)/usr/share/man/man8 +- strip src/swapspace || true ++# strip src/swapspace || true + install -m755 src/swapspace $(DESTDIR)/usr/sbin + install -m644 swapspace.conf $(DESTDIR)/etc + install -m744 debian/swapspace.init $(DESTDIR)/etc/init.d/swapspace +@@ -41,10 +41,10 @@ + + + # Derive version number and last change date from Debian changelog +-VERSION: debian/changelog ++debian/VERSION: debian/changelog + head -n 1 $< | sed -e 's/^.*(\([0-9][^)]*\)).*/\1/' >$@ + +-DATE: debian/changelog ++debian/DATE: debian/changelog + grep '^ -- ' $< | sed -e 's/^.*> \([MTWFS][a-z]\{2\}, \{1,2\}[[:digit:]]\{1,2\} [JFBAMSOND][a-z]* 2[[:digit:]]\{3\}\) .*/\1/' | head -n 1 >$@ + + .PHONY: all clean install uninstall +Index: swapspace-1.10/src/Makefile +=================================================================== +--- swapspace-1.10.orig/src/Makefile 2008-09-17 22:23:25.028226633 +0300 ++++ swapspace-1.10/src/Makefile 2008-09-17 22:23:39.968035952 +0300 +@@ -3,7 +3,7 @@ + # Assumes we're using gcc + # swapspace is written in C99, but with at least one extension that isn't + # supported in gcc's C99 mode: sigaction() (though it is part of POSIX). +-CFLAGS += --std=gnu99 -Wall --pedantic -Wshadow -O2 -g ++CFLAGS += --std=gnu99 -Wall --pedantic -Wshadow -O2 -g $(DEB_FLAGS) + CPPFLAGS += -DSUPPORT_LARGE_FILES -DVERSION="\"$(VERSION)\"" -DDATE="\"$(DATE)\"" + RM=rm -f + --- swapspace-1.10.orig/debian/patches/101-ubuntu-toolchain.patch +++ swapspace-1.10/debian/patches/101-ubuntu-toolchain.patch @@ -0,0 +1,13 @@ +Index: swapspace-1.10/src/main.c +=================================================================== +--- swapspace-1.10.orig/src/main.c 2009-02-23 12:22:41.000000000 +0100 ++++ swapspace-1.10/src/main.c 2009-02-23 12:23:17.000000000 +0100 +@@ -136,7 +136,7 @@ + { + assert(pidfd == -1); + if (!make_pidfile) return true; +- pidfd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL); ++ pidfd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR); + if (unlikely(pidfd == -1)) + { + if (errno == EEXIST) --- swapspace-1.10.orig/debian/patches/series +++ swapspace-1.10/debian/patches/series @@ -0,0 +1,2 @@ +100-makefile-use-debian-flags.patch +101-ubuntu-toolchain.patch