blob: 15cd8a0447a417609c740d6fce988ebdd38a40f5 (
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
58
59
60
61
62
63
64
65
|
name: base-files
kind: chunk
# "export -n" is not supported
pre-configure-commands:
- sed -i "s/export -n/export/" package/base-files/files/lib/functions/preinit.sh
install-commands:
- cp -r package/base-files/files/* "$DESTDIR"/
- install package/system/procd/files/hotplug.json "$DESTDIR"/etc/
- install package/system/procd/files/hotplug-preinit.json "$DESTDIR"/etc/
- install package/system/procd/files/reload_config "$DESTDIR"/sbin/
- install package/system/procd/files/procd.sh "$DESTDIR"/lib/functions/
- install -d $DESTDIR/etc/init.d
- install -d $DESTDIR/etc/rc.d
- install -d $DESTDIR/etc/config
- cp -r package/network/config/netifd/files/* "$DESTDIR"/
- install package/system/ubox/files/log.init "$DESTDIR"/etc/init.d/log
- cp -r package/system/uci/files/* "$DESTDIR"/
- install package/network/services/odhcpd/files/odhcpd.init "$DESTDIR"/etc/init.d/odhcpd
- install package/network/services/dnsmasq/files/dnsmasq.init "$DESTDIR"/etc/init.d/dnsmasq
- install package/network/services/dropbear/files/dropbear.init "$DESTDIR"/etc/init.d/dropbear
- install package/network/services/uhttpd/files/uhttpd.init "$DESTDIR"/etc/init.d/uhttpd
- install package/system/rpcd/files/rpcd.init "$DESTDIR"/etc/init.d/rpcd
- install package/system/mountd/files/mountd.init "$DESTDIR"/etc/init.d/mountd
- install package/network/config/firewall/files/firewall.init "$DESTDIR"/etc/init.d/firewall
- install package/network/services/ppp/files/lib/netifd/* "$DESTDIR"/lib/netifd
- install package/network/services/hostapd/files/netifd.sh "$DESTDIR"/lib/netifd/hostapd.sh
- install -d $DESTDIR/etc/ppp
- cp -r package/network/services/ppp/files/etc/ppp/* "$DESTDIR"/etc/ppp
- install package/network/services/dnsmasq/files/dhcp.conf "$DESTDIR"/etc/config/dhcp
- install package/network/services/dropbear/files/dropbear.config "$DESTDIR"/etc/config/dropbear
- install package/network/config/firewall/files/firewall.config "$DESTDIR"/etc/config/firewall
- sed -i "s/^#\toption ubus/\toption ubus/" package/network/services/uhttpd/files/uhttpd.config
- install package/network/services/uhttpd/files/uhttpd.config "$DESTDIR"/etc/config/uhttpd
- install package/system/rpcd/files/rpcd.config "$DESTDIR"/etc/config/rpcd
post-install-commands:
- |
for FILE in "$DESTDIR"/etc/init.d/* ; do
IPKG_INSTROOT="$DESTDIR" bash "$DESTDIR"/etc/rc.common "$FILE" enable
done
# Note that this svn version needs manually updating
echo "r46115" > version
cat <<EOF > makefile
SED=/bin/sed -i -e
include \$(TOPDIR)/include/toplevel.mk
include \$(TOPDIR)/include/version.mk
version_info:
XXXX\$(VERSION_SED) \$(DESTDIR)/etc/banner
XXXX\$(VERSION_SED) \$(DESTDIR)/etc/openwrt_version
XXXX\$(VERSION_SED_SCRIPT) \$(DESTDIR)/etc/openwrt_release
XXXX\$(VERSION_SED_SCRIPT) \$(DESTDIR)/etc/device_info
EOF
# Work round limitations of YAML here files
sed -i -e 's/^ //' -e 's/XXXX/\t/' makefile
TOPDIR=`pwd` FORCE=1 make DESTDIR="$DESTDIR" -f makefile version_info
|