diff options
author | Michael Lauer <mickey@vanille-media.de> | 2004-05-13 10:47:01 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2004-05-13 10:47:01 +0000 |
commit | 9311bbdbde2662a100bdbfbef062735c81537b0c (patch) | |
tree | 15e15a6a5fb89dbb17b1a11229c718df9cc26eb8 /base-files | |
parent | cc50f515f7c7970e28b22fdf3e64e7b427e1c23b (diff) |
unpack base-files from debian
install distro specific issue.net and issue
todo: remove a bunch of ${FILESDIR} references
BKrev: 40a3522549poEwe8BUklrX4sSV0JLQ
Diffstat (limited to 'base-files')
44 files changed, 124 insertions, 56 deletions
diff --git a/base-files/base-files/debian/1777-dirs b/base-files/base-files/debian/1777-dirs new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/1777-dirs diff --git a/base-files/base-files/debian/2775-dirs b/base-files/base-files/debian/2775-dirs new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/2775-dirs diff --git a/base-files/base-files/debian/FAQ b/base-files/base-files/debian/FAQ new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/FAQ diff --git a/base-files/base-files/debian/README.FHS b/base-files/base-files/debian/README.FHS new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/README.FHS diff --git a/base-files/base-files/debian/README.base b/base-files/base-files/debian/README.base new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/README.base diff --git a/base-files/base-files/debian/changelog b/base-files/base-files/debian/changelog new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/changelog diff --git a/base-files/base-files/debian/conffiles b/base-files/base-files/debian/conffiles new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/conffiles diff --git a/base-files/base-files/debian/control b/base-files/base-files/debian/control new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/control diff --git a/base-files/base-files/debian/copyright.in b/base-files/base-files/debian/copyright.in new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/copyright.in diff --git a/base-files/base-files/debian/current-md5sums b/base-files/base-files/debian/current-md5sums new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/current-md5sums diff --git a/base-files/base-files/debian/directory-list b/base-files/base-files/debian/directory-list new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/directory-list diff --git a/base-files/base-files/debian/postinst b/base-files/base-files/debian/postinst new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/postinst diff --git a/base-files/base-files/debian/preinst.in b/base-files/base-files/debian/preinst.in new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/preinst.in diff --git a/base-files/base-files/debian/remove-base b/base-files/base-files/debian/remove-base new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/remove-base diff --git a/base-files/base-files/debian/rules b/base-files/base-files/debian/rules new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/debian/rules diff --git a/base-files/base-files/etc/debian_version b/base-files/base-files/etc/debian_version new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/debian_version diff --git a/base-files/base-files/etc/host.conf b/base-files/base-files/etc/host.conf new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/host.conf diff --git a/base-files/base-files/etc/inputrc b/base-files/base-files/etc/inputrc new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/inputrc diff --git a/base-files/base-files/etc/issue- b/base-files/base-files/etc/issue- new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/issue- diff --git a/base-files/base-files/etc/issue-familiar b/base-files/base-files/etc/issue-familiar new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/issue-familiar diff --git a/base-files/base-files/etc/issue-opensimpad b/base-files/base-files/etc/issue-opensimpad new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/issue-opensimpad diff --git a/base-files/base-files/etc/issue-openzaurus b/base-files/base-files/etc/issue-openzaurus new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/issue-openzaurus diff --git a/base-files/base-files/etc/issue.net- b/base-files/base-files/etc/issue.net- new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/issue.net- diff --git a/base-files/base-files/etc/issue.net-familiar b/base-files/base-files/etc/issue.net-familiar new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/issue.net-familiar diff --git a/base-files/base-files/etc/issue.net-opensimpad b/base-files/base-files/etc/issue.net-opensimpad new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/issue.net-opensimpad diff --git a/base-files/base-files/etc/issue.net-openzaurus b/base-files/base-files/etc/issue.net-openzaurus new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/issue.net-openzaurus diff --git a/base-files/base-files/etc/motd b/base-files/base-files/etc/motd new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/motd diff --git a/base-files/base-files/etc/nsswitch.conf b/base-files/base-files/etc/nsswitch.conf new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/nsswitch.conf diff --git a/base-files/base-files/etc/profile b/base-files/base-files/etc/profile new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/etc/profile diff --git a/base-files/base-files/issue- b/base-files/base-files/issue- new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/issue- diff --git a/base-files/base-files/issue.net- b/base-files/base-files/issue.net- new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/issue.net- diff --git a/base-files/base-files/issue.net-familiar b/base-files/base-files/issue.net-familiar new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/issue.net-familiar diff --git a/base-files/base-files/issue.net-opensimpad b/base-files/base-files/issue.net-opensimpad new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/issue.net-opensimpad diff --git a/base-files/base-files/issue.net-openzaurus b/base-files/base-files/issue.net-openzaurus new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/issue.net-openzaurus diff --git a/base-files/base-files/licenses/Artistic b/base-files/base-files/licenses/Artistic new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/licenses/Artistic diff --git a/base-files/base-files/licenses/BSD b/base-files/base-files/licenses/BSD new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/licenses/BSD diff --git a/base-files/base-files/licenses/GPL-2 b/base-files/base-files/licenses/GPL-2 new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/licenses/GPL-2 diff --git a/base-files/base-files/licenses/LGPL-2 b/base-files/base-files/licenses/LGPL-2 new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/licenses/LGPL-2 diff --git a/base-files/base-files/licenses/LGPL-2.1 b/base-files/base-files/licenses/LGPL-2.1 new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/licenses/LGPL-2.1 diff --git a/base-files/base-files/share/dot.bashrc b/base-files/base-files/share/dot.bashrc new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/share/dot.bashrc diff --git a/base-files/base-files/share/dot.profile b/base-files/base-files/share/dot.profile new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/share/dot.profile diff --git a/base-files/base-files/share/info.dir b/base-files/base-files/share/info.dir new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/share/info.dir diff --git a/base-files/base-files/share/motd.md5sums b/base-files/base-files/share/motd.md5sums new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/base-files/base-files/share/motd.md5sums diff --git a/base-files/base-files_3.0.14.oe b/base-files/base-files_3.0.14.oe index 7364eed400..1bf2bae074 100644 --- a/base-files/base-files_3.0.14.oe +++ b/base-files/base-files_3.0.14.oe @@ -1,67 +1,135 @@ -PR = "r3" -SRC_URI = "${DEBIAN_MIRROR}/main/b/base-files/base-files_${PV}.tar.gz" DESCRIPTION = "Base system miscellaneous files." +SECTION = "base" +PRIORITY = "required" +PR = "r4" + +SRC_URI = " file://${FILESDIR}/etc/nsswitch.conf \ + file://${FILESDIR}/etc/motd \ + file://${FILESDIR}/etc/issue.net \ + file://${FILESDIR}/etc/issue \ + file://${FILESDIR}/etc/issue.net- \ + file://${FILESDIR}/etc/debian_version \ + file://${FILESDIR}/etc/issue-opensimpad \ + file://${FILESDIR}/etc/issue.net-opensimpad \ + file://${FILESDIR}/etc/issue- \ + file://${FILESDIR}/etc/issue-openzaurus \ + file://${FILESDIR}/etc/issue.net-openzaurus \ + file://${FILESDIR}/etc/issue-familiar \ + file://${FILESDIR}/etc/issue.net-familiar \ + file://${FILESDIR}/etc/inputrc \ + file://${FILESDIR}/etc/host.conf \ + file://${FILESDIR}/etc/profile \ + file://${FILESDIR}/shepherd/fstab \ + file://${FILESDIR}/shepherd/hostname \ + file://${FILESDIR}/epia/fstab \ + file://${FILESDIR}/h3600/hostname \ + file://${FILESDIR}/corgi/fstab \ + file://${FILESDIR}/corgi/hostname \ + file://${FILESDIR}/fstab \ + file://${FILESDIR}/husky/fstab \ + file://${FILESDIR}/husky/hostname \ + file://${FILESDIR}/share/dot.bashrc \ + file://${FILESDIR}/share/dot.profile \ + file://${FILESDIR}/share/info.dir \ + file://${FILESDIR}/share/motd.md5sums \ + file://${FILESDIR}/collie/fstab \ + file://${FILESDIR}/collie/hostname \ + file://${FILESDIR}/debian/FAQ \ + file://${FILESDIR}/debian/directory-list \ + file://${FILESDIR}/debian/control \ + file://${FILESDIR}/debian/1777-dirs \ + file://${FILESDIR}/debian/rules \ + file://${FILESDIR}/debian/conffiles \ + file://${FILESDIR}/debian/changelog \ + file://${FILESDIR}/debian/copyright.in \ + file://${FILESDIR}/debian/postinst \ + file://${FILESDIR}/debian/README.FHS \ + file://${FILESDIR}/debian/2775-dirs \ + file://${FILESDIR}/debian/preinst.in \ + file://${FILESDIR}/debian/remove-base \ + file://${FILESDIR}/debian/README.base \ + file://${FILESDIR}/debian/current-md5sums \ + file://${FILESDIR}/hostname \ + file://${FILESDIR}/poodle/fstab \ + file://${FILESDIR}/poodle/hostname \ + file://${FILESDIR}/ramses/fstab \ + file://${FILESDIR}/ramses/hostname \ + file://${FILESDIR}/simpad/hostname \ + file://${FILESDIR}/licenses/BSD \ + file://${FILESDIR}/licenses/GPL-2 \ + file://${FILESDIR}/licenses/LGPL-2 \ + file://${FILESDIR}/licenses/LGPL-2.1 \ + file://${FILESDIR}/licenses/Artistic" +S = "${WORKDIR}" docdir_append = "/${P}" -PACKAGES = "${PN}-doc ${PN}" -FILES_${PN} = "/" -FILES_${PN}-doc = "/usr/share/doc /usr/share/common-licenses" do_install () { - install -d ${D}/${docdir} - install -d ${D}${datadir}/${PN} - install -p -m 644 debian/changelog debian/FAQ \ - debian/README.FHS debian/README.base ${D}/${docdir}/ - cat debian/copyright.in | sed -e "s&#OSNAME#&${TARGET_OS}&g" \ - > ${D}/${docdir}/copyright - install -m 755 debian/remove-base ${D}/${docdir} -# cd debian && install -m 755 preinst postinst ${D}/DEBIAN -# cd debian && install -m 644 conffiles ${D}/DEBIAN - ( cd ${D} && install -d `cat ${S}/debian/directory-list` ) - install -d ${D}/sys + install -d ${D}/${docdir} + install -d ${D}${datadir}/${PN} + install -m 644 debian/changelog debian/FAQ debian/README.FHS debian/README.base ${D}/${docdir}/ + cat ${S}/debian/copyright.in | sed -e "s&#OSNAME#&${TARGET_OS}&g" > ${D}/${docdir}/copyright + install -m 755 debian/remove-base ${D}/${docdir} +# cd debian && install -m 755 preinst postinst ${D}/DEBIAN +# cd debian && install -m 644 conffiles ${D}/DEBIAN + ( cd ${D} && install -d `cat ${S}/debian/directory-list` ) + install -d ${D}/sys - install -p -m 644 share/* ${D}${datadir}/base-files - install -p -m 644 licenses/* ${D}${datadir}/common-licenses - ln -s LGPL-2.1 ${D}${datadir}/common-licenses/LGPL - ln -s GPL-2 ${D}${datadir}/common-licenses/GPL - for i in `ls etc/|grep -v debian`; do install -p -m 644 etc/$i ${D}/etc; done - rm -f ${D}/etc/motd - cat etc/motd | sed -e "s&#OSNAME#&${TARGET_OS}&g" > ${D}${datadir}/base-files/motd - cat share/info.dir | sed -e "s&#OSNAME#&${TARGET_OS}&g" > ${D}${datadir}/base-files/info.dir - gzip -9 ${D}/${docdir}/changelog -# chown -R root:root ${D} -# cd ${D} && chown root:src usr/src -# cd ${D} && chown root:staff var/local -# cd ${D} && chown root:staff home - cd ${D} && chmod 755 `find . -type d` - cd ${D} && chmod 1777 `cat ${S}/debian/1777-dirs` - cd ${D} && chmod 2775 `cat ${S}/debian/2775-dirs` + install -p -m 644 share/* ${D}${datadir}/base-files + install -p -m 644 licenses/* ${D}${datadir}/common-licenses + ln -s LGPL-2.1 ${D}${datadir}/common-licenses/LGPL + ln -s GPL-2 ${D}${datadir}/common-licenses/GPL + for i in `ls etc/|grep -v debian`; do install -p -m 644 etc/$i ${D}/etc; done + rm -f ${D}/etc/motd + cat etc/motd | sed -e "s&#OSNAME#&${TARGET_OS}&g" > ${D}${datadir}/base-files/motd + cat share/info.dir | sed -e "s&#OSNAME#&${TARGET_OS}&g" > ${D}${datadir}/base-files/info.dir + gzip -9 ${D}/${docdir}/changelog +# chown -R root:root ${D} +# cd ${D} && chown root:src usr/src +# cd ${D} && chown root:staff var/local +# cd ${D} && chown root:staff home + cd ${D} && chmod 755 `find . -type d` + cd ${D} && chmod 1777 `cat ${S}/debian/1777-dirs` + cd ${D} && chmod 2775 `cat ${S}/debian/2775-dirs` - install -d ${D}/${sysconfdir} - oe_machinstall -m 0644 ${FILESDIR}/fstab ${D}/${sysconfdir}/fstab - oe_machinstall -m 0644 ${FILESDIR}/hostname ${D}/${sysconfdir}/hostname - oe_machinstall -m 0644 ${FILESDIR}/profile ${D}/${sysconfdir}/profile + install -d ${D}/${sysconfdir} + oe_machinstall -m 0644 ${FILESDIR}/fstab ${D}/${sysconfdir}/fstab + oe_machinstall -m 0644 ${FILESDIR}/hostname ${D}/${sysconfdir}/hostname + oe_machinstall -m 0644 ${FILESDIR}/profile ${D}/${sysconfdir}/profile + install -m 0644 ${FILESDIR}/etc/issue-${DISTRO} ${D}/${sysconfdir}/issue + install -m 0644 ${FILESDIR}/etc/issue.net-${DISTRO} ${D}/${sysconfdir}/issue.net - install -m 0755 ${D}/usr/share/base-files/dot.profile ${D}/root/.profile + install -m 0755 ${D}/usr/share/base-files/dot.profile ${D}/root/.profile - # debian ships these, but they are useless to us - rmdir ${D}/var/lib/dpkg ${D}/var/lib/misc ${D}/var/backups \ - ${D}/usr/src ${D}/usr/info ${D}/usr/games ${D}/usr/doc \ - ${D}/usr/include ${D}/usr/share/dict - rm -r ${D}/usr/share/base-files + # debian ships these, but they are useless to us + rmdir ${D}/var/lib/dpkg \ + ${D}/var/lib/misc \ + ${D}/var/backups \ + ${D}/usr/src \ + ${D}/usr/info \ + ${D}/usr/games \ + ${D}/usr/doc \ + ${D}/usr/include \ + ${D}/usr/share/dict + rm -r ${D}/usr/share/base-files - if grep -q "^\(tmpfs\|ramfs\)\W\+/var" ${D}/etc/fstab; then - # /var is in a ramdisk - install -d ${D}/etc/init.d ${D}/etc/rcS.d - for d in `(cd ${D}/var; ls)`; do - mode=`stat -c %a ${D}/var/$d` - echo "mkdir -p /var/$d" >> ${D}/etc/init.d/populate-var - echo "chmod $mode /var/$d" >> ${D}/etc/init.d/populate-var - done - rmdir ${D}/var/* - chmod a+x ${D}/etc/init.d/populate-var - ln -s ../init.d/populate-var ${D}/etc/rcS.d/S37populate-var - ln -s /var/run/resolv.conf ${D}/etc/resolv.conf - ln -s /var/run/ld.so.cache ${D}/etc/ld.so.cache - fi + if grep -q "^\(tmpfs\|ramfs\)\W\+/var" ${D}/etc/fstab; then + # /var is in a ramdisk + install -d ${D}/etc/init.d ${D}/etc/rcS.d + for d in `(cd ${D}/var; ls)`; do + mode=`stat -c %a ${D}/var/$d` + echo "mkdir -p /var/$d" >> ${D}/etc/init.d/populate-var + echo "chmod $mode /var/$d" >> ${D}/etc/init.d/populate-var + done + rmdir ${D}/var/* + chmod a+x ${D}/etc/init.d/populate-var + ln -s ../init.d/populate-var ${D}/etc/rcS.d/S37populate-var + ln -s /var/run/resolv.conf ${D}/etc/resolv.conf + ln -s /var/run/ld.so.cache ${D}/etc/ld.so.cache + fi } + +PACKAGES = "${PN}-doc ${PN}" +FILES_${PN} = "/" +FILES_${PN}-doc = "/usr/share/doc /usr/share/common-licenses" + |