summaryrefslogtreecommitdiff
path: root/recipes/ppp/ppp-gprs_1.0.bb
blob: e016324b2962194a30acff604be309305031d81c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SECTION = "console/network"
DESCRIPTION = "PPP scripts for easy GPRS connection"
LICENSE = "GPL"
RDEPENDS_${PN} = "ppp"
PR = "r1"

SRC_URI = "file://peers/* file://chats/*"

do_install () {
        install -d ${D}${sysconfdir}/ppp/peers/
        install -d ${D}${sysconfdir}/ppp/chats/
        install -m 0644 ${WORKDIR}/peers/* ${D}${sysconfdir}/ppp/peers/
        install -m 0644 ${WORKDIR}/chats/* ${D}${sysconfdir}/ppp/chats/

	# Add links for providers sharing same well-known config
	ln -sf _gprs-ap-internet ${D}${sysconfdir}/ppp/peers/ua-life
}

PACKAGE_ARCH = "all"

# In worst case, user may need to edit anything
CONFFILES_${PN} = "${sysconfdir}/ppp/peers/_gprs ${sysconfdir}/ppp/chats/chat-gprs"