diff options
author | Markus Ullmann <jokey@gentoo.org> | 2006-09-18 14:55:32 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2006-09-18 14:55:32 +0000 |
commit | aa83bc2878fe0a5f48a2580dc581f304a77c734c (patch) | |
tree | 519daad6b5b456e052619ac9ad92dc00d6adcf9a /app-misc/lcdproc | |
parent | ppc stable (diff) | |
download | historical-aa83bc2878fe0a5f48a2580dc581f304a77c734c.tar.gz historical-aa83bc2878fe0a5f48a2580dc581f304a77c734c.tar.bz2 historical-aa83bc2878fe0a5f48a2580dc581f304a77c734c.zip |
Cleanup and Version bump, thanks to Robert Buchholz in bug #130302 for providing ebuild and needed patch
Package-Manager: portage-2.1.2_pre1
Diffstat (limited to 'app-misc/lcdproc')
-rw-r--r-- | app-misc/lcdproc/ChangeLog | 12 | ||||
-rw-r--r-- | app-misc/lcdproc/files/0.5.0-LCDd-conf-driver-path.patch | 12 | ||||
-rw-r--r-- | app-misc/lcdproc/files/digest-lcdproc-0.5.0 | 3 | ||||
-rw-r--r-- | app-misc/lcdproc/lcdproc-0.5.0.ebuild | 173 | ||||
-rw-r--r-- | app-misc/lcdproc/metadata.xml | 13 |
5 files changed, 212 insertions, 1 deletions
diff --git a/app-misc/lcdproc/ChangeLog b/app-misc/lcdproc/ChangeLog index f8d9533b3881..300595c87809 100644 --- a/app-misc/lcdproc/ChangeLog +++ b/app-misc/lcdproc/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for app-misc/lcdproc # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/ChangeLog,v 1.29 2006/08/06 01:55:53 chriswhite Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/ChangeLog,v 1.30 2006/09/18 14:55:32 jokey Exp $ + +*lcdproc-0.5.0 (18 Sep 2006) + + 18 Sep 2006; Markus Ullmann <jokey@gentoo.org> + -files/lcdproc-0.4.4-security.patch, + +files/0.5.0-LCDd-conf-driver-path.patch, + -files/lcdproc-0.4.3-gentoo.diff, -files/lcdproc.confd, +metadata.xml, + +lcdproc-0.5.0.ebuild: + Cleanup and Version bump, thanks to Robert Buchholz in bug #130302 for + providing ebuild and needed patch 05 Aug 2006; Chris White <chriswhite@gentoo.org> -lcdproc-0.4.4-r1.ebuild: Punted insecure versions for bug #140498. diff --git a/app-misc/lcdproc/files/0.5.0-LCDd-conf-driver-path.patch b/app-misc/lcdproc/files/0.5.0-LCDd-conf-driver-path.patch new file mode 100644 index 000000000000..6fe95bc774f6 --- /dev/null +++ b/app-misc/lcdproc/files/0.5.0-LCDd-conf-driver-path.patch @@ -0,0 +1,12 @@ +--- LCDd.conf.orig 2006-09-05 16:54:24.000000000 +0200 ++++ LCDd.conf 2006-09-05 16:55:09.000000000 +0200 +@@ -76,7 +76,7 @@ + # the driver modules and will thus not be able to + # function properly. + # NOTE: Always place a slash as last character ! +-DriverPath=server/drivers/ ++DriverPath=/usr/share/lcdproc/drivers/ + + # The "...Key=" lines define what the server does with keypresses that + # don't go to any client. + diff --git a/app-misc/lcdproc/files/digest-lcdproc-0.5.0 b/app-misc/lcdproc/files/digest-lcdproc-0.5.0 new file mode 100644 index 000000000000..6fd0b99fd06c --- /dev/null +++ b/app-misc/lcdproc/files/digest-lcdproc-0.5.0 @@ -0,0 +1,3 @@ +MD5 4b67e421c19063fa322611a849ab5b80 lcdproc-0.5.0.tar.gz 711118 +RMD160 44153db5fe24cc45aa1b7a4be8afb87a9cd58062 lcdproc-0.5.0.tar.gz 711118 +SHA256 a7567f3f68517008e68d15b33630f36ba539540fbb361a2f9c440ce2ceb8393b lcdproc-0.5.0.tar.gz 711118 diff --git a/app-misc/lcdproc/lcdproc-0.5.0.ebuild b/app-misc/lcdproc/lcdproc-0.5.0.ebuild new file mode 100644 index 000000000000..d53bc17720a6 --- /dev/null +++ b/app-misc/lcdproc/lcdproc-0.5.0.ebuild @@ -0,0 +1,173 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.0.ebuild,v 1.1 2006/09/18 14:55:32 jokey Exp $ + +inherit flag-o-matic + +DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices" +HOMEPAGE="http://lcdproc.org/" +SRC_URI="mirror://sourceforge/lcdproc/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +# general use keywords in first line, drivers in line 2 +IUSE="doc debug ldap nfs samba usb + graphlcd irman lirc ncurses svga ula200 xosd" + +DEPEND="sys-apps/sed + >=sys-kernel/linux-headers-2.6.11 + doc? ( >=app-text/docbook-sgml-utils ) + ldap? ( net-nds/openldap ) + usb? ( dev-libs/libusb ) + + graphlcd? ( >=app-misc/graphlcd-base ) + irman? ( media-libs/libirman ) + lirc? ( app-misc/lirc ) + ncurses? ( >=sys-libs/ncurses ) + svga? ( >=media-libs/svgalib ) + ula200? ( dev-embedded/libftdi dev-libs/libusb ) + xosd? ( >=x11-libs/xosd ) " + +USE_DRIVERS="curses glcdlib irman lirc svga ula200 xosd" +EXTRA_DRIVERS="bayrad CFontz CFontz633 CFontzPacket CwLnx \ + glk hd44780 icp_a106 imon IOWarrior joy lb216 lcdm001 \ + lcterm ms6931 mtc_s16209x MtxOrb NoritakeVFD pyramid sed1330 \ + sed1520 serialVFD sli stv5730 t6963 text tyan " +ALL_DRIVERS="${USE_DRIVERS} ${EXTRA_DRIVERS}" + + +# compatibility with 1.4-ebuild format +LCDPROC_DRIVERS=${LCDPROC_DRIVERS//,/ } + +# if no drivers or all are set, select the defaults +has all ${LCDPROC_DRIVERS} \ + && LCDPROC_DRIVERS="${EXTRA_DRIVERS}" +[ -z "${LCDPROC_DRIVERS}" ] \ + && LCDPROC_DRIVERS="${EXTRA_DRIVERS}" +has none ${LCDPROC_DRIVERS} \ + && LCDPROC_DRIVERS="" + +pkg_setup() { + + echo + einfo "If you are updating from lcdproc-0.4, note that the setup of drivers has changed:" + einfo "The drivers curses, glcdlib, irman, lirc, svga, ula200 and xosd are controlled by use flags." + einfo "All other drivers are built by default, or in respect to the env variable" + einfo "LCDPROC_DRIVERS which can be a space separated list. Example:" + einfo " LCDPROC_DRIVERS=\"text CFontz\" emerge lcdproc" + einfo "You can also set this variable in your make.conf." + echo + einfo "Possible choices for LCDPROC_DRIVERS are:" + einfo " bayrad CFontz CFontz633 CFontzPacket CwLnx glk hd44780 " + einfo " icp_a106 imon IOWarrior joy lb216 lcdm001 lcterm " + einfo " ms6931 mtc_s16209x MtxOrb NoritakeVFD pyramid sed1330 " + einfo " sed1520 serialVFD sli stv5730 t6963 text tyan" + einfo " 'all' if you want to include all drivers (default)." + einfo " 'none' will not include any extra drivers." + echo + + local FILTERED_DRIVERS + for driver in ${LCDPROC_DRIVERS}; do + if has ${driver} ${EXTRA_DRIVERS} ; then + FILTERED_DRIVERS="${FILTERED_DRIVERS} ${driver}" + else + eerror "The extra driver '${driver}' is not available or has to be enabled by a USE flag." + eerror "Please check your LCDPROC_DRIVERS-variable!" + echo + fi + done + LCDPROC_DRIVERS="${FILTERED_DRIVERS}" + + einfo "The following drivers will be built: " + echo + + # add use-flag specific drivers to LCDPROC_DRIVERS + use graphlcd && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} glcdlib" + use irman && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} irman" + use lirc && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} lirc" + use ncurses && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} curses" + use svga && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} svga" + use ula200 && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} ula200" + use xosd && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} xosd" + + for driver in ${ALL_DRIVERS}; do + has ${driver} ${LCDPROC_DRIVERS} \ + && einfo $driver ; + done + echo + + has glcdlib ${LCDPROC_DRIVERS} || has all ${LCDPROC_DRIVERS} \ + && ewarn "Support for glcdlib might not work if you do not manually install" \ + && ewarn "GLCDprocDriver from http://www.muresan.de/graphlcd/lcdproc/" +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PV}-LCDd-conf-driver-path.patch" +} + +src_compile() { + # avoid executable stack as mentioned + # in http://www.gentoo.org/proj/en/hardened/gnu-stack.xml + append-ldflags -Wl,-z,noexecstack + + # convert space separated LCDPROC_DRIVERS to comma separated COMMA_DRIVERS + local COMMA_DRIVERS + for driver in ${LCDPROC_DRIVERS}; do + if [ -z "${COMMA_DRIVERS}" ] ; then + COMMA_DRIVERS="${driver}" + else + COMMA_DRIVERS="${COMMA_DRIVERS},${driver}" + fi + done + + econf \ + $(use_enable debug) \ + $(use_enable ldap) \ + $(use_enable nfs stat-nfs) \ + $(use_enable samba stat-smbfs ) \ + $(use_enable usb libusb) \ + "--enable-drivers=${COMMA_DRIVERS}" \ + || die "configure failed" + + if use doc; then + cd ${S}/docs/lcdproc-user + docbook2html lcdproc-user.docbook + fi + + emake || die "make failed" +} + +src_install() { + dosbin server/LCDd + dobin clients/lcdproc/lcdproc clients/lcdexec/lcdexec + + insinto /usr/share/lcdproc/drivers + doins server/drivers/*.so + + insinto /usr/share/lcdproc/clients + doins clients/examples/*.pl + doins clients/metar/lcdmetar.pl + doins clients/headlines/lcdheadlines + + insinto /etc + doins LCDd.conf + doins scripts/lcdproc.conf + + exeinto /etc/init.d + doexe ${FILESDIR}/LCDd + doexe ${FILESDIR}/lcdproc + + doman docs/*.1 docs/*.8 + dodoc README CREDITS ChangeLog INSTALL + dodoc docs/README.* docs/*.txt + + if use doc; then + insinto /usr/share/doc/${PF}/lcdproc-user + doins docs/lcdproc-user/*.html + fi + +} diff --git a/app-misc/lcdproc/metadata.xml b/app-misc/lcdproc/metadata.xml new file mode 100644 index 000000000000..c818f42807b8 --- /dev/null +++ b/app-misc/lcdproc/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>jokey@gentoo.org</email> + <name>Markus Ullmann</name> + </maintainer> + <maintainer> + <email>rob@thetruth.de</email> + <name>Robert Buchholz</name> + </maintainer> +</pkgmetadata> |