blob: 8650eff99a70f862283cd27d0d5fdecdfaa9600d (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd
DESCRIPTION="A program to scan messages for Unsolicited Commercial E-mail content"
HOMEPAGE="http://www.worlddesign.com/index.cfm/rd/mta/spampd.htm https://github.com/mpaperno/spampd"
SRC_URI="https://github.com/mpaperno/spampd/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
RDEPEND="acct-group/mail
acct-user/mail
dev-lang/perl
dev-perl/Net-Server
mail-filter/spamassassin
virtual/perl-IO-Socket-IP"
DEPEND="${RDEPEND}"
BDEPEND="dev-lang/perl"
PATCHES=(
"${FILESDIR}/${P}-no-pid-file.patch"
)
src_compile() {
mv ${PN}.pl ${PN} || die
pod2man ${PN}.pod > ${PN}.1 || die
}
src_install() {
dosbin ${PN}
dodoc changelog.txt
doman ${PN}.1
newinitd "${FILESDIR}"/init spampd
newconfd "${FILESDIR}"/conf spampd
systemd_dounit "${FILESDIR}/${PN}.service"
systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
}
|