debian/0000755000000000000000000000000012072337443007173 5ustar debian/install0000644000000000000000000000010412072337203010551 0ustar apps /usr/src/tinyos/ support /usr/src/tinyos/ tos /usr/src/tinyos/ debian/lintian-overrides0000644000000000000000000000175712072337203012560 0ustar # These *.jar files are just helpers. We just keep them in /usr/src, # which is also architecture independent. tinyos-source binary: jar-not-in-usr-share usr/src/tinyos/apps/AntiTheft/java/antitheft.jar tinyos-source binary: jar-not-in-usr-share usr/src/tinyos/apps/MultihopOscilloscope/java/oscilloscope.jar tinyos-source binary: jar-not-in-usr-share usr/src/tinyos/apps/MultihopOscilloscopeLqi/java/oscilloscope.jar tinyos-source binary: jar-not-in-usr-share usr/src/tinyos/apps/Oscilloscope/java/oscilloscope.jar tinyos-source binary: jar-not-in-usr-share usr/src/tinyos/apps/tosthreads/apps/TestCollection/java/oscilloscope.jar tinyos-source binary: jar-not-in-usr-share usr/src/tinyos/apps/tosthreads/capps/TestCollection/java/oscilloscope.jar tinyos-source binary: jar-not-in-usr-share usr/src/tinyos/support/sdk/java/tinyos.jar # Needed by apps/tests/rfxlink/TestTimeStamping/Analyze.java, which # is not compiled, thus CLASSPATH is not included. tinyos-source binary: missing-classpath libjama-java debian/rules0000755000000000000000000001142612072337203010251 0ustar #!/usr/bin/make -f DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST))) DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog | sed -rne 's,^Version: ([^+]+).*,\1,p') %: dh $@ build_java_apps_antitheft: cd ./apps/AntiTheft/java/ ant cd ../../.. build_java_apps_oscilloscope: apps/tosthreads/apps/TestCollection/java apps/tosthreads/capps/TestCollection/java apps/Oscilloscope/java apps/MultihopOscilloscope/java apps/MultihopOscilloscopeLqi/java cd $< make veryclean make oscilloscope.jar build_java_tinyos: cd support/sdk/java make tinyos.jar override_dh_auto_clean: # run normal dh_auto_clean dh_auto_clean override_dh_build: build_java_apps_antitheft build_java_apps_oscilloscope override_dh_install: # run normal dh_install dh_install # remove apps/tests/LinkBench # It needs some external java dependencies, which are currently # not available in Debian. rm -rf debian/tinyos-source/usr/src/tinyos/apps/tests/LinkBench # fix file permissions find debian/tinyos-source -name "*.nc" -exec chmod 644 \{\} \; find debian/tinyos-source -name "*.h" -exec chmod 644 \{\} \; find debian/tinyos-source -name "*.java" -exec chmod 644 \{\} \; find debian/tinyos-source -name "*.txt" -exec chmod 644 \{\} \; find debian/tinyos-source -name "*.xml" -exec chmod 644 \{\} \; find debian/tinyos-source -name "*.extra" -exec chmod 644 \{\} \; find debian/tinyos-source -name "README" -exec chmod 644 \{\} \; find debian/tinyos-source -name "Makefile" -exec chmod 644 \{\} \; # make scripts executable chmod 755 debian/tinyos-source/usr/src/tinyos/apps/Oscilloscope/oscilloscope.py chmod 755 debian/tinyos-source/usr/src/tinyos/apps/UDPEcho/tests/echotest.pl chmod 755 debian/tinyos-source/usr/src/tinyos/apps/tests/TestDhv/gentest.py chmod 755 debian/tinyos-source/usr/src/tinyos/apps/tests/TestDip/gentest.py chmod 755 debian/tinyos-source/usr/src/tinyos/tos/lib/ppp/tests/Ipv6/pppd.sh chmod 755 debian/tinyos-source/usr/src/tinyos/tos/lib/ppp/tests/Lcp/pppd.sh chmod 755 debian/tinyos-source/usr/src/tinyos/tos/lib/timer/generate.sh chmod 755 debian/tinyos-source/usr/src/tinyos/tos/lib/tossim/generate-swig.bash chmod 755 debian/tinyos-source/usr/src/tinyos/tos/lib/tossim/sf/examples/TestSerialSFClient.py chmod 755 debian/tinyos-source/usr/src/tinyos/tos/lib/tossim/sf/generate-swig.bash chmod 755 debian/tinyos-source/usr/src/tinyos/tos/lib/tossim/topologies/layout.py chmod 755 debian/tinyos-source/usr/src/tinyos/tos/lib/zigbee/pmote.sh chmod 755 debian/tinyos-source/usr/src/tinyos/tos/lib/zigbee/pnetwork.sh # remove executable bit from files, which can't be executed chmod 644 debian/tinyos-source/usr/src/tinyos/tos/lib/ppp/tests/Ipv6/test.sh chmod 644 debian/tinyos-source/usr/src/tinyos/support/sdk/c/sf/bootstrap chmod 644 debian/tinyos-source/usr/src/tinyos/support/make/m16c60/crt_62p.S chmod 644 debian/tinyos-source/usr/src/tinyos/support/make/mulle.target chmod 644 debian/tinyos-source/usr/src/tinyos/apps/tosthreads/tinyld/SerialLoader/tinyos.py chmod 644 debian/tinyos-source/usr/src/tinyos/apps/tests/TestFtsp/Ftsp/FtspDataAnalyzer.m chmod 644 debian/tinyos-source/usr/src/tinyos/tos/platforms/mulle/.platform chmod 644 debian/tinyos-source/usr/src/tinyos/apps/tests/TestFtsp/FtspLpl/TestFtspMsg.py chmod 644 debian/tinyos-source/usr/src/tinyos/support/make/m16c60/linker_62p.x chmod 644 debian/tinyos-source/usr/src/tinyos/apps/tosthreads/tinyld/SerialLoaderFlash/tinyos.py chmod 644 debian/tinyos-source/usr/src/tinyos/support/make/m16c60/m16c60.rules chmod 644 debian/tinyos-source/usr/src/tinyos/tos/lib/ppp/tests/Lcp/test.sh # remove extra license files rm debian/tinyos-source/usr/src/tinyos/support/sdk/c/coap/LICENSE # replace Jama-1.0.2.jar with symlink rm debian/tinyos-source/usr/src/tinyos/apps/tests/rfxlink/TestTimeStamping/Jama-1.0.2.jar ln -s ../../../../../../share/java/jama.jar debian/tinyos-source/usr/src/tinyos/apps/tests/rfxlink/TestTimeStamping/Jama-1.0.2.jar # install tinyos profile mkdir -p debian/tinyos-source/etc/profile.d install -m 644 debian/tinyos.profile debian/tinyos-source/etc/profile.d/tinyos.sh override_dh_installchangelogs: dh_installchangelogs release-notes.txt get-orig-source: uscan --noconf --force-download --download-current-version --destdir=. $(DEB_DEBIAN_DIR)/.. rm -rf tinyos-$(DEB_UPSTREAM_VERSION) tar -xf tinyos_$(DEB_UPSTREAM_VERSION).orig.tar.gz rm -rf tinyos-$(DEB_UPSTREAM_VERSION).tar.gz rm tinyos_$(DEB_UPSTREAM_VERSION).orig.tar.gz # remove prebuilt binaries. We will use the libraries built # by tinyos-tools instead. rm -f tinyos-$(DEB_UPSTREAM_VERSION)/support/sdk/java/net/tinyos/util/*.lib # create new orig.tar.gz GZIP=--best tar -cz --owner root --group root --mode a+rX -f \ tinyos_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.gz \ tinyos-$(DEB_UPSTREAM_VERSION) rm -rf tinyos-$(DEB_UPSTREAM_VERSION) debian/patches/0000755000000000000000000000000012072337203010614 5ustar debian/patches/use-system-library.patch0000644000000000000000000000314112072337203015414 0ustar Description: fix library extension The extension for libraries on Linux systems is .so. This package does not use the prebuilt libs with .lib extension, but the libraries available in the system. Forwarded: not-needed Author: Sebastian Reichel Last-Update: 2013-01-06 --- a/support/sdk/java/net/tinyos/util/TOSLibraryLoader.java +++ b/support/sdk/java/net/tinyos/util/TOSLibraryLoader.java @@ -123,17 +123,17 @@ if(os.toLowerCase().startsWith("linux")) { // Linux if(arch.toLowerCase().equals("x86") || arch.toLowerCase().equals("i386")) { - libFile = "linux_x86_" + libName; + libFile = "lib" + libName + "-32.so"; } else if(arch.toLowerCase().equals("ppc")) { // not currently supported //libFile = "linux_ppc_" + libName; } else if(arch.toLowerCase().equals("amd64")) { - libFile = "linux_amd64_" + libName; + libFile = "lib" + libName + "-64.so"; } } else if(os.toLowerCase().startsWith("windows")) { // Windows if(arch.toLowerCase().equals("x86") || arch.toLowerCase().equals("i386")) { - libFile = "windows_x86_" + libName; + libFile = "windows_x86_" + libName + ".lib"; } else if(arch.toLowerCase().equals("ppc")) { // not currently supported //libFile = "windows_ppc_" + libName; @@ -142,9 +142,8 @@ //libFile = "windows_amd64_" + libName; } } else if(os.toLowerCase().startsWith("mac os x")) { - libFile = "macosx_universal_" + libName; + libFile = "macosx_universal_" + libName + ".lib"; } - if(libFile != null) libFile += ".lib"; if(libFile == null) { ok = false; debian/patches/series0000644000000000000000000000003112072337203012023 0ustar use-system-library.patch debian/control0000644000000000000000000000147312072337203010575 0ustar Source: tinyos Section: devel Priority: extra Maintainer: Sebastian Reichel Standards-Version: 3.9.4 Build-Depends: ant, debhelper (>= 9) Homepage: http://tinyos.net/ Vcs-Browser: http://git.debian.org/?p=collab-maint/tinyos.git Vcs-Git: git://git.debian.org/collab-maint/tinyos.git Package: tinyos-source Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libjama-java, perl, python Recommends: tinyos-tools Description: operating system for sensor motes and embedded devices TinyOS is an open source, BSD-licensed operating system designed for low-power wireless devices, such as those used in sensor networks, ubiquitous computing, personal area networks, smart buildings, and smart meters. . This package contains the TinyOS source code. debian/changelog0000644000000000000000000000024312072337203011036 0ustar tinyos (2.1.2+dfsg-1) unstable; urgency=low * Initial Debian Release (Closes: #696006) -- Sebastian Reichel Sun, 06 Jan 2013 19:11:55 +0100 debian/watch0000644000000000000000000000016312072337203010216 0ustar version=3 opts=dversionmangle=s/[+]dfsg// \ http://tinyos.stanford.edu/tinyos/dists/source/tinyos-([\d\.]+).tar.gz debian/tinyos.profile0000644000000000000000000000025412072337203012075 0ustar export TOSROOT=/usr/src/tinyos export TOSDIR=$TOSROOT/tos export CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar export MAKERULES=$TOSROOT/support/make/Makerules debian/copyright0000644000000000000000000001057012072337203011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://tinyos.stanford.edu/tinyos/dists/source/ Files: * Copyright: 2000-2011, The Regents of the University of California 2002-2011, Vanderbilt University 2009-2010, DEXMA SENSORS SL 2004-2005, Crossbow Technology, Inc 2002-2007, Intel Corporation 2005-2009, Stanford University 2010-2011, University of Utah 2009-2010, Johns Hopkins University 2010, CSIRO Australia 2008, Atmel Corporation 2009, ARM Limited 2005-2007, Arch Rock Corporation 2010-2011, University of Szeged 2010-2011, Eric B. Decker 2004-2009, Technische Universität Berlin 2009-2010, Communication Group and Eislab at 2005-2006, Ecole Polytechnique Federale de Lausanne (EPFL) 2007, Shockfish SA 2005-2006, Rincon Research Corporation 2011, Lulea University of Technology 2005, Yale University 2005-2006, The President and Fellows of Harvard College 2006-2007, Chad Metcalf 2006, Washington University in St. Louis 2010, Urs Hunkeler 2007, Matus Harvan 1995-1998, WIDE Project 2008, Dimas Abreu Dutra 2010, CISTER/ISEP - Polytechnic Institute of Porto 2011, University of Bremen, TZI 2010, People Power Co. 2009, RWTH Aachen University 2002-2004, Christopher Clark 2004-2005, Hewlett-Packard Company 2009-2011, Shimmer Research, Ltd. 2006-2009, ETH Zurich 2002, Manuel Novoa III 2009, CHaN 2002, Pedro Zorzenon Neto 2011, ZOLERTIA LABS License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: sdk/c/coap/* Copyright: 2010, Olaf Bergmann License: GPL-2+ On Debian systems, the complete text of the GPL-2 can be found in /usr/share/common-licenses/GPL-2. Files: debian/* Copyright: 2012, Sebastian Reichel License: ISC Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. . THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. debian/compat0000644000000000000000000000000212072337203010363 0ustar 9 debian/source/0000755000000000000000000000000012072337203010465 5ustar debian/source/format0000644000000000000000000000001412072337203011673 0ustar 3.0 (quilt)