blob: 002ddd3e622a4e9792b8cb977751ba64edeee924 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="An SMTP proxy for solicited bounce detection"
HOMEPAGE="http://dev.gentoo.org/~wschlich/"
SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="
virtual/perl-Getopt-Long
virtual/perl-Sys-Syslog
dev-perl/Config-IniFiles
dev-perl/DBI
dev-perl/Exception-Class
dev-perl/Exception-Class-TryCatch
dev-perl/Exception-Class-DBI
"
RDEPEND="${DEPEND}
virtual/mysql
"
pkg_setup() {
enewgroup sbd
enewuser sbd -1 -1 -1 sbd
}
src_install(){
newinitd ${FILESDIR}/${PN}.initd ${PN} || die
newconfd ${FILESDIR}/${PN}.confd ${PN} || die
dobin ${PN}.pl || die
insopts -o sbd -g sbd -m 0640
insinto /etc
doins ${PN}.ini || die
dodoc sbd-proxy-setup-mysql.sql
}
pkg_postinst() {
einfo
einfo "See the bundled sbd-proxy-setup-mysql.sql example on"
einfo "how to create the needed MySQL database, user and table."
einfo
}
|