blob: 686ea95d813a86fd19ca22820580c3a181f5ec3a (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/drdsl/drdsl-1.2.0.ebuild,v 1.5 2008/01/06 01:21:54 sbriesen Exp $
inherit eutils rpm
REL="10_3/2.6.22.13_0.3"
DESCRIPTION="AVM DSL Assistant for autodetecting DSL values (VPI, VCI, VPP) for 'fcdsl' based cards"
HOMEPAGE="http://opensuse.foehr-it.de/"
SRC_URI="x86? ( http://opensuse.foehr-it.de/rpms/${REL}/32bit/${PN}-1.0-1.i586.rpm )
amd64? ( http://opensuse.foehr-it.de/rpms/${REL}/64bit/${PN}-1.0-1.x86_64.rpm )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE="unicode"
DEPEND="unicode? ( virtual/libiconv )"
RDEPEND="net-dialup/capi4k-utils"
RESTRICT="strip test"
S="${WORKDIR}"
src_unpack() {
rpm_src_unpack ${A}
cd "${S}"
# convert 'latin1' to 'utf8'
if use unicode; then
for i in etc/drdsl/drdsl.ini; do
echo ">>> Converting '${i##*/}' to UTF-8"
iconv -f LATIN1 -t UTF8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~"
done
fi
}
src_install() {
into /
dosbin sbin/drdsl
insinto /etc/drdsl
doins etc/drdsl/drdsl.ini
dodoc "${FILESDIR}"/README
}
|