1st step towards a non-native package for Debian: copy debian/ below scripts/

This commit is contained in:
marschap
2006-03-03 16:43:48 +00:00
parent b38732a2ce
commit d41ec1a731
23 changed files with 958 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
lcdproc for Debian
------------------
WARNING: Location of example clients changed
lcdproc originally installed a number of example clients in /usr/bin,
but this was not the intended behaviour. Upstream have stated these
examples should be located in /usr/share/doc/lcdproc/examples, which
is in agreement with Debian policy.
Release 0.4.3-14 of this package therefore moves the example clients
from /usr/bin to /usr/share/doc/lcdproc/examples. That means they are
no longer in PATH, so you will either need to copy them to another
location manually or specify the full path when calling them.
-- Jonathan Oxer <jon@debian.org>, Tue, 9 Dec 2003 14:33:27 +1100
+236
View File
@@ -0,0 +1,236 @@
lcdproc (0.4.99+cvs20050101) unstable; urgency=low
* NMU
- New upstream snapshot from CVS
- /etc/default/LCDd to configure /etc/init.d/LCDd
- use original man pages
- new drivers for USB displays:
+ Code Mercenaries IOWarrior
+ BWCT USB LCD
- licence problem for CFonz633 solved
-- Peter Marschall <peter@adpm.de> Fri, 31 Dec 2004 23:21:28 +0100
lcdproc (0.4.5-1) unstable; urgency=high
* New upstream release which fixes two buffer overflow / string
format vulnerabilities. By the way, yes I know this package is
'native' when it should be 'normal', but I'll fix that with
another upload because I want to get this security update done
ASAP since upstream indicate it's a serious problem.
* Fixed location of example client 'metar.pl'.
Closes: #249770
-- Jonathan Oxer <jon@debian.org> Wed, 19 May 2004 21:32:59 +1000
lcdproc (0.4.4-1) unstable; urgency=low
* The April Fool's Release.
Stable version bump adds some funky new things, including
support for USB displays with a couple of new drivers. Also
fixes a memory leak, some assorted bugs in render.c, some
flickering problems with the CFontz driver. Adds upstream
support for the Apple Network Server (ANS) LCD, which:
(closes: #236687)
-- Jonathan Oxer <jon@debian.org> Thu, 1 Apr 2004 12:30:01 +1000
lcdproc (0.4.3-15) unstable; urgency=low
* Applied patch from Gentoo by Bernhard Tittelbach which fixes a
memory leak and some of the heartbeat handling (see
http://bugs.gentoo.org/attachment.cgi?id=6981&action=view and
debian/patches/lcdproc-0.4.3-gentoo.diff)
-- Jonathan Oxer <jon@debian.org> Wed, 17 Dec 2003 10:32:30 +1100
lcdproc (0.4.3-14) unstable; urgency=low
* New maintainer.
(closes: #196676)
* Fix for trivial spelling mistayk in long description and
added comment about creating custom clients.
(closes: #199303)
* Rebuilt package to bring it up to date with latest standards
version, latest package scripts etc and renamed items such as
init script and man pages in a more standard way.
* Wrote man pages for all the example clients, but not set them
to be installed because they have .pl extensions and
dh_installman thinks they're in Polish. So also...
* Moved all example clients into /usr/share/doc/lcdproc/examples
-- Jonathan Oxer <jon@debian.org> Mon, 8 Dec 2003 16:30:05 +1100
lcdproc (0.4.3-13) unstable; urgency=low
* orphaning package see #196676
-- Noel Koethe <noel@debian.org> Sun, 29 Jun 2003 13:03:00 +0200
lcdproc (0.4.3-12) unstable; urgency=high
* added missing patch to fix this problem
http://online.securityfocus.com/archive/1/56411
* updated Standards-Version
* added USB controller patch
(closes: Bug#166051)
-- Noel Koethe <noel@debian.org> Thu, 9 Jan 2003 12:10:00 +0100
lcdproc (0.4.3-11) unstable; urgency=low
* 0.4.3 release version
* updated Standards-Version to 3.5.7
* enabled all drivers
(closes: Bug#145314)
(closes: Bug#141577)
-- Noel Koethe <noel@debian.org> Sat, 22 Sep 2002 00:15:00 +0200
lcdproc (0.4.3-10) unstable; urgency=medium
* updated code from cvs to get all drivers updated.
upstream maintainer asked for this for woody release
this version will the 0.4.3 upstream release
* small changes in description
* added some upstream Docs which are not in the source
-- Noel Koethe <noel@debian.org> Tue, 18 Apr 2002 18:05:00 +0200
lcdproc (0.4.3-9) unstable; urgency=low
* added .de template translation
(closes: Bug#137482)
* added URL to description
-- Noel Koethe <noel@debian.org> Sun, 24 Mar 2002 23:53:00 +0100
lcdproc (0.4.3-8) unstable; urgency=low
* upstream fixed LCDd.8 and lcdproc.1 manpage
(closes: Bug#136325)
-- Noel Koethe <noel@debian.org> Thu, 7 Mar 2002 11:45:00 +0100
lcdproc (0.4.3-7) unstable; urgency=low
* added ru translation of template
(closes: Bug#136596)
-- Noel Koethe <noel@debian.org> Wed, 6 Mar 2002 12:47:00 +0100
lcdproc (0.4.3-6) unstable; urgency=low
* removed --enable-drivers=all configure option
because some drivers contains architecture
dependent asm code
(closes: Bug#136217)
-- Noel Koethe <noel@debian.org> Fri, 1 Mar 2002 21:30:00 +0100
lcdproc (0.4.3-5) unstable; urgency=low
* small correction in description
* added missing libc6-dev to build-deps
-- Noel Koethe <noel@debian.org> Wed, 27 Feb 2002 10:32:00 +0100
lcdproc (0.4.3-4) unstable; urgency=low
* using the included init script (with small modifications)
* using the included LCDd.conf
* moved the perl examples to /usr/bin
* added debconf note
-- Noel Koethe <noel@debian.org> Sun, 24 Feb 2002 17:42:00 +0100
lcdproc (0.4.3-3) unstable; urgency=low
* corrected Daemon start
-- Noel Koethe <noel@debian.org> Wed, 20 Feb 2002 20:33:00 +0100
lcdproc (0.4.3-2) unstable; urgency=low
* updated description
* corrected driver option in init.d
(closes: Bug#134590)
-- Noel Koethe <noel@debian.org> Mon, 18 Feb 2002 18:44:00 +0100
lcdproc (0.4.3-1) unstable; urgency=low
* upstream version with security fixes
-- Noel Koethe <noel@debian.org> Sun, 27 Jan 2002 20:53:00 +0100
lcdproc (0.4.1-1) unstable; urgency=low
* new upstream version from 2001-05-29
(closes: Bug#129858)
(closes: Bug#129857)
* removed lcdprocconfig and uses now /etc/lcdproc.conf
(closes: Bug#87427)
* corrected init script
(closes: Bug#98004)
-- Noel Koethe <noel@debian.org> Fri, 18 Jan 2002 22:32:00 +0100
lcdproc (0.3.4.5-1) unstable; urgency=low
* new maintainer
(closes: Bug#119089)
(closes: Bug#70098)
(closes: Bug#105036)
(closes: Bug#67742)
(closes: Bug#84518)
(closes: Bug#87423)
-- Noel Koethe <noel@debian.org> Fri, 18 Jan 2002 18:40:00 +0100
lcdproc (0.3.4.5-0.2) unstable; urgency=low
* NMU
* Remove obsolete gcc option from Makefile. Closes: #105036
-- Randolph Chung <tausq@debian.org> Sat, 25 Aug 2001 20:58:19 -0700
lcdproc (0.3.4.5-0.1) unstable; urgency=low
* Bugsquash party NMU.
* New upstream release.
- This should fix a floating point exception on startup (a grave bug,
hence this NMU; closes: #70098). That bug report suggests upgrading
only to 0.3.4.5 rather than any of the newer releases available, as
they introduce new bugs. I'll leave newer releases to the maintainer.
* Update URL and GPL pointer in copyright file.
* Remove bashism from init script and use start-stop-daemon instead of
pidof (closes: #67742).
* Updated to policy version 3.1.1 and add build-depends (closes: #84518).
* Removed obsolete dh_suidregister call from debian/rules.
* lcdprocconfig is undocumented. Add the man page symlink (bug on its
way).
-- Colin Watson <cjwatson@debian.org> Sat, 24 Feb 2001 16:25:33 +0000
lcdproc (0.3.4-3) unstable; urgency=low
* Updated to Standards-Version 3.0.1, FHS.
* Added correct dependencies (turns out I plum forgot the Depends:
line in the control file) (closes: #44086)
-- Brian Bassett <brianb@debian.org> Sat, 6 Nov 1999 17:56:29 -0800
lcdproc (0.3.4-2) unstable; urgency=low
* Fixed lcdproc dying from floating point exception when trying to display
information about an autofs mount on the "D" screen.
-- Brian Bassett <brianb@debian.org> Sat, 29 Aug 1998 22:32:17 -0700
lcdproc (0.3.4-1) unstable; urgency=low
* Initial release.
-- Brian Bassett <brianb@debian.org> Sun, 19 Jul 1998 11:19:46 -0700
+1
View File
@@ -0,0 +1 @@
4
+25
View File
@@ -0,0 +1,25 @@
Source: lcdproc
Section: utils
Priority: extra
Maintainer: Jonathan Oxer <jon@debian.org>
Build-Depends: debhelper (>= 4.0.0), automake | automaken, autoconf2.13 | autoconf, texinfo, libncurses5-dev, libusb-dev (>= 0.1.8), libsvga1-dev, libxosd-dev
Standards-Version: 3.6.0
Package: lcdproc
Architecture: any
Depends: ${shlibs:Depends}, debconf (>= 0.5.0)
Description: LCD display driver daemon and clients
This is a client/server suite including drivers for all kinds of
nifty LCD displays. The server supports several serial devices: Matrix
Orbital, Crystal Fontz, Bayrad, LB216, LCDM001 (kernelconcepts.de),
Wirz-SLI and PIC-an-LCD; some devices connected to the parallel port:
HD44780, STV5730, T6963, SED1520 and SED1330; and also some displays
connected via USB: CFonz633, CwLnx, USBLCD, IOWarrior and HD44780
(ConnectionType=bwctusb).
.
Various clients are available that display things like CPU load, system
load, memory usage, uptime, and a lot more. Custom clients can be
written using the simple client-server protocol and provided example
code.
.
http://lcdproc.omnipotent.net/ or http://www.lcdproc.org/
+13
View File
@@ -0,0 +1,13 @@
This package was debianized by
Brian Bassett <brian@butterfly.ml.org> on Wed, 3 Jun 1998 22:15:03 -0700
Adopted by Noel Koethe <noel@debian.org> on Fri, 18 Jan 2002 19:03:47 +0100
Adopted by Jonathan Oxer <jon@debian.org> on Mon, 8 Dec 2003 16:30:05 +1100
It was downloaded from https://sf.net/projects/lcdproc/
Upstream Author: William W. Ferrell <willfe@yahoo.com> and others
Copyright:
Released under the terms of the GPL; see
/usr/share/common-licenses/GPL.
+7
View File
@@ -0,0 +1,7 @@
etc
etc/init.d
usr/bin
usr/sbin
usr/share/doc/lcdproc/examples
usr/share/man/man1
usr/share/man/man8
+3
View File
@@ -0,0 +1,3 @@
README
README.IRman
TODO
+9
View File
@@ -0,0 +1,9 @@
# /etc/default/LCDd -- config file for LCDd startup
# shall LCDd be started (yes/no)
START=no
# options for LCDd startup
OPTIONS="-c /etc/LCDd.conf"
# EOF
+57
View File
@@ -0,0 +1,57 @@
#! /bin/sh
#
# /etc/init.d/LCDd lcdproc server starting and stopping
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/LCDd
NAME=LCDd
DESC="LCDproc server daemon"
DEFAULTS=/etc/default/$NAME
# Source defaults file; edit that file to configure this script.
if [ -e "${DEFAULTS}" ]; then
. "${DEFAULTS}"
fi
# If we're not to start the daemon, simply exit
if [ "${START}" != "yes" ]; then
exit 0
fi
# if no OPTIONS are defined use default options
if [ -z "${OPTIONS}" ]; then
OPTIONS="-c /etc/LCDd.conf"
fi
test -x $DAEMON || exit 0
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --background \
--exec $DAEMON -- $OPTIONS
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --oknodo --quiet \
--exec $DAEMON
echo "$NAME."
;;
restart|reload|force-reload)
$0 stop
sleep 1
$0 start
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
+9
View File
@@ -0,0 +1,9 @@
# /etc/default/lcdproc -- config file for lcdproc startup
# shall lcdproc be started (yes/no)
START=no
# options for lcdproc startup
#OPTIONS="C G"
# EOF
+5
View File
@@ -0,0 +1,5 @@
clients/examples/fortune.pl
clients/examples/iosock.pl
clients/metar/lcdmetar.pl
clients/examples/tail.pl
clients/examples/x11amp.pl
+52
View File
@@ -0,0 +1,52 @@
#! /bin/sh
#
# /etc/init.d/lcdproc lcdproc client starting and stopping
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/lcdproc
NAME=lcdproc
DESC="LCDproc client daemon"
DEFAULTS=/etc/default/$NAME
# Source defaults file; edit that file to configure this script.
if [ -e "${DEFAULTS}" ]; then
. "${DEFAULTS}"
fi
# If we're not to start the daemon, simply exit
if [ "${START}" != "yes" ]; then
exit 0
fi
test -x $DAEMON || exit 0
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --background \
--exec $DAEMON -- -d $OPTIONS
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --oknodo --quiet \
--exec $DAEMON
echo "$NAME."
;;
restart|reload|force-reload)
$0 stop
sleep 1
$0 start
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
+29
View File
@@ -0,0 +1,29 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH FORTUNE.PL 1 "December 9, 2003"
.\" Please adjust this date whenever revising the manpage.
.\"
.SH NAME
fortune.pl \- client for LCDd, the lcdproc server
.SH SYNOPSIS
.B fortune.pl
.SH DESCRIPTION
.B fortune.pl
is a small example client for LCDd, the lcdproc server. For more
information please see
.BR lcdproc (1)
and
.BR LCDd (8),
and http://lcdproc.omnipotent.net/. Or better yet, read the source!
.PP
This manual page was written for the Debian distribution
because the original program does not have a manual page.
.PP
.SH SEE ALSO
.BR lcdproc (1),
.BR LCDd (8).
.br
.SH AUTHOR
This manual page was written by Jonathan Oxer <jon@debian.org>,
for the Debian project (but may be used by others).
+29
View File
@@ -0,0 +1,29 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH IOSOCK.PL 1 "December 9, 2003"
.\" Please adjust this date whenever revising the manpage.
.\"
.SH NAME
iosock.pl \- client for LCDd, the lcdproc server
.SH SYNOPSIS
.B iosock.pl
.SH DESCRIPTION
.B iosock.pl
is a small example client for LCDd, the lcdproc server. For more
information please see
.BR lcdproc (1)
and
.BR LCDd (8),
and http://lcdproc.omnipotent.net/. Or better yet, read the source!
.PP
This manual page was written for the Debian distribution
because the original program does not have a manual page.
.PP
.SH SEE ALSO
.BR lcdproc (1),
.BR LCDd (8).
.br
.SH AUTHOR
This manual page was written by Jonathan Oxer <jon@debian.org>,
for the Debian project (but may be used by others).
+29
View File
@@ -0,0 +1,29 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH LCDHEADLINES.PL 1 "December 9, 2003"
.\" Please adjust this date whenever revising the manpage.
.\"
.SH NAME
lcdheadlines.pl \- client for LCDd, the lcdproc server
.SH SYNOPSIS
.B lcdheadlines.pl
.SH DESCRIPTION
.B lcdheadlines.pl
is a small example client for LCDd, the lcdproc server. For more
information please see
.BR lcdproc (1)
and
.BR LCDd (8),
and http://lcdproc.omnipotent.net/. Or better yet, read the source!
.PP
This manual page was written for the Debian distribution
because the original program does not have a manual page.
.PP
.SH SEE ALSO
.BR lcdproc (1),
.BR LCDd (8).
.br
.SH AUTHOR
This manual page was written by Jonathan Oxer <jon@debian.org>,
for the Debian project (but may be used by others).
+29
View File
@@ -0,0 +1,29 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH LCDMETAR.PL 1 "December 9, 2003"
.\" Please adjust this date whenever revising the manpage.
.\"
.SH NAME
lcdmetar.pl \- client for LCDd, the lcdproc server
.SH SYNOPSIS
.B lcdmetar.pl
.SH DESCRIPTION
.B lcdmetar.pl
is a small example client for LCDd, the lcdproc server. For more
information please see
.BR lcdproc (1)
and
.BR LCDd (8),
and http://lcdproc.omnipotent.net/. Or better yet, read the source!
.PP
This manual page was written for the Debian distribution
because the original program does not have a manual page.
.PP
.SH SEE ALSO
.BR lcdproc (1),
.BR LCDd (8).
.br
.SH AUTHOR
This manual page was written by Jonathan Oxer <jon@debian.org>,
for the Debian project (but may be used by others).
+30
View File
@@ -0,0 +1,30 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH TAIL.PL 1 "December 9, 2003"
.\" Please adjust this date whenever revising the manpage.
.\"
.SH NAME
tail.pl \- client for LCDd, the lcdproc server
.SH SYNOPSIS
.B tail.pl
[file]
.SH DESCRIPTION
.B tail.pl
is a small example client for LCDd, the lcdproc server. For more
information please see
.BR lcdproc (1)
and
.BR LCDd (8),
and http://lcdproc.omnipotent.net/. Or better yet, read the source!
.PP
This manual page was written for the Debian distribution
because the original program does not have a manual page.
.PP
.SH SEE ALSO
.BR lcdproc (1),
.BR LCDd (8).
.br
.SH AUTHOR
This manual page was written by Jonathan Oxer <jon@debian.org>,
for the Debian project (but may be used by others).
+29
View File
@@ -0,0 +1,29 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH X11AMP.PL 1 "December 9, 2003"
.\" Please adjust this date whenever revising the manpage.
.\"
.SH NAME
x11amp.pl \- client for LCDd, the lcdproc server
.SH SYNOPSIS
.B x11amp.pl
.SH DESCRIPTION
.B x11amp.pl
is a small example client for LCDd, the lcdproc server. For more
information please see
.BR lcdproc (1)
and
.BR LCDd (8),
and http://lcdproc.omnipotent.net/. Or better yet, read the source!
.PP
This manual page was written for the Debian distribution
because the original program does not have a manual page.
.PP
.SH SEE ALSO
.BR lcdproc (1),
.BR LCDd (8).
.br
.SH AUTHOR
This manual page was written by Jonathan Oxer <jon@debian.org>,
for the Debian project (but may be used by others).
@@ -0,0 +1,99 @@
===================================================================
RCS file: /cvsroot/lcdproc/lcdproc/server/main.c,v
retrieving revision 1.38.2.18
retrieving revision 1.38.2.18.2.4
diff -u -r1.38.2.18 -r1.38.2.18.2.4
--- lcdproc/lcdproc/server/main.c 2002/05/14 11:30:24 1.38.2.18
+++ lcdproc/lcdproc/server/main.c 2002/11/14 03:11:12 1.38.2.18.2.4
@@ -10,6 +10,7 @@
* 2001, Rene Wagner
* 2002, Mike Patnode
* 2002, Guillaume Filion
+ * 2002, Bernhard Tittelbach
*
*
* Contains main(), plus signal callback functions and a help screen.
@@ -273,6 +274,8 @@
strncpy( user, UNSET_STR, sizeof(user) );
daemon_mode = UNSET_INT;
enable_server_screen = UNSET_INT;
+ heartbeat = UNSET_INT;
+ heartbeat_state = UNSET_INT;
backlight = UNSET_INT;
backlight_state = UNSET_INT;
@@ -304,7 +307,7 @@
int
process_command_line (int argc, char **argv)
{
- char c;
+ int c;
/*report( RPT_INFO, "process_command_line()" );*/
@@ -461,6 +464,45 @@
}
}
+ if( heartbeat == UNSET_INT ) {
+ s = config_get_string( "server", "heartbeat", 0, UNSET_STR );
+ if( strcmp( s, "on" ) == 0 ) {
+ heartbeat = HEARTBEAT_ON;
+ heartbeat_state = heartbeat;
+ }
+ else if( strcmp( s, "off" ) == 0 ) {
+ heartbeat = HEARTBEAT_OFF;
+ heartbeat_state = heartbeat;
+ }
+ else if( strcmp( s, "slash" ) == 0 ) {
+ heartbeat = HEARTBEAT_SLASH;
+ heartbeat_state = heartbeat;
+ }
+ else if( strcmp( s, "open" ) == 0 ) {
+ heartbeat = HEARTBEAT_OPEN;
+ }
+ else if( strcmp( s, UNSET_STR ) != 0 ) {
+ report( RPT_ERR, "Backlight should be on, off, slash or open" );
+ }
+ }
+
+ if( heartbeat == HEARTBEAT_OPEN && heartbeat_state == UNSET_INT ) {
+ s = config_get_string( "server", "initialheartbeat", 0, UNSET_STR );
+ if( strcmp( s, "on" ) == 0 ) {
+ heartbeat_state = HEARTBEAT_ON;
+ }
+ else if( strcmp( s, "off" ) == 0 ) {
+ heartbeat_state = HEARTBEAT_OFF;
+ }
+ else if( strcmp( s, "slash" ) == 0 ) {
+ heartbeat = HEARTBEAT_SLASH;
+ heartbeat_state = heartbeat;
+ }
+ else if( strcmp( s, UNSET_STR ) != 0 ) {
+ report( RPT_ERR, "Initial heartbeat should be on, off, or slash" );
+ }
+ }
+
if( backlight == UNSET_INT ) {
s = config_get_string( "server", "backlight", 0, UNSET_STR );
if( strcmp( s, "on" ) == 0 ) {
@@ -622,6 +664,11 @@
if (default_duration == UNSET_INT)
default_duration = DEFAULT_SCREEN_DURATION;
+ if (heartbeat == UNSET_INT)
+ heartbeat = HEARTBEAT_OPEN;
+ if (backlight_state == UNSET_INT)
+ heartbeat_state = HEARTBEAT_ON;
+
if (backlight == UNSET_INT)
backlight = BACKLIGHT_OPEN;
if (backlight_state == UNSET_INT)
@@ -913,6 +960,7 @@
free(message);
} else {
report(RPT_DEBUG, "Error: Received NULL pointer");
+ free(message); /*fixes memory leak*/
}
if (s && s->timeout != -1) {
+48
View File
@@ -0,0 +1,48 @@
#! /bin/sh
# postinst script for lcdproc
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
#
# quoting from the policy:
# Any necessary prompting should almost always be confined to the
# post-installation script, and should be protected with a conditional
# so that unnecessary prompting doesn't happen if a package's
# installation fails and the `postinst' is called with `abort-upgrade',
# `abort-remove' or `abort-deconfigure'.
case "$1" in
configure)
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst 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
+38
View File
@@ -0,0 +1,38 @@
#! /bin/sh
# postrm script for lcdproc
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
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
+39
View File
@@ -0,0 +1,39 @@
#! /bin/sh
# prerm script for lcdproc
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
remove|upgrade|deconfigure)
# install-info --quiet --remove /usr/info/lcdproc.info.gz
;;
failed-upgrade)
;;
*)
echo "prerm 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
+127
View File
@@ -0,0 +1,127 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
config.status: configure
dh_testdir
# Add here commands to configure the package.
#CPPFLAGS="-DSEAMLESS_HBARS -DCFONTZ633_WRITE_DELAY=50"
CFLAGS="$(CFLAGS)" ./configure \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
--sysconfdir=/etc \
--enable-stat-nfs \
--enable-stat-smbfs \
--enable-drivers=all
build: build-stamp
build-stamp: config.status
dh_testdir
# Add here commands to compile the package.
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
-$(MAKE) distclean
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
cp -f /usr/share/misc/config.guess config.guess
endif
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/lcdproc.
$(MAKE) install DESTDIR=$(CURDIR)/debian/lcdproc
# install config file (with some corrections
sed -e '/^DriverPath=/s,server/drivers,/usr/lib/lcdproc,' \
< $(CURDIR)/LCDd.conf > $(CURDIR)/LCDd.conf.debian
install -m644 $(CURDIR)/LCDd.conf.debian $(CURDIR)/debian/lcdproc/etc/LCDd.conf
# trick: move samples into the correct directory
# this saves us from patching Makefile.in files
for i in fortune.pl iosock.pl lcdexec lcdheadlines lcdmetar.pl tail.pl x11amp.pl ; do \
mv $(CURDIR)/debian/lcdproc/usr/bin/$$i $(CURDIR)/debian/lcdproc/usr/share/doc/lcdproc/examples; \
done
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
# dh_installexamples
# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
dh_installinit
dh_installinit --name=LCDd
# dh_installcron
# dh_installinfo
dh_installman docs/LCDd.8 docs/lcdproc.1
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_python
# 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