diff options
| author | Julien "shaddai" Reveret | 2015-11-02 17:46:35 +0100 |
|---|---|---|
| committer | Julien "shaddai" Reveret | 2015-11-02 17:46:35 +0100 |
| commit | 2a9aaacc5a6b5246c199f5b43eead30428bd2911 (patch) | |
| tree | efba2b157339191d7ee7cd70fe538b6059413271 /Makefile | |
| parent | a092ef0cd53e8f1cc760eef63afaac66e7037cde (diff) | |
packaging inside a squeeze chroot modifies the malwares.yara file, adding a git checkout to make sure it is restored before packaging starts
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 |
