Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
Build: lightwave-1.3.1-6

Change-Id: I2cd751891b8a3bfd5da556ab946c3e6ea1096984
  • Loading branch information
aizurov-vmw committed Oct 25, 2017
2 parents d91186e + 9accf28 commit 9ceb89d
Show file tree
Hide file tree
Showing 203 changed files with 5,558 additions and 1,596 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -575,3 +575,6 @@ build/vmidentity/
build/vmmetrics/
build/rpmbuild/

# hmake files
.hmake
.hmakerc
64 changes: 64 additions & 0 deletions HyperMake
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
format: hypermake.v0

name: lightwave
description: Lightwave

targets:
rebuild-toolchain:
description: build toolchain image
watches:
- support/toolchain/docker/photon
build: support/toolchain/docker/photon
cache: false

toolchain:
description: place-holder for future dependencies

bootstrap-lightwave:
description: Bootstraps build
after:
- toolchain
watches:
- '**/**/*.am'
- '**/**/*.ac'
cmds:
- ./support/scripts/bootstrap.sh

build-lightwave:
description: build Lightwave source code for linux
after:
- bootstrap-lightwave
watches:
- support/scripts/build.sh
- '**/**/*.cpp'
- '**/**/*.c'
- '**/**/*.h'
- '**/**/*.java'
cmds:
- ./support/scripts/build.sh

build:
description: build source code
after:
- 'build-*'

pack:
description: Create RPM Package
after:
- build
cmds:
- ./support/scripts/pack.sh

clean:
description: Cleanup
always: true
cmds:
- ./support/scripts/clean.sh

settings:
default-targets:
- build
- pack
docker:
image: 'vmware/lightwave-toolchain-photon:0.0.1'
79 changes: 54 additions & 25 deletions build/package/rpm/lightwave.spec
Original file line number Diff line number Diff line change
Expand Up @@ -298,20 +298,12 @@ Lightwave POST service

/sbin/ldconfig

# config

/bin/systemctl enable firewall.service >/dev/null 2>&1
# start the firewall service
/bin/systemctl restart firewall.service
if [ $? -ne 0 ]; then
/bin/ln -s %{_servicedir}/firewall.service /etc/systemd/system/multi-user.target.wants/firewall.service
echo "Firewall service not restarted"
fi

/bin/systemctl >/dev/null 2>&1
if [ $? -eq 0 ]; then
/bin/systemctl daemon-reload
fi
/bin/systemctl start firewall.service

# vmdir
# vmdir

/bin/mkdir -m 700 -p %{_vmdir_dbdir}

Expand Down Expand Up @@ -432,6 +424,19 @@ Lightwave POST service
# First argument is 1 => New Installation
# First argument is 2 => Upgrade

# config firewall service for server/post

/bin/systemctl enable firewall.service >/dev/null 2>&1
if [ $? -ne 0 ]; then
/bin/ln -s %{_servicedir}/firewall.service /etc/systemd/system/multi-user.target.wants/firewall.service
fi

/bin/systemctl >/dev/null 2>&1
if [ $? -eq 0 ]; then
/bin/systemctl daemon-reload
fi
/bin/systemctl restart firewall.service

/bin/mkdir -m 755 -p %{_logdir}

SRP_MECH_OID="1.2.840.113554.1.2.10"
Expand Down Expand Up @@ -557,6 +562,13 @@ Lightwave POST service

%post post

# start the firewall service
/bin/systemctl restart firewall.service
if [ $? -ne 0 ]; then
echo "Firewall service not restarted"
fi

# make post db directory
/bin/mkdir -m 700 -p %{_post_dbdir}

if [ -a %{_sasl2dir}/postd.conf ]; then
Expand Down Expand Up @@ -706,16 +718,6 @@ Lightwave POST service
/bin/systemctl restart lwsmd
sleep 5

/bin/systemctl >/dev/null 2>&1
if [ $? -eq 0 ]; then
if [ -f /etc/systemd/system/firewall.service ]; then
/bin/systemctl stop firewall.service
/bin/systemctl disable firewall.service
/bin/rm -f /etc/systemd/system/firewall.service
/bin/systemctl daemon-reload
fi
fi

if [ -h %{_logconfdir}/vmdird-syslog-ng.conf ]; then
/bin/rm -f %{_logconfdir}/vmdird-syslog-ng.conf
fi
Expand Down Expand Up @@ -752,6 +754,16 @@ Lightwave POST service
sleep 5
fi

/bin/systemctl >/dev/null 2>&1
if [ $? -eq 0 ]; then
if [ -f /etc/systemd/system/firewall.service ]; then
/bin/systemctl stop firewall.service
/bin/systemctl disable firewall.service
/bin/rm -f /etc/systemd/system/multi-user.target.wants/firewall.service
/bin/systemctl daemon-reload
fi
fi

if [ -h %{_logconfdir}/vmafdd-syslog-ng.conf ]; then
/bin/rm -f %{_logconfdir}/vmafdd-syslog-ng.conf
fi
Expand Down Expand Up @@ -965,14 +977,24 @@ Lightwave POST service
%{_jarsdir}/sts.jar
%{_jarsdir}/openidconnect-protocol.jar
%{_jarsdir}/openidconnect-server.jar
%{_jarsdir}/args4j-2.33.jar
%{_jarsdir}/commons-codec-1.9.jar
%{_jarsdir}/commons-lang-2.6.jar
%{_jarsdir}/commons-lang3-3.3.2.jar
%{_jarsdir}/commons-logging-1.2.jar
%{_jarsdir}/jersey-media-json-jackson-2.25.1.jar
%{_jarsdir}/jackson-core-2.8.4.jar
%{_jarsdir}/jackson-databind-2.8.4.jar
%{_jarsdir}/jackson-annotations-2.8.4.jar
%{_jarsdir}/jna-4.2.1.jar
%{_jarsdir}/json-smart-1.3.1.jar
%{_jarsdir}/httpclient-4.5.1.jar
%{_jarsdir}/httpcore-4.4.4.jar
%{_jarsdir}/slf4j-api-1.7.25.jar
%{_jarsdir}/log4j-api-2.8.2.jar
%{_jarsdir}/log4j-slf4j-impl-2.8.2.jar
%{_jarsdir}/log4j-core-2.8.2.jar
%{_jarsdir}/nimbus-jose-jwt-4.12.jar

%{_webappsdir}/lightwaveui.war
%{_webappsdir}/ROOT.war
Expand Down Expand Up @@ -1036,10 +1058,8 @@ Lightwave POST service
%{_datadir}/config/vmdnsd-syslog-ng.conf
%{_datadir}/config/vmdns-telegraf.conf

%{_configdir}/firewall.json
%{_configdir}/setfirewallrules.py
%{_configdir}/lw-firewall-server.json

%{_servicedir}/firewall.service

%files client

Expand Down Expand Up @@ -1121,6 +1141,11 @@ Lightwave POST service
%{_jarsdir}/vmware-identity-rest-core-client.jar
%{_jarsdir}/vmware-identity-rest-idm-client.jar

%{_configdir}/lw-firewall-client.json
%{_configdir}/setfirewallrules.py

%{_servicedir}/firewall.service

%{_sysconfdir}/vmware/java/vmware-override-java.security

%files post
Expand All @@ -1144,6 +1169,10 @@ Lightwave POST service
%{_datadir}/config/post-client.reg
%{_datadir}/config/post-telegraf.conf

%{_configdir}/lw-firewall-post.json

%config %attr(750, root, root) %{_datadir}/config/post-demote-deads.sh

%files devel

%defattr(-,root,root)
Expand Down
26 changes: 0 additions & 26 deletions config/deployment/aws/appspec.yml

This file was deleted.

38 changes: 0 additions & 38 deletions config/deployment/aws/cloud-init

This file was deleted.

3 changes: 0 additions & 3 deletions config/deployment/aws/scripts/before_allow_traffic.sh

This file was deleted.

4 changes: 0 additions & 4 deletions config/deployment/aws/scripts/change_permissions.sh

This file was deleted.

8 changes: 0 additions & 8 deletions config/deployment/aws/scripts/install_dependencies.sh

This file was deleted.

Loading

0 comments on commit 9ceb89d

Please sign in to comment.