summaryrefslogtreecommitdiff
blob: cde8d5af5c9d0de63de7209fd46dd3ce6d070975 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="An SMTP proxy similar to ClamSMTP but that works with any user-defined filter."
HOMEPAGE="http://memberwebs.com/stef/software/proxsmtp/"
SRC_URI="http://memberwebs.com/stef/software/proxsmtp/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"
IUSE="debug"

DEPEND="virtual/libc"
RDEPEND="${DEPEND}"

pkg_setup() {
	enewgroup proxsmtp
	enewuser proxsmtp -1 -1 /dev/null proxsmtp
}

src_compile() {
	econf $(use_enable debug) || die
	emake || die
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"
	dodoc AUTHORS ChangeLog README NEWS scripts/*.sh

	newinitd "${FILESDIR}"/proxsmtpd.init proxsmtpd

	insinto /etc
	newins doc/proxsmtpd.conf proxsmtpd.conf

	dodir /var/run/proxsmtp
	keepdir /var/run/proxsmtp
	fowners proxsmtp:proxsmtp /var/run/proxsmtp
}