aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2016-05-30 17:02:20 +0200
committerFulup Ar Foll <fulup@iot.bzh>2016-05-30 17:02:20 +0200
commit680d3330bbbb5e4fb304b2cf086af135dce2380d (patch)
tree55858e99b656a5cce9a613872c07877c444d7676
parent5262c13a63c78107d6d7df05db31f54db8d47ac7 (diff)
Widget Doc
-rw-r--r--doc/widgets.md29
-rw-r--r--nbproject/configurations.xml132
-rw-r--r--nbproject/project.xml26
3 files changed, 171 insertions, 16 deletions
diff --git a/doc/widgets.md b/doc/widgets.md
index 1b2df87..961bb12 100644
--- a/doc/widgets.md
+++ b/doc/widgets.md
@@ -14,7 +14,7 @@ The widgets
The widgets are described by the technical recommendations
[widgets] and [widgets-digsig].
-### signature of the
+### signature
The application framework
@@ -22,21 +22,21 @@ This is the original part of our work here
### directory where are stored applications
-Applications can be installed in few places: on the system itself or on an extension device.
-For my phone, for example, it is the sd card.
+Applications can be installed in different places: the system itself, extension device.
+On a phone application are typically installed on the sd card.
This translates to:
- - /usr/applications: for system wide applications
- - /opt/applications: for removable applications
+ - /usr/applications: system wide applications
+ - /opt/applications: removable applications
-In the remaining of the document, these places are writen "APPDIR".
+From here those paths are referenced as: "APPDIR".
-Organisation of directory of applications
+Organization of directory of applications
=========================================
-The main path for applivcations are: APPDIR/PKGID/VER.
+The main path for applications is: APPDIR/PKGID/VER.
Where:
@@ -44,30 +44,27 @@ Where:
- PKGID is a directory whose name is the package identifier
- VER is the version of the package MAJOR.MINOR
-This organisation has the advantage to allow several versions to leave together.
+This organization has the advantage to allow several versions to leave together.
This is needed for some good reasons (rolling back) and also for less good reasons (user habits).
Identity of installed files
---------------------------
-All the files are installed as the user "userapp" and group "userapp".
+All files are installed as user "userapp" and group "userapp".
All files have rw(x) for user and r-(x) for group and others.
-This allows any user to read the files.
+This allows every user to read every file.
-Labelling the directories of applications
+labeling the directories of applications
-----------------------------------------
-Organisation of data
+organization of data
====================
The data of a user are in its directory and are labelled using the labels of the application
-
-
-
[meta-intel]: https://github.com/01org/meta-intel-iot-security "A collection of layers providing security technologies"
[widgets]: http://www.w3.org/TR/widgets "Packaged Web Apps"
[widgets-digsig]: http://www.w3.org/TR/widgets-digsig "XML Digital Signatures for Widgets"
diff --git a/nbproject/configurations.xml b/nbproject/configurations.xml
new file mode 100644
index 0000000..2979794
--- /dev/null
+++ b/nbproject/configurations.xml
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configurationDescriptor version="97">
+ <logicalFolder name="root" displayName="root" projectFiles="true" kind="ROOT">
+ <df root="." name="0">
+ <df name="src">
+ <in>afm-db.c</in>
+ <in>afm-launch-mode.c</in>
+ <in>afm-launch.c</in>
+ <in>afm-main-plugin.c</in>
+ <in>afm-run.c</in>
+ <in>afm-system-daemon.c</in>
+ <in>afm-user-daemon.c</in>
+ <in>secmgr-wrap.c</in>
+ <in>utils-dir.c</in>
+ <in>utils-jbus.c</in>
+ <in>utils-json.c</in>
+ <in>verbose.c</in>
+ <in>wgt-config.c</in>
+ <in>wgt-info.c</in>
+ <in>wgt.c</in>
+ <in>wgtpkg-base64.c</in>
+ <in>wgtpkg-certs.c</in>
+ <in>wgtpkg-digsig.c</in>
+ <in>wgtpkg-files.c</in>
+ <in>wgtpkg-info.c</in>
+ <in>wgtpkg-install.c</in>
+ <in>wgtpkg-installer.c</in>
+ <in>wgtpkg-pack.c</in>
+ <in>wgtpkg-permissions.c</in>
+ <in>wgtpkg-sign.c</in>
+ <in>wgtpkg-uninstall.c</in>
+ <in>wgtpkg-workdir.c</in>
+ <in>wgtpkg-xmlsec.c</in>
+ <in>wgtpkg-zip.c</in>
+ </df>
+ </df>
+ <logicalFolder name="ExternalFiles"
+ displayName="Important Files"
+ projectFiles="false"
+ kind="IMPORTANT_FILES_FOLDER">
+ <itemPath>CMakeLists.txt</itemPath>
+ <itemPath>Makefile</itemPath>
+ <itemPath>nbproject/private/launcher.properties</itemPath>
+ </logicalFolder>
+ </logicalFolder>
+ <sourceFolderFilter>^(nbproject)$</sourceFolderFilter>
+ <sourceRootList>
+ <Elem>.</Elem>
+ </sourceRootList>
+ <projectmakefile>Makefile</projectmakefile>
+ <confs>
+ <conf name="Default" type="0">
+ <toolsSet>
+ <compilerSet>default</compilerSet>
+ <dependencyChecking>false</dependencyChecking>
+ <rebuildPropChanged>false</rebuildPropChanged>
+ </toolsSet>
+ <codeAssistance>
+ </codeAssistance>
+ <makefileType>
+ <makeTool>
+ <buildCommandWorkingDir>.</buildCommandWorkingDir>
+ <buildCommand>${MAKE} -f Makefile</buildCommand>
+ <cleanCommand>${MAKE} -f Makefile clean</cleanCommand>
+ <executablePath></executablePath>
+ </makeTool>
+ <preBuild>
+ <preBuildCommandWorkingDir>.</preBuildCommandWorkingDir>
+ <preBuildCommand>cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=${IDE_CC} -DCMAKE_CXX_COMPILER=${IDE_CXX} -DCMAKE_C_FLAGS_DEBUG="-g3 -gdwarf-2" -DCMAKE_CXX_FLAGS_DEBUG="-g3 -gdwarf-2" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .</preBuildCommand>
+ </preBuild>
+ </makefileType>
+ <item path="src/afm-db.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/afm-launch-mode.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/afm-launch.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/afm-main-plugin.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/afm-run.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/afm-system-daemon.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/afm-user-daemon.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/secmgr-wrap.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/utils-dir.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/utils-jbus.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/utils-json.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/verbose.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgt-config.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgt-info.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgt.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-base64.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-certs.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-digsig.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-files.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-info.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-install.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-installer.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-pack.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-permissions.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-sign.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-uninstall.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-workdir.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-xmlsec.c" ex="false" tool="0" flavor2="0">
+ </item>
+ <item path="src/wgtpkg-zip.c" ex="false" tool="0" flavor2="0">
+ </item>
+ </conf>
+ </confs>
+</configurationDescriptor>
diff --git a/nbproject/project.xml b/nbproject/project.xml
new file mode 100644
index 0000000..40d64ec
--- /dev/null
+++ b/nbproject/project.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+ <type>org.netbeans.modules.cnd.makeproject</type>
+ <configuration>
+ <data xmlns="http://www.netbeans.org/ns/make-project/1">
+ <name>afm-main</name>
+ <c-extensions>c</c-extensions>
+ <cpp-extensions/>
+ <header-extensions>h</header-extensions>
+ <sourceEncoding>UTF-8</sourceEncoding>
+ <make-dep-projects/>
+ <sourceRootList>
+ <sourceRootElem>.</sourceRootElem>
+ </sourceRootList>
+ <confList>
+ <confElem>
+ <name>Default</name>
+ <type>0</type>
+ </confElem>
+ </confList>
+ <formatting>
+ <project-formatting-style>false</project-formatting-style>
+ </formatting>
+ </data>
+ </configuration>
+</project>