aboutsummaryrefslogtreecommitdiff
path: root/recipes/ppp-dsl/ppp-dsl_0.1.bb
blob: 92e18b533465a5b02cc8bff94c7890ee71fa8362 (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
SECTION = "console/network"
DESCRIPTION = "Enables PPP dial-in through a DSL connection"
LICENSE = "PD"
DEPENDS = "ppp rp-pppoe"
RDEPENDS_${PN} = "ppp rp-pppoe"
RRECOMMENDS_${PN} = "kernel-module-ppp-async kernel-module-ppp-generic kernel-module-slhc"
PR = "r6"

SRC_URI = "file://dsl-provider \
	file://ppp_on_boot.dsl"

do_install() {
	install -d ${D}${sysconfdir}/ppp/peers
	install -m 0644 ${WORKDIR}/dsl-provider ${D}${sysconfdir}/ppp/peers/
	install -m 0755 ${WORKDIR}/ppp_on_boot.dsl ${D}${sysconfdir}/ppp/
}

pkg_postinst() {
if test "x$D" != "x"; then
	exit 1
else
	if ! test -e ${sysconfdir}/ppp/ppp_on_boot; then
		ln -s ppp_on_boot.dsl ${sysconfdir}/ppp/ppp_on_boot
	fi
fi
}

PACKAGE_ARCH = "all"

CONFFILES_${PN} = "${sysconfdir}/ppp/peers/dsl-provider"