Commit 3db20b93 authored by Eric Bélanger's avatar Eric Bélanger
Browse files

Remove initscripts support

parent ed59f93c
......@@ -2,20 +2,17 @@
pkgname=gpm
pkgver=1.20.7
pkgrel=1
pkgrel=2
pkgdesc="A mouse server for the console and xterm"
arch=('i686' 'x86_64')
url="http://www.nico.schottelius.org/software/gpm/"
license=('GPL')
depends=('ncurses' 'bash')
backup=('etc/conf.d/gpm')
options=('!makeflags')
install=gpm.install
source=(http://www.nico.schottelius.org/software/gpm/archives/${pkgname}-${pkgver}.tar.lzma \
gpm gpm.conf.d gpm.sh gpm.service)
gpm.sh gpm.service)
sha1sums=('8d9f3655c80ce7667d31ede2a100b44986480369'
'19e1feb1493373512a77801699df012d186336ea'
'4c31cb7dd51cee4d16d3f7a8956e6d87fac1ad86'
'88fe5ff10916c68a87abc8418a56eb0073f69fa9'
'20b92360f0ad38a2032fcae37bdbd01b31e43f77')
......@@ -29,8 +26,6 @@ build() {
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -D -m755 ../gpm "${pkgdir}/etc/rc.d/gpm"
install -D -m644 ../gpm.conf.d "${pkgdir}/etc/conf.d/gpm"
install -D -m755 ../gpm.sh "${pkgdir}/etc/profile.d/gpm.sh"
install -D -m644 ../gpm.service "${pkgdir}/usr/lib/systemd/system/gpm.service"
......
#!/bin/bash
# source application-specific settings
GPM_ARGS=
[ -f /etc/conf.d/gpm ] && . /etc/conf.d/gpm
. /etc/rc.conf
. /etc/rc.d/functions
PID=$(pidof -o %PPID /usr/sbin/gpm)
case "$1" in
start)
stat_busy "Starting GPM Daemon"
[ -z "$PID" ] && /usr/sbin/gpm ${GPM_ARGS}
PID=$(pidof -o %PPID /usr/sbin/gpm)
if [ -z "$PID" ]; then
stat_fail
else
add_daemon gpm
stat_done
fi
;;
stop)
stat_busy "Stopping GPM Daemon"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon gpm
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
#
# Parameters to be passed to gpm
#
GPM_ARGS="-m /dev/input/mice -t imps2"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment