debian specific changes to the debian build system draft
authorMarkus Bröker <mbroeker@largo.homelinux.org>
Sat, 13 Dec 2008 15:47:46 +0100
changeset 2 62ddf5dd4db0
parent 1 9de88b525a59
child 3 724e07a9f155
debian specific changes to the debian build system
build
debian-install
debian/README.Debian
debian/changelog
debian/copyright
debian/rules
--- a/build
+++ b/build
@@ -12,10 +12,10 @@
 
 make all
 
-if [ ! -f /etc/gentoo-release ]
+if [ ! -f /etc/debian_version ];
 then
 	./post-install;
 else
-	echo "Skipping post-install, handled by ebuild";
+	echo "Skipping post-install, handled by dpkg";
 fi
 
new file mode 100755
--- /dev/null
+++ b/debian-install
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+PDIRECTORY=debian/qmonitor/usr/share/pixmaps
+IDIRECTORY=debian/qmonitor/usr/share/icons
+
+FILE=qMonitor_sideBar.png
+ICON=qMonitor_icon.png
+
+echo -n "Checking, whether ${PDIRECTORY} exists...                      [ "
+if [ ! -d ${PDIRECTORY} ]
+then
+	install -d ${PDIRECTORY};
+	echo "creating ]";
+else 
+	echo "yes ]";
+fi
+
+echo -n "Checking, whether ${PDIRECTORY}/${FILE} exists... [ "
+if [ ! -r ${PDIRECTORY}/${FILE} ]
+then
+	install -m 644 images/sideBar.png \
+		${PDIRECTORY}/${FILE};
+	echo "installing ]"
+	else
+		echo "yes ]";
+fi
+
+echo -n "Checking, whether ${IDIRECTORY} exists...                        [ "
+if [ ! -d ${IDIRECTORY} ]
+then
+	install -d ${IDIRECTORY};
+	echo "creating ]";
+else 
+	echo "yes ]";
+fi
+
+echo -n "Checking, whether ${IDIRECTORY}/${ICON} exists...      [ "
+if [ ! -r ${IDIRECTORY}/${ICON} ]
+then
+	install -m 644 images/icon.png \
+		${IDIRECTORY}/${ICON};
+	echo "installing ]"
+	else
+		echo "yes ]";
+fi
deleted file mode 100644
--- a/debian/README.Debian
+++ /dev/null
@@ -1,6 +0,0 @@
-qmonitor for Debian
--------------------
-
-<possible notes regarding this package - if none, delete this file>
-
- -- Markus Broeker <mbroeker@largo.homelinux.org>  Fri, 07 Mar 2008 00:36:15 +0100
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
 qmonitor (0.10-1) unstable; urgency=low
 
-  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+  * Initial release
 
  -- Markus Broeker <mbroeker@largo.homelinux.org>  Fri, 07 Mar 2008 00:36:15 +0100
 
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,24 +1,12 @@
 This package was debianized by Markus Broeker <mbroeker@largo.homelinux.org> on
 Fri, 07 Mar 2008 00:36:15 +0100.
 
-It was downloaded from <url://example.com>
+It was downloaded from https://largo.homelinux.org/cgi-bin/gitweb.cgi
 
 Upstream Author(s): 
 
-    <put author's name and email here>
-    <likewise for another author>
-
-Copyright: 
-
-    <Copyright (C) YYYY Name OfAuthor>
-    <likewise for another author>
-
-License:
-
-    <Put the license of the package here indented by 4 spaces>
+    mbroeker@largo.homelinux.org
 
 The Debian packaging is (C) 2008, Markus Broeker <mbroeker@largo.homelinux.org> and
 is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
 
-# Please also look if there are files or directories which have a
-# different copyright/license attached and list them here.
--- a/debian/rules
+++ b/debian/rules
@@ -51,7 +51,7 @@
 	mv qmonitor-0 qmonitor
 	install -d debian/qmonitor/usr/sbin/
 	install qmonitor debian/qmonitor/usr/sbin/
-	./post-install;
+	./debian-install;
 
 
 # Build architecture-independent files here.