summaryrefslogtreecommitdiff
path: root/recipes/makedevs/makedevs_1.0.0.bb
blob: cab1a4c1e5276950ef72eab756627926ffcba37e (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
DESCRIPTION = "A tool to make device nodes"
LICENSE = "GPL"
SECTION = "base"
PRIORITY = "required"

SRC_URI = "file://makedevs.c"
S = "${WORKDIR}/makedevs-${PV}"

PR = "r8"

inherit update-alternatives

do_configure() {
	install -m 0644 ${WORKDIR}/makedevs.c ${S}/
}

do_compile() {
	${CC} ${CFLAGS} ${LDFLAGS} -o ${S}/makedevs ${S}/makedevs.c
}

do_install() {
	install -d ${D}${base_sbindir}
	install -m 0755 ${S}/makedevs ${D}${base_sbindir}/makedevs.makedevs
}

ALTERNATIVE_PATH = "${base_sbindir}/makedevs.makedevs"
ALTERNATIVE_NAME = "makedevs"
ALTERNATIVE_LINK = "${base_sbindir}/makedevs"
ALTERNATIVE_PRIORITY = "50"