~ubuntu-branches/ubuntu/trusty/fluxbox/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/10-bashism-in-fbsetbg-480597

  • Committer: Package Import Robot
  • Author(s): Paul Tagliamonte
  • Date: 2010-08-12 21:16:02 UTC
  • mfrom: (0.1.1) (1.1.10)
  • Revision ID: package-import@ubuntu.com-20100812211602-3tsmzl9in5nmwz7z
Tags: 1.1.1+git20100807.0cc08f9-1
* debian/ dir has been cleaned out, complete repackage
  of most files.
* pulled new archive from git.fluxbox.org HEAD, saved as
  tar.gz.
* Added in fluxbox.* files from the old dfsg tree.
* Added in system.fluxbox-menu file from the old dfsg tree
* Added the source/format file to bump package source
  version from 1.0 to 3.0 (quilt). 
* Changed rules file to match the old dfsg setup so that
  fluxbox behaves nicely.
* Removed entries from copyright that no longer apply.
* Added theme based on Denis Brand ( naran )'s old theme.
* Added a background I whipped up.
* Changed compile flags to point to debian theme by default
* Adding a patch to have fluxbox use x-terminal-emulator
  over xterm. Closes: #591694 (LP: #580485)
* Adding a patch to allow titlebar-window dragging.
* Changed the flags in rules to pull from a script. This script
  lets us un-hardcode what theme is default. Be sure there
  is a theme pack!
* Added comments to my patches.
* Removing debian/docs, empty file.
* Fixing fluxbox.desktop to remove all the warnings from
  desktop-file-validate
* Fixing libtool issue by running an update before
  configure in the rules script.
* Added a compile flag script to auto-detect what platform
  we are running on, and apply the correct theme. This
  should solve Ubuntnu issues later on.
* adding in a get-orig-source rule
* fixing the upstream version number to pinpoint
  the commit ( thanks, lfaraone ).
* adding a rule for get-orig-source. ( thanks again,
  lfaraone ).
* Updated rules to actually allow us to do a build from it
* Removed Denis from the uploaders ( as per an email
  conversation )
* Removing madduck from the uploaders ( thanks for asking,
  lfaraone. ). Thanks for your hard work, madduck.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: Upstream changes introduced in version 1.1.1+dfsg2-1
2
 
 This patch has been created by dpkg-source during the package build.
3
 
 Here's the last changelog entry, hopefully it gives details on why
4
 
 those changes were made:
5
 
 .
6
 
 fluxbox (1.1.1+dfsg2-1) UNRELEASED; urgency=low
7
 
 .
8
 
   [Denis Briand]
9
 
   * Create extra directory to put all debian's styles and backgrounds.
10
 
   * New default background, thanks to Thomas Guillot <gtom@gtom.eu>.
11
 
   * Update copyright file with the CC-by-SA 3 license for
12
 
     the background picture.
13
 
   * Update copyright file with the 3-clause BSD license for
14
 
     debian_squeeze_dark style file.
15
 
 .
16
 
   [Paul Tagliamonte]
17
 
   * Added patch for fbsetbg scale behavior. (Closes: #583704).
18
 
     Thanks to Jeremiah Mahler for his patch!
19
 
   * The following themes have been merged from upstream under
20
 
     a new license: arch, bloe, bora_black, bora_blue, bora_green
21
 
     carp, green_tea, ostrich, zimek_bisque, zimek_darkblue,
22
 
     zimek_green. They were moved from CC-BY-SA 2.5 to CC-BY-SA 3.0
23
 
 .
24
 
 The person named in the Author field signed this changelog entry.
25
 
Author: Paul Tagliamonte <paultag@ubuntu.com>
26
 
Bug-Debian: http://bugs.debian.org/583704
27
 
 
28
 
---
29
 
The information above should follow the Patch Tagging Guidelines, please
30
 
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
31
 
are templates for supplementary fields that you might want to add:
32
 
 
33
 
Origin: <vendor|upstream|other>, <url of original patch>
34
 
Bug: <url in upstream bugtracker>
35
 
Bug-Debian: http://bugs.debian.org/<bugnumber>
36
 
Forwarded: <no|not-needed|url proving that it has been forwarded>
37
 
Reviewed-By: <name and email of someone who approved the patch>
38
 
Last-Update: <YYYY-MM-DD>
39
 
 
40
 
--- fluxbox-1.1.1+dfsg2.orig/util/fbsetbg
41
 
+++ fluxbox-1.1.1+dfsg2/util/fbsetbg
42
 
@@ -498,11 +498,11 @@ if [ "$option" = random ]; then
43
 
         number_of_wallpapers=`ls "$wallpaperdir"|wc -l`
44
 
         if find_it random_number; then
45
 
             randomnumber=`random_number`
46
 
-        # some shells don't support $RANDOM
47
 
-        elif [ -z "$RANDOM" ]; then
48
 
+        # check if the program 'time' is available
49
 
+        elif [ "$(command -v time)" ]; then
50
 
             randomnumber=`(echo $$ ;time ps; w ; date )2>&1 | cksum | cut -f1 -d' '`
51
 
         else
52
 
-            randomnumber="$RANDOM"
53
 
+            randomnumber="$(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" " )"
54
 
         fi
55
 
         wallpapernumber=`expr $randomnumber % $number_of_wallpapers + 1`
56
 
         #remember previous wallpaper