diff options
-rw-r--r-- | sys-apps/reiserfs-utils/files/digest-reiserfs-utils-3.6.25-r5 | 1 | ||||
-rw-r--r-- | sys-libs/gpm/files/digest-gpm-1.19.3-r3 | 2 | ||||
-rwxr-xr-x | sys-libs/gpm/files/gpm-1.19.3-r3 | 30 | ||||
-rwxr-xr-x | sys-libs/gpm/files/gpm-run-1.19.3-r3 | 7 | ||||
-rwxr-xr-x | sys-libs/gpm/files/svc-gpm-1.19.3-r3 | 30 | ||||
-rw-r--r-- | sys-libs/gpm/gpm-1.19.3-r3.ebuild | 65 |
6 files changed, 135 insertions, 0 deletions
diff --git a/sys-apps/reiserfs-utils/files/digest-reiserfs-utils-3.6.25-r5 b/sys-apps/reiserfs-utils/files/digest-reiserfs-utils-3.6.25-r5 new file mode 100644 index 000000000000..76ec362bf324 --- /dev/null +++ b/sys-apps/reiserfs-utils/files/digest-reiserfs-utils-3.6.25-r5 @@ -0,0 +1 @@ +MD5 48e4c6c7ea0b7a4199e9c3310bbf19ce reiserfsprogs-3.x.0j.tar.gz diff --git a/sys-libs/gpm/files/digest-gpm-1.19.3-r3 b/sys-libs/gpm/files/digest-gpm-1.19.3-r3 new file mode 100644 index 000000000000..77933740e92e --- /dev/null +++ b/sys-libs/gpm/files/digest-gpm-1.19.3-r3 @@ -0,0 +1,2 @@ +MD5 dbfc33e0d52d008eeec1c8f93885e3f9 gpm-1.19.3.tar.gz +MD5 69337348611578f680dc8e2224296878 devfs.patch diff --git a/sys-libs/gpm/files/gpm-1.19.3-r3 b/sys-libs/gpm/files/gpm-1.19.3-r3 new file mode 100755 index 000000000000..518af1c6f123 --- /dev/null +++ b/sys-libs/gpm/files/gpm-1.19.3-r3 @@ -0,0 +1,30 @@ +#!/bin/sh +#RCUPDATE:2 3 4:80:This line is required for script management + +. /etc/rc.d/config/functions +. /etc/rc.d/config/basic + +SERVICE="GPM" +opts="start stop restart" + +PIDFILE=/var/run/gpm.pid +EXE=/usr/sbin/gpm + +start() { + ebegin "Starting $SERVICE" + start-stop-daemon --start --quiet --exec "$EXE -t $MOUSE" + eend $? "Started $SERVICE." "Error starting $SERVICE." +} + +stop() { + ebegin "Stopping $SERVICE" + start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $EXE -t $MOUSE + eend $? "Stopped $SERVICE." "Error stopping $SERVICE." +} + +restart() { + stop + start +} + +doservice ${@} diff --git a/sys-libs/gpm/files/gpm-run-1.19.3-r3 b/sys-libs/gpm/files/gpm-run-1.19.3-r3 new file mode 100755 index 000000000000..ca5e87e11dac --- /dev/null +++ b/sys-libs/gpm/files/gpm-run-1.19.3-r3 @@ -0,0 +1,7 @@ +#!/bin/sh +if [ ! -e /var/run/gpm.pid ] +then + /usr/sbin/gpm + sleep 2 +fi +exec envuidgid daemon /usr/bin/watchpid `cat /var/run/gpm.pid` diff --git a/sys-libs/gpm/files/svc-gpm-1.19.3-r3 b/sys-libs/gpm/files/svc-gpm-1.19.3-r3 new file mode 100755 index 000000000000..5918c37469f9 --- /dev/null +++ b/sys-libs/gpm/files/svc-gpm-1.19.3-r3 @@ -0,0 +1,30 @@ +#!/bin/sh +#RCUPDATE:2 3 4:80:This line is required for script management + +. /etc/rc.d/config/functions + +SERVICE="gpm" +opts="start stop" + +start() { + ebegin "Starting $SERVICE" + ln -sf ../services/${SERVICE} ${SVCDIR}/control/${SERVICE} + eend $? +} + +stop() { + ebegin "Stopping $SERVICE" + if [ -e ${SVCDIR}/control/${SERVICE} ] + then + /usr/bin/svc -dx ${SVCDIR}/control/${SERVICE} + rm ${SVCDIR}/control/${SERVICE} + fi + eend $? +} + +doservice ${@} + + + + + diff --git a/sys-libs/gpm/gpm-1.19.3-r3.ebuild b/sys-libs/gpm/gpm-1.19.3-r3.ebuild new file mode 100644 index 000000000000..5877c65de407 --- /dev/null +++ b/sys-libs/gpm/gpm-1.19.3-r3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-libs/gpm/gpm-1.19.3-r3.ebuild,v 1.1 2001/05/22 15:19:05 pete Exp $ + +#P= +A="${P}.tar.gz devfs.patch" +S=${WORKDIR}/${P} +DESCRIPTION="Console-based mouse driver" +SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/mouse/${A} + ftp://ftp.prosa.it/pub/gpm/patches/devfs.patch" + +DEPEND="virtual/glibc + >=sys-libs/ncurses-5.2 + tex? ( app-text/tetex )" + +RDEPEND="virtual/glibc" + +src_unpack() { + + unpack ${P}.tar.gz + cd ${S} + cp ${FILESDIR}/gpmInt.h . + patch -p1 < ${DISTDIR}/devfs.patch + +} + +src_compile() { + + try ./configure --prefix=/usr --sysconfdir=/etc/gpm + # without-curses is required to avoid cyclic dependencies to ncurses + cp Makefile Makefile.orig + if [ -z "`use tex`" ] + then + sed -e "s/doc//" Makefile.orig > Makefile + fi + try make ${MAKEOPTS} +} + +src_install() { + + try make prefix=${D}/usr install + + chmod 755 ${D}/usr/lib/libgpm.so.1.18.0 + + dodoc Announce COPYING ChangeLog FAQ MANIFEST README.* + docinto txt + dodoc doc/gpmdoc.txt + + if [ "`use tex`" ] + then + docinto ps + dodoc doc/*.ps + fi + + insinto /etc/gpm + doins gpm-root.conf + + exeinto /etc/rc.d/init.d + newexe ${FILESDIR}/${PN}-${PVR} ${PN} + newexe ${FILESDIR}/svc-${PN}-${PVR} svc-${PN} + exeinto /var/lib/supervise/services/${PN} + newexe ${FILESDIR}/${PN}-run-${PVR} run + +} |