Skip to content

Commit

Permalink
bump 2.2.1
Browse files Browse the repository at this point in the history
support a make target shortcut to make an aws-friendly-rpm
  • Loading branch information
gdestuynder committed Feb 8, 2019
1 parent 2925854 commit eb1322b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Authors:
# Guillaume Destuynder <[email protected]>

VERSION := 2.1.0
VERSION := 2.2.1

#FPM options, suggestions:
# --replaces audisp-cef
Expand Down Expand Up @@ -86,6 +86,15 @@ packaging: audisp-json au-json.conf audisp-json.conf
${INSTALL} -D -m 0644 audisp-json.conf tmp/etc/audisp/audisp-json.conf
${INSTALL} -D -m 0755 audisp-json tmp/sbin/audisp-json

rpm-aws: packaging
@echo You want to run this on an amazon build system, e.g.:
@echo `docker run --rm -ti -v $(pwd):/build amazonlinux /bin/bash` then cd /build and run this make target
@echo Installing dependencies...
yum -y install libcurl-devel audit-libs-devel libtool
yum -y install ruby-devel gcc make rpm-build rubygems
gem install --no-ri --no-rdoc fpm
$(MAKE) rpm

rpm: packaging
fpm ${FPMOPTS} -C tmp -v ${VERSION} -n audisp-json --license GPL --vendor mozilla --description "json plugin for Linux Audit" \
--url https://github.com/gdestuynder/audisp-json -d audit-libs -d libcurl \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ They're self explanatory.
- make install
- make uninstall
- make clean
- make rpm-aws # builds deps for amazonlinux, then builds rpm

### Mozilla build targets
We previously used audisp-cef, so we would want to mark that package as obsolete.
Expand Down

0 comments on commit eb1322b

Please sign in to comment.