diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -1,13 +1,21 @@ | |||
| 1 | VERSION=1.0 | 1 | VERSION=1.0 |
| 2 | DEBVER := $(shell cut -d'.' -f1 < /etc/debian_version) | ||
| 3 | |||
| 2 | 4 | ||
| 3 | clean: | 5 | clean: |
| 4 | rm -rf php-malware-finder/debian | 6 | rm -rf php-malware-finder/debian |
| 5 | 7 | ||
| 6 | extract: | 8 | extract: |
| 7 | cp -r debian php-malware-finder | 9 | cp -r debian php-malware-finder |
| 10 | git checkout php-malware-finder/malwares.yara | ||
| 8 | 11 | ||
| 9 | set_distribution: | 12 | set_distribution: |
| 10 | sed -e "s/##version/`cut -d'.' -f1 < /etc/debian_version`/" -i php-malware-finder/debian/control php-malware-finder/debian/changelog | 13 | sed -e "s/##version/`cut -d'.' -f1 < /etc/debian_version`/" -i php-malware-finder/debian/control php-malware-finder/debian/changelog |
| 11 | 14 | ||
| 12 | package: clean extract set_distribution | 15 | check_distribution: |
| 16 | ifeq ($(DEBVER),6) | ||
| 17 | sed -e 's/^import.*//g' -e 's/^include.*//g' -e 's/and\ not\ IsWhitelisted//g' -i php-malware-finder/malwares.yara | ||
| 18 | endif | ||
| 19 | |||
| 20 | package: clean extract set_distribution check_distribution | ||
| 13 | cd php-malware-finder && debuild -b -us -uc --lintian-opts -X po-debconf | 21 | cd php-malware-finder && debuild -b -us -uc --lintian-opts -X po-debconf |
