clamav-1.4.2
This commit is contained in:
@@ -4,36 +4,31 @@
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
from pisi.actionsapi import shelltools, mesontools, cmaketools, pisitools, get
|
||||
from pisi.actionsapi import mesontools, cmaketools, pisitools
|
||||
|
||||
j = ''.join([
|
||||
' -DCMAKE_BUILD_TYPE=None',
|
||||
' -DENABLE_EXAMPLES=ON',
|
||||
' -DENABLE_MILTER=OFF',
|
||||
' -DENABLE_SYSTEMD=OFF',
|
||||
' -DENABLE_{MILTER,SYSTEMD}=OFF',
|
||||
' -DAPP_CONFIG_DIRECTORY=/etc/clamav',
|
||||
' -DDATABASE_DIRECTORY=/var/lib/clamav',
|
||||
' -B_build -G Ninja -L '
|
||||
' -Bbuild -G Ninja -L '
|
||||
])
|
||||
|
||||
def setup():
|
||||
shelltools.export("CFLAGS", "%s -I/usr/include/iconv " % get.CFLAGS())
|
||||
cmaketools.configure(j)
|
||||
|
||||
def build():
|
||||
mesontools.build("-C _build")
|
||||
mesontools.build()
|
||||
|
||||
def check():
|
||||
# failed utf16 to utf8 converting
|
||||
#pass
|
||||
mesontools.build("-C _build test")
|
||||
mesontools.build("test")
|
||||
# pass
|
||||
|
||||
def install():
|
||||
mesontools.install("-C _build install")
|
||||
mesontools.install()
|
||||
|
||||
#pisitools.dodir("/run/clamav")
|
||||
pisitools.dodir("/var/lib/clamav")
|
||||
#pisitools.dodir("/var/log/clamav")
|
||||
|
||||
for t in shelltools.ls("%s/etc/clamav" % get.installDIR()):
|
||||
for t in ["clamd.conf.sample", "freshclam.conf.sample"]:
|
||||
pisitools.rename("/etc/clamav/%s" % t, t.replace(".sample", ""))
|
||||
|
||||
Reference in New Issue
Block a user