Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile need love too #334

Merged
merged 109 commits into from
Oct 7, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
d7eea09
clean up stuff on the mac osx better
jrossi Sep 23, 2014
4cda098
os_execd Makefile should on rebuild when somethign changes
jrossi Sep 23, 2014
85c3591
logcollector Makefile should on rebuild when somethign changes
jrossi Sep 23, 2014
5b27fc2
remoted Makefile should on rebuild when somethign changes
jrossi Sep 23, 2014
564084a
rootcheck Makefile should on rebuild when somethign changes
jrossi Sep 23, 2014
ffc460c
monitord makefile
jrossi Sep 23, 2014
7514892
syscheck makefile
jrossi Sep 23, 2014
615d1d7
addagent makefile
jrossi Sep 23, 2014
b504b7d
agentless makefile
jrossi Sep 23, 2014
bb2462c
util makefile
jrossi Sep 23, 2014
0e2f975
makefile
jrossi Sep 23, 2014
93ff881
makefile clean up
jrossi Sep 23, 2014
5f47094
changing to a single makefile
jrossi Sep 24, 2014
ba8b6b6
more stuff around makefile
jrossi Sep 24, 2014
69cf9ae
cleaner default output
jrossi Sep 24, 2014
50cefce
more done
jrossi Sep 24, 2014
7c3b727
More Makefile fun. Crypto and other daemons
jrossi Sep 24, 2014
f74d9f6
remoted
jrossi Sep 25, 2014
8a21328
remoted now builds
jrossi Sep 25, 2014
b54f637
ossec-agentd building
jrossi Sep 25, 2014
1d0165a
manage_agents working
jrossi Sep 25, 2014
c53bb78
adding utils
jrossi Sep 25, 2014
8299e62
adding sycheck and monitord
jrossi Sep 25, 2014
202eac7
adding more stuff and fixing out the output colors
jrossi Sep 25, 2014
7ea7a45
reportd completed
jrossi Sep 25, 2014
26805e6
adding os_auth
jrossi Sep 25, 2014
c4f9bd3
start of analysisd
jrossi Sep 25, 2014
70948d9
Adding analysisd to new Makefile (This is horrid what was done)
jrossi Sep 26, 2014
fb9684b
working on linux
jrossi Sep 26, 2014
2249b0a
removing old Makefiles
jrossi Sep 26, 2014
dcdeab1
Merge branch 'master' into makefile-need-love-too
jrossi Sep 27, 2014
b51151b
adding ossec-makelists
jrossi Sep 27, 2014
8bc9daa
improve makefile:
cgzones Sep 27, 2014
f15d0d7
reenable new design
cgzones Sep 27, 2014
7e921b7
Merge pull request #2 from cgzones/makefile-need-love-too
jrossi Sep 27, 2014
356f5d6
first pass at install scripts
jrossi Sep 27, 2014
2e61956
remove obsolete cJSON Makefile
cgzones Sep 27, 2014
68f6240
merge Makfile in dir external into main Makefile
cgzones Sep 27, 2014
d0242ac
switch compiler flags on V (maybe rename into DEBUG in the future?)
cgzones Sep 27, 2014
b903614
always use ${} instead of $()
cgzones Sep 27, 2014
e0a1fb0
Merge pull request #3 from cgzones/makefile-need-love-too
jrossi Sep 27, 2014
4133d98
adding missing dependencies
cgzones Sep 27, 2014
0874620
Merge pull request #4 from cgzones/makefile-need-love-too
jrossi Sep 27, 2014
7e1c8d3
cleanup
cgzones Sep 27, 2014
b138f5c
fix for clean start
cgzones Sep 27, 2014
100c59b
Merge pull request #5 from cgzones/makefile-need-love-too
jrossi Sep 27, 2014
d585a8c
V = Verbose and DEBUG = debug
jrossi Sep 27, 2014
82a9e7c
targets for building agent or server
jrossi Sep 28, 2014
a1c767c
start of MySQL setup
jrossi Sep 28, 2014
58e50f8
more clean up and making a little platform for building ossec
jrossi Sep 28, 2014
a2ba2ee
more little things and starting on the dbd stuff
jrossi Sep 29, 2014
2ca6307
make install should work now. Still requires target unless server
jrossi Sep 29, 2014
35386c0
more SunOS Stuff
jrossi Sep 29, 2014
f1652dc
more little items
jrossi Sep 30, 2014
02bef3a
Merge branch 'master' into makefile-need-love-too
jrossi Oct 1, 2014
be71187
retab to spaces as that is what was used more often.
jrossi Oct 1, 2014
b47cb78
starting to play with install
jrossi Oct 2, 2014
3eee1c6
Merge branch 'master' into makefile-need-love-too
jrossi Oct 2, 2014
bfe0c53
make use of variable LDFLAGS instead of IEXTRA and TEXTRA
cgzones Oct 2, 2014
972a3b9
make travis working
cgzones Oct 2, 2014
3d22194
rename ossec-dbd into os_dbd
cgzones Oct 2, 2014
f33ecec
fix
cgzones Oct 2, 2014
ab377e0
do not use dirnames as target
cgzones Oct 2, 2014
35a37e0
fix os_dbd
cgzones Oct 2, 2014
34906d0
Merge pull request #6 from cgzones/makefile-need-love-too
jrossi Oct 2, 2014
86415e6
Merge branch 'master' into makefile-need-love-too
jrossi Oct 2, 2014
53f5081
Server install works now - dumb trailing space bug on my end
jrossi Oct 3, 2014
f546514
formating clean up
jrossi Oct 3, 2014
bc73fe5
always build ossec-dbd even if not libs are present
jrossi Oct 3, 2014
95b05d3
lua install was not working on server
jrossi Oct 3, 2014
eba2414
users in the Makefile so they can be pushed into install scripts
jrossi Oct 4, 2014
86043b0
install server and agent work
jrossi Oct 4, 2014
76cc137
adding local and hybrid install types
jrossi Oct 4, 2014
f889e26
adding use_prelude
jrossi Oct 4, 2014
fdb4fa2
small fixes
cgzones Oct 4, 2014
d9e9a66
travis: enable zeromq and prelude compilation
cgzones Oct 4, 2014
7ded7b3
define LOCAL marco on local install, remove trailing whitespaces
cgzones Oct 4, 2014
f7dbba9
several stuff
cgzones Oct 5, 2014
1e3ead0
indent batabse code, remove not required geoip detection
cgzones Oct 5, 2014
984652f
fix compilation without ssl
cgzones Oct 5, 2014
0117907
Merge pull request #7 from cgzones/makefile-need-love-too
jrossi Oct 5, 2014
cb24aa2
use defined prefix, users and group in compilation
cgzones Oct 5, 2014
7eee6cd
Merge pull request #8 from cgzones/makefile-need-love-too
jrossi Oct 5, 2014
3f9e5e6
Merge branch 'master' into makefile-need-love-too
jrossi Oct 5, 2014
65e444c
adding some missing options
jrossi Oct 5, 2014
9847a2e
merge InstallServer into Makefile
cgzones Oct 6, 2014
97cda86
re-export variables and fix order
cgzones Oct 6, 2014
c9a1c49
try to solve some todos
cgzones Oct 6, 2014
9b1bf24
do not overwrite internal_options.conf
cgzones Oct 6, 2014
6328578
use 4 digits for modes
cgzones Oct 6, 2014
c3a1571
preserve local_rules.xml
cgzones Oct 6, 2014
d0a7352
merge InstallAgent into Makefile
cgzones Oct 6, 2014
5d1bb68
add tmp directory
cgzones Oct 6, 2014
2055060
remove trailing whitespaces
cgzones Oct 6, 2014
98670a0
travis: use make option --warn-undefined-variables
cgzones Oct 6, 2014
1627feb
Merge pull request #9 from cgzones/makefile-need-love-too
jrossi Oct 6, 2014
66d66dc
Merge branch 'master' into makefile-need-love-too
jrossi Oct 7, 2014
a3d7928
fix for openbsd
jrossi Oct 7, 2014
84f1aa8
dump mistake
jrossi Oct 7, 2014
29ef419
some shell script updates
cgzones Oct 7, 2014
98a85b9
remove now obsolete exports
cgzones Oct 7, 2014
65017c1
simplify src file detection
cgzones Oct 7, 2014
962d4aa
some permission changes
cgzones Oct 7, 2014
afb842b
some shell script updates
cgzones Oct 7, 2014
f598a8a
fix permission
cgzones Oct 7, 2014
5c9733e
fix fw-check without argument
cgzones Oct 7, 2014
a2a8f09
do not output comment
cgzones Oct 7, 2014
aec4c7d
Merge pull request #10 from cgzones/makefile-need-love-too
jrossi Oct 7, 2014
e444c58
Merge branch 'master' into makefile-need-love-too
jrossi Oct 7, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,31 @@ src/tests/test_os_regex
src/tests/test_shared
src/tests/test_os_xml
src/tests/test_os_zlib


# new location for binaries
src/manage_agents
src/ossec-agentd
src/ossec-agentlessd
src/ossec-authd
src/ossec-csyslogd
src/ossec-execd
src/ossec-logcollector
src/ossec-maild
src/ossec-monitord
src/ossec-regex
src/ossec-remoted
src/ossec-reportd
src/ossec-syscheckd
src/rootcheck_control
src/syscheck_control
src/syscheck_update
src/verify-agent-conf
src/agent-auth
src/agent_control
src/clear_stats
src/list_agents
src/ossec-analysisd
src/ossec-logtest
src/ossec-makelists
src/ossec-dbd
36 changes: 21 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ notifications:
- "chat.freenode.net#ossec-dev"

env:
- DB=mysql OSSEC_TYPE=all GEOIP=yes
- DB=mysql OSSEC_TYPE=all GEOIP=no
- DB=none OSSEC_TYPE=all GEOIP=yes
- DB=none OSSEC_TYPE=all GEOIP=no
- DB=mysql OSSEC_TYPE=server GEOIP=yes
- DB=mysql OSSEC_TYPE=server GEOIP=no
- DB=pgsql OSSEC_TYPE=server GEOIP=yes
- DB=pgsql OSSEC_TYPE=server GEOIP=no
- DB=none OSSEC_TYPE=server GEOIP=yes
- DB=none OSSEC_TYPE=server GEOIP=no
- DB=none OSSEC_TYPE=server PRELUDE=yes
- DB=none OSSEC_TYPE=local GEOIP=no
- DB=none OSSEC_TYPE=hybrid GEOIP=no
- DB=none OSSEC_TYPE=agent GEOIP=no
- DB=none OSSEC_TYPE=windows_agent GEOIP=no
- DB=none OSSEC_TYPE=winagent GEOIP=no
- OSSEC_TYPE=test


Expand All @@ -23,30 +28,31 @@ matrix:
fast_finish: true
exclude:
- compiler: clang
env: DB=none OSSEC_TYPE=windows_agent GEOIP=no
env: DB=none OSSEC_TYPE=winagent GEOIP=no



before_script:
- sudo apt-get update -qq
- if [[ "$DB" == "mysql" ]]; then ( cd src && make setdb ); fi
- if [[ "$GEOIP" == "yes" ]]; then ( sudo apt-get install geoip-bin geoip-database libgeoip-dev libgeoip1 ); fi
- if [[ "$GEOIP" == "yes" ]]; then ( cd src && make setgeoip ); fi
- if [[ "$OSSEC_TYPE" == "windows_agent" ]]; then ( sudo apt-get install aptitude && sudo aptitude -y install mingw-w64 nsis ); fi
- if [[ "${PRELUDE}" = "yes" ]]; then (sudo apt-get install libprelude-dev ); fi
- if [[ "$OSSEC_TYPE" == "winagent" ]]; then ( sudo apt-get install aptitude && sudo aptitude -y install mingw-w64 nsis ); fi
- if [[ "$OSSEC_TYPE" == "test" ]]; then ( sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ saucy main " && sudo apt-get update && sudo apt-get install check valgrind ); fi



script:
- echo "CC = '${CC}'" # this seems suspicious, but without this travis do not uses the clang compiler correctly
- if [[ "$OSSEC_TYPE" == "agent" ]]; then ( cd src/ && make setagent && make all ); fi
- COMMAND="V=1 TARGET=${OSSEC_TYPE}"
&& if ! [[ "${DB}" = "none" ]]; then COMMAND="${COMMAND} DATABASE=${DB}"; fi
&& if [[ "${GEOIP}" = "yes" ]]; then COMMAND="${COMMAND} USE_GEOIP=1"; fi
&& if [[ "${PRELUDE}" = "yes" ]]; then COMMAND="${COMMAND} USE_PRELUDE=1"; fi
&& ( cd src/ && make --warn-undefined-variables ${COMMAND} settings && make --warn-undefined-variables ${COMMAND} -j )
&& if ! [[ "$OSSEC_TYPE" = "test" || "$OSSEC_TYPE" = "winagent" ]]; then ( cd src/ && sudo make --warn-undefined-variables ${COMMAND} install ) fi

- ( cd src/ && sudo make $OSSEC_TYPE )

- if [[ "$OSSEC_TYPE" == "test" ]]; then ( cd src/tests/ && make run_valgrind ); fi
- if [[ "$OSSEC_TYPE" == "test" ]]; then ( cd src/tests/ && make --warn-undefined-variables run_valgrind ); fi

before_deploy:
- mkdir travis-builds
- if [[ "$OSSEC_TYPE" == "windows_agent" ]]; then ( cp src/win-pkg/ossec-agent.exe travis-builds/ossec-agent-bid:$TRAVIS_JOB_NUMBER-br:$TRAVIS_BRANCH.exe ); fi
- if [[ "$OSSEC_TYPE" == "winagent" ]]; then ( cp src/win-pkg/ossec-agent.exe travis-builds/ossec-agent-bid:$TRAVIS_JOB_NUMBER-br:$TRAVIS_BRANCH.exe ); fi


Loading