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:
6
fluxbox (1.1.1+dfsg2-1) UNRELEASED; urgency=low
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.
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
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
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:
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>
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' '`
52
- randomnumber="$RANDOM"
53
+ randomnumber="$(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" " )"
55
wallpapernumber=`expr $randomnumber % $number_of_wallpapers + 1`
56
#remember previous wallpaper