blob: 9b2385d02438eb1d71df93e781434a4e86b7f72a (
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
|
# Copyright 1999-2005 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.1 2005/04/15 18:49:22 genstef Exp $
DESCRIPTION="AVM DSL Assistant for autodetecting DSL values (VPI, VCI, VPP) for 'fcdsl' based cards"
HOMEPAGE="ftp://ftp.in-berlin.de/pub/capi4linux/"
SRC_URI="ftp://ftp.in-berlin.de/pub/capi4linux/drdsl/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE="utf8"
DEPEND="sys-apps/coreutils"
RDEPEND="sys-libs/glibc
net-dialup/capi4k-utils"
src_unpack() {
unpack ${A}
cd ${S}
# convert 'crlf' to 'lf'
for i in drdsl.ini; do
tr -d "\r" < "${i}" > "${i}~" && mv -f "${i}~" "${i}" || rm -f "${i}~"
done
# convert 'latin1' to 'utf8'
if useq utf8; then
for i in drdsl.ini; do
einfo "Converting '${i}' to UTF-8"
iconv -f latin1 -t utf8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~"
done
fi
}
src_install() {
dosbin drdsl
insinto /etc/drdsl
doins drdsl.ini
dodoc README
}
|