# ChangeLog for net-dialup/hsfmodem
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/ChangeLog,v 1.30 2006/10/30 22:21:06 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/ChangeLog,v 1.31 2006/11/11 15:45:24 mrness Exp $
+
+*hsfmodem-7.47.00.05 (11 Nov 2006)
+
+ 11 Nov 2006; Alin Nastac <mrness@gentoo.org>
+ -files/hsfmodem-7.18.00.07-udev-group.patch,
+ -files/hsfmodem-7.18.00.07-upstream-20060107.patch,
+ -files/hsfmodem-7.43.00.01-suspend2.patch,
+ -files/hsfmodem-7.43.00.01-try_to_freeze-2.patch,
+ -files/hsfmodem-7.43.00.01-udev-group.patch,
+ -files/hsfmodem-7.47.00.01-hda_2.6.17.patch,
+ -files/hsfmodem-7.47.00.01-udev-group.patch,
+ +files/hsfmodem-7.47.00.05-udev-group.patch,
+ -hsfmodem-7.18.00.07-r1.ebuild, -hsfmodem-7.18.00.07-r2.ebuild,
+ -hsfmodem-7.43.00.01-r2.ebuild, -hsfmodem-7.47.00.01-r1.ebuild,
+ +hsfmodem-7.47.00.05.ebuild:
+ Version bump. Remove obsolete versions.
30 Oct 2006; Alin Nastac <mrness@gentoo.org> hsfmodem-7.47.00.03.ebuild:
Stable on x86.
--- /dev/null
+MD5 e6d8fea8f5f641d7bb4dfb33c6f478e7 100498D_RM_HxF_Released.pdf 718949
+RMD160 be9df1ae492bcce46775c0325cd438b91213bf7a 100498D_RM_HxF_Released.pdf 718949
+SHA256 e05385b094ac97f13aabc9432ba7478c0acf12862b3c4da097272435d43f6ac1 100498D_RM_HxF_Released.pdf 718949
+MD5 e4e616b88b3342d8cbffc6ecff228716 hsfmodem-7.47.00.05full.tar.gz 1338934
+RMD160 93ed0952ac7bea315176f873a63dbf1068409af0 hsfmodem-7.47.00.05full.tar.gz 1338934
+SHA256 cf835cf568da727b956b5679669cc5ad0d160149ca2c100acd466dcee8b00f02 hsfmodem-7.47.00.05full.tar.gz 1338934
+MD5 2355b1cfaf98ad6af57cd1b1d9b3dd5e hsfmodem-7.47.00.05x86_64full.tar.gz 1473400
+RMD160 1afa446dd772d1242be5f46e3caf940b19afda33 hsfmodem-7.47.00.05x86_64full.tar.gz 1473400
+SHA256 1aed952a4b6f6b938534475faf0f0993e3610626d058c05020fcc7f35d74b48d hsfmodem-7.47.00.05x86_64full.tar.gz 1473400
--- /dev/null
+diff -Nru hsfmodem-7.47.00.05full.orig/scripts/cnxtconfig.in hsfmodem-7.47.00.05full/scripts/cnxtconfig.in
+--- hsfmodem-7.47.00.05full.orig/scripts/cnxtconfig.in 2006-11-10 00:56:15.000000000 +0200
++++ hsfmodem-7.47.00.05full/scripts/cnxtconfig.in 2006-11-11 17:39:38.000000000 +0200
+@@ -1828,7 +1828,7 @@
+
+ if [ -d /etc/udev/rules.d ]; then
+ rm -f /etc/udev/rules.d/@CNXTTARGET@.rules
+- echo 'KERNEL=="ttyS@CNXTSERDEV@0", SYMLINK="modem"' > /etc/udev/rules.d/@CNXTTARGET@.rules
++ echo 'KERNEL=="ttyS@CNXTSERDEV@0", SYMLINK="modem", GROUP="dialout"' > /etc/udev/rules.d/@CNXTTARGET@.rules
+ fi
+
+ touch "${cnxtetcdir}/.serial_configured"
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/hsfmodem-7.47.00.05.ebuild,v 1.1 2006/11/11 15:45:24 mrness Exp $
+
+inherit eutils linux-info
+
+#The document is the same as in hcfpcimodem, even if it has a different URL
+MY_DOC="100498D_RM_HxF_Released.pdf"
+
+DESCRIPTION="Linuxant's modem driver for Conexant HSF chipset"
+HOMEPAGE="http://www.linuxant.com/drivers/hsf/index.php"
+SRC_URI="x86? ( http://www.linuxant.com/drivers/hsf/full/archive/${P}full/${P}full.tar.gz )
+ amd64? ( http://www.linuxant.com/drivers/hsf/full/archive/${P}x86_64full/${P}x86_64full.tar.gz )
+ doc? ( http://www.linuxant.com/drivers/hsf/full/archive/${P}full/${MY_DOC} )"
+
+LICENSE="Conexant"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="doc"
+SLOT="0"
+
+DEPEND="dev-lang/perl
+ app-arch/cpio"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ if useq x86; then
+ MY_ARCH_S="${S}/${P}full"
+ elif useq amd64; then
+ MY_ARCH_S="${S}/${P}x86_64full"
+ fi
+
+ local f
+ QA_EXECSTACK=""
+ for f in pcibasic2 mc97ich mc97via mc97ali mc97ati mc97sis usbcd2 soar hda engine ; do
+ QA_EXECSTACK="${QA_EXECSTACK} usr/lib/hsfmodem/modules/imported/hsf${f}-i386.O"
+ done
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${MY_ARCH_S}"
+ epatch "${FILESDIR}/${P}-udev-group.patch"
+}
+
+src_compile() {
+ cd "${MY_ARCH_S}"
+ emake all || die "make failed"
+}
+
+src_install () {
+ cd "${MY_ARCH_S}"
+ make PREFIX="${D}/usr/" ROOT="${D}" install || die "make install failed"
+
+ use doc && dodoc "${DISTDIR}/${MY_DOC}"
+}
+
+pkg_preinst() {
+ local NVMDIR="${ROOT}/etc/${PN}/nvm"
+ if [ -d "${NVMDIR}" ]; then
+ einfo "Cleaning ${NVMDIR}..."
+ rm -rf "${NVMDIR}"
+ eend
+ fi
+}
+
+pkg_postinst() {
+ einfo "To complete the installation and configuration of your HSF modem,"
+ einfo "please run hsfconfig."
+}