summaryrefslogtreecommitdiff
path: root/recipes/clamsmtp/clamsmtp_1.8.bb
blob: 070d4afb838fd44950a51c4aae5040e111bd7098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
DESCRIPTION = "ClamSMTP is an SMTP filter that allows you to check for \
viruses using the ClamAV anti-virus software. It accepts SMTP connections \
and forwards the SMTP commands and responses to another SMTP server. The \
'DATA' email body is intercepted and scanned before forwarding. ClamSMTP \
has an optional transparent proxy mode."
HOMEPAGE = "http://memberwebs.com/nielsen/software/clamsmtp/"
SECTION = "network"
LICENSE = "BSD"
DEPENDS = "clamav"
RDEPENDS_${PN} = "clamav-daemon"
PR = "r2"

SRC_URI = "http://memberwebs.com/nielsen/software/clamsmtp/clamsmtp-${PV}.tar.gz \
           file://update-config.patch \
           file://clamsmtp.init \
           file://doc.configure.txt"

inherit autotools update-rc.d

do_configure () {
        # no autoreconf please
        aclocal
        autoconf
        libtoolize --force
        oe_runconf
}
do_install_append () {
        install -m 0755 -d ${D}${sysconfdir}/init.d \
                           ${D}${docdir}/clamsmtp
        install -m 755 ${WORKDIR}/clamsmtp.init ${D}${sysconfdir}/init.d/clamsmtpd
        install -m 644 doc/clamsmtpd.conf ${D}${sysconfdir}/clamsmtpd.conf
        install -m 644 README ${D}${docdir}/clamsmtp
        install -m 644 ${WORKDIR}/doc.configure.txt ${D}${docdir}/clamsmtp/configure.txt
        install -m 644 scripts/virus_action.sh ${D}${docdir}/clamsmtp
}

CONFFILES_${PN} = "${sysconfdir}/clamsmtpd.conf"

INITSCRIPT_NAME = "clamsmtpd"
INITSCRIPT_PARAMS = "defaults 65 35"

SRC_URI[md5sum] = "04da6aab94934641fcf9e7a7598346fb"
SRC_URI[sha256sum] = "c09b24c82f858845e235df4c8b2639240a7b786de66b595e351be86ab60663a5"