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
|
{
"name": "busybox",
"kind": "chunk",
"configure-commands": [
"make defconfig",
"sed -e 's/.*FEATURE_PREFER_APPLETS.*/CONFIG_FEATURE_PREFER_APPLETS=y/' -i .config",
"sed -e 's/.*FEATURE_SH_STANDALONE.*/CONFIG_FEATURE_SH_STANDALONE=y/' -i .config",
"sed -e 's/^CONFIG_INETD=.*/# CONFIG_INETD is not set/' -i .config",
"sed -e 's/.*FEATURE_COMPRESS_USAGE=.*/CONFIG_FEATURE_COMPRESS_USAGE=y/' -i .config",
"sed -e 's/.*FEATURE_COMPRESS_USAGE=.*/CONFIG_FEATURE_COMPRESS_USAGE=y/' -i .config",
"sed -e 's/.*FEATURE_PREFER_APPLETS=.*/# CONFIG_FEATURE_PREFER_APPLETS is not set/' -i .config",
"sed -e 's/.*FEATURE_MOUNT_CIFS=.*/# CONFIG_FEATURE_MOUNT_CIFS is not set/' -i .config",
"sed -e 's|.*UDHCPC_DEFAULT_SCRIPT=.*|CONFIG_UDHCPC_DEFAULT_SCRIPT=\"'\"$PREFIX\"/share/udhcpc/default.script'\"|' -i .config",
"sed -e 's|.*IFUPDOWN_IFSTATE_PATH.*|CONFIG_IFUPDOWN_IFSTATE_PATH=\"/run/ifstate\"|' -i .config",
"[ \"$PREFIX\" = /usr ] || sed -e 's/.*INSTALL_NO_USR.*/CONFIG_INSTALL_NO_USR=y/' -i .config",
"sed -e 's/.*MODPROBE_SMALL=.*/# CONFIG_MODPROBE_SMALL is not set/' -i .config",
"sed -e 's/.*INSMOD=.*/CONFIG_INSMOD=y/' -i .config",
"sed -e 's/.*RMMOD=.*/CONFIG_RMMOD=y/' -i .config",
"sed -e 's/.*LSMOD=.*/CONFIG_LSMOD=y/' -i .config",
"sed -e 's/.*DEPMOD=.*/CONFIG_DEPMOD=y/' -i .config",
"sed -e 's/.*MODPROBE=.*/CONFIG_MODPROBE=y/' -i .config",
"sed -e 's/.*FEATURE_MODPROBE_BLACKLIST=.*/CONFIG_FEATURE_MODPROBE_BLACKLIST=y/' -i .config",
"sed -e 's/.*FEATURE_LSMOD_PRETTY_2_6_OUTPUT=.*/CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT=y/' -i .config",
"sed -e 's/.*CONFIG_LOSETUP.*/# CONFIG_LOSETUP is not set/' -i .config",
"sed -e 's/.*CONFIG_LSUSB.*/# CONFIG_LSUSB is not set/' -i .config",
"sed -e 's/.*CONFIG_INIT.*/# CONFIG_INIT is not set/' -i .config",
"sed -e 's/.*CONFIG_HALT.*/# CONFIG_HALT is not set/' -i .config",
"sed -e 's/.*CONFIG_RUNLEVEL.*/# CONFIG_RUNLEVEL is not set/' -i .config",
"sed -e 's/.*CONFIG_FEATURE_USE_INITTAB.*/# CONFIG_FEATURE_USE_INITTAB is not set/' -i .config",
"sed -e 's/.*CONFIG_FEATURE_INIT_SCTTY.*/# CONFIG_FEATURE_INIT_SCTTY is not set/' -i .config",
"sed -e 's/.*CONFIG_FEATURE_INIT_SYSLOG.*/# CONFIG_FEATURE_INIT_SYSLOG is not set/' -i .config",
"sed -e 's/.*CONFIG_FEATURE_EXTRA_QUIET.*/# CONFIG_FEATURE_EXTRA_QUIET is not set/' -i .config",
"sed -e 's/.*CONFIG_FEATURE_INIT_COREDUMPS.*/# CONFIG_FEATURE_INIT_COREDUMPS is not set/' -i .config",
"sed -e 's/.*CONFIG_FEATURE_INITRD.*/# CONFIG_FEATURE_INITRD is not set/' -i .config",
"sed -e 's/.*CONFIG_INIT_TERMINAL_TYPE.*/CONFIG_INIT_TERMINAL_TYPE=\"\"/' -i .config",
"sed -e 's/.*CONFIG_MKFS_EXT2.*/# CONFIG_MKFS_EXT2 is not set/' -i .config",
"sed -e 's/.*CONFIG_FSCK_MINIX.*/# CONFIG_FSCK_MINIX is not set/' -i .config",
"sed -e 's/.*CONFIG_MKFS_MINIX.*/# CONFIG_MKFS_MINIX is not set/' -i .config",
"sed -e 's/.*CONFIG_FEATURE_MINIX2.*/# CONFIG_FEATURE_MINIX2 is not set/' -i .config",
"sed -e 's/.*CONFIG_STRINGS.*/# CONFIG_STRINGS is not set/' -i .config",
"sed -e 's/.*CONFIG_PATCH.*/# CONFIG_PATCH is not set/' -i .config",
"sed -e 's/.*CONFIG_UNLZMA.*/# CONFIG_UNLZMA is not set/' -i .config",
"sed -e 's/.*CONFIG_LZMA.*/# CONFIG_LZMA is not set/' -i .config",
"sed -e 's/.*CONFIG_UNXZ.*/# CONFIG_UNXZ is not set/' -i .config",
"sed -e 's/.*CONFIG_XZ.*/# CONFIG_XZ is not set/' -i .config",
"sed -e 's/.*CONFIG_AWK=.*/# CONFIG_AWK is not set/' -i .config"
],
"build-commands": [
"for f in ifup@.service ntpd.service crond.service; do sed -e 's|@rootprefix@||g' \"systemd-units/$f.in\" >\"systemd-units/$f\"; done",
"make"
],
"install-commands": [
"if [ \"$PREFIX\" = /usr ]; then PREFIX=; fi && make CONFIG_PREFIX=\"$DESTDIR$PREFIX\" install && chmod 6755 \"$DESTDIR$PREFIX\"/bin/busybox",
"mkdir -p \"$DESTDIR/var/spool/cron/crontabs\"",
"mkdir -p \"$DESTDIR/lib/systemd/system/multi-user.target.wants\"",
"for f in systemd-units/*.service; do install -m 644 \"$f\" \"$DESTDIR/lib/systemd/system\"; done",
"for f in $(cd systemd-units; ls *.service | grep -v -F \"@\"); do ln -s \"../$f\" \"$DESTDIR/lib/systemd/system/multi-user.target.wants/\"; done",
"mkdir -p \"$DESTDIR/lib/udev/rules.d\"",
"for f in udev-rules/100-baserock.rules; do install -m 644 \"$f\" \"$DESTDIR/lib/udev/rules.d\"; done",
"mkdir -p \"$DESTDIR$PREFIX\"/share/udhcpc",
"cp examples/udhcp/simple.script \"$DESTDIR$PREFIX\"/share/udhcpc/default.script",
"cp scripts/ntpd-set.sh \"$DESTDIR$PREFIX\"/bin/ntpd-set.sh && chmod 6755 \"$DESTDIR$PREFIX\"/bin/ntpd-set.sh"
]
}
|