diff options
| author | Khem Raj <raj.khem@gmail.com> | 2017-03-06 13:14:15 -0800 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-04-06 13:00:09 +0200 |
| commit | 10e27be99770a0f071ae4b8560de65e501f6bd09 (patch) | |
| tree | c251de32731e6d06cc97bfbecb9d5bb28bd9e342 /meta-oe/recipes-support/gpm/gpm_git.bb | |
| parent | cdb428e7c49899675ee7b7a43f6cecdb5b4c2546 (diff) | |
| download | meta-openembedded-10e27be99770a0f071ae4b8560de65e501f6bd09.tar.gz | |
gpm: Update to use git src uri
Additional patches are upstream to fix build with gcc6 and clang
Add systemd unit file
Create missing symlink for dev shared object
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/gpm/gpm_git.bb')
| -rw-r--r-- | meta-oe/recipes-support/gpm/gpm_git.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/gpm/gpm_git.bb b/meta-oe/recipes-support/gpm/gpm_git.bb new file mode 100644 index 0000000000..69f12d9b89 --- /dev/null +++ b/meta-oe/recipes-support/gpm/gpm_git.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 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 \ | ||
| 15 | file://no-docs.patch \ | ||
| 16 | file://processcreds.patch \ | ||
| 17 | file://gpm.service.in \ | ||
| 18 | file://init" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/git" | ||
| 21 | |||
| 22 | inherit autotools-brokensep update-rc.d systemd | ||
| 23 | |||
| 24 | INITSCRIPT_NAME = "gpm" | ||
| 25 | INITSCRIPT_PARAMS = "defaults" | ||
| 26 | |||
| 27 | do_configure_prepend() { | ||
| 28 | (cd ${S};./autogen.sh;cd -) | ||
| 29 | } | ||
| 30 | |||
| 31 | do_install_append () { | ||
| 32 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 33 | install -d ${D}${systemd_system_unitdir} | ||
| 34 | sed 's:@bindir@:${bindir}:' < ${WORKDIR}/gpm.service.in >${D}${systemd_system_unitdir}/gpm.service | ||
| 35 | fi | ||
| 36 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | ||
| 37 | install -D -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/gpm | ||
| 38 | fi | ||
| 39 | install -D -m 0644 ${S}/src/headers/gpm.h ${D}${includedir}/gpm.h | ||
| 40 | ln -s libgpm.so.2 ${D}${libdir}/libgpm.so | ||
| 41 | } | ||
| 42 | |||
| 43 | SYSTEMD_SERVICE_${PN} = "gpm.service" | ||
| 44 | |||
| 45 | FILES_${PN} += "${datadir}/emacs" | ||
