summaryrefslogtreecommitdiff
path: root/packages/mail-filter/dcc/dcc.exlib
blob: 895a34a025ce0c6adf2a767955d78dda516f127b (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
# Distributed under the terms of the GNU General Public License v2

SUMMARY="Distributed Checksum Clearinghouse"
HOMEPAGE="http://www.rhyolite.com/anti-spam/dcc/"
DOWNLOADS="http://www.rhyolite.com/anti-spam/dcc/source/old/${PNV}.tar.Z"

LICENCES="DCC GPL-2"
SLOT="0"

MYOPTIONS="
    cgi
    milter
"

DEPENDENCIES="
    build:
        sys-apps/sed
    build+run:
        milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
"

DEFAULT_SRC_CONFIGURE_PARAMS=(
    --hates=build
    --hates=host
    --hates=prefix
    --hates=sbindir
    --hates=libdir
    --hates=datadir
    --hates=datarootdir
    --hates=docdir
    --hates=infodir
    --hates=sysconfdir
    --hates=localstatedir
    --hates=disable-dependency-tracking
    --hates=disable-silent-rules
    --hates=enable-fast-install
    --homedir=/var/dcc
    --mandir=/usr/share/man
    --with-updatedcc_pfile=/var/dcc/updatecc.pfile
    --with-DDC-MD5
    --with-uid=root
    --enable-server
    --enable-dccifd
    --with-rundir=/var/run/dcc
    --with-db-memory=64
    --with-max-db-mem=128
    --with-max-log-size=0
    --enable-ipv6
)

DEFAULT_SRC_CONFIGURE_OPTION_WITHS=(
    'cgi cgibin /var/www/localhost/cgi-bin/dcc'
    'milter sendmail'
)

DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
    'milter dccm'
)

DEFAULT_SRC_COMPILE_PARAMS=(
    DESTDIR="${IMAGE}"
    DCC_BINDIR="${IMAGE}"/usr/$(exhost --target)/bin
    MANDIR="${IMAGE}"/usr/share/man
    DCC_HOMEDIR="${IMAGE}"/var/dcc
)