CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
-CONFIGURE_ENVIRONMENT += have_cv_ipv6=yes
+CONFIGURE_ENVIRONMENT += have_cv_ipv6=yes
-CONFIGURE_OPTIONS += \
+CONFIGURE_OPTIONS += \
--sysconfdir=/etc \
--disable-static \
--disable-rpath \
--with-user=clamupdate \
--with-group=clamupdate
+# User and group have to exist to compile the source code,
+# so we have to create them
define STAGE_PREPARE_CMDS
groupadd -g 497 -r clamupdate
useradd -u 497 -r -s /sbin/nologin -d /var/lib/clamav -M \
useradd -u 496 -r -s /sbin/nologin -d / -M \
-g clamscan clamscan
endef
-
-define STAGE_INSTALL
- cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
-endef