Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | DESCRIPTION = "GPM (General Purpose Mouse) is a mouse server \ |
| 2 | for the console and xterm, with sample clients included \ |
| 3 | (emacs, etc)." |
| 4 | SECTION = "console/utils" |
| 5 | LICENSE = "GPLv2+" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760" |
| 7 | |
| 8 | PV = "1.99.7+git${SRCREV}" |
| 9 | PR = "r2" |
| 10 | SRCREV = "1fd19417b8a4dd9945347e98dfa97e4cfd798d77" |
| 11 | |
| 12 | DEPENDS = "ncurses" |
| 13 | |
| 14 | SRC_URI = "git://github.com/telmich/gpm;protocol=git \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 15 | file://init \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 16 | file://no-docs.patch \ |
| 17 | file://processcreds.patch \ |
| 18 | file://gpm.service.in \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | file://0001-Use-sigemptyset-API-instead-of-__sigemptyset.patch \ |
| 20 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | |
| 22 | S = "${WORKDIR}/git" |
| 23 | |
| 24 | inherit autotools-brokensep update-rc.d systemd |
| 25 | |
| 26 | INITSCRIPT_NAME = "gpm" |
| 27 | INITSCRIPT_PARAMS = "defaults" |
| 28 | |
| 29 | do_configure_prepend() { |
| 30 | (cd ${S};./autogen.sh;cd -) |
| 31 | } |
| 32 | |
| 33 | do_install_append () { |
| 34 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 35 | install -d ${D}${systemd_system_unitdir} |
| 36 | sed 's:@bindir@:${bindir}:' < ${WORKDIR}/gpm.service.in >${D}${systemd_system_unitdir}/gpm.service |
| 37 | fi |
| 38 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 39 | install -D -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/gpm |
| 40 | fi |
| 41 | install -D -m 0644 ${S}/src/headers/gpm.h ${D}${includedir}/gpm.h |
| 42 | ln -s libgpm.so.2 ${D}${libdir}/libgpm.so |
| 43 | } |
| 44 | |
| 45 | SYSTEMD_SERVICE_${PN} = "gpm.service" |
| 46 | |
| 47 | FILES_${PN} += "${datadir}/emacs" |