Created
June 9, 2014 06:02
-
-
Save syuu1228/50cdd17d52017d299aa8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 9c5575b8993594a0dc7823aecc89e18af583162a Mon Sep 17 00:00:00 2001 | |
From: Takuya ASADA <syuu@cloudius-systems.com> | |
Date: Sat, 7 Jun 2014 23:32:50 +0900 | |
Subject: [PATCH apps] Add OpenDaylight | |
Add OpenDaylight, a SDN controller software. | |
Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com> | |
--- | |
modules.json | 4 ++++ | |
opendaylight/Capstanfile | 6 ++++++ | |
opendaylight/Makefile | 19 +++++++++++++++++++ | |
opendaylight/README | 1 + | |
opendaylight/module.py | 7 +++++++ | |
opendaylight/usr.manifest | 4 ++++ | |
6 files changed, 41 insertions(+) | |
create mode 100644 opendaylight/Capstanfile | |
create mode 100644 opendaylight/Makefile | |
create mode 100644 opendaylight/README | |
create mode 100644 opendaylight/module.py | |
create mode 100644 opendaylight/usr.manifest | |
diff --git a/modules.json b/modules.json | |
index 07338d5..eca0046 100644 | |
--- a/modules.json | |
+++ b/modules.json | |
@@ -106,5 +106,9 @@ | |
"solr": { | |
"type": "direct-dir", | |
"path": "${OSV_BASE}/apps/solr/" | |
+}, | |
+"opendaylight": { | |
+ "type": "direct-dir", | |
+ "path": "${OSV_BASE}/apps/opendaylight/" | |
} | |
} | |
diff --git a/opendaylight/Capstanfile b/opendaylight/Capstanfile | |
new file mode 100644 | |
index 0000000..816689f | |
--- /dev/null | |
+++ b/opendaylight/Capstanfile | |
@@ -0,0 +1,6 @@ | |
+base: cloudius/osv-openjdk | |
+ | |
+cmdline: > | |
+ /java.so -Dfelix.fileinstall.filter=^(?!org.opendaylight.(openflowplugin|openflowjava)).* -Djava.io.tmpdir=/work/tmp -Dosgi.install.area=/ -Dosgi.configuration.area=/configuration -Dosgi.frameworkClassPath=file:/lib/org.eclipse.osgi-3.8.1.v20120830-144521.jar,file:/lib/org.eclipse.virgo.kernel.equinox.extensions-3.6.0.RELEASE.jar,file:/lib/org.eclipse.equinox.launcher-1.3.0.v20120522-1813.jar -Dosgi.framework=file:/lib/org.eclipse.osgi-3.8.1.v20120830-144521.jar -Djava.awt.headless=true -classpath /lib/org.eclipse.osgi-3.8.1.v20120830-144521.jar:/lib/org.eclipse.virgo.kernel.equinox.extensions-3.6.0.RELEASE.jar:/lib/org.eclipse.equinox.launcher-1.3.0.v20120522-1813.jar org.eclipse.equinox.launcher.Main -console -consoleLog | |
+ | |
+build: make | |
diff --git a/opendaylight/Makefile b/opendaylight/Makefile | |
new file mode 100644 | |
index 0000000..d8b35d9 | |
--- /dev/null | |
+++ b/opendaylight/Makefile | |
@@ -0,0 +1,19 @@ | |
+.PHONY: module | |
+ | |
+VERSION := 0.1.1 | |
+URL := https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distributions-base/$(VERSION)/distributions-base-$(VERSION)-osgipackage.zip | |
+ | |
+module: ROOTFS | |
+ | |
+distributions-base-${VERSION}-osgipackage.zip: | |
+ wget $(URL) | |
+ | |
+opendaylight: distributions-base-${VERSION}-osgipackage.zip | |
+ unzip -x distributions-base-${VERSION}-osgipackage.zip | |
+ | |
+ROOTFS: opendaylight | |
+ mkdir ROOTFS | |
+ cp -a opendaylight/configuration opendaylight/plugins opendaylight/version.properties opendaylight/lib ROOTFS | |
+ | |
+clean: | |
+ rm -rf opendaylight ROOTFS *.zip | |
diff --git a/opendaylight/README b/opendaylight/README | |
new file mode 100644 | |
index 0000000..c6e24fd | |
--- /dev/null | |
+++ b/opendaylight/README | |
@@ -0,0 +1 @@ | |
+See more http://lucene.apache.org/solr/ | |
diff --git a/opendaylight/module.py b/opendaylight/module.py | |
new file mode 100644 | |
index 0000000..ef4976e | |
--- /dev/null | |
+++ b/opendaylight/module.py | |
@@ -0,0 +1,7 @@ | |
+from osv.modules import api | |
+ | |
+api.require('java') | |
+ | |
+_args = ['-Dfelix.fileinstall.filter=^(?!org.opendaylight.(openflowplugin|openflowjava)).*', "-Djava.io.tmpdir=/work/tmp", "-Dosgi.install.area=/", "-Dosgi.configuration.area=/configuration", "-Dosgi.frameworkClassPath=file:/lib/org.eclipse.osgi-3.8.1.v20120830-144521.jar,file:/lib/org.eclipse.virgo.kernel.equinox.extensions-3.6.0.RELEASE.jar,file:/lib/org.eclipse.equinox.launcher-1.3.0.v20120522-1813.jar", "-Dosgi.framework=file:/lib/org.eclipse.osgi-3.8.1.v20120830-144521.jar", "-Djava.awt.headless=true", "-classpath", "/lib/org.eclipse.osgi-3.8.1.v20120830-144521.jar:/lib/org.eclipse.virgo.kernel.equinox.extensions-3.6.0.RELEASE.jar:/lib/org.eclipse.equinox.launcher-1.3.0.v20120522-1813.jar", "org.eclipse.equinox.launcher.Main", "-console", "-consoleLog"] | |
+ | |
+default = api.run_java(args = _args) | |
diff --git a/opendaylight/usr.manifest b/opendaylight/usr.manifest | |
new file mode 100644 | |
index 0000000..d8f6e1a | |
--- /dev/null | |
+++ b/opendaylight/usr.manifest | |
@@ -0,0 +1,4 @@ | |
+/configuration/**: ${MODULE_DIR}/ROOTFS/configuration/** | |
+/plugins/**: ${MODULE_DIR}/ROOTFS/plugins/** | |
+/version.properties: ${MODULE_DIR}/ROOTFS/version.properties | |
+/lib/**: ${MODULE_DIR}/ROOTFS/lib/** | |
-- | |
1.9.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment