# HG changeset patch # User Markus Bröker # Date 1229179666 -3600 # Node ID 62ddf5dd4db0b47114e3108a7ba4d3fec5f5175a # Parent 9de88b525a59edf5af57d0bf9d736dc00f5aa944 debian specific changes to the debian build system diff --git a/build b/build --- 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 diff --git a/debian-install b/debian-install 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 diff --git a/debian/README.Debian b/debian/README.Debian deleted file mode 100644 --- a/debian/README.Debian +++ /dev/null @@ -1,6 +0,0 @@ -qmonitor for Debian -------------------- - - - - -- Markus Broeker Fri, 07 Mar 2008 00:36:15 +0100 diff --git a/debian/changelog b/debian/changelog --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,6 @@ qmonitor (0.10-1) unstable; urgency=low - * Initial release (Closes: #nnnn) + * Initial release -- Markus Broeker Fri, 07 Mar 2008 00:36:15 +0100 diff --git a/debian/copyright b/debian/copyright --- a/debian/copyright +++ b/debian/copyright @@ -1,24 +1,12 @@ This package was debianized by Markus Broeker on Fri, 07 Mar 2008 00:36:15 +0100. -It was downloaded from +It was downloaded from https://largo.homelinux.org/cgi-bin/gitweb.cgi Upstream Author(s): - - - -Copyright: - - - - -License: - - + mbroeker@largo.homelinux.org The Debian packaging is (C) 2008, Markus Broeker 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. diff --git a/debian/rules b/debian/rules --- 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.