Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 243114 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-268 / +369 lines)
Line  Link Here
0
-- lcd4linux-0.10.1~rc2.orig/configure.in
0
++ lcd4linux-0.10.1~rc2/configure.in
Lines 99-105 Link Here
99
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h sys/vfs.h syslog.h termios.h unistd.h])
99
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h sys/vfs.h syslog.h termios.h unistd.h])
100
AC_CHECK_HEADERS(sys/io.h asm/io.h)
100
AC_CHECK_HEADERS(sys/io.h asm/io.h)
101
AC_CHECK_HEADERS(linux/parport.h linux/ppdev.h)
101
AC_CHECK_HEADERS(linux/parport.h linux/ppdev.h)
102
AC_CHECK_HEADERS(asm/msr.h)
103
102
104
# Checks for typedefs, structures, and compiler characteristics.
103
# Checks for typedefs, structures, and compiler characteristics.
105
AC_C_CONST
104
AC_C_CONST
106
-- lcd4linux-0.10.1~rc2.orig/udelay.c
105
++ lcd4linux-0.10.1~rc2/udelay.c
Lines 55-65 Link Here
55
#include <string.h>
55
#include <string.h>
56
#include <sys/time.h>
56
#include <sys/time.h>
57
57
58
#ifdef HAVE_ASM_MSR_H
59
#define u32 unsigned int
60
#include <asm/msr.h>
61
#endif
62
63
58
64
#include "debug.h"
59
#include "debug.h"
65
#include "cfg.h"
60
#include "cfg.h"
Lines 67-145 Link Here
67
#include "udelay.h"
62
#include "udelay.h"
68
63
69
64
70
static unsigned int ticks_per_usec = 0;
71
72
73
static void getCPUinfo(int *hasTSC, double *MHz)
74
{
75
    int fd;
76
    char buffer[4096], *p;
77
78
    *hasTSC = 0;
79
    *MHz = -1;
80
81
    fd = open("/proc/cpuinfo", O_RDONLY);
82
    if (fd == -1) {
83
	error("udelay: open(/proc/cpuinfo) failed: %s", strerror(errno));
84
	return;
85
    }
86
    if (read(fd, &buffer, sizeof(buffer) - 1) == -1) {
87
	error("udelay: read(/proc/cpuinfo) failed: %s", strerror(errno));
88
	close(fd);
89
	return;
90
    }
91
    close(fd);
92
93
    p = strstr(buffer, "flags");
94
    if (p == NULL) {
95
	info("udelay: /proc/cpuinfo has no 'flags' line");
96
    } else {
97
	p = strstr(p, "tsc");
98
	if (p == NULL) {
99
	    info("udelay: CPU does not support Time Stamp Counter");
100
	} else {
101
	    info("udelay: CPU supports Time Stamp Counter");
102
	    *hasTSC = 1;
103
	}
104
    }
105
106
    p = strstr(buffer, "cpu MHz");
107
    if (p == NULL) {
108
	info("udelay: /proc/cpuinfo has no 'cpu MHz' line");
109
    } else {
110
	if (sscanf(p + 7, " : %lf", MHz) != 1) {
111
	    error("udelay: parse(/proc/cpuinfo) failed: unknown 'cpu MHz' format");
112
	    *MHz = -1;
113
	} else {
114
	    info("udelay: CPU runs at %f MHz", *MHz);
115
	}
116
    }
117
118
}
119
120
65
121
void udelay_init(void)
66
void udelay_init(void)
122
{
67
{
123
#ifdef HAVE_ASM_MSR_H
68
    info("udelay: using gettimeofday() delay loop");
124
125
    int tsc;
126
    double mhz;
127
128
    getCPUinfo(&tsc, &mhz);
129
130
    if (tsc && mhz > 0.0) {
131
	ticks_per_usec = ceil(mhz);
132
	info("udelay: using TSC delay loop, %u ticks per microsecond", ticks_per_usec);
133
    } else
134
#else
135
    error("udelay: The file 'include/asm/msr.h' was missing at compile time.");
136
    error("udelay: Even if your CPU supports TSC, it will not be used!");
137
    error("udelay: You *really* should install msr.h and recompile LCD4linux!");
138
#endif
139
    {
140
	ticks_per_usec = 0;
141
	info("udelay: using gettimeofday() delay loop");
142
    }
143
}
69
}
144
70
145
71
Lines 172-208 Link Here
172
void ndelay(const unsigned long nsec)
98
void ndelay(const unsigned long nsec)
173
{
99
{
174
100
175
#ifdef HAVE_ASM_MSR_H
101
    struct timeval now, end;
176
177
    if (ticks_per_usec) {
178
102
179
	unsigned int t1, t2;
103
    gettimeofday(&end, NULL);
180
	unsigned long tsc;
104
    end.tv_usec += (nsec + 999) / 1000;
181
105
    while (end.tv_usec > 1000000) {
182
	tsc = (nsec * ticks_per_usec + 999) / 1000;
106
	end.tv_usec -= 1000000;
183
107
	end.tv_sec++;
184
	rdtscl(t1);
185
	do {
186
	    rep_nop();
187
	    rdtscl(t2);
188
	} while ((t2 - t1) < tsc);
189
190
    } else
191
#endif
192
193
    {
194
	struct timeval now, end;
195
196
	gettimeofday(&end, NULL);
197
	end.tv_usec += (nsec + 999) / 1000;
198
	while (end.tv_usec > 1000000) {
199
	    end.tv_usec -= 1000000;
200
	    end.tv_sec++;
201
	}
202
203
	do {
204
	    rep_nop();
205
	    gettimeofday(&now, NULL);
206
	} while (now.tv_sec == end.tv_sec ? now.tv_usec < end.tv_usec : now.tv_sec < end.tv_sec);
207
    }
108
    }
109
110
    do {
111
	rep_nop();
112
	gettimeofday(&now, NULL);
113
    } while (now.tv_sec == end.tv_sec ? now.tv_usec < end.tv_usec : now.tv_sec < end.tv_sec);
208
}
114
}
209
-- lcd4linux-0.10.1~rc2.orig/config.h.in
115
++ lcd4linux-0.10.1~rc2/config.h.in
Lines 12-20 Link Here
12
/* Define to 1 if you have the <asm/io.h> header file. */
12
/* Define to 1 if you have the <asm/io.h> header file. */
13
#undef HAVE_ASM_IO_H
13
#undef HAVE_ASM_IO_H
14
14
15
/* Define to 1 if you have the <asm/msr.h> header file. */
16
#undef HAVE_ASM_MSR_H
17
18
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
15
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
19
   */
16
   */
20
#undef HAVE_DIRENT_H
17
#undef HAVE_DIRENT_H
21
-- lcd4linux-0.10.1~rc2.orig/configure
18
++ lcd4linux-0.10.1~rc2/configure
Lines 10993-11143 Link Here
10993
done
10993
done
10994
10994
10995
10995
10996
for ac_header in asm/msr.h
10997
do
10998
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10999
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11000
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11001
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11002
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11003
  echo $ECHO_N "(cached) $ECHO_C" >&6
11004
fi
11005
ac_res=`eval echo '${'$as_ac_Header'}'`
11006
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11007
echo "${ECHO_T}$ac_res" >&6; }
11008
else
11009
  # Is the header compilable?
11010
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11011
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11012
cat >conftest.$ac_ext <<_ACEOF
11013
/* confdefs.h.  */
11014
_ACEOF
11015
cat confdefs.h >>conftest.$ac_ext
11016
cat >>conftest.$ac_ext <<_ACEOF
11017
/* end confdefs.h.  */
11018
$ac_includes_default
11019
#include <$ac_header>
11020
_ACEOF
11021
rm -f conftest.$ac_objext
11022
if { (ac_try="$ac_compile"
11023
case "(($ac_try" in
11024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025
  *) ac_try_echo=$ac_try;;
11026
esac
11027
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028
  (eval "$ac_compile") 2>conftest.er1
11029
  ac_status=$?
11030
  grep -v '^ *+' conftest.er1 >conftest.err
11031
  rm -f conftest.er1
11032
  cat conftest.err >&5
11033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034
  (exit $ac_status); } && {
11035
	 test -z "$ac_c_werror_flag" ||
11036
	 test ! -s conftest.err
11037
       } && test -s conftest.$ac_objext; then
11038
  ac_header_compiler=yes
11039
else
11040
  echo "$as_me: failed program was:" >&5
11041
sed 's/^/| /' conftest.$ac_ext >&5
11042
11043
	ac_header_compiler=no
11044
fi
11045
11046
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11047
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11048
echo "${ECHO_T}$ac_header_compiler" >&6; }
11049
11050
# Is the header present?
11051
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11052
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11053
cat >conftest.$ac_ext <<_ACEOF
11054
/* confdefs.h.  */
11055
_ACEOF
11056
cat confdefs.h >>conftest.$ac_ext
11057
cat >>conftest.$ac_ext <<_ACEOF
11058
/* end confdefs.h.  */
11059
#include <$ac_header>
11060
_ACEOF
11061
if { (ac_try="$ac_cpp conftest.$ac_ext"
11062
case "(($ac_try" in
11063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064
  *) ac_try_echo=$ac_try;;
11065
esac
11066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11068
  ac_status=$?
11069
  grep -v '^ *+' conftest.er1 >conftest.err
11070
  rm -f conftest.er1
11071
  cat conftest.err >&5
11072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073
  (exit $ac_status); } >/dev/null && {
11074
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11075
	 test ! -s conftest.err
11076
       }; then
11077
  ac_header_preproc=yes
11078
else
11079
  echo "$as_me: failed program was:" >&5
11080
sed 's/^/| /' conftest.$ac_ext >&5
11081
11082
  ac_header_preproc=no
11083
fi
11084
11085
rm -f conftest.err conftest.$ac_ext
11086
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11087
echo "${ECHO_T}$ac_header_preproc" >&6; }
11088
11089
# So?  What about this header?
11090
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11091
  yes:no: )
11092
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11093
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11094
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11095
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11096
    ac_header_preproc=yes
11097
    ;;
11098
  no:yes:* )
11099
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11100
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11101
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11102
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11103
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11104
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11105
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11106
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11107
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11108
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11109
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11110
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11111
    ( cat <<\_ASBOX
11112
## ---------------------------------------------------- ##
11113
## Report this to lcd4linux-users@lists.sourceforge.net ##
11114
## ---------------------------------------------------- ##
11115
_ASBOX
11116
     ) | sed "s/^/$as_me: WARNING:     /" >&2
11117
    ;;
11118
esac
11119
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11120
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11121
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11122
  echo $ECHO_N "(cached) $ECHO_C" >&6
11123
else
11124
  eval "$as_ac_Header=\$ac_header_preproc"
11125
fi
11126
ac_res=`eval echo '${'$as_ac_Header'}'`
11127
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11128
echo "${ECHO_T}$ac_res" >&6; }
11129
11130
fi
11131
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11132
  cat >>confdefs.h <<_ACEOF
11133
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11134
_ACEOF
11135
11136
fi
11137
11138
done
11139
11140
11141
# Checks for typedefs, structures, and compiler characteristics.
10996
# Checks for typedefs, structures, and compiler characteristics.
11142
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10997
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11143
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10998
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11144
-- lcd4linux-0.10.1~rc2.orig/debian/rules
10999
++ lcd4linux-0.10.1~rc2/debian/rules
Line 0 Link Here
0
-- lcd4linux-0.10.1~rc2.orig/debian/dirs
1
#!/usr/bin/make -f
2
# -*- makefile -*-
3
4
# Uncomment this to turn on verbose mode.
5
#export DH_VERBOSE=1
6
7
# These are used for cross-compiling and for saving the configure script
8
# from having to guess our platform (since we know it already)
9
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
11
12
# FOR AUTOCONF 2.52 AND NEWER ONLY
13
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
14
  confflags += --build $(DEB_HOST_GNU_TYPE)
15
else
16
  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
17
endif
18
19
CFLAGS = -Wall -g
20
21
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22
	CFLAGS += -O0
23
else
24
	CFLAGS += -O2
25
endif
26
27
config.status: configure
28
	dh_testdir
29
	./configure $(confflags) \
30
		--prefix=/usr \
31
		--mandir=\$${prefix}/share/man \
32
		--infodir=\$${prefix}/share/info \
33
		--bindir=/usr/sbin \
34
		--with-python
35
36
# call this target to update config.sub and config.guess
37
# need autotools-dev installed
38
update-config-sub-guess:
39
	-test -r /usr/share/misc/config.sub && \
40
	   cp -f /usr/share/misc/config.sub config.sub
41
	-test -r /usr/share/misc/config.guess && \
42
	   cp -f /usr/share/misc/config.guess config.guess
43
44
build: build-stamp
45
build-stamp:  config.status
46
	dh_testdir
47
	$(MAKE)
48
	touch build-stamp
49
50
clean:
51
	dh_testdir
52
	dh_testroot
53
	rm -f build-stamp 
54
	-$(MAKE) distclean
55
	dh_clean 
56
57
install: build
58
	dh_testdir
59
	dh_testroot
60
	dh_clean -k 
61
	dh_installdirs
62
	$(MAKE) install DESTDIR=$(CURDIR)/debian/lcd4linux
63
64
binary-indep:
65
# No arch independent things to do here...
66
67
binary-arch: build install
68
	dh_testdir
69
	dh_testroot
70
	dh_installchangelogs ChangeLog
71
	dh_installdocs
72
	dh_installexamples
73
	dh_install
74
	dh_installinit
75
	dh_installman debian/lcd4linux.8
76
	dh_link
77
	dh_strip
78
	dh_compress
79
	dh_fixperms
80
	dh_installdeb
81
	dh_shlibdeps
82
	dh_gencontrol
83
	dh_md5sums
84
	dh_builddeb
85
86
binary: binary-indep binary-arch
87
.PHONY: build clean binary-indep binary-arch binary install 
88
++ lcd4linux-0.10.1~rc2/debian/dirs
Line 0 Link Here
0
-- lcd4linux-0.10.1~rc2.orig/debian/changelog
1
etc
2
usr/sbin
3
++ lcd4linux-0.10.1~rc2/debian/changelog
Line 0 Link Here
0
-- lcd4linux-0.10.1~rc2.orig/debian/copyright
1
lcd4linux (0.10.1~rc2-2) unstable; urgency=medium
2
3
  * Bugfix: "lcd4linux: FTBFS: undefined reference to `rdtscl'" Patch
4
    taken from upstream svn. Thanks to Robert Buchholz and Michael Reinelt
5
    (upstream) for reviewing the patch. Closes: #436332
6
  * Urgency medium for RC bug
7
  * bump to standards version 3.7.3 (no changes needed)
8
  * add Vcs-Bzr and Homepage header.
9
10
 -- Reinhard Tartler <siretart@tauware.de>  Thu, 10 Jan 2008 10:30:49 +0100
11
12
lcd4linux (0.10.1~rc2-1) unstable; urgency=low
13
14
  * New upstream release
15
16
 -- Reinhard Tartler <siretart@tauware.de>  Mon, 30 Apr 2007 09:34:59 +0200
17
18
lcd4linux (0.10.1~rc1-1) unstable; urgency=low
19
20
  * New upstream release
21
  * new upstream tarball no longer contains a debian/ directory at all
22
    (Closes: #385152)
23
  * add LSB keyword section
24
25
 -- Reinhard Tartler <siretart@tauware.de>  Thu,  5 Apr 2007 15:41:11 +0200
26
27
lcd4linux (0.10.0+cvs20060825-1) unstable; urgency=medium
28
29
  * New Maintainer! 
30
  * Dropping old maintainer in agreement with nobse@debian.org. 
31
    Thanks for your work so far, nobse!
32
  * urgency medium because of release critical bugs
33
  * Bump standards version to 3.7.2 (no changes needed)
34
  * add build depends on libmpd-dev for mpd support
35
  * new upstream snapshot
36
  * drop dependency of ${misc:Depends}, not used anyway
37
  * now supporting USB2LCD
38
  * don't update config.{sub,guess} in clean target automatically
39
  * new target ``update-config-sub-guess'' to update config.{sub,guess}
40
  * Acking NMU, Thanks Steinar! (Closes: #374682)
41
  * Bug fix: "FTBFS: undefined reference to many X functions", thanks to
42
    Eric Dorland. The problem was in driver.m4 (Closes: #381606).
43
  * Bug fix: "Please stop Build-Depending on automake", thanks to Eric
44
    Dorland (Closes: #381812).
45
  * Don't ship /etc/lcd4linux.conf anymore. Please install and customize 
46
    it yourself using /usr/share/doc/lcd4linux.conf.sample as template
47
  * Bug fix: "lcd4linux - FTBFS: uses ia32 assembler", thanks to Bastian
48
    Blank. Fixed by adding #ifdefs to produce those asm statements on i386
49
    and amd64 only. (Closes: #336017).
50
  * Removing outdated NEWS, FAQ, README.KDE on upstream request.
51
  * Install manpage for lcd4linux
52
53
 -- Reinhard Tartler <siretart@tauware.de>  Sun, 27 Aug 2006 17:16:46 +0200
54
55
lcd4linux (0.10.0+cvs20051015-3.1) unstable; urgency=low
56
57
  * Non-maintainer upload.
58
  * Build-depend on libxt-dev, to make sure configure detects X; fixes FTBFS.
59
    (Closes: #374682)
60
61
 -- Steinar H. Gunderson <sesse@debian.org>  Thu,  6 Jul 2006 18:10:58 +0200
62
63
lcd4linux (0.10.0+cvs20051015-3) unstable; urgency=low
64
65
  * Use libgd2-noxpm-dev instead libgd2-xpm-dev in build-dependencies.
66
    (closes: #335834)
67
  * Built against libmysqlclient15-dev instead libmysqlclient14-dev.
68
    (closes: #343770)
69
70
 -- Norbert Tretkowski <nobse@debian.org>  Tue, 21 Feb 2006 22:42:57 +0100
71
72
lcd4linux (0.10.0+cvs20051015-2) unstable; urgency=low
73
74
  * Added libmysqlclient-dev, python-dev, libx11-dev, libncurses5-dev, libusb-dev
75
    and libgd2-xpm-dev to build-dependencies.
76
77
 -- Norbert Tretkowski <nobse@debian.org>  Mon, 24 Oct 2005 21:09:48 +0200
78
79
lcd4linux (0.10.0+cvs20051015-1) unstable; urgency=low
80
81
  * Initial release. (closes: #334114)
82
83
 -- Norbert Tretkowski <nobse@debian.org>  Sun, 16 Oct 2005 20:20:42 +0200
84
85
++ lcd4linux-0.10.1~rc2/debian/copyright
Line 0 Link Here
0
-- lcd4linux-0.10.1~rc2.orig/debian/docs
1
This package was debianized by Norbert Tretkowski <nobse@debian.org> on
2
Sun, 16 Oct 2005 20:20:42 +0200.
3
4
It was downloaded from http://ssl.bulix.org/projects/lcd4linux/
5
6
Copyright Holder: Michael Reinelt <reinelt@eunet.at>
7
8
This program is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2 of the License, or        
11
(at your option) any later version.                            
12
                                                                                                  
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
GNU General Public License for more details.
17
                                               
18
You should have received a copy of the GNU General Public License with
19
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
20
if not, write to the Free Software Foundation, Inc., 51 Franklin St,
21
Fifth Floor, Boston, MA 02110-1301, USA.
22
                                        
23
On Debian systems, the complete text of the GNU General Public
24
License, version 2, can be found in /usr/share/common-licenses/GPL-2.
25
++ lcd4linux-0.10.1~rc2/debian/docs
Line 0 Link Here
0
-- lcd4linux-0.10.1~rc2.orig/debian/control
1
README
2
lcd4linux.conf.sample
3
++ lcd4linux-0.10.1~rc2/debian/control
Line 0 Link Here
0
-- lcd4linux-0.10.1~rc2.orig/debian/init.d
1
Source: lcd4linux
2
Section: utils
3
Priority: optional
4
Maintainer: Reinhard Tartler <siretart@tauware.de>
5
Build-Depends: debhelper (>= 4.0.0), libmysqlclient15-dev, python-dev, libx11-dev, libncurses5-dev, libusb-dev, libgd2-noxpm-dev, libxt-dev, libmpd-dev
6
Standards-Version: 3.7.3
7
Vcs-Bzr: http://bazaar.launchpad.net/~siretart/lcd4linux/debian
8
Homepage: http://ssl.bulix.org/projects/lcd4linux/
9
10
Package: lcd4linux
11
Architecture: any
12
Depends: ${shlibs:Depends}
13
Description: Grabs information and displays it on an external lcd
14
 Small program that grabs information from the kernel and some subsystems
15
 and displays it on an external liquid crystal display.
16
 .
17
 See http://ssl.bulix.org/projects/lcd4linux/ for Documentation
18
19
++ lcd4linux-0.10.1~rc2/debian/init.d
Line 0 Link Here
0
-- lcd4linux-0.10.1~rc2.orig/debian/compat
1
#! /bin/sh
2
3
### BEGIN INIT INFO
4
# Provides:          lcd4linux
5
# Required-Start:
6
# Required-Stop:
7
# Default-Start:     2 3 4 5
8
# Default-Stop:      0 1 6
9
# Short-Description: daemon for driving LCD based displays
10
# Description:       LCD4Linux is a small program that grabs information from
11
#                    the kernel and some subsystems and displays it on an
12
#                    external liquid crystal display.
13
### END INIT INFO
14
15
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
16
DAEMON=/usr/sbin/lcd4linux
17
NAME=lcd4linux
18
DESC=lcd4linux
19
20
test -x $DAEMON || exit 0
21
test -f /etc/lcd4linux.conf || exit 0
22
23
set -e
24
25
case "$1" in
26
  start)
27
	echo -n "Starting $DESC: "
28
	chmod 600 /etc/lcd4linux.conf
29
	start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
30
		--exec $DAEMON -- $DAEMON_OPTS
31
	echo "$NAME."
32
	;;
33
  stop)
34
	echo -n "Stopping $DESC: "
35
	start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
36
		--exec $DAEMON || true
37
	echo "$NAME."
38
	;;
39
  restart|force-reload)
40
	echo -n "Restarting $DESC: "
41
	start-stop-daemon --stop --quiet --pidfile \
42
		/var/run/$NAME.pid --exec $DAEMON
43
	sleep 1
44
	start-stop-daemon --start --quiet --pidfile \
45
		/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
46
	echo "$NAME."
47
	;;
48
  *)
49
	N=/etc/init.d/$NAME
50
	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
51
	echo "Usage: $N {start|stop|restart|force-reload}" >&2
52
	exit 1
53
	;;
54
esac
55
56
exit 0
57
++ lcd4linux-0.10.1~rc2/debian/compat
Line 0 Link Here
0
-- lcd4linux-0.10.1~rc2.orig/debian/lcd4linux.8
1
4
2
++ lcd4linux-0.10.1~rc2/debian/lcd4linux.8
Line 0 Link Here
1
.TH VERSION "8" "August 2006" "http://ssl.bulix.org/projects/lcd4linux/" "System Administration Utilities"
2
.SH NAME
3
Version \- daemon for ''lcd'' display devices
4
.SH SYNOPSIS
5
.B lcd4linux [\fIOPTIONS...\fR]
6
.SH DESCRIPTION
7
.PP
8
LCD4Linux is a small program that grabs information from the kernel and
9
some subsystems and displays it on an external liquid crystal display.
10
.PP
11
If started without any options, it will try to read its configuration from 
12
\fB/etc/lcd4linux.conf\fR and daemonize. Please make sure your configuration file
13
is owned by the user you run lcd4linux (typically \fIroot\fR) and has permissions
14
\fB600\fR.
15
.TP
16
\fB\-f\fR
17
Alternate configuration file to read. Use this switch to make lcd4linux read another
18
file than \fI/etc/lcd4linux.conf\fR.
19
.TP
20
\fB\-F\fR
21
Run in forground and don't daemonize. Useful for debugging.
22
.TP
23
\fB\-c\fR \fIarg\fR
24
allows to overwrite entries in the config-file from the command line. arg is 'key=value'
25
.TP
26
\fB\-h\fR
27
shows a really short usage of lcd4linux
28
.TP
29
\fB\-i\fR
30
starts lcd4linux in interactive mode. Can be used multiple times
31
.TP
32
\fB\-l\fR
33
Prints a list of supported displays
34
.TP
35
\fB\-o\fR
36
Specifies an output file (see http://ssl.bulix.org/projects/lcd4linux/ for details)
37
.TP
38
\fB\-q\fR
39
makes lcd4linux more quiet. Can be used multiple times
40
.TP
41
\fB\-v\fR
42
increases verbose level. Can be used multiple times
43
.SH FILES
44
.TP
45
.I "/etc/lcd4linux.conf"
46
Contains the configuration of lcd4linux. Please note that distributions
47
generally don't install this file, please create it yourself using the
48
sample configuration as template.
49
.TP
50
.I "/usr/share/doc/lcd4linux/lcd4linux.conf.gz"
51
Contains a detailed and extensive example configuration file
52
.SH AUTHOR
53
lcd4linux was written by Michael Reinelt <reinelt@eunet.at>
54
.br
55
Copyright (C) 2005 The LCD4Linux Team <lcd4linux\-devel@users.sourceforge.net>
56
.SH ORIGIN
57
Development of lcd4linux is at http://ssl.bulix.org/projects/lcd4linux/. Use that
58
web service for reporting upstream bugs getting in touch with development.
59
.SH COPYRIGHT
60
This manual page was written by Reinhard Tartler <siretart@tauware.de>
61
in August 2006 for the Debian project, but may also be used by others.
62
.br
63
This manual page and lcd4linux is free software; you can redistribute it
64
and/or modify it under the terms of the GNU General Public License as
65
published by the Free Software Foundation; either version 2 of the
66
License, or (at your option) any later version.
67
.br
68
On Debian systems, the complete text of the GNU General Public
69
License, version 2, can be found in /usr/share/common-licenses/GPL-2.
70

Return to bug 243114