X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fclamav;h=2c996b26a5353f9242676329d710b29a3b2d97f7;hb=834d6b9e2b2ef37ef178d091de467c0f87196fe4;hp=a2ed1f0664fffc6cc5d8dd6494f5df66df49c808;hpb=d22a2dc4c49dfb68e7f171d8bd8395500292835e;p=people%2Fmfischer%2Fipfire-2.x.git diff --git a/lfs/clamav b/lfs/clamav index a2ed1f0664..2c996b26a5 100644 --- a/lfs/clamav +++ b/lfs/clamav @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2012 IPFire Team # +# Copyright (C) 2007-2014 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,7 +24,7 @@ include Config -VER = 0.97.6 +VER = 0.98.5 THISAPP = clamav-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -32,10 +32,14 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = clamav -PAK_VER = 21 +PAK_VER = 27 DEPS = "" +ifeq "$(MACHINE_TYPE)" "arm" +CONFIGURE_FLAGS = --disable-fanotify +endif + ############################################################################### # Top-level Rules ############################################################################### @@ -44,7 +48,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 1dbdd803b37c0d9d222e4316049f46a2 +$(DL_FILE)_MD5 = abb5c7efaff3394c0a49ff970841a2ac install : $(TARGET) @@ -77,7 +81,10 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/var/ipfire/clamav + cd $(DIR_APP) && ./configure \ + --prefix=/usr \ + --sysconfdir=/var/ipfire/clamav \ + $(CONFIGURE_FLAGS) cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install mkdir -p /usr/share/clamav/ @@ -86,5 +93,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) rm -rfv /usr/share/clamav/*.cvd mkdir -p /var/run/clamav chown clamav:clamav /var/run/clamav + + # Disable PaX mprotect for clamd, clamscan and freshclam + paxctl -cm /usr/sbin/clamd + paxctl -cm /usr/bin/clamscan + paxctl -cm /usr/bin/freshclam + @rm -rf $(DIR_APP) @$(POSTBUILD)