summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@gentoo.org>2006-10-30 21:12:49 +0000
committerRobert Buchholz <rbu@gentoo.org>2006-10-30 21:12:49 +0000
commit2b1873989076b9ae289373cc216bffabcce7a033 (patch)
tree87883da8be834246ead59504ad9d1f12da2dd5a9 /app-misc
parentVersion bump (diff)
downloadjokey-2b1873989076b9ae289373cc216bffabcce7a033.tar.gz
jokey-2b1873989076b9ae289373cc216bffabcce7a033.tar.bz2
jokey-2b1873989076b9ae289373cc216bffabcce7a033.zip
Version bump and initscript-update
svn path=/trunk/; revision=60
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/g15daemon/Manifest22
-rw-r--r--app-misc/g15daemon/files/digest-g15daemon-1.2.33
-rw-r--r--app-misc/g15daemon/files/g15daemon-1.2.3.initd32
-rw-r--r--app-misc/g15daemon/g15daemon-1.2.3.ebuild131
4 files changed, 178 insertions, 10 deletions
diff --git a/app-misc/g15daemon/Manifest b/app-misc/g15daemon/Manifest
index 4404a14..416d920 100644
--- a/app-misc/g15daemon/Manifest
+++ b/app-misc/g15daemon/Manifest
@@ -1,15 +1,21 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX g15daemon-1.2.1.initd 611 RMD160 b554f82ad4e3bd0688ed48f264a15c2a91f00fd2 SHA1 4a1a63c1022c4d19748b977480dfeac15ad16328 SHA256 3fd9442b1f8e60549f2f57eaee1969606b48b82acc9272489b730b0762c69b05
MD5 d943dda404e5022988f8dfc83f41c640 files/g15daemon-1.2.1.initd 611
RMD160 b554f82ad4e3bd0688ed48f264a15c2a91f00fd2 files/g15daemon-1.2.1.initd 611
SHA256 3fd9442b1f8e60549f2f57eaee1969606b48b82acc9272489b730b0762c69b05 files/g15daemon-1.2.1.initd 611
+AUX g15daemon-1.2.3.initd 859 RMD160 a2d4212befb9ba537a68e2375701631b3eb4262e SHA1 69af3870e8756b9f5d4ce1853159d55e33547f8c SHA256 8290e9920c83f7d289eb2a68b11f0a33758ff139f402bf3e011b4ab2205f8347
+MD5 7bb1f4a727722b372c1295dac178ce18 files/g15daemon-1.2.3.initd 859
+RMD160 a2d4212befb9ba537a68e2375701631b3eb4262e files/g15daemon-1.2.3.initd 859
+SHA256 8290e9920c83f7d289eb2a68b11f0a33758ff139f402bf3e011b4ab2205f8347 files/g15daemon-1.2.3.initd 859
DIST g15daemon-1.2.1.tar.bz2 267042 RMD160 0b94f4541603448efbf6b4bdbb1bcadc254a614e SHA1 ba03cd08601b965f5afd84353dcd8eafefa2afe5 SHA256 207efaa4180e3ab6069213f042e149650cd9af54e4976fc0d36b48f6192fa8e9
+DIST g15daemon-1.2.3.tar.bz2 304548 RMD160 897d80b4cea3aa98163b168638992f4daea4ccdd SHA1 d36043bf84062c62306952b86f595438b026301c SHA256 9bc3cecf17277825b8084d08e1ed6550c6e4a338cfee3604262908afac45bc9e
EBUILD g15daemon-1.2.1-r2.ebuild 3215 RMD160 4d699a73e6525dbf4705ded2d5fc603504fc23ce SHA1 f86dcf3aeeb32f749454480bb7f739397c9cca5d SHA256 675309837d707fc66212d5850c46fb20882229956a08088764cfe1c2bd7e588d
MD5 686ee0fcf526dd4213db2cacfdb501b1 g15daemon-1.2.1-r2.ebuild 3215
RMD160 4d699a73e6525dbf4705ded2d5fc603504fc23ce g15daemon-1.2.1-r2.ebuild 3215
SHA256 675309837d707fc66212d5850c46fb20882229956a08088764cfe1c2bd7e588d g15daemon-1.2.1-r2.ebuild 3215
+EBUILD g15daemon-1.2.3.ebuild 3404 RMD160 002463ada11b59820e7953627831bf86ea010d3e SHA1 6b56bb50b095cf78ac94392dce1125500248dc12 SHA256 104c51fed393d5eafa06cead11b5cb72375e5b82683b2181d4bd2af937054c38
+MD5 5ac1ba2f76c5fc1a407f4173f7e5c1f7 g15daemon-1.2.3.ebuild 3404
+RMD160 002463ada11b59820e7953627831bf86ea010d3e g15daemon-1.2.3.ebuild 3404
+SHA256 104c51fed393d5eafa06cead11b5cb72375e5b82683b2181d4bd2af937054c38 g15daemon-1.2.3.ebuild 3404
MISC ChangeLog 1064 RMD160 41014800b9165c0a41b743704acf42097a631de3 SHA1 101a0d5cf9511739e6ad7b789619eec74a29d615 SHA256 f46b9e66c9a6da026c4f058e59a349c13524b7508f844ab2b64a5e48ceee6d06
MD5 3f99692c04c8a80275a0a498573f0b4c ChangeLog 1064
RMD160 41014800b9165c0a41b743704acf42097a631de3 ChangeLog 1064
@@ -21,10 +27,6 @@ SHA256 9eb89a60b8762b32ed579ff3fb70443aba71cdc7ebd597e8714f6fafdf1b256a metadata
MD5 0e100b3a225a3f129a2fa9aae5c107dd files/digest-g15daemon-1.2.1-r2 250
RMD160 f73238860af79ab6ff880d2349f27c1d1dd428e5 files/digest-g15daemon-1.2.1-r2 250
SHA256 243c86e7442d399f7ab45e8ac7bcbea8e3896097442a147890314a59b528deaa files/digest-g15daemon-1.2.1-r2 250
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-
-iD8DBQFFPcdYz974XjDVpbkRApoEAJwIIugrB0I5cesWwSfWQ4+DhzjrlgCfQ1op
-1nXuP7KR2Jh1sgDnjqELfQ8=
-=Qs+5
------END PGP SIGNATURE-----
+MD5 e1401f5b094e36d56d3a4377891aa2f3 files/digest-g15daemon-1.2.3 250
+RMD160 2f63298f6dba165c16100e4a15780201a0f6e84f files/digest-g15daemon-1.2.3 250
+SHA256 988167ef01938019a1c995632c4a640ec76ea7cff3eff6f678303a5e9ec1d450 files/digest-g15daemon-1.2.3 250
diff --git a/app-misc/g15daemon/files/digest-g15daemon-1.2.3 b/app-misc/g15daemon/files/digest-g15daemon-1.2.3
new file mode 100644
index 0000000..5691a01
--- /dev/null
+++ b/app-misc/g15daemon/files/digest-g15daemon-1.2.3
@@ -0,0 +1,3 @@
+MD5 54b9b5b078680412db137fd373050234 g15daemon-1.2.3.tar.bz2 304548
+RMD160 897d80b4cea3aa98163b168638992f4daea4ccdd g15daemon-1.2.3.tar.bz2 304548
+SHA256 9bc3cecf17277825b8084d08e1ed6550c6e4a338cfee3604262908afac45bc9e g15daemon-1.2.3.tar.bz2 304548
diff --git a/app-misc/g15daemon/files/g15daemon-1.2.3.initd b/app-misc/g15daemon/files/g15daemon-1.2.3.initd
new file mode 100644
index 0000000..962f7ef
--- /dev/null
+++ b/app-misc/g15daemon/files/g15daemon-1.2.3.initd
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/files/g15daemon-1.2.1.initd,v 1.1 2006/10/24 07:57:04 jokey Exp $
+
+# Init script for g15daemon
+
+depend() {
+ after hotplug
+ after usb
+ after modules
+}
+
+start() {
+ ebegin "Starting g15daemon"
+
+ # Does the input device already exist?
+ if [[ -e /proc/modules && ! -e /dev/input/uinput ]] ; then
+ # We can load modules, but uinput device does not exist
+ einfo "Loading uinput module"
+ /sbin/modprobe uinput &> /dev/null
+ fi
+
+ start-stop-daemon --start --background --pidfile /var/run/g15daemon.pid --exec /usr/sbin/g15daemon
+ eend $? "Failed to start g15daemon."
+}
+
+stop() {
+ ebegin "Stopping g15daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/g15daemon.pid
+ eend $?
+}
diff --git a/app-misc/g15daemon/g15daemon-1.2.3.ebuild b/app-misc/g15daemon/g15daemon-1.2.3.ebuild
new file mode 100644
index 0000000..ba90c0f
--- /dev/null
+++ b/app-misc/g15daemon/g15daemon-1.2.3.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.2.1-r2.ebuild,v 1.1 2006/10/24 07:57:04 jokey Exp $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="latest"
+inherit eutils linux-info perl-module python autotools
+
+DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
+HOMEPAGE="http://g15daemon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/g15daemon/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="perl python"
+
+DEPEND="dev-libs/libusb
+ dev-libs/libdaemon
+ dev-libs/libg15
+ perl? ( >=dev-perl/Inline-0.4 )
+ python? ( dev-lang/python )"
+
+RDEPEND="${DEPEND}
+ perl? ( dev-perl/GDGraph )"
+
+uinput_check() {
+ ebegin "Checking for uinput support"
+ linux_chkconfig_present INPUT_UINPUT
+ eend $?
+
+ if [[ $? -ne 0 ]] ; then
+ eerror "To use g15daemon, you need to compile your kernel with uinput support."
+ eerror "Please enable uinput support in your kernel config, found at:"
+ eerror
+ eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
+ eerror
+ eerror "Once enabled, you should have the /dev/input/uinput device."
+ eerror "g15daemon will not work without the uinput device."
+ die "INPUT_UINPUT support not detected!"
+ fi
+}
+
+pkg_setup() {
+ linux-info_pkg_setup
+ uinput_check
+}
+
+src_unpack() {
+ unpack ${A}
+ if use perl; then
+ unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
+ fi
+ if use python; then
+ unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
+ fi
+ cd "${S}"
+
+ # needed because the shipped ltmain is old and
+ # to avoid regeneration of configure by the program itself
+ eautoreconf
+}
+
+src_compile() {
+ econf || die "configure failed"
+
+ emake || die "make failed"
+
+ if use perl; then
+ cd "${WORKDIR}/G15Daemon-0.2"
+ perl-module_src_compile
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS NEWS README TODO ChangeLog
+
+ insinto /usr/share/g15daemon/contrib
+ doins contrib/xmodmaprc
+ doins contrib/xmodmap.sh
+ if use perl; then
+ doins contrib/testbindings.pl
+ fi
+
+ newinitd "${FILESDIR}/g15daemon-${PV}.initd" g15daemon
+
+ if use perl; then
+ einfo "Installing Perl Bindings (G15Daemon.pm)"
+ cd "${WORKDIR}/G15Daemon-0.2"
+ perl-module_src_install
+ fi
+
+ if use python; then
+ einfo "Installing Python Bindings (g15daemon.py)"
+ cd "${WORKDIR}/pyg15daemon"
+ python_version
+
+ insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
+ doins g15daemon.py
+ newdoc AUTHORS pyg15daemon_AUTHORS
+ fi
+}
+
+pkg_postinst() {
+ if use python; then
+ python_mod_optimize "${ROOT}/usr/lib/python*/site-packages/g15daemon"
+ einfo ""
+ fi
+
+ einfo "To use g15daemon, you need to add g15daemon to the default runlevel."
+ einfo "This can be done with:"
+ einfo "# /sbin/rc-update add g15daemon default"
+ einfo ""
+ einfo "To have all new keys working in X11,"
+ einfo "you'll need create a specific xmodmap in your home directory"
+ einfo "or edit the existant one."
+ einfo ""
+ einfo "create the xmodmap:"
+ einfo "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
+ einfo ""
+ einfo "adding keycodes to an existing xmodmap:"
+ einfo "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
+}
+
+pkg_postrm() {
+ if use python; then
+ python_mod_cleanup "${ROOT}/usr/lib/python*/site-packages/g15daemon"
+ fi
+} \ No newline at end of file