Signed-off-by: Florin Dumitrascu <florin.dumitrascu@enea.com>
---
- .../modules/opendaylight/files/leveldb-arm64.patch | 36 +++++
+ .../modules/opendaylight/files/leveldb-arm64.patch | 35 +++++
.../opendaylight/files/leveldbjni-native.patch | 23 ++++
.../puppet/modules/opendaylight/manifests/init.pp | 8 ++
.../modules/opendaylight/manifests/install.pp | 12 +-
deployment_tasks.yaml | 2 +-
odl_package/ubuntu/opendaylight | 4 +-
pre_build_hook | 9 +-
- 8 files changed, 235 insertions(+), 9 deletions(-)
+ 8 files changed, 234 insertions(+), 9 deletions(-)
create mode 100644 deployment_scripts/puppet/modules/opendaylight/files/leveldb-arm64.patch
create mode 100644 deployment_scripts/puppet/modules/opendaylight/files/leveldbjni-native.patch
create mode 100644 deployment_scripts/puppet/modules/opendaylight/manifests/leveldbjni.pp
diff --git a/deployment_scripts/puppet/modules/opendaylight/files/leveldb-arm64.patch b/deployment_scripts/puppet/modules/opendaylight/files/leveldb-arm64.patch
new file mode 100644
-index 0000000..c72efeb
+index 0000000..e0824ca
--- /dev/null
+++ b/deployment_scripts/puppet/modules/opendaylight/files/leveldb-arm64.patch
-@@ -0,0 +1,36 @@
+@@ -0,0 +1,35 @@
+diff --git a/port/atomic_pointer.h b/port/atomic_pointer.h
+index e17bf43..78cb6b3 100644
+--- a/port/atomic_pointer.h
+ #undef ARCH_CPU_PPC_FAMILY
+
+ } // namespace port
-+
diff --git a/deployment_scripts/puppet/modules/opendaylight/files/leveldbjni-native.patch b/deployment_scripts/puppet/modules/opendaylight/files/leveldbjni-native.patch
new file mode 100644
-index 0000000..7520205
+index 0000000..08a528b
--- /dev/null
+++ b/deployment_scripts/puppet/modules/opendaylight/files/leveldbjni-native.patch
@@ -0,0 +1,23 @@
+--- a/leveldbjni-all/pom.xml
++++ b/leveldbjni-all/pom.xml
+@@ -41,7 +41,7 @@
-+
++
+ <groupId>org.fusesource.leveldbjni</groupId>
+ <artifactId>leveldbjni-all</artifactId>
+- <version>1.8</version>
++ <version>1.8-odl</version>
+ <packaging>bundle</packaging>
-+
++
+ <name>${project.artifactId}</name>
+@@ -119,7 +119,8 @@
+ META-INF/native/osx/libleveldbjni.jnilib;osname=macosx;processor=x86,
}
diff --git a/deployment_scripts/puppet/modules/opendaylight/manifests/leveldbjni.pp b/deployment_scripts/puppet/modules/opendaylight/manifests/leveldbjni.pp
new file mode 100644
-index 0000000..c708611
+index 0000000..c599370
--- /dev/null
+++ b/deployment_scripts/puppet/modules/opendaylight/manifests/leveldbjni.pp
@@ -0,0 +1,150 @@
+ ensure => 'present',
+ }
+ }
-+ if ! defined(Package['openjdk-7-jdk']) {
++ if ! defined(Package['openjdk-7-jdk']) {
+ package { 'openjdk-7-jdk':
+ ensure => 'present',
+ }