SHELL   := /bin/bash #(for brace expansion)

all:	deb
deb:	flame

flame:
	echo $(DESC)
	cd modsec-flameeyes-main && \
	fpm -f -t deb -s dir -n modsec-flameeyes -v 2020.06.13 -a all	\
		--description "mod_security rules againt rogue bots"	\
		--url "https://github.com/Flameeyes/modsec-flameeyes/"	\
		--vendor "Diego Elio Pettenò <flameeyes@flameeyes.com>"	\
		--depends libapache2-mod-security2 --license Apache-2.0 \
		rules/=/usr/share/modsecurity-flameeyes/rules/ 		\
		optional/=/usr/share/modsecurity-flameeyes/optional/ 	\
		README.md=//usr/share/doc/modsec-flameeyes/		\
		../flameeyes.conf=/etc/apache2/mods-enabled/flameeyes.conf
	mv modsec-flameeyes-main/modsec-flameeyes*.deb .

down:
	wget https://github.com/Flameeyes/modsec-flameeyes/archive/main.zip
	unzip main.zip

