summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxarkes2016-04-11 11:22:01 +0200
committerJulien (jvoisin) Voisin2016-04-11 17:09:34 +0200
commit3854653c8686cf9ff9bbab13f09d1566682efb5e (patch)
tree4615cb15e9c81428068ae3a3f13faf10cc426e0d /Makefile
parentb1f5377f011ff1eeab9bec96261667ed566c6fbe (diff)
Fixed debian package + readme
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c57ef4d..ddf79b7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
1VERSION=1.0 1VERSION=1.0
2DEBVER := $(shell cut -d'.' -f1 < /etc/debian_version) 2DEBVER := $(shell sed 's,[/\.].*,,' < /etc/debian_version)
3 3
4tests: 4tests:
5 @cd ./php-malware-finder && bash ./tests.sh 5 @cd ./php-malware-finder && bash ./tests.sh
@@ -10,14 +10,16 @@ clean:
10 10
11extract: 11extract:
12 cp -r debian php-malware-finder 12 cp -r debian php-malware-finder
13 git checkout php-malware-finder/malwares.yara 13 git checkout php-malware-finder/common.yara
14 git checkout php-malware-finder/php.yara
15 git checkout php-malware-finder/asp.yara
14 16
15set_distribution: 17set_distribution:
16 sed -e "s/##version/`cut -d'.' -f1 < /etc/debian_version`/" -i php-malware-finder/debian/control php-malware-finder/debian/changelog 18 sed -e "s/##version/${DEBVER}/" -i php-malware-finder/debian/control php-malware-finder/debian/changelog
17 19
18check_distribution: 20check_distribution:
19ifeq ($(DEBVER),6) 21ifeq ($(DEBVER),6)
20 sed -e '/too_many_chr/d' -e '/b64_concat/d' -e 's/^import.*//g' -e 's/^include.*//g' -e 's/and\ not\ IsWhitelisted//g' -i php-malware-finder/malwares.yara 22 sed -e '/too_many_chr/d' -e '/b64_concat/d' -e 's/^import.*//g' -e 's/^include.*//g' -e 's/and\ not\ IsWhitelisted//g' -i php-malware-finder/common.yara
21endif 23endif
22 24
23package: clean extract set_distribution check_distribution 25package: clean extract set_distribution check_distribution