# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="SOS: Sensor Operating System, a dynamic OS for wireless sensor networks" HOMEPAGE="http://nesl.ee.ucla.edu/projects/sos-1.x/" SRC_URI="http://nesl.ee.ucla.edu/projects/sos-1.x/release/${P}.tar.gz" LICENSE="INTEL" SLOT="0" KEYWORDS="~x86" IUSE="doc" DEPEND="" #This is a source only library. It has no runtime. RDEPEND="" pkg_setup() { enewgroup sos } src_compile() { einfo "Nothing to compile." } src_install() { cd ${WORKDIR} for i in `find ${P} -name CVS`; do rm -rf ${i} done if [ `find ${P} ! -type d ! -type f -printf x` ] then die "non-regular files in sos directory found!" fi for SOSSUBDIR in config contrib kernel modules platform processor tools; do dodir /opt/sos-1.x/${SOSSUBDIR} cp -R ${WORKDIR}/${P}/${SOSSUBDIR} ${D}/opt/sos-1.x/ || die "Install failed!" done #NOTE: do not use fowners, as its not recursive ... einfo "Changing ownership of files to root:sos ..." chown -R root\:sos ${D}/opt/sos-1.x || die "Changing ownership failed!" einfo "Added group write permission to files ..." chmod -R g+w ${D}/opt/sos-1.x || die "Changing permissions failed!" cd ${WORKDIR}/${P} dodoc README if use doc then dohtml -A pdf,xcf,sxi,ppt -r doc/* dodoc doc/doxygen/Doxyfile fi } pkg_postinst() { einfo "" einfo "To develop applications with SOS as a user," einfo "you must be a member of the sos group." einfo "" }