First pass of .oe cleanups.
[openembedded.git] / netbase / netbase_4.16.oe
1 PR = "r1"
2
3 SRC_URI = ${DEBIAN_MIRROR}/main/n/${PN}/${PN}_${PV}.tar.gz
4
5 do_install () {
6         install -d ${D}/etc/init.d ${D}/${sbindir} ${D}/${mandir}/man8
7         install -m 0644 ${FILESDIR}/init ${D}/etc/init.d/networking
8         install -m 0644 etc-rpc ${D}/etc/rpc
9         install -m 0644 etc-protocols ${D}/etc/protocols
10         install -m 0644 etc-services ${D}/etc/services
11         install -m 0755 update-inetd ${D}/${sbindir}/
12         install -m 0644 update-inetd.8 ${D}/${mandir}/man8/
13 }
14
15 pkg_postinst () {
16         if test -n "$D"; then
17                 D="-r $D"
18         fi
19         update-rc.d $D networking start 40 S . stop 40 0 6 1 .
20 }
21
22 pkg_prerm () {
23         if test -n "$D"; then
24                 D="-r $D"
25         fi
26         update-rc.d $D networking remove
27 }