# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Johannes Findeisen # $Header: /home/cvsroot/gentoo-x86/x11-misc/ DESCRIPTION="NumLockX - A Tool to start X with NumLock on" HOMEPAGE="http://dforce.sh.cvut.cz/~seli/en/numlockx/" SRC_URI="http://dforce.sh.cvut.cz/~seli/en/numlockx/${P}.tar.gz" LICENSE="EDB" SLOT="0" S=${WORKDIR}/numlockx-${PV} DEPEND="virtual/glibc virtual/x11" src_compile() { ./configure \ --prefix=/usr/X11R6 \ --host=${CHOST} || die "./configure failed" emake || die } src_install () { into /usr/X11R6 dobin numlockx insopts -m 0755 dodoc AUTHORS INSTALL LICENSE README } pkg_postinst() { einfo einfo "If you use kdm ( xdm, whatever ... simply if X starts automatically )," einfo "add a line containing '/usr/X11R6/bin/numlockx on' somewhere in the" einfo "file: /etc/X11/xdm/Xsetup_0" einfo einfo "For people using startx, put that line somewhere at the beginning of" einfo "the file: /etc/X11/xinit/xinitrc" einfo einfo "In case you don't know if you use kdm,xdm etc. or startx, simply" einfo "modify both files." einfo }