diff options
Diffstat (limited to 'meta/recipes-core/base-files/base-files_3.0.14.bb')
-rw-r--r-- | meta/recipes-core/base-files/base-files_3.0.14.bb | 177 |
1 files changed, 177 insertions, 0 deletions
diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb new file mode 100644 index 0000000000..a8f092db09 --- /dev/null +++ b/meta/recipes-core/base-files/base-files_3.0.14.bb | |||
@@ -0,0 +1,177 @@ | |||
1 | DESCRIPTION = "Miscellaneous files for the base system." | ||
2 | SECTION = "base" | ||
3 | PRIORITY = "required" | ||
4 | PR = "r64" | ||
5 | LICENSE = "GPLv2" | ||
6 | |||
7 | SRC_URI = "file://rotation \ | ||
8 | file://nsswitch.conf \ | ||
9 | file://motd \ | ||
10 | file://inputrc \ | ||
11 | file://host.conf \ | ||
12 | file://profile \ | ||
13 | file://shells \ | ||
14 | file://fstab \ | ||
15 | file://filesystems \ | ||
16 | file://issue.net \ | ||
17 | file://issue \ | ||
18 | file://usbd \ | ||
19 | file://sysctl.conf \ | ||
20 | file://share/dot.bashrc \ | ||
21 | file://share/dot.profile \ | ||
22 | file://licenses/BSD \ | ||
23 | file://licenses/GPL-2 \ | ||
24 | file://licenses/GPL-3 \ | ||
25 | file://licenses/LGPL-2 \ | ||
26 | file://licenses/LGPL-2.1 \ | ||
27 | file://licenses/LGPL-3 \ | ||
28 | file://licenses/GFDL-1.2 \ | ||
29 | file://licenses/Artistic" | ||
30 | S = "${WORKDIR}" | ||
31 | |||
32 | docdir_append = "/${P}" | ||
33 | dirs1777 = "/tmp ${localstatedir}/volatile/lock ${localstatedir}/volatile/tmp" | ||
34 | dirs2775 = "/home ${prefix}/src ${localstatedir}/local" | ||
35 | dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \ | ||
36 | ${sysconfdir}/skel /lib /mnt /proc /home/root /sbin \ | ||
37 | ${prefix} ${bindir} ${docdir} /usr/games ${includedir} \ | ||
38 | ${libdir} ${sbindir} ${datadir} \ | ||
39 | ${datadir}/common-licenses ${datadir}/dict ${infodir} \ | ||
40 | ${mandir} ${datadir}/misc ${localstatedir} \ | ||
41 | ${localstatedir}/backups ${localstatedir}/lib \ | ||
42 | /sys ${localstatedir}/lib/misc ${localstatedir}/spool \ | ||
43 | ${localstatedir}/volatile ${localstatedir}/volatile/cache \ | ||
44 | ${localstatedir}/volatile/lock/subsys \ | ||
45 | ${localstatedir}/volatile/log \ | ||
46 | ${localstatedir}/volatile/run \ | ||
47 | /mnt /media /media/card /media/cf /media/net /media/ram \ | ||
48 | /media/union /media/realroot /media/hdd \ | ||
49 | /media/mmc1" | ||
50 | volatiles = "cache run log lock tmp" | ||
51 | conffiles = "${sysconfdir}/debian_version ${sysconfdir}/host.conf \ | ||
52 | ${sysconfdir}/inputrc ${sysconfdir}/issue /${sysconfdir}/issue.net \ | ||
53 | ${sysconfdir}/nsswitch.conf ${sysconfdir}/profile \ | ||
54 | ${sysconfdir}/default" | ||
55 | |||
56 | # | ||
57 | # set standard hostname, might be a candidate for a DISTRO variable? :M: | ||
58 | # | ||
59 | hostname = "openembedded" | ||
60 | hostname_slugos = "nslu2" | ||
61 | hostname_mnci = "MNCI" | ||
62 | hostname_rt3000 = "MNRT" | ||
63 | hostname_jlime = "JLime" | ||
64 | |||
65 | do_install () { | ||
66 | for d in ${dirs755}; do | ||
67 | install -m 0755 -d ${D}$d | ||
68 | done | ||
69 | for d in ${dirs1777}; do | ||
70 | install -m 1777 -d ${D}$d | ||
71 | done | ||
72 | for d in ${dirs2775}; do | ||
73 | install -m 2755 -d ${D}$d | ||
74 | done | ||
75 | for d in ${volatiles}; do | ||
76 | ln -sf volatile/$d ${D}/${localstatedir}/$d | ||
77 | done | ||
78 | for d in card cf net ram; do | ||
79 | ln -sf /media/$d ${D}/mnt/$d | ||
80 | done | ||
81 | |||
82 | if [ -n "${MACHINE}" -a "${hostname}" = "openembedded" ]; then | ||
83 | echo ${MACHINE} > ${D}${sysconfdir}/hostname | ||
84 | else | ||
85 | echo ${hostname} > ${D}${sysconfdir}/hostname | ||
86 | fi | ||
87 | |||
88 | if [ -n "${DISTRO_NAME}" ]; then | ||
89 | echo -n "${DISTRO_NAME} " > ${D}${sysconfdir}/issue | ||
90 | echo -n "${DISTRO_NAME} " > ${D}${sysconfdir}/issue.net | ||
91 | if [ -n "${DISTRO_VERSION}" ]; then | ||
92 | echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue | ||
93 | echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net | ||
94 | fi | ||
95 | echo "\n \l" >> ${D}${sysconfdir}/issue | ||
96 | echo >> ${D}${sysconfdir}/issue | ||
97 | echo "%h" >> ${D}${sysconfdir}/issue.net | ||
98 | echo >> ${D}${sysconfdir}/issue.net | ||
99 | else | ||
100 | install -m 0644 ${WORKDIR}/issue ${D}${sysconfdir}/issue | ||
101 | install -m 0644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net | ||
102 | fi | ||
103 | |||
104 | rotation=`cat ${WORKDIR}/rotation` | ||
105 | if [ "$rotation" != "0" ]; then | ||
106 | install -m 0644 ${WORKDIR}/rotation ${D}${sysconfdir}/rotation | ||
107 | fi | ||
108 | |||
109 | install -m 0644 ${WORKDIR}/sysctl.conf ${D}${sysconfdir}/ | ||
110 | install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab | ||
111 | install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems | ||
112 | install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd | ||
113 | install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile | ||
114 | install -m 0644 ${WORKDIR}/shells ${D}${sysconfdir}/shells | ||
115 | install -m 0755 ${WORKDIR}/share/dot.profile ${D}${sysconfdir}/skel/.profile | ||
116 | install -m 0755 ${WORKDIR}/share/dot.bashrc ${D}${sysconfdir}/skel/.bashrc | ||
117 | install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc | ||
118 | install -m 0644 ${WORKDIR}/nsswitch.conf ${D}${sysconfdir}/nsswitch.conf | ||
119 | install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf | ||
120 | install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd | ||
121 | |||
122 | for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3 LGPL-3 GFDL-1.2; do | ||
123 | install -m 0644 ${WORKDIR}/licenses/$license ${D}${datadir}/common-licenses/ | ||
124 | done | ||
125 | |||
126 | ln -sf /proc/mounts ${D}${sysconfdir}/mtab | ||
127 | } | ||
128 | |||
129 | |||
130 | do_install_append_mnci () { | ||
131 | rmdir ${D}/tmp | ||
132 | ln -s var/tmp ${D}/tmp | ||
133 | } | ||
134 | |||
135 | do_install_append_nylon() { | ||
136 | printf "" "" >${D}${sysconfdir}/resolv.conf | ||
137 | rm -r ${D}/mnt/* | ||
138 | rm -r ${D}/media | ||
139 | rm -rf ${D}/tmp | ||
140 | ln -sf /var/tmp ${D}/tmp | ||
141 | } | ||
142 | |||
143 | do_install_append_slugos() { | ||
144 | printf "" "" >${D}${sysconfdir}/resolv.conf | ||
145 | rm -r ${D}/mnt/* | ||
146 | rmdir ${D}/home/root | ||
147 | install -m 0755 -d ${D}/root | ||
148 | ln -s ../root ${D}/home/root | ||
149 | } | ||
150 | |||
151 | do_install_append_netbook-pro () { | ||
152 | mkdir -p ${D}/initrd | ||
153 | } | ||
154 | |||
155 | PACKAGES = "${PN}-doc ${PN} ${PN}-dev ${PN}-dbg" | ||
156 | FILES_${PN} = "/" | ||
157 | FILES_${PN}-doc = "${docdir} ${datadir}/common-licenses" | ||
158 | |||
159 | # M&N specific packaging | ||
160 | PACKAGE_ARCH_mnci = "mnci" | ||
161 | PACKAGE_ARCH_rt3000 = "rt3000" | ||
162 | |||
163 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
164 | |||
165 | # Unslung distribution specific packaging | ||
166 | |||
167 | PACKAGES_unslung = "${PN}-unslung" | ||
168 | PACKAGE_ARCH_${PN}-unslung = "nslu2" | ||
169 | RDEPENDS_${PN}-unslung = "nslu2-linksys-ramdisk" | ||
170 | RPROVIDES_${PN}-unslung = "${PN}" | ||
171 | |||
172 | FILES_${PN}-unslung = "" | ||
173 | |||
174 | CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname" | ||
175 | CONFFILES_${PN}_nylon = "${sysconfdir}/resolv.conf ${sysconfdir}/fstab ${sysconfdir}/hostname" | ||
176 | CONFFILES_${PN}_slugos = "${sysconfdir}/resolv.conf ${sysconfdir}/fstab ${sysconfdir}/hostname" | ||
177 | |||