Added a startup script -- this closes #171591.
authorWilliam Hubbs <williamh@gentoo.org>
Wed, 28 Mar 2007 04:03:22 +0000 (04:03 +0000)
committerWilliam Hubbs <williamh@gentoo.org>
Wed, 28 Mar 2007 04:03:22 +0000 (04:03 +0000)
Package-Manager: portage-2.1.2.2

app-accessibility/brltty/ChangeLog
app-accessibility/brltty/Manifest
app-accessibility/brltty/brltty-3.7.2-r1.ebuild [new file with mode: 0644]
app-accessibility/brltty/files/brltty.rc [new file with mode: 0644]
app-accessibility/brltty/files/digest-brltty-3.7.2-r1 [new file with mode: 0644]

index a7de14579cee6d9aa7ffc7b771c8e906513e3517..16a03e4da41febf78b77293d682d866f1421b02b 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-accessibility/brltty
 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/brltty/ChangeLog,v 1.51 2007/02/22 00:04:30 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/brltty/ChangeLog,v 1.52 2007/03/28 04:03:22 williamh Exp $
+
+*brltty-3.7.2-r1 (28 Mar 2007)
+
+  28 Mar 2007; William Hubbs <williamh@gentoo.org> +files/brltty.rc,
+  +brltty-3.7.2-r1.ebuild:
+  Add a startup script (closes #171591).
 
   22 Feb 2007; Doug Goldstein <cardoe@gentoo.org> ChangeLog, Manifest:
   Manifest2 fix
index d612373344a2111b914d6d901931738cc83e261b..4d7f03d1868d6627fdc57ba686d43ee458f5a7a1 100644 (file)
@@ -1,10 +1,11 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
 AUX brltty-3.7.2-nostrip.patch 324 RMD160 234256bff56637ae609b0cfd06eb593c761fb7c0 SHA1 3e3653f3dc48ab7a149149670c4f8694fa5031d8 SHA256 3afdb8a1506abd94e1770271fe2b57d2027774041e1788e862a68fb4faeae428
 MD5 ed33f06374ffd30ac45d765200cb3f53 files/brltty-3.7.2-nostrip.patch 324
 RMD160 234256bff56637ae609b0cfd06eb593c761fb7c0 files/brltty-3.7.2-nostrip.patch 324
 SHA256 3afdb8a1506abd94e1770271fe2b57d2027774041e1788e862a68fb4faeae428 files/brltty-3.7.2-nostrip.patch 324
+AUX brltty.rc 515 RMD160 4a08e401894b8f9869e9c214f5cb3858a84584ef SHA1 9e367f90e17ccaaf60d03606701b2f2ce45d946e SHA256 78ef3c062aedc63bba1eff122eaa6de3f97531f65aaa13803fd27cdbf0d787e9
+MD5 6c0c867f0f214f51db205728fba99eef files/brltty.rc 515
+RMD160 4a08e401894b8f9869e9c214f5cb3858a84584ef files/brltty.rc 515
+SHA256 78ef3c062aedc63bba1eff122eaa6de3f97531f65aaa13803fd27cdbf0d787e9 files/brltty.rc 515
 DIST brltty-3.5.tar.gz 968152 RMD160 b1cb5a4fdcd243ea9db84224b3e8323cdfa2a150 SHA1 6102b4280c649263a85411088fb456e42bae5a1b SHA256 3c59a6ca9a8a06e08c4f10eef5825ae9a6ba6274bffa898cd922665c7ada838a
 DIST brltty-3.6.1.tar.gz 1072871 RMD160 9331cf373ef16ef0a0b9addceffd2d1757070595 SHA1 097bfe5c2b9c04839c36ee708c420f008c3afb12 SHA256 a1d26cb72aa8e73a613f6b5d368a2e2178ac85f1b3a53c0175caa2488bf2e1de
 DIST brltty-3.6.tar.gz 1060457 RMD160 904eab1665715002b7b03d1766e0237bd67188a9 SHA1 e77f0999ccaf5d98cee44c23269b997e28144fe8 SHA256 f10f75f98060b9d8a0a7bcb3a2c0ca2f9b96630a131385b2cc7d367faf7b9916
@@ -21,14 +22,18 @@ EBUILD brltty-3.6.ebuild 883 RMD160 4ed8107ddd8b3014cfe017de13ac77a9ca3eb043 SHA
 MD5 5ce1e793de71daf22e755f423a8213d0 brltty-3.6.ebuild 883
 RMD160 4ed8107ddd8b3014cfe017de13ac77a9ca3eb043 brltty-3.6.ebuild 883
 SHA256 90f7ca54b3961f8e1053f20a526eba59191f917e4d17f6471f705119a997f064 brltty-3.6.ebuild 883
+EBUILD brltty-3.7.2-r1.ebuild 1712 RMD160 931266c33bf2abe931f5948ae5721029389af5e8 SHA1 62ca1af3421bcfc237f3f859ea0503b075f0c511 SHA256 6d636891e603e35f89882ad2697f0a6d581f3aa864bc39804022e9e7d00e0330
+MD5 01950cc7d5cc617b8c69982d51ac405b brltty-3.7.2-r1.ebuild 1712
+RMD160 931266c33bf2abe931f5948ae5721029389af5e8 brltty-3.7.2-r1.ebuild 1712
+SHA256 6d636891e603e35f89882ad2697f0a6d581f3aa864bc39804022e9e7d00e0330 brltty-3.7.2-r1.ebuild 1712
 EBUILD brltty-3.7.2.ebuild 1401 RMD160 2c883a622c564da39215db0fc6a725d9e2533d9f SHA1 097859a6d63f06b36d97fc553dfe521b794d369f SHA256 b91b82904625735314eb96f4f312327b810662733ef1b2048e47b3f9cd2b772f
 MD5 525bbdef3d9250becf7eb2faaaada400 brltty-3.7.2.ebuild 1401
 RMD160 2c883a622c564da39215db0fc6a725d9e2533d9f brltty-3.7.2.ebuild 1401
 SHA256 b91b82904625735314eb96f4f312327b810662733ef1b2048e47b3f9cd2b772f brltty-3.7.2.ebuild 1401
-MISC ChangeLog 6042 RMD160 9e45da5d59076c624bf56a4d5f58674ea2c227cc SHA1 6cbe90266a97a5c93434c2230d0420841ed63994 SHA256 484617d513dcb11e686a0d91a3304273607d7cde1c1bca3321f4ac57445b9c07
-MD5 529c5843d1152efb56e9d4ce35a7c54c ChangeLog 6042
-RMD160 9e45da5d59076c624bf56a4d5f58674ea2c227cc ChangeLog 6042
-SHA256 484617d513dcb11e686a0d91a3304273607d7cde1c1bca3321f4ac57445b9c07 ChangeLog 6042
+MISC ChangeLog 6214 RMD160 827a03e3468c3dc838ca6a9887d3509d1854b950 SHA1 3caeabb160df8d5444d193f0c835b91048776a49 SHA256 3a91e486a085c82c2058fd9bcb101940efd38b90f78b8de98bd7cca54b58f692
+MD5 6170e0df1ad0f2969feddec7c1495df1 ChangeLog 6214
+RMD160 827a03e3468c3dc838ca6a9887d3509d1854b950 ChangeLog 6214
+SHA256 3a91e486a085c82c2058fd9bcb101940efd38b90f78b8de98bd7cca54b58f692 ChangeLog 6214
 MISC metadata.xml 1369 RMD160 b84aea78cca99f745caeea7cc3a96bca3d594fc8 SHA1 551fae162278c8600c1a4547184e17af9eca5bb4 SHA256 263e4d610a1ed22f4f7176a3759194490e4a1b9d02f339c149c4a462524a63be
 MD5 e385ac1a0787152b5b9dfb9c2fa24681 metadata.xml 1369
 RMD160 b84aea78cca99f745caeea7cc3a96bca3d594fc8 metadata.xml 1369
@@ -45,10 +50,6 @@ SHA256 f62e8a13d5a3be178a6cb6323af8da397f8f62e83f3a629fb6e6e8e0e2c7ca78 files/di
 MD5 a2dd677533a62607e5edbdc7a3a1b839 files/digest-brltty-3.7.2 241
 RMD160 705abfcfd6f1056f76ced9e6aa55ca3cff6273ad files/digest-brltty-3.7.2 241
 SHA256 61aa01f9fea03f8bae35c16e7898ec5bb6ea4e1481b8c1d6f95c17b3458899a5 files/digest-brltty-3.7.2 241
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.2 (GNU/Linux)
-
-iD8DBQFF3N4QoeSe8B0zEfwRAtSCAJoDOscJcqBHdtPDw/QqZe0PJMfoDACdG+wO
-v10C2RdYwZzfAmts2E8QQ7s=
-=cUYN
------END PGP SIGNATURE-----
+MD5 a2dd677533a62607e5edbdc7a3a1b839 files/digest-brltty-3.7.2-r1 241
+RMD160 705abfcfd6f1056f76ced9e6aa55ca3cff6273ad files/digest-brltty-3.7.2-r1 241
+SHA256 61aa01f9fea03f8bae35c16e7898ec5bb6ea4e1481b8c1d6f95c17b3458899a5 files/digest-brltty-3.7.2-r1 241
diff --git a/app-accessibility/brltty/brltty-3.7.2-r1.ebuild b/app-accessibility/brltty/brltty-3.7.2-r1.ebuild
new file mode 100644 (file)
index 0000000..905f02b
--- /dev/null
@@ -0,0 +1,64 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/brltty/brltty-3.7.2-r1.ebuild,v 1.1 2007/03/28 04:03:22 williamh Exp $
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="Daemon that provides access to the Linux/Unix console for a blind person"
+HOMEPAGE="http://mielke.cc/brltty/"
+SRC_URI="http://mielke.cc/brltty/releases/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc gpm usb X"
+
+RDEPEND="virtual/libc
+       gpm? ( >=sys-libs/gpm-1.20 )
+       X? ( || ( x11-libs/libXaw virtual/x11 ) )"
+DEPEND="${RDEPEND}
+       X? ( || ( x11-proto/xextproto virtual/x11 ) )"
+
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch "${FILESDIR}"/${PN}-3.7.2-nostrip.patch
+}
+
+src_compile() {
+       econf `use_enable gpm` \
+               `use_with X x` \
+               `use_enable usb usb-support` \
+               --prefix=/ \
+               --includedir=/usr/include || die
+       make || die
+}
+
+src_install() {
+       make INSTALL_ROOT=${D} install || die
+       TMPDIR=../../Programs scanelf -RBXr ${D} -o /dev/null
+       libdir="$(get_libdir)"
+       mkdir -p ${D}/usr/${libdir}/
+       mv ${D}/${libdir}/*.a ${D}/usr/${libdir}/
+       gen_usr_ldscript libbrlapi.so
+       cd Documents
+       rm *.made
+       dodoc ChangeLog README* Manual.* TODO brltty.conf
+       dohtml -r Manual-HTML
+       newinit ${FILESDIR}/brltty.rc brltty
+       if use doc; then
+               dodoc BrlAPI.* BrlAPIref.doxy
+               dohtml -r BrlAPI-HTML BrlAPIref-HTML
+       fi
+}
+
+pkg_postinst() {
+       elog
+       elog There is a sample config file in /usr/share/doc/${P}/brltty.conf.
+       elog To use this file, uncompress it into /etc/brltty
+       elog
+       elog To make brltty start on boot, type this command as root:
+       elog
+       elog rc-update add brltty boot
+}
diff --git a/app-accessibility/brltty/files/brltty.rc b/app-accessibility/brltty/files/brltty.rc
new file mode 100644 (file)
index 0000000..414f9e9
--- /dev/null
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/brltty/files/brltty.rc,v 1.1 2007/03/28 04:03:22 williamh Exp $
+
+depend() {
+       need localmount
+       after bootmisc
+}
+
+start() {
+       ebegin "Starting brltty"
+       start-stop-daemon --start --exec /bin/brltty -- -P /var/run/brltty.pid -q
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping brltty"
+       start-stop-daemon --stop --pidfile /var/run/brltty.pid
+       eend $?
+}
diff --git a/app-accessibility/brltty/files/digest-brltty-3.7.2-r1 b/app-accessibility/brltty/files/digest-brltty-3.7.2-r1
new file mode 100644 (file)
index 0000000..84f84bf
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 0ae3da8252783a4d20e1ed4e55cede5b brltty-3.7.2.tar.gz 1193139
+RMD160 30b9df4243ce7f0140e1bdcdf53b6bacea135f88 brltty-3.7.2.tar.gz 1193139
+SHA256 1f39a08947833299c6ca6c6dbbc84f6b27a375bb7efe62cf9eebd8d5cdaa6934 brltty-3.7.2.tar.gz 1193139