summaryrefslogtreecommitdiff
path: root/recipes-navigation/gpsd/gpsd-test_1.0.bb
blob: 7753bccff9f2463e073c1b222405ecf5c9e15dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
DESCRIPTION = "gpsd reboot testing"
SECTION = "base"
PRIORITY = "optional"
LICENSE = "GPLv2+"
PR = "r1"
inherit allarch
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
FILESEXTRAPATHS_prepend = "${THISDIR}/test:"
SRC_URI = " \
    file://gpsd-test-1.0.tar.gz \
    "

FILES_${PN} = "*"
    
RDEPENDS_${PN} = "bash"

do_install() {
    echo "Directory is ${D}"
    cp -a * ${D}
    cd ${D}
    chown -R root:root *
    chmod 755 ${prefix}/local/bin/*
    chmod 755 ${sysconfdir}/rc5.d/*
}

pkg_postinst_${PN}() {
    if [ -z "$D" ] ; then
        touch /var/config/reboot    
    fi
}


pkg_prerm_${PN}() {
    if [ -z "$D" ] ; then
        rm /var/config/reboot    
    fi
}