You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1018 B
51 lines
1018 B
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=8
|
||
10 years ago
|
|
||
3 years ago
|
inherit linux-info toolchain-funcs
|
||
10 years ago
|
|
||
|
DESCRIPTION="IP over DNS tunnel"
|
||
|
HOMEPAGE="http://code.kryo.se/iodine/"
|
||
|
SRC_URI="http://code.kryo.se/${PN}/${P}.tar.gz"
|
||
|
|
||
|
CONFIG_CHECK="~TUN"
|
||
|
|
||
|
LICENSE="ISC GPL-2" #GPL-2 for init script bug #426060
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="test"
|
||
5 years ago
|
RESTRICT="!test? ( test )"
|
||
10 years ago
|
|
||
|
RDEPEND="sys-libs/zlib"
|
||
|
DEPEND="${RDEPEND}
|
||
|
test? ( dev-libs/check )"
|
||
|
|
||
3 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-TestMessage.patch
|
||
|
"${FILESDIR}"/${P}-new-systemd.patch
|
||
|
)
|
||
|
|
||
5 years ago
|
src_prepare() {
|
||
3 years ago
|
default
|
||
10 years ago
|
|
||
|
sed -e '/^\s@echo \(CC\|LD\)/d' \
|
||
|
-e 's:^\(\s\)@:\1:' \
|
||
|
-i {,src/}Makefile || die
|
||
|
|
||
|
tc-export CC
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
3 years ago
|
# Don't re-run submake
|
||
10 years ago
|
sed -e '/^install:/s: all: :' \
|
||
|
-i Makefile || die
|
||
3 years ago
|
emake prefix="${EPREFIX}"/usr DESTDIR="${D}" install
|
||
|
einstalldocs
|
||
10 years ago
|
|
||
|
newinitd "${FILESDIR}"/iodined-1.init iodined
|
||
|
newconfd "${FILESDIR}"/iodined.conf iodined
|
||
|
keepdir /var/empty
|
||
8 years ago
|
fperms 600 /etc/conf.d/iodined
|
||
10 years ago
|
}
|