Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-cloud / recipes-support / puppet / puppet-dnsmasq_git.bb
1
2 DESCRIPTION = "puppet module for dnsmasq"
3
4 LICENSE = "Apache-2.0"
5 LIC_FILES_CHKSUM = "file://README.md;md5=71e3bfa9ffc5e93324727bbffae917f5"
6
7 PV = "1.1.0"
8 STABLE = "master"
9 PROTOCOL = "https"
10 BRANCH = "master"
11 SRCREV = "cff07e90890662972c97684a2baee964f68ff3ed"
12 S = "${WORKDIR}/git"
13
14 SRC_URI = "git://github.com/netmanagers/puppet-dnsmasq;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH} \
15         file://${PN}/Add-gemspec.patch \
16         file://${PN}/metadata.json.patch \
17         "
18 inherit ruby
19
20 DEPENDS += " \
21         ruby \
22         facter \
23         "
24
25 RDEPENDS_${PN} += " \
26         ruby \
27         facter \
28         puppet \
29         perl \
30         "
31
32 RUBY_INSTALL_GEMS = "${PN}-${PV}.gem"
33
34 do_install_append () {
35         install -d -m 0755 ${D}/${datadir}/puppet/modules/dnsmasq
36         tar -C ${S} -cf - --exclude "patches" --exclude "*.gem*" . | tar --no-same-owner -xf - -C ${D}/${datadir}/puppet/modules/dnsmasq/
37 }
38
39 FILES_${PN} += " ${datadir}"