debian/0000755000000000000000000000000012222611526007165 5ustar debian/compat0000644000000000000000000000000212222603701010357 0ustar 9 debian/watch0000644000000000000000000000014012106223012010177 0ustar version=3 http://neil.franklin.ch/Projects/dphys-swapfile/ ../dphys-swapfile-(\d{8}.*)\.tar\.gz debian/changelog0000644000000000000000000000734412222611526011047 0ustar dphys-swapfile (20100506-1) unstable; urgency=low * Upload to unstable again. * New upstream release + Fixes issues on kfreebsd-*. * Install bash completion file provided by Hans-Christoph Steiner (Closes: #685113) Thanks! * Install upstream's example configuration file also to /etc/. (Closes: #685169) * Add note to long description about the default values used upon installation. (See #596187 for reasoning.) * Switch to source format "3.0 (quilt)" + Remove debian/README.source * Bump Standards-Version to 3.9.4 (no changes) * Fix lintian warnings: + debian-rules-missing-recommended-target + no-upstream-changelog + copyright-refers-to-symlink-license + init.d-script-does-not-source-init-functions + init.d-script-does-not-implement-optional-option status * Switch Vcs-* headers to GitHub * Add Elmar to Uploaders. * Bump debhelper compatibility to 9. + Update versioned debhelper build-dependency accordingly. * Revamp debian/rules: + No more clean stamp files manually, done by dh_clean already + Use dh_auto_{build,install,clean} + Finally switch to a minimal dh7 style debian/rules file * Apply wrap-and-sort. -- Axel Beckert Tue, 01 Oct 2013 20:20:40 +0200 dphys-swapfile (20100506~current-1) experimental; urgency=low * New upstream snapshot - uses dc instead of expr, so depend on dc - All patches introduced in the previous upload have been accepted by upstream (partially being improved, too) within a day and therefore been removed from the package. Thanks, Neil! + remove build dependency on quilt, too. - Fixed spelling error in previous changelog entry. * Bump Standards-Version to 3.9.1 (no changes) -- Axel Beckert Fri, 11 Feb 2011 16:21:47 +0100 dphys-swapfile (20061020-4) unstable; urgency=low * Fix wrong magnitude in last upload's bugfix for 564466 when calculating swap size. (Closes: #612877, LP: #706764) Thanks Antonio Galea for a very unintrusive patch. -- Axel Beckert Fri, 11 Feb 2011 14:40:33 +0100 dphys-swapfile (20061020-3) unstable; urgency=low * New maintainer * Removed patch which removed the swapfile size limit (#502200). Without this patch, the problem described in #564466 wouldn't have been so harmful as it is. * Updated homepage URL * Moved to quilt patch management. New patches: - adapt-source-code-comments-and-output.diff - check-for-empty-or-zero-maxswap.diff - use-meminfo-instead-of-kcore.diff (Closes: #564466) - fix-spelling-errors.diff (fixes lintian warnings) * Bumped standards version to 3.8.4 (no changes necessary) * Added Vcs-* headers * Added debian/source/format * Added watch file * Added "Depends: ${misc:Depends}" to debian/control due to debhelper usage * Added "$remote_fs" to Required-Start and Required-Stop in LSB init.d section * Added NEWS.Debian mentioning behaviour changes -- Axel Beckert Wed, 05 May 2010 21:33:53 +0200 dphys-swapfile (20061020-2) unstable; urgency=low * Apply patch to remove maximal swapfile size. (Closes: #502200) Thanks to Jacob Elder for the patch. * Update my email address. * Bump standards version. * Bump debhelper version. * Update debian/copyright. * Move Homepage field in debian/control. -- Gürkan Sengün Thu, 19 Mar 2009 13:34:14 +0100 dphys-swapfile (20061020-1) unstable; urgency=low * New upstream version. -- Gürkan Sengün Thu, 26 Oct 2006 09:15:10 +0200 dphys-swapfile (20060915-1) unstable; urgency=low * Initial release. (Closes: #388631) -- Gürkan Sengün Fri, 15 Sep 2006 19:02:47 +0200 debian/copyright0000644000000000000000000000571012222604537011127 0ustar This package was debianized by: Gürkan Sengün on Fri, 15 Sep 2006 19:02:47 +0200. It was downloaded from: http://www.phys.ethz.ch/~franklin/Projects/dphys-config/ Upstream Author: Neil Franklin Copyright: Copyright (C) 2003-2006 Neil Franklin This software is dual-licensed under the GNU General Public License (GPL), and the modified/non-advertising BSD License (BSD). License (GPL): 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 GNU/Linux systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. License (BSD): Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The Debian packaging is: Copyright (C) 2006 Gürkan Sengün and is licensed under the GPL version 3, see `/usr/share/common-licenses/GPL-3'. debian/init.d0000644000000000000000000000422612222610120010266 0ustar #!/bin/sh # /etc/init.d/dphys-swapfile - automatically set up an swapfile # author Neil Franklin, last modification 2006.09.15 # This script is copyright ETH Zuerich Physics Departement, # use under either modified/non-advertising BSD or GPL license # this init.d script is intended to be run from rcS.d # must run after mount of /var which may only happen in S35mountall.sh # for this reason we can not build swapfile until after S35mountall.sh # so we also need to use init.d start|stop to swapon|off our file # and sensibly before the lots of stuff which may happen in S40networking # so we run it as rcS.d/S37dphys-config ### BEGIN INIT INFO # Provides: dphys-swapfile # Required-Start: $syslog $remote_fs # Required-Stop: $syslog $remote_fs # Should-Start: $local_fs # Should-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Autogenerate and use a swap file # Description: This init.d script exists so one does not need to have a fixed size # swap partition. Instead install without swap partition and then run # this, with file size (re-)computed automatically to fit the current # RAM size. ### END INIT INFO . /lib/lsb/init-functions # get ready to work PATH=/sbin:/bin:/usr/sbin:/usr/bin export PATH # what we are NAME=dphys-swapfile case "$1" in start) /bin/echo "Starting ${NAME} swapfile setup ..." # (re-)size/-generate (and also first time install) # this will produce output, so no -n in above echo /sbin/dphys-swapfile setup # as S35mountall.sh has already run, do this from here # as there can be no swapon in /etc/fstab /sbin/dphys-swapfile swapon /bin/echo "done." ;; stop|default-stop) /bin/echo -n "Stopping ${NAME} swapfile setup ..." # as no swapon or swapoff in /etc/fstab, do this from here /sbin/dphys-swapfile swapoff /bin/echo ", done." ;; restart|reload|force-reload|status) /bin/echo "No daemon to (force-)re[start|load] or status check in ${NAME}" ;; *) /bin/echo "Usage: $0 {start|stop}" exit 1 ;; esac exit 0 debian/docs0000644000000000000000000000001312106223012010020 0ustar FAQ README debian/control0000644000000000000000000000155212222610724010572 0ustar Source: dphys-swapfile Section: admin Priority: optional Maintainer: Axel Beckert Uploaders: Elmar S. Heeb Build-Depends: bash-completion, debhelper (>= 9~) Homepage: http://neil.franklin.ch/Projects/dphys-swapfile/ Standards-Version: 3.9.4 Vcs-Git: git://github.com/isgphys/dphys-swapfile.git Vcs-Browser: https://github.com/isgphys/dphys-swapfile Package: dphys-swapfile Architecture: all Depends: dc, ${misc:Depends} Description: Autogenerate and use a swap file This init.d script exists so one does not need to have a fixed size swap partition. Instead install without swap partition and then run this, with file size (re-)computed automatically to fit the current RAM size. . By default (and hence on installation) it creates swapfile twice as big as the present RAM amount with an upper limit of 2 GB. debian/dirs0000644000000000000000000000001112106223012010027 0ustar sbin etc debian/source/0000755000000000000000000000000012106226714010467 5ustar debian/source/format0000644000000000000000000000001412106226714011675 0ustar 3.0 (quilt) debian/install0000644000000000000000000000003412222604626010556 0ustar dphys-swapfile.example etc/ debian/bash-completion0000644000000000000000000000112512106223012012161 0ustar ## Bash completion for the Android SDK tools. # # Written by Hans-Christoph Steiner, 2012 # # This work is too trival to have any copyright, I hereby wave any copyright # and release it into the public domain. function _dphys_swapfile() { local cur prev opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" opts="setup swapon swapoff uninstall" if [ ${COMP_CWORD} -eq 1 ]; then COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 else COMPREPLY="" return 0 fi } complete -o default -F _dphys_swapfile dphys-swapfile debian/NEWS0000644000000000000000000000060512106223012007653 0ustar dphys-swapfile (20061020-3) unstable; urgency=low dphys-swapfile now also recognizes CONF_MAXSWAP and CONF_SWAPFACTOR in /etc/dphys-swapfile. See dphys-swapfile(8) for details. The old undocumented variables MAXSWAP and SWAPFACTOR do not work anymore and have been replaced by the variables mentioned above. -- Axel Beckert Wed, 05 May 2010 21:30:55 +0200 debian/rules0000755000000000000000000000044212222605500010240 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with bash-completion override_dh_install: dh_install cd debian/dphys-swapfile/etc/ && mv -v dphys-swapfile.example dphys-swapfile override_dh_installchangelogs: dh_installchangelogs Logfile