From eb1322b8dbe8522f5e434b02c884501316f43bb2 Mon Sep 17 00:00:00 2001 From: Guillaume Destuynder Date: Fri, 8 Feb 2019 15:35:08 -0800 Subject: [PATCH] bump 2.2.1 support a make target shortcut to make an aws-friendly-rpm --- Makefile | 11 ++++++++++- README.md | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a16863e..1680d66 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ # Authors: # Guillaume Destuynder -VERSION := 2.1.0 +VERSION := 2.2.1 #FPM options, suggestions: # --replaces audisp-cef @@ -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 \ diff --git a/README.md b/README.md index 62a2f4c..9f41ac7 100644 --- a/README.md +++ b/README.md @@ -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.