1 DESCRIPTION = "Miscellaneous files for the base system."
7 PACKAGE_ARCH = "${MACHINE_ARCH}"
10 file://nsswitch.conf \
21 file://share/dot.bashrc \
22 file://share/dot.profile \
24 file://licenses/GPL-2 \
25 file://licenses/LGPL-2 \
26 file://licenses/LGPL-2.1 \
27 file://licenses/Artistic "
30 docdir_append = "/${P}"
31 dirs1777 = "/tmp ${localstatedir}/lock ${localstatedir}/tmp"
32 dirs2775 = "/home ${prefix}/src ${localstatedir}/local"
33 dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \
34 ${sysconfdir}/skel /lib /mnt /proc /home/root /sbin \
35 ${prefix} ${bindir} ${docdir} /usr/games ${includedir} \
36 ${libdir} ${sbindir} ${datadir} \
37 ${datadir}/common-licenses ${datadir}/dict ${infodir} \
38 ${mandir} ${datadir}/misc ${localstatedir} \
39 ${localstatedir}/backups ${localstatedir}/cache \
40 ${localstatedir}/lib /sys ${localstatedir}/lib/misc \
41 ${localstatedir}/lock/subsys ${localstatedir}/log \
42 ${localstatedir}/run ${localstatedir}/spool \
43 /mnt /media /media/card /media/cf /media/net /media/ram \
44 /media/union /media/realroot /media/hdd \
46 conffiles = "${sysconfdir}/debian_version ${sysconfdir}/host.conf \
47 ${sysconfdir}/inputrc ${sysconfdir}/issue /${sysconfdir}/issue.net \
48 ${sysconfdir}/nsswitch.conf ${sysconfdir}/profile \
49 ${sysconfdir}/default"
51 hostname = "openembedded"
52 hostname_openslug = "openslug"
53 hostname_mnci = "MNCI"
54 PACKAGE_ARCH_mnci = "mnci"
55 hostname_rt3000 = "MNRT"
56 PACKAGE_ARCH_rt3000 = "rt3000"
59 for d in ${dirs755}; do
60 install -m 0755 -d ${D}$d
62 for d in ${dirs1777}; do
63 install -m 1777 -d ${D}$d
65 for d in ${dirs2775}; do
66 install -m 2755 -d ${D}$d
68 for d in card cf net ram; do
69 ln -sf /media/$d ${D}/mnt/$d
72 if [ -n "${MACHINE}" -a "${hostname}" = "openembedded" ]; then
73 echo ${MACHINE} > ${D}${sysconfdir}/hostname
75 echo ${hostname} > ${D}${sysconfdir}/hostname
78 if [ -n "${DISTRO_NAME}" ]; then
79 echo -n "${DISTRO_NAME} " > ${D}${sysconfdir}/issue
80 echo -n "${DISTRO_NAME} " > ${D}${sysconfdir}/issue.net
81 if [ -n "${DISTRO_VERSION}" ]; then
82 echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue
83 echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net
85 echo "\n \l" >> ${D}${sysconfdir}/issue
86 echo >> ${D}${sysconfdir}/issue
87 echo "%h" >> ${D}${sysconfdir}/issue.net
88 echo >> ${D}${sysconfdir}/issue.net
90 install -m 0644 ${WORKDIR}/issue ${D}${sysconfdir}/issue
91 install -m 0644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net
94 install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab
95 install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems
96 install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd
97 install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile
98 install -m 0755 ${WORKDIR}/share/dot.profile ${D}${sysconfdir}/skel/.profile
99 install -m 0755 ${WORKDIR}/share/dot.bashrc ${D}${sysconfdir}/skel/.bashrc
100 install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc
101 install -m 0644 ${WORKDIR}/nsswitch.conf ${D}${sysconfdir}/nsswitch.conf
102 install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf
103 install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd
104 install -m 0644 ${WORKDIR}/shells ${D}${sysconfdir}/shells
106 for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic; do
107 install -m 0644 ${WORKDIR}/licenses/$license ${D}${datadir}/common-licenses/
110 ln -sf /proc/mounts ${D}${sysconfdir}/mtab
114 do_install_append_mnci () {
116 mkdir -p ${D}${localstatedir}/tmp
117 ln -s var/tmp ${D}/tmp
120 do_install_append_nylon() {
121 printf "" "" >${D}${sysconfdir}/resolv.conf
125 ln -sf /var/tmp ${D}/tmp
128 do_install_append_openslug() {
129 printf "" "" >${D}${sysconfdir}/resolv.conf
132 install -m 0755 -d ${D}/root
133 ln -s ../root ${D}/home/root
137 #some familiar stuff below
138 do_install_append_familiar() {
139 mkdir -p ${D}/${sysconfdir}/default/volatiles
140 echo "l root root 644 /etc/resolv.conf /var/run/resolv.conf" > ${D}/${sysconfdir}/default/volatiles/01_resolv.conf
143 do_install_append_openzaurus() {
144 mkdir -p ${D}/${sysconfdir}/default/volatiles
145 echo "l root root 644 /etc/resolv.conf /var/run/resolv.conf" > ${D}/${sysconfdir}/default/volatiles/01_resolv.conf
148 pkg_postinst_familiar() {
150 /etc/init.d/populate-volatile.sh
153 pkg_postinst_openzaurus() {
155 /etc/init.d/populate-volatile.sh
158 DEPENDS_append_familiar = " initscripts"
159 RDEPENDS_append_familiar = " initscripts (>= 1.0-r60)"
160 DEPENDS_append_openzaurus = " initscripts"
161 RDEPENDS_append_openzaurus = " initscripts (>= 1.0-r60)"
164 PACKAGES = "${PN}-doc ${PN}"
166 FILES_${PN}-doc = "${docdir} ${datadir}/common-licenses"
169 # Unslung distribution specific packages follow ...
171 PACKAGES_unslung = "${PN}-unslung"
172 PACKAGE_ARCH_${PN}-unslung = "nslu2"
173 MAINTAINER_${PN}-unslung = "NSLU2 Linux <www.nslu2-linux.org>"
174 RDEPENDS_${PN}-unslung = "nslu2-linksys-ramdisk"
175 RPROVIDES_${PN}-unslung = "${PN}"
177 FILES_${PN}-unslung = ""
179 CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname"
180 CONFFILES_${PN}_nylon = "${sysconfdir}/resolv.conf ${sysconfdir}/fstab ${sysconfdir}/hostname"
181 CONFFILES_${PN}_openslug = "${sysconfdir}/resolv.conf ${sysconfdir}/fstab ${sysconfdir}/hostname"