-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support a make target shortcut to make an aws-friendly-rpm
- Loading branch information
1 parent
2925854
commit eb1322b
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
# Authors: | ||
# Guillaume Destuynder <[email protected]> | ||
|
||
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 \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters