--- wicd-1.5.9.orig/debian/docs +++ wicd-1.5.9/debian/docs @@ -0,0 +1 @@ +debian/NEWS.Debian --- wicd-1.5.9.orig/debian/default +++ wicd-1.5.9/debian/default @@ -0,0 +1,3 @@ +# Don't start the daemon by default, let the user set it. +# Use "yes" (without quotes) to make /etc/init.d/wicd start the WICD daemon. +START_DAEMON=yes --- wicd-1.5.9.orig/debian/copyright +++ wicd-1.5.9/debian/copyright @@ -0,0 +1,68 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +Upstream-Name: Wicd +Upstream-Maintainer: Adam Blackburn + Dan O'Reilly +Upstream-Source: https://sourceforge.net/project/showfiles.php?group_id=194573 +Packaged-By: David Paleino +Packaged-Date: Thu, 11 Sep 2008 19:35:30 +0200 + +Files: debian/* +Copyright: © 2008, David Paleino +License: GPL-2+ + +Files: in/init=gentoo=wicd.in + init/gentoo/wicd +Copyright: © 1996-2006, Gentoo Foundation +License: GPL-2 + +Files: in/man=wicd.8.in + in/man=wicd-manager-settings.conf.5.in + in/man=wicd-wired-settings.conf.5.in + in/man=wicd-wireless-settings.conf.5.in +Copyright: © 2008, Robby Workman +License: GPL-2+ + +Files: wicd/networking.py + wicd/wicd-daemon.py + wicd/wnettools.py +Copyright: © 2007-2008, Adam Blackburn +Copyright: © 2007-2008, Dan O'Reilly +Copyright: © 2007-2008, Byron Hillis +License: GPL-2+ + +Files: uninstall.sh +Copyright: © 2008, Robby Workman +Copyright: © 2008, Alan Hicks +License: BSD-1 + +Files: * +Copyright: © 2007-2008, Adam Blackburn +Copyright: © 2007-2008, Dan O'Reilly +License: GPL-2+ + +License: GPL-2+ +License: GPL-2 + On Debian systems the full text of the GNU General Public License can + be found in the `/usr/share/common-licenses/GPL-2' file. + +License: BSD-1 + # Copyright 2008 Robby Workman , Northport, AL, USA + # Copyright 2008 Alan Hicks , Lizella, GA, USA + # All rights reserved. + # + # Redistribution and use of this script, with or without modification, is + # permitted provided that the following conditions are met: + # + # 1. Redistributions of this script must retain the above copyright + # notice, this list of conditions and the following disclaimer. + # + # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED + # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO + # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- wicd-1.5.9.orig/debian/README.Debian +++ wicd-1.5.9/debian/README.Debian @@ -0,0 +1,13 @@ +wicd for Debian +--------------- + +If Wicd fails to connect after you install it, make sure that the only +entry in your /etc/network/interfaces file is + + auto lo + iface lo inet loopback + +You can change the contents of this file by using various editors, but +remember: you have to be root! + + -- David Paleino Thu, 11 Sep 2008 18:46:23 +0200 --- wicd-1.5.9.orig/debian/rules +++ wicd-1.5.9/debian/rules @@ -0,0 +1,50 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh build --before dh_auto_configure + python setup.py configure --no-install-docs --lib=/usr/share/wicd --share=/usr/share/wicd + python setup.py build + dh build --after dh_auto_build + touch $@ + +clean: unpatch + dh clean --before dh_auto_clean + python setup.py clean + dh clean --after dh_auto_clean + + find . \( -name "*.pyc" -o -name "*.pyo" \) -delete + find ./init/ \( -name "wicd" -o -name "rc.wicd" \) -delete + -rm -rf build/ + + dh_clean wpath.py install.log os wicd/wpath.py \ + man/*.8 man/*.5 scripts/* other/*.sh \ + other/postinst other/55wicd + +install: build + dh install --before dh_auto_install + python setup.py install --root=$(CURDIR)/debian/wicd --install-lib=/usr/share/wicd + install -m644 debian/wicd-client.xpm \ + $(CURDIR)/debian/wicd/usr/share/pixmaps/wicd.xpm + + find $(CURDIR)/debian/wicd -name "*.png" -exec chmod 644 {} \; + find $(CURDIR)/debian/wicd/etc/wicd/ -type f -exec chmod 644 {} \; + find $(CURDIR)/debian/wicd \( -name "*.glade" -o -name "*.conf" -o -name "*.desktop" \) -exec chmod 644 {} \; + + dh install --after dh_auto_install --before dh_installinit + dh_pysupport -i + dh_installinit -i + dh install --after dh_installinit + +binary-arch: +binary-indep: build install + dh binary-indep + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- wicd-1.5.9.orig/debian/init +++ wicd-1.5.9/debian/init @@ -0,0 +1,167 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: wicd +# Required-Start: dbus +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts and stops Wicd +# Description: Starts and stops Wicd, a network manager +### END INIT INFO + +# Author: Adam Blackburn +# + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Network connection manager" +NAME=wicd +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="" +PIDFILE=/var/run/wicd/wicd.pid +SCRIPTNAME=/etc/init.d/wicd + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# Perhaps not the best idea +# but a confirmation is nice +# when starting/stopping the daemon +VERBOSE=yes + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + # vvvv -- don't do this -- vvvv + # [ -e $PIDFILE ] && return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON -- \ + $DAEMON_ARGS > /dev/null 2> /dev/null\ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + if [ "$START_DAEMON" != no ]; then + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + else + log_warning_msg "Not starting wicd daemon. Please edit /etc/default/wicd first." + fi + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + if [ "$START_DAEMON" != no ]; then + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + else + log_warning_msg "Not starting wicd daemon. Please edit /etc/default/wicd first." + fi + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: --- wicd-1.5.9.orig/debian/control +++ wicd-1.5.9/debian/control @@ -0,0 +1,42 @@ +Source: wicd +Section: net +Priority: optional +Maintainer: Python Applications Packaging Team +Uploaders: David Paleino +DM-Upload-Allowed: yes +Build-Depends: debhelper (>= 7), python, quilt +Build-Depends-Indep: python-support +Standards-Version: 3.8.0 +Homepage: http://wicd.sourceforge.net/ +Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/wicd/trunk/ +Vcs-Svn: svn://svn.debian.org/svn/python-apps/packages/wicd/trunk + +Package: wicd +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, + python-gtk2, + python-dbus, + wpasupplicant, + python-glade2, + wireless-tools, + dhcpd | dhcp3-client | pump, + net-tools | ethtool, + net-tools | iproute, + adduser +Suggests: pm-utils +Conflicts: network-manager +Description: wired and wireless network manager + Wicd is an open source wired and wireless network manager which + aims to provide a simple interface to connect to networks with a + wide variety of settings. + . + Some of Wicd's features include: + . + 1. No GNOME dependencies (although it does require GTK+), so it is + easy to use in Xfce, Fluxbox, Openbox, Enlightenment, etc. + 2. Ability to connect to wired and wireless networks + 3. Profiles for each wireless network and wired network + 4. Many encryption schemes, some of which include WEP/WPA/WPA2 (and + you can add your own) + 5. Remains compatible with wireless-tools + 6. Tray icon showing network activity and signal strength --- wicd-1.5.9.orig/debian/wicd-client.xpm +++ wicd-1.5.9/debian/wicd-client.xpm @@ -0,0 +1,156 @@ +/* XPM */ +static char *wicd_client[] = { +/* columns rows colors chars-per-pixel */ +"32 32 118 2", +" c black", +". c #000100", +"X c #000200", +"o c #000300", +"O c #000301", +"+ c #000401", +"@ c #000501", +"# c #000601", +"$ c #000801", +"% c #000901", +"& c #000902", +"* c #000B02", +"= c #000F02", +"- c #001303", +"; c #001403", +": c #001804", +"> c #001B04", +", c #001E05", +"< c #001F05", +"1 c #002105", +"2 c #002205", +"3 c #002406", +"4 c #002706", +"5 c #002907", +"6 c #002D07", +"7 c #003008", +"8 c #003108", +"9 c #003408", +"0 c #003509", +"q c #003709", +"w c #003809", +"e c #003909", +"r c #003A09", +"t c #003C0A", +"y c #003F0A", +"u c #00400A", +"i c #00420B", +"p c #00440B", +"a c #00450B", +"s c #00460B", +"d c #004A0C", +"f c #004C0C", +"g c #004E0D", +"h c #004F0D", +"j c #00520D", +"k c #00530D", +"l c #00570E", +"z c #00590E", +"x c #005D0F", +"c c #006110", +"v c #006410", +"b c #006510", +"n c #006811", +"m c #006A11", +"M c #006D11", +"N c #006E12", +"B c #007012", +"V c #007312", +"C c #007613", +"Z c #007913", +"A c #008115", +"S c #008215", +"D c #008315", +"F c #008616", +"G c #008716", +"H c #008A16", +"J c #008B16", +"K c #008C16", +"L c #008E17", +"P c #008F17", +"I c #009017", +"U c #009117", +"Y c #009518", +"T c #009D19", +"R c #00A01A", +"E c #00A61B", +"W c #00A71B", +"Q c #00A81B", +"! c #00A91B", +"~ c #00AF1C", +"^ c #00B01C", +"/ c #00B11D", +"( c #00B21D", +") c #00B31D", +"_ c #00B91E", +"` c #00BA1E", +"' c #00BB1E", +"] c #00BC1E", +"[ c #00BF1F", +"{ c #00C11F", +"} c #00C820", +"| c #00CA20", +" . c #00CE21", +".. c #00D222", +"X. c #00D322", +"o. c #00D422", +"O. c #00D723", +"+. c #00DB23", +"@. c #00DC23", +"#. c #00DD24", +"$. c #00E024", +"%. c #00E124", +"&. c #00E725", +"*. c #00ED26", +"=. c #00EF26", +"-. c #00EF27", +";. c #00F127", +":. c #00F227", +">. c #00F427", +",. c #00F527", +"<. c #00F828", +"1. c #00F928", +"2. c #00FB28", +"3. c #00FC29", +"4. c #00FD29", +"5. c #00FE29", +"6. c #00FF29", +"7. c None", +/* pixels */ +"7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.", +"7.7.7.7.7.7. ; 7.7.7.7.7.7.7.7.7.7.7.7.7.7. - 7.7.7.7.7.7.", +"7.7.7.7.7.5 Q < 7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.> Q 6 7.7.7.7.7.", +"7.7.7.7.a :.h 7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.s >.f 7.7.7.7.", +"7.7.7.0 ,.' 7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7. ( <.t 7.7.7.", +"7.7.* +.6.i 7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.e 6.%.= 7.7.", +"7.7.Z 6.#.. 7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7. o.6.S 7.7.", +"7.@ &.6.P 7.7.7.7.7.v l 7.7.7.7.7.7.7.7.j m 7.7.7.7.7.F 6.*.% 7.", +"7.a 6.6.k 7.7.7.7.j { 7.7.7.7.7.7.7.7.7.7.` z 7.7.7.7.d 6.6.g 7.", +"7.G 6.6.4 7.7.7.7.| C 7.7.7.7.7.7.7.7.7.7.B ..7.7.7.7., 6.6.I 7.", +" ) 6.6.& 7.7.7.y 6.u 7.7.7. 7.7.7.9 6.d 7.7.7.o 3.6.] ", +" | 6.1. 7.7.7.M 6.7.7.7. 7.7.7.2.V 7.7.7. -.6.X. ", +" .6.<. 7.7.7.V 6.7.7.7. 7.7.7.<.Z 7.7.7. =.6.O. ", +" [ 6.6.$ 7.7.7.x 6.7 7.7.7. 7.7.7.1 6.b 7.7.7.X 2.6.} ", +"7.T 6.6.3 7.7.7.7.;.n 7.7.7. 7.7.7.c ,.7.7.7.7.> 6.6.E ", +"7.b 6.6.h 7.7.7.7.L W 7.7.7. 7.7.7.R Y 7.7.7.7.s 6.6.N 7.", +"7.> 3.6.J 7.7.7.7.7.' s 7.7. 7.7.y [ 7.7.7.7.7.A 6.5.2 7.", +"7. ~ 6.O. 7.7.7.7.7.z O 7. 7.X l 7.7.7.7.7. .6._ 7.", +"7.7.7 2.6.r 7.7.7.7.7.7.7.7. 7.7.7.7.7.7.7.7.8 6.4.q 7.7.", +"7.7. D 6./ 7.7.7.7.7.7.7. 7.7.7.7.7.7.7. Q 6.K 7.7.", +"7.7.7.O ! 6.p 7.7.7.7.7.7.7. 7.7.7.7.7.7.7.t 5.^ @ 7.7.7.", +"7.7.7.7.+ H $.: 7.7.7.7.7.7. 7.7.7.7.7.7.; @.U # 7.7.7.7.", +"7.7.7.7.7.7.9 V $ 7.7.7.7.7. 7.7.7.7.7.# B w 7.7.7.7.7.", +"7.7.7.7.7.7.7.7. 7.7.7.7. 7.7.7.7. 7.7.7.7.7.7.7.7.", +"7.7.7.7.7.7.7.7.7.7.7.7.7.7. 7.7.7.7.7.7.7.7.7.7.7.7.7.7.", +"7.7.7.7.7.7.7.7.7.7.7.7.7.7. 7.7.7.7.7.7.7.7.7.7.7.7.7.7.", +"7.7.7.7.7.7.7.7.7.7.7.7.7.7. 7.7.7.7.7.7.7.7.7.7.7.7.7.7.", +"7.7.7.7.7.7.7.7.7.7.7.7.7.7. 7.7.7.7.7.7.7.7.7.7.7.7.7.7.", +"7.7.7.7.7.7.7.7.7.7. 7.7.7.7.7.7.7.7.7.7.", +"7.7.7.7.7.7.7.7.7.7. 7.7.7.7.7.7.7.7.7.7.", +"7.7.7.7.7.7.7.7.7.7. 7.7.7.7.7.7.7.7.7.7.", +"7.7.7.7.7.7.7.7.7.7. 7.7.7.7.7.7.7.7.7.7." +}; --- wicd-1.5.9.orig/debian/postrm +++ wicd-1.5.9/debian/postrm @@ -0,0 +1,50 @@ +#!/bin/sh +# postrm script for wicd + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + purge) + rm -rf /etc/wicd + rm -rf /var/lib/wicd + rm -rf /var/log/wicd + if [ -x "/etc/init.d/dbus" ]; then + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d dbus force-reload || exit $? + else + /etc/init.d/dbus force-reload || exit $? + fi + fi + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- wicd-1.5.9.orig/debian/compat +++ wicd-1.5.9/debian/compat @@ -0,0 +1 @@ +7 --- wicd-1.5.9.orig/debian/links +++ wicd-1.5.9/debian/links @@ -0,0 +1 @@ +usr/share/man/man8/wicd.8 usr/share/man/man8/wicd-client.8 --- wicd-1.5.9.orig/debian/menu +++ wicd-1.5.9/debian/menu @@ -0,0 +1,5 @@ +?package(wicd):\ + needs="X11" \ + section="Applications/Network/Monitoring" \ + title="WICD" command="/usr/bin/wicd-client" \ + icon="/usr/share/pixmaps/wicd.xpm" --- wicd-1.5.9.orig/debian/watch +++ wicd-1.5.9/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/wicd/wicd-(.*)\.tar\.gz --- wicd-1.5.9.orig/debian/changelog +++ wicd-1.5.9/debian/changelog @@ -0,0 +1,90 @@ +wicd (1.5.9-1) unstable; urgency=low + + * New upstream release: + - Fixed security hole in DBus configuration file + - Fixed the TTLS template + * debian/patches/: + - 05-fix_DBus_policy.patch added, allow only members of the netdev + group to configure wicd (Closes: #512160) + * debian/postinst: add group "netdev", which will be the only one able + to configure wicd + * debian/control: added dependency on adduser + * debian/NEWS.Debian and debian/docs added, explain the new permissions + policy + + -- David Paleino Sun, 08 Feb 2009 14:57:56 +0100 + +wicd (1.5.8-1) unstable; urgency=low + + * New upstream release + * debian/control: + - DM-Upload-Allowed set (ACKed by Bernd Zeimetz) + + -- David Paleino Fri, 09 Jan 2009 19:17:27 +0100 + +wicd (1.5.7-2) unstable; urgency=high + + [ David Paleino ] + * debian/rules: + - passing --lib to configure, moving files in /usr/share/wicd + (Closes: #510461) + - also removing other/55wicd in clean target + - binary-arch target emptied, not using it + * debian/prerm removed: + * debian/postinst updated: + * debian/postrm updated: + - fix double-{starting,stopping} of wicd + - forcibly reload dbus upon installation or removal + * debian/default added. + * debian/init updated: + - allow to disable the daemon in /etc/default/wicd. + + [ Bernd Zeimetz ] + * debian/rules: + - run dh_pysupport before dh_installinit, so Python modules will be + compiled before the daemon starts (Closes: #510457) + - call setup.py configure and install with appropriate options, so the + modules are installed in the private module directory properly + (Closes: #510462). + * debian/patches/04-fix-scripts.patch: + - set PYTHONPATH while executing script so Python will find them + in the private directory (Closes: #510308) + + -- David Paleino Fri, 02 Jan 2009 18:20:29 +0100 + +wicd (1.5.7-1) unstable; urgency=low + + * New upstream release (Closes: #503737) + * debian/control: + - added some runtime dependencies (not really, but used by most + users) to wicd (Closes: #503739) + - added Conflicts: network-manager (Closes: #509051) + - added Suggests on pm-utils, since we now also have those + functionalities + - update Vcs-* and Maintainer fields to reflect injection into + PAPT + * debian/postrm added: + - removes runtime-generated files (Closes: #503747) + * debian/patches: + - 02-fix_logfile_perms.patch added, sets permissions of + /var/log/wicd/wicd.log to root:adm (Closes: #503749) + - 03-fix_lintian_manpage_warning.patch added, gives a more + meaningful whatis entry + * debian/rules: + - get-orig-source target to ease upstream tarball fetch + - ensure right permissions are set in install target + - using dh7-style rules + * debian/README.source added + * debian/docs removed + * debian/copyright fixed: + - added copyright year to in/man* + - removed useless escaping of '=' in filenames + - fixed pointer to GPL-2 + + -- David Paleino Wed, 24 Dec 2008 17:37:13 +0100 + +wicd (1.5.2-1) unstable; urgency=low + + * Initial release (Closes: #465870) + + -- David Paleino Sun, 14 Sep 2008 11:43:47 +0200 --- wicd-1.5.9.orig/debian/postinst +++ wicd-1.5.9/debian/postinst @@ -0,0 +1,46 @@ +#!/bin/sh +# postinst script for wicd +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + if [ ! $(getent group netdev) ]; then + adduser --quiet --system netdev + fi + if [ -x "/etc/init.d/dbus" ]; then + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d dbus force-reload || exit $? + else + /etc/init.d/dbus force-reload || exit $? + fi + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- wicd-1.5.9.orig/debian/README.source +++ wicd-1.5.9/debian/README.source @@ -0,0 +1,12 @@ +wicd for Debian +--------------- + +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +Please read how to use quilt in the provided documentation: + + /usr/share/doc/quilt/README.source + + -- David Paleino Wed, 24 Dec 2008 10:40:45 +0100 --- wicd-1.5.9.orig/debian/NEWS.Debian +++ wicd-1.5.9/debian/NEWS.Debian @@ -0,0 +1,20 @@ +wicd (1.5.9-1) unstable; urgency=low + + From this version onwards, the wicd-client GUI will be available + only to users of the `netdev' group, so as to avoid users not + enabled by root to change network configuration. + This means that, if you do *not* belong to that group, wicd-client + will refuse to start with a permission denied error by DBus, as soon + as installation of 1.5.9-1 succeeds. + + To add yourself to the netdev group, ask your administrator to + do, or do as root yourself: + + # usermod --append --groups netdev + + (obviously replace "" with the user you want to grant + access to wicd-client to). This could also be done with graphical + user management programs. + + -- David Paleino Sun, 08 Feb 2009 13:43:54 +0100 + --- wicd-1.5.9.orig/debian/patches/series +++ wicd-1.5.9/debian/patches/series @@ -0,0 +1,5 @@ +01-fix_desktop_file.patch +02-fix_logfile_perms.patch +03-fix_lintian_manpage_warning.patch +04-fix-scripts.patch +05-fix_DBus_policy.patch --- wicd-1.5.9.orig/debian/patches/04-fix-scripts.patch +++ wicd-1.5.9/debian/patches/04-fix-scripts.patch @@ -0,0 +1,21 @@ +Make the scripts find their libraries +--- a/in/scripts=wicd-client.in ++++ b/in/scripts=wicd-client.in +@@ -1,2 +1,6 @@ + #!/bin/bash +-exec python -O %LIB%wicd-client.py $@ ++ ++PYTHONPATH=%LIB% ++export PYTHONPATH ++ ++exec python %LIB%wicd-client.py $@ +--- a/in/scripts=wicd.in ++++ b/in/scripts=wicd.in +@@ -1,3 +1,6 @@ + #!/bin/bash + +-exec python -O %LIB%wicd-daemon.py $@ ++PYTHONPATH=%LIB% ++export PYTHONPATH ++ ++exec python %LIB%wicd-daemon.py $@ --- wicd-1.5.9.orig/debian/patches/02-fix_logfile_perms.patch +++ wicd-1.5.9/debian/patches/02-fix_logfile_perms.patch @@ -0,0 +1,18 @@ +Let the users of group "adm" read the logs +--- trunk.orig/wicd/wicd-daemon.py ++++ trunk/wicd/wicd-daemon.py +@@ -79,9 +79,12 @@ + os.chmod(wpath.log, 755) + self.file = open(wpath.log + 'wicd.log', 'w') + try: +- os.chmod(wpath.log + 'wicd.log', 0600) ++ os.chmod(wpath.log + 'wicd.log', 0640) ++ import grp ++ group = grp.getgrnam("adm") ++ os.chown(wpath.log + 'wicd.log', 0, group[2]) + except: +- print 'unable to chmod the log 0600' ++ print 'unable to chmod the log 0640' + self.eol = True + + def __del__(self): --- wicd-1.5.9.orig/debian/patches/01-fix_desktop_file.patch +++ wicd-1.5.9/debian/patches/01-fix_desktop_file.patch @@ -0,0 +1,19 @@ +Remove deprecated Encoding line. +--- wicd.orig/other/wicd-tray.desktop ++++ wicd/other/wicd-tray.desktop +@@ -1,6 +1,5 @@ + [Desktop Entry] + Categories=Application;Network; +-Encoding=UTF-8 + Exec=wicd-client + GenericName=Network Manager + Icon=wicd-client +--- wicd.orig/other/wicd.desktop ++++ wicd/other/wicd.desktop +@@ -1,6 +1,5 @@ + [Desktop Entry] + Categories=Application;Network; +-Encoding=UTF-8 + Exec=wicd-client --no-tray + GenericName=Network Manager + Icon=wicd-client --- wicd-1.5.9.orig/debian/patches/03-fix_lintian_manpage_warning.patch +++ wicd-1.5.9/debian/patches/03-fix_lintian_manpage_warning.patch @@ -0,0 +1,11 @@ +Fix whatis entry +--- trunk.orig/man/wicd-client.1 ++++ trunk/man/wicd-client.1 +@@ -1,6 +1,6 @@ + .TH WICD-CLIENT "1" "September 2008" "wicd-client " "User Commands" + .SH NAME +-wicd-client \- manual page for wicd-client ++wicd-client \- frontend to the WICD daemon + .SH DESCRIPTION + wireless (and wired) connection daemon front\-end. + .SS "Arguments:" --- wicd-1.5.9.orig/debian/patches/05-fix_DBus_policy.patch +++ wicd-1.5.9/debian/patches/05-fix_DBus_policy.patch @@ -0,0 +1,33 @@ +Only allow users of group "netdev" to configure wicd. +See #512160 +--- + other/wicd.conf | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +--- wicd-1.5.9.orig/other/wicd.conf ++++ wicd-1.5.9/other/wicd.conf +@@ -12,20 +12,21 @@ + + + ++ + + ++ + + + + +- --> +- +