blob: c2661cc9ce6385e94a4e214fe55d13a570183d6e (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Trick Or Treat Daemon, a DNS proxy for 6to4"
HOMEPAGE="http://www.dillema.net/software/totd.html"
SRC_URI="http://www.dillema.net/software/${PN}/${P}.tar.gz"
LICENSE="totd BSD BSD-4 GPL-2"
SLOT="0"
KEYWORDS="~amd64 x86"
PATCHES=(
"${FILESDIR}"/${P}-no_werror.patch
"${FILESDIR}"/${P}-fix-CC.patch
)
src_configure() {
econf \
--enable-ipv4 \
--enable-ipv6 \
--enable-stf \
--enable-scoped-rewrite \
--disable-http-server
}
src_install() {
dosbin totd
doman totd.8
dodoc totd.conf.sample README INSTALL
doinitd "${FILESDIR}"/totd
}
pkg_postinst() {
elog "The totd.conf.sample file in /usr/share/doc/${P}/ contains"
elog "a sample config file for totd. Make sure you create"
elog "/etc/totd.conf with the necessary configurations"
}
|