blob: 6ea0346e6ec4675bb4b5da3c98f1b46f2ae5754e (
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
|
DESCRIPTION = "Debian's start-stop-daemon utility"
SECTION = "base"
PRIORITY = "optional"
LICENSE = "PD"
PR = "r1"
SRC_URI = "file://start-stop-daemon.c"
S = "${WORKDIR}"
do_configure() {
:
}
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/start-stop-daemon.c -o start-stop-daemon
}
do_install () {
install -d ${D}/${base_sbindir}
install -m 0755 ${S}/start-stop-daemon ${D}/${base_sbindir}/start-stop-daemon.${PN}
}
pkg_postinst_${PN} () {
update-alternatives --install ${base_sbindir}/start-stop-daemon start-stop-daemon start-stop-daemon.${PN} 100
}
pkg_prerm_${PN} () {
update-alternatives --remove start-stop-daemon start-stop-daemon.${PN}
}
|