Set PREFIX in debian/rules and create necessary directories.
authorgregor herrmann <gregoa@debian.org>
Sun, 8 May 2011 13:19:09 +0000 (13:19 -0000)
committergregor herrmann <gregoa@debian.org>
Sun, 8 May 2011 13:19:09 +0000 (13:19 -0000)
debian/changelog
debian/cpulimit.dirs [new file with mode: 0644]
debian/rules

index 212e6c48648cefc1d6177f4cd99dc2a908779075..4fab9253df9c528adf8a215263484564b41118a3 100644 (file)
@@ -11,6 +11,7 @@ cpulimit (1.3-1) UNRELEASED; urgency=low
   * Bump debhelper compatibility level to 8.
   * debian/copyright: update formatting and packaging copyright years.
   * Switch to source format 3.0 (quilt).
+  * Set PREFIX in debian/rules and create necessary directories.
 
  -- gregor herrmann <gregoa@debian.org>  Sun, 08 May 2011 14:58:46 +0200
 
diff --git a/debian/cpulimit.dirs b/debian/cpulimit.dirs
new file mode 100644 (file)
index 0000000..0c25af9
--- /dev/null
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/man/man1/
index 2d33f6ac8992b7da84b39a5bca0742c4962d3349..a9ba814c4c15689e00e633c84213dc7ce6f77839 100755 (executable)
@@ -1,4 +1,10 @@
 #!/usr/bin/make -f
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
 %:
        dh $@
+
+override_dh_auto_install:
+       PREFIX=$(TMP)/usr dh_auto_install