diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2008-09-08 11:44:03 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2008-09-08 11:44:03 +0000 |
commit | c941cd77d66426f2ce269e11e89e7b04f9a452d5 (patch) | |
tree | 4cee8db5610a336678626be64bd0ac2dcd284df3 /app-misc | |
parent | remove old (diff) | |
download | historical-c941cd77d66426f2ce269e11e89e7b04f9a452d5.tar.gz historical-c941cd77d66426f2ce269e11e89e7b04f9a452d5.tar.bz2 historical-c941cd77d66426f2ce269e11e89e7b04f9a452d5.zip |
Hotplug support by Tais M. Hansen <tais.hansen@osd.dk>, closes bug #236422.
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.27-rc5-00131-g5f17cfc-dirty x86_64
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/g15daemon/ChangeLog | 9 | ||||
-rw-r--r-- | app-misc/g15daemon/Manifest | 11 | ||||
-rw-r--r-- | app-misc/g15daemon/files/99-g15daemon.rules | 1 | ||||
-rw-r--r-- | app-misc/g15daemon/files/g15daemon-hotplug | 13 | ||||
-rw-r--r-- | app-misc/g15daemon/g15daemon-1.9.5.3-r1.ebuild | 136 |
5 files changed, 165 insertions, 5 deletions
diff --git a/app-misc/g15daemon/ChangeLog b/app-misc/g15daemon/ChangeLog index aa6b569b57af..9d00a2266acc 100644 --- a/app-misc/g15daemon/ChangeLog +++ b/app-misc/g15daemon/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-misc/g15daemon # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v 1.21 2008/05/29 15:41:32 hawking Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v 1.22 2008/09/08 11:44:02 chainsaw Exp $ + +*g15daemon-1.9.5.3-r1 (08 Sep 2008) + + 08 Sep 2008; <chainsaw@gentoo.org> +files/99-g15daemon.rules, + +files/g15daemon-hotplug, +g15daemon-1.9.5.3-r1.ebuild: + Hotplug support by Tais M. Hansen <tais.hansen@osd.dk>, closes bug + #236422. 29 May 2008; Ali Polatel <hawking@gentoo.org> g15daemon-1.2.6a-r1.ebuild, g15daemon-1.2.7.ebuild, g15daemon-1.2.7-r1.ebuild, diff --git a/app-misc/g15daemon/Manifest b/app-misc/g15daemon/Manifest index a69105e7915a..1ca582b66c3c 100644 --- a/app-misc/g15daemon/Manifest +++ b/app-misc/g15daemon/Manifest @@ -1,12 +1,14 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX 99-g15daemon.rules 90 RMD160 35df4086850c7170227e472cc82d7db0d0e2d23b SHA1 fff177b525ba9e7882cc01ae61091c483a3863c1 SHA256 dab916b3cb839bb55f4b6f599f83de2c4dbdd87005394f737dc59ab4df7d4e84 AUX g15daemon-1.2.6a.confd 236 RMD160 8bd008853963292dcb63c3685ba39a8265fb8255 SHA1 3b315e7a12eb7375724f48f943862acc69963e57 SHA256 b5353ac723b8fc3184eaca3db84ced1904e89b43b448ee9713e2b1b9cffd7d01 AUX g15daemon-1.2.6a.initd 1002 RMD160 5b30c2a2976fb42ae2d7b57caa89f86dbf52ca3f SHA1 1796fc22d68cd9c99a4ca9c4623403dc33e8762e SHA256 99270b912a1c0de2e707cd304216bf0388b2d7a8f3838a38e5491c9919883380 AUX g15daemon-1.2.7-r1.initd 1159 RMD160 5116a84063c793310850cc62a6658bab0bc8cbf2 SHA1 37227d55924ce139c21aeb74139710562caef922 SHA256 17d6d4c3db13c45e9ee71cf8dda763acabe67fe3e02731c0aa33dbb48506b34a AUX g15daemon-1.2.7-r2.initd 1107 RMD160 33a13cbbdf3701b6e81fb39dfad5f6ee3318d1bc SHA1 7832d5da216f59b42423d2f9583eb2b3356ae237 SHA256 37d29b422cdc680bd066d8b0dca874781396aded214cf080014454421c9bb26d AUX g15daemon-1.2.7.confd 329 RMD160 962088db694d25a6935de80299a45d94787ed251 SHA1 f452f915e6f903e4cdbbfc3db3e2e57ef702425f SHA256 a7977e03f0faaed85f659b077fddc3a589c2e2d4386df1e9afc89133c25bc613 AUX g15daemon-1.2.7.initd 1077 RMD160 33d59ace2b40f969962a47872a4b506bddca0795 SHA1 f339c92e50d69f888ee42f6acc86cfec39f4e49d SHA256 bed4adb30913a12268769d5e6abfe2a2b6e1b583d45f252dbc6aa86492f3ba30 +AUX g15daemon-hotplug 187 RMD160 df076cb3c47e976085e362fa1b6c7b1429857684 SHA1 61a1ddf817746e46e48c77186f145c59b5e3256f SHA256 694fcaa68b7de070a257c72b3d9b0736377bbf3102d41c9aadcb9b27d0efcdad DIST g15daemon-1.2.6a.tar.bz2 273767 RMD160 947441a1c89d1f45f02094a59735f488a76ce285 SHA1 473f3e0aee0122597c1e91cf54b18d3d6e28e8e9 SHA256 583c4bece816b712959aba51f49d78bb587e215fbb6a322efe832477c74f2564 DIST g15daemon-1.2.7.tar.bz2 275938 RMD160 e6490c9b3200c89cf88c574459eef7562a500161 SHA1 17ab942a389501c0b7b8a0ffdbf4397882d24daa SHA256 2f8cfa386c88e72dbb07c7112cbd943dbda4f56dd55d08a01c7bf9efd47d164f DIST g15daemon-1.9.0.tar.bz2 288639 RMD160 8695fadf63e84fb1e55067f32d2736f96665b6ab SHA1 1e74ea6f48732a4666ecb0e8da709da85971d65e SHA256 7a88bdb9464c6954a936efb8d1fc6bf2e7f90ce4e30ba2b982b7fdd1a9eb95e7 @@ -21,13 +23,14 @@ EBUILD g15daemon-1.9.0-r1.ebuild 3469 RMD160 d5227f61afd83bfb9d88b3d5e1e6a26dae6 EBUILD g15daemon-1.9.1.ebuild 3466 RMD160 06ace6ccd2bee01d220ac859d5517a139d747b56 SHA1 3accd8154c8506ed7777b2560ef88191eda9c2c4 SHA256 ec65cb872398f7ac898059b9935d92afcf0e1b099038f143e8646852bef6c103 EBUILD g15daemon-1.9.2.ebuild 3465 RMD160 10a137d277e56876158d6ad67d77acdf61e2a352 SHA1 42eedbcb38f5714329581db52dafae4e6aa1ce2f SHA256 923ecc95a79ac0efade0cef328b06644aaeb913f9cdb0377d5a1277a4078a5df EBUILD g15daemon-1.9.3.ebuild 3465 RMD160 ee0c94a836fc5535e8d6b0303a0b2910dbdcc238 SHA1 eb3ca6207f2c0cc74e9d8238d5a1e7c3e8144fb0 SHA256 bf6fbbc62cb2e07cbdf9e6dd83f49733825918a2e17e9ca53a8bb5749f6adad2 +EBUILD g15daemon-1.9.5.3-r1.ebuild 3577 RMD160 a6a44c503b495534d44cefc1312408df30a7d1e8 SHA1 d0e8c021dee6ffdbdaef6e375354295dadb4aaab SHA256 cc2df5ce17d66680845e3a8cc12055ded4343618d0c38422f3378a22306d569c EBUILD g15daemon-1.9.5.3.ebuild 3467 RMD160 fb712dce080e7b503a887373ffa6b681fb0f7fe1 SHA1 836d591f442031df402f35545dfde4d331e75dfb SHA256 d551ed858cd6d169b5a7f7cff7d21629c764dd38de98e15d3518669f17186dfe -MISC ChangeLog 4521 RMD160 12357670164da141da4140259e32cb5b91728753 SHA1 46d517d287aef7155a653177f7c4a4a77f95a489 SHA256 d1a614f5f78b8f065cea8199be9aef57e83ff922206a94d9d237588bfccf9d8a +MISC ChangeLog 4762 RMD160 689c2f9510482b07ada06d3a3e5c1fd3b5453132 SHA1 58b0964c3133825e3e1eafeeca6651f38ef7560d SHA256 0bec4a02bbb67baa95bdd6d62da471b4e636f21c1b174b4f1b84440c4461618a MISC metadata.xml 249 RMD160 3a959d6b2d70ee342ccdf4abcaa3107d6f2897ed SHA1 942405176c914e1682a8a0daa6c5b9d7b6a2a94d SHA256 5a7fbdf3050c5c4c8f1dc154e8c715162b71ef329ec3e59facb4965dea2c9a81 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) -iEYEARECAAYFAkg+zq8ACgkQQU4yORhF8iARIgCfRmATU2e4pvp6CLCfqvBwhcUx -+D4AoIj2pmldNKAtjhve/7LMhLw52SG8 -=Fvle +iEYEARECAAYFAkjFEAwACgkQp5vW4rUFj5qpIwCfbkn3C+J6kkST5eU0BQkDEUuN +KYsAmwcOal7eZDKM7NNMjUb/rXCS6+E2 +=gUrk -----END PGP SIGNATURE----- diff --git a/app-misc/g15daemon/files/99-g15daemon.rules b/app-misc/g15daemon/files/99-g15daemon.rules new file mode 100644 index 000000000000..d491d683684f --- /dev/null +++ b/app-misc/g15daemon/files/99-g15daemon.rules @@ -0,0 +1 @@ +SUBSYSTEM=="usb", ATTR{product}=="G15 Gaming Keyboard", RUN+="/usr/bin/g15daemon-hotplug" diff --git a/app-misc/g15daemon/files/g15daemon-hotplug b/app-misc/g15daemon/files/g15daemon-hotplug new file mode 100644 index 000000000000..1e20761a5a1c --- /dev/null +++ b/app-misc/g15daemon/files/g15daemon-hotplug @@ -0,0 +1,13 @@ +#!/bin/sh + +case "$ACTION" in + "add") + /etc/init.d/g15daemon restart + ;; + "remove") + /etc/init.d/g15daemon stop + ;; + *) + exit 0 + ;; +esac diff --git a/app-misc/g15daemon/g15daemon-1.9.5.3-r1.ebuild b/app-misc/g15daemon/g15daemon-1.9.5.3-r1.ebuild new file mode 100644 index 000000000000..578a5350be0d --- /dev/null +++ b/app-misc/g15daemon/g15daemon-1.9.5.3-r1.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.5.3-r1.ebuild,v 1.1 2008/09/08 11:44:02 chainsaw Exp $ + +inherit eutils linux-info perl-module python multilib + +DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver" +HOMEPAGE="http://g15daemon.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="perl python" + +DEPEND="dev-libs/libusb + >=dev-libs/libg15-1.2.4 + >=dev-libs/libg15render-1.2 + 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 +} + +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}" \ + docdir=/usr/share/doc/${PF} install || die "make install failed" + + # remove odd docs installed my make + rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage} + + insinto /usr/share/${PN}/contrib + doins contrib/xmodmaprc + doins contrib/xmodmap.sh + if use perl; then + doins contrib/testbindings.pl + fi + + newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN} + newinitd "${FILESDIR}/${PN}-1.2.7-r2.initd" ${PN} + dobin "${FILESDIR}/g15daemon-hotplug" + insinto /etc/udev/rules.d + doins "${FILESDIR}/99-g15daemon.rules" + + if use perl; then + ebegin "Installing Perl Bindings (G15Daemon.pm)" + cd "${WORKDIR}/G15Daemon-0.2" + docinto perl + perl-module_src_install + fi + + if use python; then + ebegin "Installing Python Bindings (g15daemon.py)" + cd "${WORKDIR}/pyg15daemon" + python_version + + insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon + doins g15daemon.py + + docinto python + dodoc AUTHORS + fi + + prepalldocs +} + +pkg_postinst() { + if use python; then + python_version + python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon + echo "" + fi + + elog "To use g15daemon, you need to add g15daemon to the default runlevel." + elog "This can be done with:" + elog "# /sbin/rc-update add g15daemon default" + elog "You can edit some g15daemon options at /etc/conf.d/g15daemon" + elog "" + elog "To have all new keys working in X11, you'll need create a " + elog "specific xmodmap in your home directory or edit the existent one." + elog "" + elog "Create the xmodmap:" + elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap" + elog "" + elog "Adding keycodes to an existing xmodmap:" + elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap" +} + +pkg_postrm() { + if use python; then + python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon" + fi +} |