1996bc45cSBrad BishopDESCRIPTION = "A small network printer daemon for embedded situations that passes the job directly to the printer"
2996bc45cSBrad BishopHOMEPAGE = "http://p910nd.sourceforge.net/"
3996bc45cSBrad BishopSECTION = "console/utils"
49aee5003SAndrew GeisslerLICENSE = "GPL-2.0-only"
5*028142bdSAndrew GeisslerLIC_FILES_CHKSUM = "file://LICENSE.md;md5=3d82780e8917b360cbee7b9ec3e40734"
6996bc45cSBrad Bishop
7996bc45cSBrad Bishop
8*028142bdSAndrew Geissler# v0.97
9*028142bdSAndrew GeisslerSRCREV = "57ebc07ad8723ea4106090536c58c7f7160743e2"
10*028142bdSAndrew GeisslerSRC_URI = "git://github.com/kenyapcomau/p910nd;protocol=https;branch=master \
11996bc45cSBrad Bishop           file://fix-var-lock.patch"
12996bc45cSBrad Bishop
13*028142bdSAndrew GeisslerS = "${WORKDIR}/git"
14*028142bdSAndrew Geissler
15*028142bdSAndrew Geisslerinherit update-rc.d
16*028142bdSAndrew Geissler
17*028142bdSAndrew GeisslerINITSCRIPT_NAME = "p910nd"
18*028142bdSAndrew GeisslerINITSCRIPT_PARAMS = "start 90 2 3 4 5 . stop 60 0 1 6 ."
19996bc45cSBrad Bishop
20996bc45cSBrad Bishopdo_compile () {
21*028142bdSAndrew Geissler    ${CC} ${CFLAGS} ${LDFLAGS} -o p910nd p910nd.c
22996bc45cSBrad Bishop}
23996bc45cSBrad Bishop
24996bc45cSBrad Bishopdo_install () {
25996bc45cSBrad Bishop    install -D -m 0755 ${S}/p910nd ${D}${sbindir}/p910nd
26*028142bdSAndrew Geissler    install -D -m 0644 ${S}/aux/p910nd.conf ${D}${sysconfdir}/sysconfig/p910nd.conf
27*028142bdSAndrew Geissler    install -D -m 0644 ${S}/aux/p910nd.init ${D}${sysconfdir}/init.d/p910nd
28996bc45cSBrad Bishop}
29