mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
lcdproc: convert to new package format
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d91638e3d7
commit
46174f5169
@ -1,39 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# OpenELEC 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.
|
|
||||||
#
|
|
||||||
# OpenELEC 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 OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
. config/options $1
|
|
||||||
|
|
||||||
cd $PKG_BUILD
|
|
||||||
./configure --host=$TARGET_NAME \
|
|
||||||
--build=$HOST_NAME \
|
|
||||||
--prefix=/usr \
|
|
||||||
--sysconfdir=/etc \
|
|
||||||
--enable-libusb \
|
|
||||||
--enable-drivers="$LCD_DRIVER,!curses,!svga"
|
|
||||||
|
|
||||||
make
|
|
||||||
|
|
||||||
sed -i -e "s|^DriverPath=.*$|DriverPath=/usr/lib/lcdproc/|" LCDd.conf
|
|
||||||
sed -i -e "s|^Driver=.*$|Driver=irtrans|" LCDd.conf
|
|
||||||
sed -i -e "s|^#Foreground=.*$|Foreground=no|" LCDd.conf
|
|
||||||
sed -i -e "s|^#ServerScreen=.*$|ServerScreen=blank|" LCDd.conf
|
|
||||||
sed -i -e "s|^#Backlight=.*$|Backlight=open|" LCDd.conf
|
|
||||||
sed -i -e "s|^#Heartbeat=.*$|Heartbeat=open|" LCDd.conf
|
|
||||||
sed -i -e "s|^#TitleSpeed=.*$|TitleSpeed=10|" LCDd.conf
|
|
File diff suppressed because it is too large
Load Diff
@ -1,33 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# OpenELEC 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.
|
|
||||||
#
|
|
||||||
# OpenELEC 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 OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
. config/options $1
|
|
||||||
|
|
||||||
add_user nobody x 999 999 "Nobody" "/" "/bin/sh"
|
|
||||||
add_group nobody 999
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/sbin
|
|
||||||
cp $PKG_BUILD/server/LCDd $INSTALL/usr/sbin
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/lib/lcdproc
|
|
||||||
cp $PKG_BUILD/server/drivers/*.so $INSTALL/usr/lib/lcdproc
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/etc
|
|
||||||
cp $PKG_DIR/config/LCDd.conf $INSTALL/etc
|
|
@ -24,15 +24,40 @@ PKG_LICENSE="GPL"
|
|||||||
PKG_SITE="http://lcdproc.org/"
|
PKG_SITE="http://lcdproc.org/"
|
||||||
PKG_URL="$SOURCEFORGE_SRC/lcdproc/lcdproc/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.gz"
|
PKG_URL="$SOURCEFORGE_SRC/lcdproc/lcdproc/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||||
PKG_DEPENDS="libusb"
|
PKG_DEPENDS="libusb"
|
||||||
PKG_BUILD_DEPENDS="toolchain libusb libhid libftdi"
|
PKG_BUILD_DEPENDS_TARGET="toolchain libusb libhid libftdi"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="system"
|
PKG_SECTION="system"
|
||||||
PKG_SHORTDESC="lcdproc: Software to display system information from your Linux/*BSD box on a LCD"
|
PKG_SHORTDESC="lcdproc: Software to display system information from your Linux/*BSD box on a LCD"
|
||||||
PKG_LONGDESC="LCDproc is a piece of software that displays real-time system information from your Linux/*BSD box on a LCD. The server supports several serial devices: Matrix Orbital, Crystal Fontz, Bayrad, LB216, LCDM001 (kernelconcepts.de), Wirz-SLI, Cwlinux(.com) and PIC-an-LCD; and some devices connected to the LPT port: HD44780, STV5730, T6963, SED1520 and SED1330. Various clients are available that display things like CPU load, system load, memory usage, uptime, and a lot more."
|
PKG_LONGDESC="LCDproc is a piece of software that displays real-time system information from your Linux/*BSD box on a LCD. The server supports several serial devices: Matrix Orbital, Crystal Fontz, Bayrad, LB216, LCDM001 (kernelconcepts.de), Wirz-SLI, Cwlinux(.com) and PIC-an-LCD; and some devices connected to the LPT port: HD44780, STV5730, T6963, SED1520 and SED1330. Various clients are available that display things like CPU load, system load, memory usage, uptime, and a lot more."
|
||||||
PKG_IS_ADDON="no"
|
|
||||||
|
|
||||||
|
PKG_IS_ADDON="no"
|
||||||
PKG_AUTORECONF="yes"
|
PKG_AUTORECONF="yes"
|
||||||
|
|
||||||
if [ "$IRSERVER_SUPPORT" = yes ]; then
|
if [ "$IRSERVER_SUPPORT" = yes ]; then
|
||||||
PKG_DEPENDS="$PKG_DEPENDS irserver"
|
PKG_DEPENDS="$PKG_DEPENDS irserver"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PKG_CONFIGURE_OPTS_TARGET="--enable-libusb --enable-drivers=$LCD_DRIVER,!curses,!svga"
|
||||||
|
|
||||||
|
post_makeinstall_target() {
|
||||||
|
rm -rf $INSTALL/etc/lcd*.conf
|
||||||
|
rm -rf $INSTALL/usr/bin
|
||||||
|
|
||||||
|
sed -e "s|^DriverPath=.*$|DriverPath=/usr/lib/lcdproc/|" \
|
||||||
|
-e "s|^Driver=.*$|Driver=irtrans|" \
|
||||||
|
-e "s|^#Foreground=.*$|Foreground=no|" \
|
||||||
|
-e "s|^#ServerScreen=.*$|ServerScreen=blank|" \
|
||||||
|
-e "s|^#Backlight=.*$|Backlight=open|" \
|
||||||
|
-e "s|^#Heartbeat=.*$|Heartbeat=open|" \
|
||||||
|
-e "s|^#TitleSpeed=.*$|TitleSpeed=4|" \
|
||||||
|
-e "s|^#Hello=\" Welcome to\"|Hello=\"Welcome to\"|" \
|
||||||
|
-e "s|^#Hello=\" LCDproc!\"|Hello=\"$DISTRONAME\"|" \
|
||||||
|
-e "s|^#GoodBye=\"Thanks for using\"|GoodBye=\"Thanks for using\"|" \
|
||||||
|
-e "s|^#GoodBye=\" LCDproc!\"|GoodBye=\"$DISTRONAME\"|" \
|
||||||
|
-i $INSTALL/etc/LCDd.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
add_user nobody x 999 999 "Nobody" "/" "/bin/sh"
|
||||||
|
add_group nobody 999
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user