diff options
author | Chad Huneycutt <chadh@gentoo.org> | 2002-12-15 18:45:30 +0000 |
---|---|---|
committer | Chad Huneycutt <chadh@gentoo.org> | 2002-12-15 18:45:30 +0000 |
commit | f7eb0dfbbb9dde664747cb8ad2c8c13a607ee06d (patch) | |
tree | bd4ee937de697101a1af908b8ac721d7908331b3 /sys-apps/irda-utils | |
parent | fixed bug (init script got not installed) (diff) | |
download | gentoo-2-f7eb0dfbbb9dde664747cb8ad2c8c13a607ee06d.tar.gz gentoo-2-f7eb0dfbbb9dde664747cb8ad2c8c13a607ee06d.tar.bz2 gentoo-2-f7eb0dfbbb9dde664747cb8ad2c8c13a607ee06d.zip |
new version with lots of changes to Gentoo-ify it
Diffstat (limited to 'sys-apps/irda-utils')
-rw-r--r-- | sys-apps/irda-utils/ChangeLog | 11 | ||||
-rw-r--r-- | sys-apps/irda-utils/files/digest-irda-utils-0.9.15 | 1 | ||||
-rw-r--r-- | sys-apps/irda-utils/files/irda.conf | 5 | ||||
-rw-r--r-- | sys-apps/irda-utils/files/irda.rc | 40 | ||||
-rw-r--r-- | sys-apps/irda-utils/irda-utils-0.9.15.ebuild | 53 |
5 files changed, 109 insertions, 1 deletions
diff --git a/sys-apps/irda-utils/ChangeLog b/sys-apps/irda-utils/ChangeLog index 104d683f694d..b7aa79bca81a 100644 --- a/sys-apps/irda-utils/ChangeLog +++ b/sys-apps/irda-utils/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sys-apps/irda-utils # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/sys-apps/irda-utils/ChangeLog,v 1.3 2002/07/21 20:02:05 gerk Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/irda-utils/ChangeLog,v 1.4 2002/12/15 18:45:30 chadh Exp $ + +*irda-utils-0.9.15 (15 Dec 2002) + + 15 Dec 2002; Chad Huneycutt <chadh@gentoo.org>: + + Thanks to contributors to bug 1727 for init scripts and config files to go + with them. I have cleaned up the ebuild some, and it now installs all the + sample programs from irsockets. README's and man pages are installed as + well. *irda-utils-0.9.13 (1 Feb 2002) diff --git a/sys-apps/irda-utils/files/digest-irda-utils-0.9.15 b/sys-apps/irda-utils/files/digest-irda-utils-0.9.15 new file mode 100644 index 000000000000..330dff08ac8a --- /dev/null +++ b/sys-apps/irda-utils/files/digest-irda-utils-0.9.15 @@ -0,0 +1 @@ +MD5 b69b75464d6ee72e6600a8459d9b68ac irda-utils-0.9.15.tar.gz 226303 diff --git a/sys-apps/irda-utils/files/irda.conf b/sys-apps/irda-utils/files/irda.conf new file mode 100644 index 000000000000..59f8022537db --- /dev/null +++ b/sys-apps/irda-utils/files/irda.conf @@ -0,0 +1,5 @@ +IRDA=yes +IRDADEV=/dev/ttyS2 +#Set (optional) Dongle name here +#DONGLE=actisys+ +DISCOVERY=yes diff --git a/sys-apps/irda-utils/files/irda.rc b/sys-apps/irda-utils/files/irda.rc new file mode 100644 index 000000000000..00bceec244ae --- /dev/null +++ b/sys-apps/irda-utils/files/irda.rc @@ -0,0 +1,40 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-apps/irda-utils/files/irda.rc,v 1.1 2002/12/15 18:45:30 chadh Exp $ + +checkconfig() { + if [ -z "$IRDA" ] || [ -z "$IRDADEV" ] ; then + eerror "You need to setup IRDA and IRDADEV in /etc/conf.d/irda first" + return 1 + fi +} + +start() { + checkconfig || return 1 + + # Check that irda is enabled. + [ ${IRDA} = "no" ] && return 1 + + [ -f /usr/sbin/irattach ] || return 1 + + local ARGS="" + if [ $DONGLE ]; then + ARGS="$ARGS -d $DONGLE" + fi + if [ "$DISCOVERY" = "yes" ];then + ARGS="$ARGS -s" + fi + + # Attach irda device + ebegin "Starting IrDA" + start-stop-daemon --start --quiet \ + --exec /usr/sbin/irattach -- ${IRDADEV} ${ARGS} + eend ${?} +} + +stop() { + ebegin "Shutting down IrDA" + start-stop-daemon --stop --quiet --pidfile /var/run/irattach.pid + eend ${?} +} diff --git a/sys-apps/irda-utils/irda-utils-0.9.15.ebuild b/sys-apps/irda-utils/irda-utils-0.9.15.ebuild new file mode 100644 index 000000000000..639ace2ace55 --- /dev/null +++ b/sys-apps/irda-utils/irda-utils-0.9.15.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Mikael Hallendal <micke@hallendal.net> +# /space/gentoo/cvsroot/gentoo-x86/sys-apps/irda-utils/irda-utils-0.9.13.ebuild,v 1.2 2002/01/01 22:35:51 azarah Exp + +S=${WORKDIR}/${P} +DESCRIPTION="IrDA Utilities, tools for IrDA communication" +SRC_URI="http://irda.sf.net/ftp/${PN}/${P}.tar.gz" +HOMEPAGE="http://irda.sf.net" +KEYWORDS="~x86 -ppc" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="virtual/glibc" + +src_compile() { + make ROOT="${D}" RPM_BUILD_ROOT="${D}" || die "Making failed." + cd irsockets + make || die "Making irsockets failed." +} + +src_install () { + dodir /usr/bin + dodir /usr/sbin + dodir /usr/X11R6/bin + + make install PREFIX="${D}" ROOT="${D}" || die "Couldn't install from ${S}" + + into /usr + dobin irsockets/irdaspray + dobin irsockets/ias_query + dobin irsockets/irprintf + dobin irsockets/irprintfx + dobin irsockets/irscanf + dobin irsockets/recv_ultra + dobin irsockets/send_ultra + + # install README's into /usr/share/doc + for i in * + do + if [ -d $i -a $i != "man" ]; then + if [ -f $i/README ]; then + cp $i/README README.$i + dodoc README.$i + rm README.$i + fi + fi + done + + insinto /etc/conf.d ; newins ${FILESDIR}/irda.conf irda + insinto /etc/init.d ; insopts -m0755 ; newins ${FILESDIR}/irda.rc irda +} + |