blob: e4294ad9c365fe7583bc0ca8951006a717bcec47 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
ESVN_REPO_URI="http://streamboard.gmc.to/svn/oscam/trunk"
inherit eutils subversion
DESCRIPTION="OSCam is an Open Source Conditional Access Module software"
HOMEPAGE="http://streamboard.gmc.to:8001/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
PROTOCOL="camd33 camd35 camd35_tcp newcamd cccam gbox radegast serial constcw pandora"
for share in ${PROTOCOL}; do
IUSE_PROTOCOL+=" protocol_${share}"
done
READER="nagra irdeto conax cryptoworks seca viaccess videoguard dre tongfang bulcrypt"
for card in ${READER}; do
IUSE_READER+=" reader_${card}"
done
IUSE="${IUSE_PROTOCOL} ${IUSE_READER}
ac csp debug doc dvb gbox ipv6 irdeto lb lcd monitor pcsc +reader +ssl usb +www"
REQUIRED_USE="
protocol_camd35_tcp? ( protocol_camd35 )
reader_nagra? ( reader )
reader_irdeto? ( reader irdeto )
reader_conax? ( reader )
reader_cryptoworks? ( reader )
reader_seca? ( reader )
reader_viaccess? ( reader )
reader_videoguard? ( reader )
reader_dre? ( reader )
reader_tongfang? ( reader )
reader_bulcrypt? ( reader )
"
DEPEND="dev-util/cmake"
RDEPEND="${DEPEND}
dev-libs/openssl
usb? ( dev-libs/libusb )
pcsc? ( sys-apps/pcsc-lite )"
RESTRICT="nomirror"
S="${WORKDIR}/${PN}"
src_defs() {
myconf=""
if use ac; then
myconf="${myconf} CS_ANTICASC"
fi
if use lb; then
myconf="${myconf} WITH_LB"
fi
if use monitor; then
myconf="${myconf} MODULE_MONITOR"
fi
if use csp; then
myconf="${myconf} CS_CACHEEX"
fi
if use debug; then
myconf="${myconf} WITH_DEBUG"
fi
if use dvb; then
myconf="${myconf} HAVE_DVBAPI"
fi
if use ipv6; then
myconf="${myconf} IPV6SUPPORT"
fi
if use irdeto; then
myconf="${myconf} IRDETO_GUESSING"
fi
if use lcd; then
myconf="${myconf} LCDSUPPORT"
fi
if use ssl; then
myconf="${myconf} WITH_SSL"
fi
if use www; then
myconf="${myconf} WEBIF"
fi
if use protocol_camd33; then
myconf="${myconf} MODULE_CAMD33"
fi
if use protocol_camd35; then
myconf="${myconf} MODULE_CAMD35"
fi
if use protocol_camd35_tcp; then
myconf="${myconf} MODULE_CAMD35_TCP"
fi
if use protocol_newcamd; then
myconf="${myconf} MODULE_NEWCAMD"
fi
if use protocol_cccam; then
myconf="${myconf} MODULE_CCCAM"
fi
if use protocol_gbox; then
myconf="${myconf} MODULE_GBOX"
fi
if use protocol_radegast; then
myconf="${myconf} MODULE_RADEGAST"
fi
if use protocol_serial; then
myconf="${myconf} MODULE_SERIAL"
fi
if use protocol_constcw; then
myconf="${myconf} MODULE_CONSTCW"
fi
if use protocol_pandora; then
myconf="${myconf} MODULE_PANDORA"
fi
if use reader; then
myconf="${myconf} WITH_CARDREADER"
fi
if use reader_nagra; then
myconf="${myconf} READER_NAGRA"
fi
if use reader_irdeto; then
myconf="${myconf} READER_IRDETO"
fi
if use reader_conax; then
myconf="${myconf} READER_CONAX"
fi
if use reader_cryptoworks; then
myconf="${myconf} READER_CRYPTOWORKS"
fi
if use reader_seca; then
myconf="${myconf} READER_SECA"
fi
if use reader_viaccess; then
myconf="${myconf} READER_VIACCESS"
fi
if use reader_videoguard; then
myconf="${myconf} READER_VIDEOGUARD"
fi
if use reader_dre; then
myconf="${myconf} READER_DRE"
fi
if use reader_tongfang; then
myconf="${myconf} READER_TONGFANG"
fi
if use reader_bulcrypt; then
myconf="${myconf} READER_BULCRYPT"
fi
export myconf
}
src_defs_2() {
myconf_2=""
if use usb; then
myconf="${myconf_2} USE_LIBUSB=1"
fi
if use pcsc; then
myconf="${myconf_2} USE_PCSC=1"
fi
export myconf_2
}
src_configure() {
src_defs
# Disable everything and enable set options
./config.sh -D all -E ${myconf}
}
src_compile() {
emake ${myconf_2} CC=$(tc-getCC) CXX=$(tc-getCXX) || die "emake failed"
}
src_install() {
cp Distribution/oscam-1.20-unstable_svn0-x86_64-pc-linux-gnu-ssl oscam || die "cp failed"
dobin oscam || die "dobin failed"
dodoc -r Distribution/doc/example/* || die "dodoc failed"
if use doc; then
doman Distribution/doc/man/* || die "doman failed"
dodoc -r Distribution/doc/txt/* || die "dodoc failed"
fi
}
pkg_postinst() {
einfo "Please reffer to the wiki for assistance with the setup "
einfo " located at http://streamboard.gmc.to/wiki/OSCam/en "
}
|