Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Chakra
Packages
core
Commits
e10262f0
Commit
e10262f0
authored
May 23, 2013
by
Manuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update and add systemd service
parent
dff7dba1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
62 deletions
+22
-62
gpm/PKGBUILD
gpm/PKGBUILD
+13
-17
gpm/gpm
gpm/gpm
+0
-41
gpm/gpm.conf.d
gpm/gpm.conf.d
+0
-4
gpm/gpm.service
gpm/gpm.service
+9
-0
No files found.
gpm/PKGBUILD
View file @
e10262f0
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname
=
gpm
pkgver
=
1.20.
6
pkgrel
=
7
pkgver
=
1.20.
7
pkgrel
=
1
pkgdesc
=
"A mouse server for the console and xterm"
arch
=(
'i686'
'x86_64'
)
url
=
"http://
unix
.schottelius.org/gpm/"
arch
=(
'x86_64'
)
url
=
"http://
www.nico
.schottelius.org/
software/
gpm/"
license
=(
'GPL'
)
depends
=(
'ncurses'
'bash'
)
backup
=(
'etc/conf.d/gpm'
)
depends
=(
'bash'
)
options
=(
'!makeflags'
)
install
=
gpm.install
source
=(
http://www.nico.schottelius.org/software/gpm/archives/
${
pkgname
}
-
${
pkgver
}
.tar.bz2
\
gpm gpm.conf.d gpm.sh
)
md5sums
=(
'6b534da16dc1b28ba828dea89e520f6f'
'945ecde0836687e05c13ea837092ea6c'
\
'63e599950946e5f5a649432510aacf4c'
'e391fe4599ce102615f9cd449c380d41'
)
sha1sums
=(
'f3bb9272878b7934968381c8b25edab359114150'
'19e1feb1493373512a77801699df012d186336ea'
\
'e483f893b4e6b9e1221a208527d728ffefe5438e'
'88fe5ff10916c68a87abc8418a56eb0073f69fa9'
)
source
=(
http://www.nico.schottelius.org/software/gpm/archives/
${
pkgname
}
-
${
pkgver
}
.tar.lzma
\
gpm.sh gpm.service
)
sha1sums
=(
'8d9f3655c80ce7667d31ede2a100b44986480369'
'88fe5ff10916c68a87abc8418a56eb0073f69fa9'
'f9bde96eb9c78da9f225bcf40822647f6592cf23'
)
build
()
{
cd
"
${
srcdir
}
/
${
pkgname
}
-
${
pkgver
}
"
./configure
--prefix
=
/usr
--sysconfdir
=
/etc
./autogen.sh
./configure
--prefix
=
/usr
--sysconfdir
=
/etc
--sbindir
=
/usr/bin
make
}
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"
# library fixes
cd
"
${
pkgdir
}
/usr/lib/"
ln
-s
libgpm.so.2.
*
libgpm.so
chmod
755
"
${
pkgdir
}
"
/usr/lib/libgpm.so.
*
...
...
gpm/gpm
deleted
100755 → 0
View file @
dff7dba1
#!/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
gpm/gpm.conf.d
deleted
100644 → 0
View file @
dff7dba1
#
#
Parameters
to
be
passed
to
gpm
#
GPM_ARGS
=
"-m /dev/input/mice"
gpm/gpm.service
0 → 100644
View file @
e10262f0
[Unit]
Description
=
Virtual console mouse server
[Service]
Type
=
forking
ExecStart
=
/usr/bin/gpm -m /dev/input/mice -t imps2
[Install]
WantedBy
=
multi-user.target
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment