r10473 - in /packages/unstable/human-icon-theme/debian: changelog control control.in install postinst rules

alanbach-guest at users.alioth.debian.org alanbach-guest at users.alioth.debian.org
Thu Apr 26 08:38:30 UTC 2007


Author: alanbach-guest
Date: Thu Apr 26 08:38:30 2007
New Revision: 10473

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=10473
Log:
Added postinst script: * Added build, clean_up and install functions, * Added lsb_release distro detection method, * Replaces Ubuntu logo with Debian or Parsix, Added sng and lsb_release to deps

Added:
    packages/unstable/human-icon-theme/debian/install
    packages/unstable/human-icon-theme/debian/postinst   (with props)
Modified:
    packages/unstable/human-icon-theme/debian/changelog
    packages/unstable/human-icon-theme/debian/control
    packages/unstable/human-icon-theme/debian/control.in
    packages/unstable/human-icon-theme/debian/rules

Modified: packages/unstable/human-icon-theme/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/human-icon-theme/debian/changelog?rev=10473&op=diff
==============================================================================
--- packages/unstable/human-icon-theme/debian/changelog (original)
+++ packages/unstable/human-icon-theme/debian/changelog Thu Apr 26 08:38:30 2007
@@ -7,20 +7,24 @@
     - GNOME team uploads
     - Changed maintainer
     - Improved long description
-    - Added autotools-dev to build-deps
-    - Added ${misc:Depends}
-    - Added libmagick9-dev and imagemagick build-dep required versions
-    - Added librsvg2-dev to build-deps
+    - Added Debian and Parsix specific svg and sng logos
+    - Added ${misc:Depends}, sng and lsb_release to deps
+    - Added libmagick9-dev and imagemagick build-dep
+      required versions
+    - Added librsvg2-dev
+    - Wrapped build-deps and deps lines
   * Added debian/watch and debian/control.in files
   * Updated debian/rules
     - Added simple-patchsys.mk and uploaders.mk
-    - Added build and clean sections
-    - Replaces Ubuntu logo with Debian
+  * Added postinst script   
+    - Added build, clean_up and install functions
+    - Added lsb_release distro detection method
+    - Replaces Ubuntu logo with Debian or Parsix
   * Dropped 01_make_type_scalable_for_missing_icons.patch, obsolete
 
   [ Loic Minier ]
   * Add missing build-dep on gnome-pkg-tools.
   * Build-depend on libxml-parser-perl instead of intltool.
 
- -- Alan Baghumian <alan at technotux.org>  Mon, 23 Apr 2007 22:10:25 +0330
+ -- Alan Baghumian <alan at technotux.org>  Thu, 26 Apr 2007 12:05:37 +0330
 

Modified: packages/unstable/human-icon-theme/debian/control
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/human-icon-theme/debian/control?rev=10473&op=diff
==============================================================================
--- packages/unstable/human-icon-theme/debian/control (original)
+++ packages/unstable/human-icon-theme/debian/control Thu Apr 26 08:38:30 2007
@@ -3,13 +3,24 @@
 Priority: optional
 Maintainer: Alan Baghumian <alan at technotux.org>
 Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers at lists.alioth.debian.org>, Loic Minier <lool at dooz.org>
-Build-Depends: debhelper (>= 5), cdbs, gnome-pkg-tools
-Build-Depends-Indep: libxml-parser-perl, hicolor-icon-theme, pkg-config (>= 0.19), icon-naming-utils (>= 0.8.1), libmagick9-dev (>= 5.5.7), imagemagick (>= 5.5.7), autotools-dev, sng, librsvg2-dev (>= 2.12.3)
+Build-Depends:  debhelper (>= 5),
+		cdbs, 
+		gnome-pkg-tools
+Build-Depends-Indep: libxml-parser-perl,
+		     hicolor-icon-theme,
+		     pkg-config (>= 0.19),
+		     icon-naming-utils (>= 0.8.1),
+		     libmagick9-dev (>= 5.5.7),
+		     imagemagick (>= 5.5.7),
+		     autotools-dev,
+		     librsvg2-dev (>= 2.12.3),
 Standards-Version: 3.7.2
 
 Package: human-icon-theme
 Architecture: all
-Depends: ${misc:Depends}
+Depends: ${misc:Depends},
+	 sng,
+	 lsb_release
 Section: non-free/x11
 Description: Human Icon theme
  Human is a nice and well pulished icon theme for

Modified: packages/unstable/human-icon-theme/debian/control.in
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/human-icon-theme/debian/control.in?rev=10473&op=diff
==============================================================================
--- packages/unstable/human-icon-theme/debian/control.in (original)
+++ packages/unstable/human-icon-theme/debian/control.in Thu Apr 26 08:38:30 2007
@@ -3,13 +3,24 @@
 Priority: optional
 Maintainer: Alan Baghumian <alan at technotux.org>
 Uploaders: @GNOME_TEAM@
-Build-Depends: debhelper (>= 5), cdbs, gnome-pkg-tools
-Build-Depends-Indep: libxml-parser-perl, hicolor-icon-theme, pkg-config (>= 0.19), icon-naming-utils (>= 0.8.1), libmagick9-dev (>= 5.5.7), imagemagick (>= 5.5.7), autotools-dev, sng, librsvg2-dev (>= 2.12.3)
+Build-Depends: 	debhelper (>= 5),
+		cdbs, 
+		gnome-pkg-tools
+Build-Depends-Indep: libxml-parser-perl,
+		     hicolor-icon-theme,
+		     pkg-config (>= 0.19),
+		     icon-naming-utils (>= 0.8.1),
+		     libmagick9-dev (>= 5.5.7),
+		     imagemagick (>= 5.5.7),
+		     autotools-dev,
+		     librsvg2-dev (>= 2.12.3)
 Standards-Version: 3.7.2
 
 Package: human-icon-theme
 Architecture: all
-Depends: ${misc:Depends}
+Depends: ${misc:Depends},
+	 sng,
+	 lsb_release
 Section: non-free/x11
 Description: Human Icon theme
  Human is a nice and well pulished icon theme for

Added: packages/unstable/human-icon-theme/debian/install
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/human-icon-theme/debian/install?rev=10473&op=file
==============================================================================
--- packages/unstable/human-icon-theme/debian/install (added)
+++ packages/unstable/human-icon-theme/debian/install Thu Apr 26 08:38:30 2007
@@ -1,0 +1,2 @@
+debian/Debian	/usr/share/icons/Human/
+debian/Parsix	/usr/share/icons/Human/

Added: packages/unstable/human-icon-theme/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/human-icon-theme/debian/postinst?rev=10473&op=file
==============================================================================
--- packages/unstable/human-icon-theme/debian/postinst (added)
+++ packages/unstable/human-icon-theme/debian/postinst Thu Apr 26 08:38:30 2007
@@ -1,0 +1,39 @@
+#!/bin/sh
+#DEBHELPER#
+
+DIST=`lsb_release -si`
+	
+# Anyway, defaults to Debian
+test -z $DIST && DIST="Debian"
+
+build
+install
+clean_up
+
+function clean_up
+{
+	test -e /usr/share/icons/Human/$DIST/start-here-22x22.png && \
+		rm /usr/share/icons/Human/$DIST/start-here-22x22.png
+	test -e /usr/share/icons/Human/$DIST/start-here-24x24.png && \
+		rm /usr/share/icons/Human/$DIST/start-here-24x24.png
+	test -e /usr/share/icons/Human/$DIST/start-here-48x48.png && \
+		rm /usr/share/icons/Human/$DIST/start-here-48x48.png
+}
+
+function build
+{
+	sng /usr/share/icons/Human/$DIST/*.sng
+}
+
+function install
+{
+	# replace Ubuntu logo with Debian or Parsix
+	install -D -m 644 -o root -g root /usr/share/icons/Human/$DIST/start-here-22x22.png \
+		/usr/share/icons/Human/22x22/places/start-here.png
+	install -D -m 644 -o root -g root /usr/share/icons/Human/$DIST/start-here-24x24.png \
+		/usr/share/icons/Human/24x24/places/start-here.png
+	install -D -m 644 -o root -g root /usr/share/icons/Human/$DIST/start-here-48x48.png \
+		/usr/share/icons/Human/48x48/places/start-here.png
+	install -D -m 644 -o root -g root /usr/share/icons/Human/$DIST/start-here.svg \
+		/usr/share/icons/Human/scalable/places/start-here.svg	
+}

Propchange: packages/unstable/human-icon-theme/debian/postinst
------------------------------------------------------------------------------
    svn:executable = *

Modified: packages/unstable/human-icon-theme/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/human-icon-theme/debian/rules?rev=10473&op=diff
==============================================================================
--- packages/unstable/human-icon-theme/debian/rules (original)
+++ packages/unstable/human-icon-theme/debian/rules Thu Apr 26 08:38:30 2007
@@ -5,23 +5,3 @@
 include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
-clean::
-	-test -e debian/start-here-22x22.png && rm debian/start-here-22x22.png
-	-test -e debian/start-here-24x24.png && rm debian/start-here-24x24.png
-	-test -e debian/start-here-48x48.png && rm debian/start-here-48x48.png
-
-build:
-	sng debian/*.sng
-
-binary-post-install/human-icon-theme::
-	# replace Ubuntu logo with Debian
-	install -D -m 644 -o root -g root debian/start-here-22x22.png \
-		debian/human-icon-theme/usr/share/icons/Human/22x22/places/start-here.png
-	install -D -m 644 -o root -g root debian/start-here-24x24.png \
-		debian/human-icon-theme/usr/share/icons/Human/24x24/places/start-here.png
-	install -D -m 644 -o root -g root debian/start-here-48x48.png \
-		debian/human-icon-theme/usr/share/icons/Human/48x48/places/start-here.png
-	install -D -m 644 -o root -g root debian/start-here.svg \
-		debian/human-icon-theme/usr/share/icons/Human/scalable/places/start-here.svg	
-	
-




More information about the pkg-gnome-commits mailing list