a7f9a3ae15c1b7fb9527b63190c02d9a69cf1e9d
[vuplus_openembedded] / nylon / nylon-scripts_cvs.oe
1 DESCRIPTION = "This package provides the nylon specific init and configuration scripts."
2 HOMEPAGE = "http://meshcube.org/meshwiki/NyLon"
3 DEPENDS = "hostap-utils"
4 SECTION = "base"
5 PRIORITY = "optional"
6 MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
7 LICENSE = "GPLv2"
8 PR = "r1"
9
10 SRC_URI = "svn://meshcube.org/svn/scripts;module=${PN}"
11 S = "${WORKDIR}/${PN}"
12
13 do_install() {
14         (cd ${S}; tar -c --exclude .svn -f - . ) | tar -C ${D} -xpf -
15 }
16
17 pkg_postinst() {
18 #!/bin/sh
19 update-rc.d hostap defaults 15
20 update-rc.d ipaliases defaults 16
21 update-rc.d firewall defaults 20
22 update-rc.d routing defaults 20
23 update-rc.d dummydate start 50 S . stop 50 0 6 .
24 update-rc.d emergency-ip defaults 99
25 }
26
27 pkg_postrm() {
28 #!/bin/sh -e
29 update-rc.d ipaliases remove
30 update-rc.d firewall remove
31 update-rc.d hostap remove
32 update-rc.d routing remove
33 update-rc.d dummydate remove
34 update-rc.d emergency-ip remove
35 }
36
37 CONFFILES_${PN} = "/etc/nylon/configip.conf /etc/nylon/hostap.conf /etc/nylon/interfaces.conf /etc/nylon/macfilter.list /etc/nylon/route.list"