summaryrefslogtreecommitdiff
path: root/packages/opie-networksettings/opie-networksettings_cvs.bb
blob: 1ae67f461f3c680861cf1da1cca29603aca31ea4 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
DESCRIPTION = "Opie Network Settings"
SECTION = "opie/settings"
PRIORITY = "optional"
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
LICENSE = "GPL"
PROVIDES = "opie-networksettings-pppplugin opie-networksettings-wlanplugin"
PV = "1.1.8+cvs-${CVSDATE}"
PR = "r1"
APPNAME = "networksettings"

SRC_URI = "${HANDHELDS_CVS};module=opie/noncore/settings/networksettings \
           ${HANDHELDS_CVS};module=opie/pics \
           ${HANDHELDS_CVS};module=opie/apps \
	   ${HANDHELDS_CVS};module=opie/root"
S = "${WORKDIR}/${APPNAME}"

inherit opie

PARALLEL_MAKE = ""

EXTRA_QMAKEVARS_POST += "LIBS+=-L${S}"

do_stage() {
	oe_libinstall -so libinterfaces ${STAGING_LIBDIR}
	install -d ${STAGING_INCDIR}/interfaces/
	install -m 0644 interfaces/*.h ${STAGING_INCDIR}/interfaces/
}

do_install() {
	# Create dir for changedns and the opie-kppp peer
	install -d ${D}/${bindir}/
	install -d ${D}/${sysconfdir}/
	install -d ${D}/${sysconfdir}/ppp/
	install -d ${D}/${sysconfdir}/ppp/peers/
	
	install -d ${D}/${palmtopdir}/pics/${APPNAME}/
	install -d ${D}/${palmtopdir}/pics/Network/
	install -m 0644 ${WORKDIR}/pics/${APPNAME}/*.* ${D}${palmtopdir}/pics/${APPNAME}/
	install -m 0644 ${WORKDIR}/pics/Network/*.* ${D}${palmtopdir}/pics/Network/
	install -d ${D}/${palmtopdir}/lib/
	oe_libinstall -so libinterfaces ${D}${palmtopdir}/lib
	install -d ${D}/${palmtopdir}/plugins/networksettings/
	for plugin in kppp wlan
	do
		install lib$plugin.so ${D}/${palmtopdir}/plugins/networksettings/
	done

	# install changedns script
	install -m 0755 ${WORKDIR}/root/usr/bin/changedns ${D}${bindir}/
	install -m 0644 ${WORKDIR}/root/etc/ppp/peers/opie-kppp ${D}${sysconfdir}/ppp/peers
}

PACKAGES =+ "opie-networksettings-pppplugin opie-networksettings-wlanplugin"
FILES_${PN} += " ${bindir}/changedns "
FILES_opie-networksettings-pppplugin = "${palmtopdir}/plugins/networksettings/libkppp.so ${sysconfdir}/ppp/peers/opie-kppp"
FILES_opie-networksettings-wlanplugin = "${palmtopdir}/plugins/networksettings/libwlan.so"