Load cpulimit-1.1 into debian/cpulimit/trunk.
authorgregor herrmann <gregoa@debian.org>
Mon, 3 Apr 2006 20:33:00 +0000 (20:33 -0000)
committergregor herrmann <gregoa@debian.org>
Mon, 3 Apr 2006 20:33:00 +0000 (20:33 -0000)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/cpulimit.1 [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/watch [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..3174b4d
--- /dev/null
@@ -0,0 +1,6 @@
+cpulimit (1.1-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- gregor herrmann <gregor+debian@comodo.priv.at>  Mon,  3 Apr 2006 21:51:36 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..b69145a
--- /dev/null
@@ -0,0 +1,19 @@
+Source: cpulimit
+Section: admin
+Priority: optional
+Maintainer: gregor herrmann <gregor+debian@comodo.priv.at>
+Build-Depends: debhelper (>= 5.0.0)
+Standards-Version: 3.6.2
+
+Package: cpulimit
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: limit the cpu usage of a process
+ cpulimit is a simple program that attempts to limit the cpu usage of a
+ process (expressed in percentage, not in cpu time). This is useful to
+ control batch jobs, when you don't want they eat too much cpu. It does not
+ act on the nice value or other priority stuff, but on the real cpu usage.
+ Besides it is able to adapt itself to the overall system load, dynamically
+ and quickly.
+ .
+  Homepage: http://marlon80.interfree.it/cpulimit/
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..54dc899
--- /dev/null
@@ -0,0 +1,21 @@
+This package was debianized by gregor herrmann <gregor+debian@comodo.priv.at> on
+Mon,  3 Apr 2006 21:51:36 +0200.
+
+It was downloaded from http://marlon80.interfree.it/cpulimit/download.html
+
+Copyright:
+(c) 2005 Angelo Marletta <marlonx80@hotmail.com>
+
+License:
+
+ This file may be used subject to the terms and conditions of the
+ GNU Library General Public License Version 2, or any later version
+ at your option, as published by the Free Software Foundation.
+ This program 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.
+
+ On Debian GNU/Linux systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL'.
+                         
diff --git a/debian/cpulimit.1 b/debian/cpulimit.1
new file mode 100644 (file)
index 0000000..2673eb4
--- /dev/null
@@ -0,0 +1,35 @@
+.TH CPULIMIT "1" "April 2006" "cpulimit" "User Commands"
+.SH NAME
+cpulimit
+.SH SYNOPSIS
+.B cpulimit
+\fITARGET \fR[\fIOPTIONS\fR...]
+.SH DESCRIPTION
+.P
+\fITARGET \fRmust be exactly one of these:
+.TP
+\fB\-p\fR, \fB\-\-pid\fR=\fIN\fR
+pid of the process
+.TP
+\fB\-e\fR, \fB\-\-exe\fR=\fIFILE\fR
+name of the executable program file
+.TP
+\fB\-P\fR, \fB\-\-path\fR=\fIPATH\fR
+absolute path name of the executable program file
+.P
+\fIOPTIONS\fR
+.TP
+\fB\-l\fR, \fB\-\-limit\fR=\fIN\fR
+percentage of cpu allowed from 0 to 100 (mandatory)
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+show control statistics
+.TP
+\fB\-z\fR, \fB\-\-lazy\fR
+exit if there is no suitable target process, or if it dies
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+display this help and exit
+.SH AUTHOR
+This manpage was written for the Debian project by gregor herrmann
+<gregor+debian@comodo.priv.at> but may be used by others.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..e772481
--- /dev/null
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..46627dd
--- /dev/null
@@ -0,0 +1,95 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -O0
+else
+       CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+       dh_testdir
+
+       $(MAKE)
+
+       touch build-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       -$(MAKE) clean
+
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       dh_installdirs
+
+       # Add here commands to install the package into debian/cpulimit.
+       install cpulimit $(CURDIR)/debian/cpulimit/usr/bin
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs 
+       dh_installdocs
+       dh_installexamples
+#      dh_install
+#      dh_installmenu
+#      dh_installdebconf       
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+       dh_installman debian/cpulimit.1
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_python
+#      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 configure
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..7e9b8ca
--- /dev/null
@@ -0,0 +1,4 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://marlon80.interfree.it/cpulimit/cpulimit-([\d\.]+)\.tar\.gz