summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulien "shaddai" Reveret2015-11-02 17:46:35 +0100
committerJulien "shaddai" Reveret2015-11-02 17:46:35 +0100
commit2a9aaacc5a6b5246c199f5b43eead30428bd2911 (patch)
treeefba2b157339191d7ee7cd70fe538b6059413271 /Makefile
parenta092ef0cd53e8f1cc760eef63afaac66e7037cde (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--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c34bcee..0a9d1bb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,21 @@
1VERSION=1.0 1VERSION=1.0
2DEBVER := $(shell cut -d'.' -f1 < /etc/debian_version)
3
2 4
3clean: 5clean:
4 rm -rf php-malware-finder/debian 6 rm -rf php-malware-finder/debian
5 7
6extract: 8extract:
7 cp -r debian php-malware-finder 9 cp -r debian php-malware-finder
10 git checkout php-malware-finder/malwares.yara
8 11
9set_distribution: 12set_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
12package: clean extract set_distribution 15check_distribution:
16ifeq ($(DEBVER),6)
17 sed -e 's/^import.*//g' -e 's/^include.*//g' -e 's/and\ not\ IsWhitelisted//g' -i php-malware-finder/malwares.yara
18endif
19
20package: 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