blob: 61d19ae31691659f28295cdcc7330cc25416b508 (
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
50
51
52
53
54
55
|
# Copyright 1999-2010 Tiziano Müller
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit eutils
DESCRIPTION="TCP/IP emulator which turns an ordinary shell account into a (C)SLIP/PPP account."
HOMEPAGE="http://packages.qa.debian.org/s/slirp.html"
SRC_URI="mirror://debian/pool/main/s/${PN}/${PN}_1.0.17.orig.tar.gz
mirror://debian/pool/main/s/${PN}/${PN}_1.0.17-4.debian.tar.gz"
LICENSE="NEWLIB"
SLOT="0"
KEYWORDS="~amd64-linux"
IUSE="+ppp"
DEPEND=""
RDEPEND=""
src_prepare() {
epatch \
"${WORKDIR}/debian/patches/001-update-man-fix-hyphens-as-minus.patch" \
"${WORKDIR}/debian/patches/002-fix-arguements.patch" \
"${WORKDIR}/debian/patches/003-socklen_t.patch" \
"${WORKDIR}/debian/patches/004-compilation-warnings.patch" \
"${WORKDIR}/debian/patches/005-use-snprintf.patch" \
"${WORKDIR}/debian/patches/006-changelog-1.0.17.patch" \
"${WORKDIR}/debian/patches/007-debian-changes.patch" \
"${WORKDIR}/debian/patches/008-slirp-amd64-log-crash.patch"
# We do not need extra src subdir
mv src/* ./ && rmdir src
epatch \
"${FILESDIR}/${P}-perl.patch" \
"${FILESDIR}/${P}-destdir.patch" \
"${FILESDIR}/${P}-fullbolt.patch"
}
src_configure() {
local myconf=""
use ppp || myconf="--disable-ppp"
econf {myconf}
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc ChangeLog CONTRIB README README.NEXT TODO docs/*
# newdoc ${WORKDIR}/README README-1.0.17
}
|