diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2005-04-15 18:49:22 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2005-04-15 18:49:22 +0000 |
commit | 621993fa9829881512c38e9db0e0b978e1e5279a (patch) | |
tree | b3c7a06262a6388ab6dc4fb308afdb91cc275b28 /net-dialup/drdsl/drdsl-1.2.0.ebuild | |
parent | (Portage version: 2.0.51.19) (Manifest recommit) (diff) | |
download | gentoo-2-621993fa9829881512c38e9db0e0b978e1e5279a.tar.gz gentoo-2-621993fa9829881512c38e9db0e0b978e1e5279a.tar.bz2 gentoo-2-621993fa9829881512c38e9db0e0b978e1e5279a.zip |
New ebuild thanks to Stefan Briesenick <sbriesen@gmx.de>
(Portage version: 1.585-cvs)
Diffstat (limited to 'net-dialup/drdsl/drdsl-1.2.0.ebuild')
-rw-r--r-- | net-dialup/drdsl/drdsl-1.2.0.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/net-dialup/drdsl/drdsl-1.2.0.ebuild b/net-dialup/drdsl/drdsl-1.2.0.ebuild new file mode 100644 index 000000000000..9b2385d02438 --- /dev/null +++ b/net-dialup/drdsl/drdsl-1.2.0.ebuild @@ -0,0 +1,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 +} |