xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Enables PPP dial-in through a serial connection"
2*4882a593SmuzhiyunSECTION = "console/network"
3*4882a593SmuzhiyunDESCRIPTION = "PPP dail-in provides a point to point protocol (PPP), so that other computers can dial up to it and access connected networks."
4*4882a593SmuzhiyunDEPENDS = "ppp"
5*4882a593SmuzhiyunRDEPENDS:${PN} = "ppp"
6*4882a593SmuzhiyunPR = "r8"
7*4882a593SmuzhiyunLICENSE = "MIT"
8*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunSRC_URI = "file://host-peer \
11*4882a593Smuzhiyun           file://ppp-dialin"
12*4882a593Smuzhiyun
13*4882a593Smuzhiyuninherit allarch useradd
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunS = "${WORKDIR}"
16*4882a593Smuzhiyun
17*4882a593Smuzhiyundo_install() {
18*4882a593Smuzhiyun	install -d ${D}${sysconfdir}/ppp/peers
19*4882a593Smuzhiyun	install -m 0644 ${WORKDIR}/host-peer ${D}${sysconfdir}/ppp/peers/host
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun	install -d ${D}${sbindir}
22*4882a593Smuzhiyun	install -m 0755 ${WORKDIR}/ppp-dialin ${D}${sbindir}
23*4882a593Smuzhiyun}
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunUSERADD_PACKAGES = "${PN}"
26*4882a593SmuzhiyunUSERADD_PARAM:${PN} = "--system --home /dev/null \
27*4882a593Smuzhiyun                       --no-create-home --shell ${sbindir}/ppp-dialin \
28*4882a593Smuzhiyun                       --no-user-group --gid nogroup ppp"
29