# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_P="sos" 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/${MY_P}-${PV}.tar.gz" LICENSE="INTEL" SLOT="1" KEYWORDS="~x86" IUSE="doc" DEPEND="" #This is a source only library. It has no runtime. RDEPEND="" pkg_setup() { enewgroup sos } src_unpack() { unpack ${A} cd ${WORKDIR} mv ${MY_P}-${PV} sos } src_compile() { einfo "Nothing to compile." } src_install() { cd ${WORKDIR} for i in `find sos -name CVS`; do rm -rf ${i} done if [ `find sos ! -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/${SOSSUBDIR} cp -R ${WORKDIR}/sos/${SOSSUBDIR} ${D}/opt/sos/ || 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 || die "Changing ownership failed!" einfo "Added group write permission to files ..." chmod -R g+w ${D}/opt/sos || die "Changing permissions failed!" cd ${WORKDIR}/sos 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 "" }