--- cobalt-panel-utils-1.0.2.orig/debian/changelog +++ cobalt-panel-utils-1.0.2/debian/changelog @@ -0,0 +1,22 @@ +cobalt-panel-utils (1.0.2-3) unstable; urgency=low + + * Fix bad architectures list. + This package is for mipsel and i386. + + -- Adam Cécile (Le_Vert) Sat, 23 Sep 2006 17:58:08 +0200 + +cobalt-panel-utils (1.0.2-2) unstable; urgency=low + + * Add debian/watch file for Uscan. + * Fix several GCC warnings. + * GPL header added in debian/copyright. + * Fix "hyphen used as minus sign" in manpages. + + -- Adam Cécile (Le_Vert) Thu, 24 Aug 2006 20:50:46 +0200 + +cobalt-panel-utils (1.0.2-1) unstable; urgency=low + + * Initial release (Closes: #368430). + + -- Adam Cécile (Le_Vert) Thu, 17 Aug 2006 23:22:52 +0200 + --- cobalt-panel-utils-1.0.2.orig/debian/compat +++ cobalt-panel-utils-1.0.2/debian/compat @@ -0,0 +1 @@ +5 --- cobalt-panel-utils-1.0.2.orig/debian/watch +++ cobalt-panel-utils-1.0.2/debian/watch @@ -0,0 +1,2 @@ +version=3 +ftp://www.404ster.com/pub/gentoo-stuff/ebuilds/cobalt-panel-utils-(.*).tar.gz --- cobalt-panel-utils-1.0.2.orig/debian/cobalt-panel-utils.docs +++ cobalt-panel-utils-1.0.2/debian/cobalt-panel-utils.docs @@ -0,0 +1,2 @@ +doc/README +doc/CREDITS --- cobalt-panel-utils-1.0.2.orig/debian/patches/003-fix_hyphen_used_as_minus_sign +++ cobalt-panel-utils-1.0.2/debian/patches/003-fix_hyphen_used_as_minus_sign @@ -0,0 +1,67 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 003-fix_hyphen_used_as_minus_sign +## Adam Cécile (Le_Vert) +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix several GCC warnings : +## DP: * Fix hyphen used as minus sign in manpages + +@DPATCH@ + +diff -u cobalt-panel-utils-1.0.2/doc/man/lcd-flash.1 cobalt-panel-utils-1.0.2/doc/man.new/lcd-flash.1 +--- cobalt-panel-utils-1.0.2/doc/man/lcd-flash.1 2005-07-30 20:19:01.000000000 +0200 ++++ cobalt-panel-utils-1.0.2/doc/man.new/lcd-flash.1 2006-09-13 20:46:38.000000000 +0200 +@@ -4,7 +4,7 @@ + lcd-flash \- Momentarily inverts the LCD to indicate an error + .SH SYNOPSIS + .B lcd-flash +-\fI[-s]\fR ++\fI[\-s]\fR + .SH DESCRIPTION + .\" Add any additional description here + .PP +@@ -30,4 +30,4 @@ + .BR lcd-swrite (1), + .BR lcd-write (1), + .BR lcd-yesno (1), +-.BR readbutton (1), +\ Pas de fin de ligne à la fin du fichier. ++.BR readbutton (1), +diff -u cobalt-panel-utils-1.0.2/doc/man/lcd-getip.1 cobalt-panel-utils-1.0.2/doc/man.new/lcd-getip.1 +--- cobalt-panel-utils-1.0.2/doc/man/lcd-getip.1 2005-07-30 20:19:00.000000000 +0200 ++++ cobalt-panel-utils-1.0.2/doc/man.new/lcd-getip.1 2006-09-13 20:47:05.000000000 +0200 +@@ -4,7 +4,7 @@ + lcd-getip \- Prompts the user to enter an IP address on the LCD + .SH SYNOPSIS + .B lcd-getip +-\fI[-1 ] [-i ]\fR ++\fI[\-1 ] [\-i ]\fR + .SH DESCRIPTION + .\" Add any additional description here + .PP +@@ -33,4 +33,4 @@ + .BR lcd-swrite (1), + .BR lcd-write (1), + .BR lcd-yesno (1), +-.BR readbutton (1), +\ Pas de fin de ligne à la fin du fichier. ++.BR readbutton (1), +diff -u cobalt-panel-utils-1.0.2/doc/man/lcd-yesno.1 cobalt-panel-utils-1.0.2/doc/man.new/lcd-yesno.1 +--- cobalt-panel-utils-1.0.2/doc/man/lcd-yesno.1 2005-07-30 20:18:57.000000000 +0200 ++++ cobalt-panel-utils-1.0.2/doc/man.new/lcd-yesno.1 2006-09-13 20:46:21.000000000 +0200 +@@ -4,7 +4,7 @@ + lcd-yesno \- Prompts the user to make a choice between two options + .SH SYNOPSIS + .B lcd-yesno +-\fI[-y ] [-n ] [-1 ] [-2 ]\fR ++\fI[\-y ] [\-n ] [\-1 ] [\-2 ]\fR + .SH DESCRIPTION + .\" Add any additional description here + .PP +@@ -39,4 +39,4 @@ + .BR lcd-setcursor (1), + .BR lcd-swrite (1), + .BR lcd-write (1), +-.BR readbutton (1), +\ Pas de fin de ligne à la fin du fichier. ++.BR readbutton (1), --- cobalt-panel-utils-1.0.2.orig/debian/patches/000-Makefile_enhancements +++ cobalt-panel-utils-1.0.2/debian/patches/000-Makefile_enhancements @@ -0,0 +1,84 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 000-Makefile_enhancements by +## Adam Cécile (Le_Vert) +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix several upstream Makefile issues. +## DP: * DESTDIR support +## DP: * Install target +## DP: * Remove useless stuff +## DP: * Add GPL header + +@DPATCH@ + +diff -u cobalt-panel-utils-1.0.2/Makefile.orig cobalt-panel-utils-1.0.2/Makefile +--- cobalt-panel-utils-1.0.2/Makefile.orig 2006-08-18 00:36:09.000000000 +0200 ++++ cobalt-panel-utils-1.0.2/Makefile 2006-08-18 00:37:27.000000000 +0200 +@@ -1,15 +1,28 @@ ++# Copyright (C) 2006, Adam Cécile (Le_Vert) ++# Copyright (C) 2005, Jeff Walter ++# Copyright (C) 2002, Sun Microsystems, Inc. + # +-# Makefile for creating LED and LCD utilities ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. + # +- +-BINDIR = $(PREFIX)/sbin ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program; if not, write to the Free Software ++# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ++ ++DESTDIR = ++PREFIX = /usr/local ++MANDIR = $(PREFIX)/share/man ++BINDIR = $(PREFIX)/bin + INSTALL = install + CHMOD = chmod + CHOWN = chown +-LINGUAS = ja_JP +-LOCALEDIR = $(PREFIX)/usr/share/locale +-ETC = $(PREFIX)/etc +-RCD = $(PREFIX)/etc/init.d + + LIB = lib/liblcd.a + SRCS = lcd-write.c lcd-swrite.c lcd-yesno.c lcd-setcursor.c \ +@@ -17,16 +30,14 @@ + OBJS := $(SRCS:.c=.o) + PROG := $(OBJS:.o=) + +-DEBUG = -g -Wall +-COPTS = -O2 +-CFLAGS = $(COPTS) $(COPTFLAGS) #$(DEBUG) ++CFLAGS = $(COPTFLAGS) + LIBS = -llcd + LDFLAGS = $(STATIC) -L./lib + + all: library $(PROG) + + library: +- $(MAKE) -C lib COPTFLAGS=$(COPTFLAGS) ++ $(MAKE) -C lib COPTFLAGS="$(COPTFLAGS)" + + $(OBJS): lcdutils.h + +@@ -63,3 +74,12 @@ + $(MAKE) -C lib clean + -rm -f $(OBJS) $(PROG) *~ TAGS + ++install-bin: ++ $(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR) ++ $(INSTALL) --m 755 $(PROG) $(DESTDIR)$(BINDIR) ++ ++install-man: ++ $(INSTALL) -d -m 755 $(DESTDIR)$(MANDIR)/man1 ++ $(INSTALL) -m 644 doc/man/* $(DESTDIR)$(MANDIR)/man1/ ++ ++install: install-bin install-man --- cobalt-panel-utils-1.0.2.orig/debian/patches/00list +++ cobalt-panel-utils-1.0.2/debian/patches/00list @@ -0,0 +1,4 @@ +000-Makefile_enhancements +001-lib_Makefile_enhancements +002-fix_several_gcc_warnings +003-fix_hyphen_used_as_minus_sign --- cobalt-panel-utils-1.0.2.orig/debian/patches/002-fix_several_gcc_warnings +++ cobalt-panel-utils-1.0.2/debian/patches/002-fix_several_gcc_warnings @@ -0,0 +1,66 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 002-fix_several_gcc_warnings by +## Adam Cécile (Le_Vert) +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix several GCC warnings : +## DP: * Implicit functions declaration (missing includes) +## DP: * Unused variable + +@DPATCH@ + +diff -u cobalt-panel-utils-1.0.2.orig/iflink.c cobalt-panel-utils-1.0.2.new/iflink.c +--- cobalt-panel-utils-1.0.2.orig/iflink.c 2006-08-24 20:41:11.000000000 +0200 ++++ cobalt-panel-utils-1.0.2.new/iflink.c 2006-08-24 20:40:38.000000000 +0200 +@@ -21,6 +21,7 @@ + + #include + #include "lcdutils.h" ++#include + + int main (int argc, char **argv) { + void *lcd; +diff -u cobalt-panel-utils-1.0.2.orig/iflinkstatus.c cobalt-panel-utils-1.0.2.new/iflinkstatus.c +--- cobalt-panel-utils-1.0.2.orig/iflinkstatus.c 2006-08-24 20:41:11.000000000 +0200 ++++ cobalt-panel-utils-1.0.2.new/iflinkstatus.c 2006-08-24 20:40:38.000000000 +0200 +@@ -22,6 +22,7 @@ + #include + #include "lcd.h" + #include "lcdutils.h" ++#include + + /* linkstatus.c + * Returns the link status of eth0 and eth1 +@@ -34,7 +35,7 @@ + + int main (int argc, char **argv) { + void *lcd; +- int button, err, status; ++ int button, status; + + status = 0; + lcd_setlocale(); +diff -u cobalt-panel-utils-1.0.2.orig/lcd-yesno.c cobalt-panel-utils-1.0.2.new/lcd-yesno.c +--- cobalt-panel-utils-1.0.2.orig/lcd-yesno.c 2006-08-24 20:41:11.000000000 +0200 ++++ cobalt-panel-utils-1.0.2.new/lcd-yesno.c 2006-08-24 20:40:38.000000000 +0200 +@@ -23,7 +23,7 @@ + #include + #include "lcd.h" + #include "lcdutils.h" +- ++#include + + void timeout_handler(int sig) { + exit(RET_TIMEOUT); +Les sous-répertoires cobalt-panel-utils-1.0.2.orig/lib et cobalt-panel-utils-1.0.2.new/lib sont identiques. +diff -u cobalt-panel-utils-1.0.2.orig/readbutton.c cobalt-panel-utils-1.0.2.new/readbutton.c +--- cobalt-panel-utils-1.0.2.orig/readbutton.c 2006-08-24 20:41:11.000000000 +0200 ++++ cobalt-panel-utils-1.0.2.new/readbutton.c 2006-08-24 20:40:38.000000000 +0200 +@@ -25,6 +25,7 @@ + #include + #include "lcd.h" + #include "lcdutils.h" ++#include + + int main (int argc, char **argv) { + void *lcd; --- cobalt-panel-utils-1.0.2.orig/debian/patches/001-lib_Makefile_enhancements +++ cobalt-panel-utils-1.0.2/debian/patches/001-lib_Makefile_enhancements @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 001-lib_Makefile_enhancements by +## Adam Cécile (Le_Vert) +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix several upstream Makefile issues. +## DP: * Better CFLAGS support + +@DPATCH@ + +diff -u cobalt-panel-utils-1.0.2/lib/Makefile.orig cobalt-panel-utils-1.0.2/lib/Makefile +--- cobalt-panel-utils-1.0.2/lib/Makefile 2005-04-14 16:04:06.000000000 +0200 ++++ cobalt-panel-utils-1.0.2/lib/Makefile.orig 2006-08-18 00:40:03.000000000 +0200 +@@ -8,9 +8,7 @@ + + RANLIB = ranlib + +-DEBUG = -g -Wall +-COPTS = -O2 +-CFLAGS = $(COPTS) -I../ $(COPTFLAGS) ++CFLAGS = -I../ $(COPTFLAGS) + + all: $(LIB) + --- cobalt-panel-utils-1.0.2.orig/debian/control +++ cobalt-panel-utils-1.0.2/debian/control @@ -0,0 +1,17 @@ +Source: cobalt-panel-utils +Section: admin +Priority: optional +Maintainer: Adam Cécile (Le_Vert) +Build-Depends: debhelper (>= 5), dpatch +Standards-Version: 3.7.2 + +Package: cobalt-panel-utils +Architecture: i386 mipsel +Depends: ${shlibs:Depends} +Description: System utilities for Sun Cobalt's LCD and LEDs + System utilities which allow the user to write or create programs which + write to LCD and LEDs on the Sun Cobalts Server Series. + . + Also includes a utility to read the buttons on the front panel. + . + Homepage: http://gentoo.404ster.com/ (Jeff Walter) --- cobalt-panel-utils-1.0.2.orig/debian/copyright +++ cobalt-panel-utils-1.0.2/debian/copyright @@ -0,0 +1,62 @@ +This package was debianized by Adam Cécile (Le_Vert) on +Thu, 17 Aug 2006 23:22:52 +0200. + +It was downloaded from http://gentoo.404ster.com/ + +Upstream Author: Sun Microsystems, Inc + Jeff Walter + +Copyright: (C) 2002 Sun Microsystems, Inc. + (C) 2005 Jeff Walter. + +License: + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in '/usr/share/common-licenses/LGPL'. + +All files except those listed below are distributed under the LGPL. + + + +The files listed below are released under the GPL : +lcd.h, lcdutils.h, lib/lcdlocale.c, lib/lcdbutton.c, lib/lcd_private.h, +lib/lcddisplay.c, lib/lcdtimeout.c, lib/lcdcursor.c, lib/lcdlink.c, +lib/lcdlock.c, lib/lcdread.c, lib/lcdnet.c, messages.h + +License: + + This file is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + + +The Debian packaging is (C) 2006, Adam Cécile (Le_Vert) +and is licensed under the GPL, see above. --- cobalt-panel-utils-1.0.2.orig/debian/rules +++ cobalt-panel-utils-1.0.2/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Include dpatch targets +include /usr/share/dpatch/dpatch.make + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +MANDIRORIG = $(CURDIR)/debian/cobalt-panel-utils/usr/share/man/man1 +MANDIR = $(CURDIR)/debian/cobalt-panel-utils/usr/share/man/man8 + +build: build-stamp + +build-stamp: patch + dh_testdir + $(MAKE) COPTFLAGS="$(CFLAGS)" + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -$(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/cobalt-panel-utils PREFIX=/usr + + # Manpages are not in the right section... + # Moving them from man1 to man8 + mv $(MANDIRORIG) $(MANDIR) + rename 's/.1$$/.8/' $(MANDIR)/* + find $(MANDIR)/ -name \*.8 -exec sed -i 's!^\(.TH .* "\)[0-9]\(".*\)$$!\18\2!' {} \; + find $(MANDIR)/ -name \*.8 -exec sed -i 's!^\(.BR .* (\)[0-9]\().*\)$$!\18\2!g' {} \; + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- cobalt-panel-utils-1.0.2.orig/debian/README.Debian +++ cobalt-panel-utils-1.0.2/debian/README.Debian @@ -0,0 +1,9 @@ +cobalt-panel-utils for Debian +----------------------------- + +These softwares are only for the Sun Cobalt Servers Series, I mean RaQ 1, +RaQ 2, RaQ 3, Qube 2700, Qube 2, Qube 3, RaQ 550 and RaQ XTR. + +Do not try to use this package to write on any other LCD screen ! + + -- Adam Cécile (Le_Vert) , Thu, 17 Aug 2006 23:22:52 +0200