diff options
| author | xarkes | 2016-04-11 11:22:01 +0200 |
|---|---|---|
| committer | Julien (jvoisin) Voisin | 2016-04-11 17:09:34 +0200 |
| commit | 3854653c8686cf9ff9bbab13f09d1566682efb5e (patch) | |
| tree | 4615cb15e9c81428068ae3a3f13faf10cc426e0d /Makefile | |
| parent | b1f5377f011ff1eeab9bec96261667ed566c6fbe (diff) | |
Fixed debian package + readme
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | VERSION=1.0 | 1 | VERSION=1.0 |
| 2 | DEBVER := $(shell cut -d'.' -f1 < /etc/debian_version) | 2 | DEBVER := $(shell sed 's,[/\.].*,,' < /etc/debian_version) |
| 3 | 3 | ||
| 4 | tests: | 4 | tests: |
| 5 | @cd ./php-malware-finder && bash ./tests.sh | 5 | @cd ./php-malware-finder && bash ./tests.sh |
| @@ -10,14 +10,16 @@ clean: | |||
| 10 | 10 | ||
| 11 | extract: | 11 | extract: |
| 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 | ||
| 15 | set_distribution: | 17 | set_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 | ||
| 18 | check_distribution: | 20 | check_distribution: |
| 19 | ifeq ($(DEBVER),6) | 21 | ifeq ($(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 |
| 21 | endif | 23 | endif |
| 22 | 24 | ||
| 23 | package: clean extract set_distribution check_distribution | 25 | package: clean extract set_distribution check_distribution |
