From fedda15a2c383b7a266b90614ed1e10cfcab6278 Mon Sep 17 00:00:00 2001 From: Alin Năstac Date: Wed, 9 Jan 2008 18:51:30 +0000 Subject: Run hsfconfig --remove in pkg_prerm (#205071). (Portage version: 2.1.3.19, RepoMan options: --force) --- net-dialup/hsfmodem/ChangeLog | 8 ++- .../hsfmodem/files/digest-hsfmodem-7.68.00.04 | 9 --- .../hsfmodem/files/digest-hsfmodem-7.68.00.04-r1 | 8 +++ net-dialup/hsfmodem/hsfmodem-7.68.00.04-r1.ebuild | 83 ++++++++++++++++++++++ net-dialup/hsfmodem/hsfmodem-7.68.00.04.ebuild | 75 ------------------- 5 files changed, 98 insertions(+), 85 deletions(-) delete mode 100644 net-dialup/hsfmodem/files/digest-hsfmodem-7.68.00.04 create mode 100644 net-dialup/hsfmodem/files/digest-hsfmodem-7.68.00.04-r1 create mode 100644 net-dialup/hsfmodem/hsfmodem-7.68.00.04-r1.ebuild delete mode 100644 net-dialup/hsfmodem/hsfmodem-7.68.00.04.ebuild (limited to 'net-dialup') diff --git a/net-dialup/hsfmodem/ChangeLog b/net-dialup/hsfmodem/ChangeLog index 5cb53b9e4f9d..41cc3afecfa4 100644 --- a/net-dialup/hsfmodem/ChangeLog +++ b/net-dialup/hsfmodem/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-dialup/hsfmodem # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/ChangeLog,v 1.42 2008/01/08 10:06:48 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/ChangeLog,v 1.43 2008/01/09 18:51:29 mrness Exp $ + +*hsfmodem-7.68.00.04-r1 (09 Jan 2008) + + 09 Jan 2008; Alin Năstac -hsfmodem-7.68.00.04.ebuild, + +hsfmodem-7.68.00.04-r1.ebuild: + Run hsfconfig --remove in pkg_prerm (#205071). 08 Jan 2008; Markus Meier hsfmodem-7.68.00.04.ebuild: x86 stable, bug #204180 diff --git a/net-dialup/hsfmodem/files/digest-hsfmodem-7.68.00.04 b/net-dialup/hsfmodem/files/digest-hsfmodem-7.68.00.04 deleted file mode 100644 index 18aeabdb5fb4..000000000000 --- a/net-dialup/hsfmodem/files/digest-hsfmodem-7.68.00.04 +++ /dev/null @@ -1,9 +0,0 @@ -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 e376d9344f408f0ec68c959ab64ae121 hsfmodem-7.68.00.04full.tar.gz 1463702 -RMD160 4dc5377998495b817a1677f09160a7ef701f7f1f hsfmodem-7.68.00.04full.tar.gz 1463702 -SHA256 7b9a985020e1d2fe039d26ad1de97c7bfa64a62b51b5de296f4fff8254a26292 hsfmodem-7.68.00.04full.tar.gz 1463702 -MD5 d545882416c504b0946cb70ed5bfe175 hsfmodem-7.68.00.04x86_64full.tar.gz 1595024 -RMD160 f9c39e6820fc71c79dc73e316a14c7295e4fe17d hsfmodem-7.68.00.04x86_64full.tar.gz 1595024 -SHA256 86592028760b7a334659c6fdca86a02edac54c30f03307b5717dad4b062bd527 hsfmodem-7.68.00.04x86_64full.tar.gz 1595024 diff --git a/net-dialup/hsfmodem/files/digest-hsfmodem-7.68.00.04-r1 b/net-dialup/hsfmodem/files/digest-hsfmodem-7.68.00.04-r1 new file mode 100644 index 000000000000..40ecc696d1c5 --- /dev/null +++ b/net-dialup/hsfmodem/files/digest-hsfmodem-7.68.00.04-r1 @@ -0,0 +1,8 @@ +MD5 e6d8fea8f5f641d7bb4dfb33c6f478e7 100498D_RM_HxF_Released.pdf 718949 +RMD160 be9df1ae492bcce46775c0325cd438b91213bf7a 100498D_RM_HxF_Released.pdf 718949 +SHA256 e05385b094ac97f13aabc9432ba7478c0acf12862b3c4da097272435d43f6ac1 100498D_RM_HxF_Released.pdf 718949 +RMD160 4dc5377998495b817a1677f09160a7ef701f7f1f hsfmodem-7.68.00.04full.tar.gz 1463702 +SHA256 7b9a985020e1d2fe039d26ad1de97c7bfa64a62b51b5de296f4fff8254a26292 hsfmodem-7.68.00.04full.tar.gz 1463702 +MD5 d545882416c504b0946cb70ed5bfe175 hsfmodem-7.68.00.04x86_64full.tar.gz 1595024 +RMD160 f9c39e6820fc71c79dc73e316a14c7295e4fe17d hsfmodem-7.68.00.04x86_64full.tar.gz 1595024 +SHA256 86592028760b7a334659c6fdca86a02edac54c30f03307b5717dad4b062bd527 hsfmodem-7.68.00.04x86_64full.tar.gz 1595024 diff --git a/net-dialup/hsfmodem/hsfmodem-7.68.00.04-r1.ebuild b/net-dialup/hsfmodem/hsfmodem-7.68.00.04-r1.ebuild new file mode 100644 index 000000000000..7ad677e9f2c2 --- /dev/null +++ b/net-dialup/hsfmodem/hsfmodem-7.68.00.04-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/hsfmodem-7.68.00.04-r1.ebuild,v 1.1 2008/01/09 18:51:29 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" + epatch "${FILESDIR}/${P}-sandbox-violation.patch" +} + +src_compile() { + cd "${MY_ARCH_S}" + emake all || die "make failed" +} + +src_install () { + cd "${MY_ARCH_S}" + make ROOT="${D}" install || die "make install failed" + + # on testing arches, kernelcompiler.sh permissions are 0600 (#158736) + fperms a+rx /usr/lib/hsfmodem/modules/kernelcompiler.sh + + 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() { + if [ "${ROOT}" = / ]; then + elog "To complete the installation and configuration of your HSF modem," + elog "please run hsfconfig." + fi +} + +pkg_prerm() { + if [ "${ROOT}" = / -a -f /etc/init.d/hsf ] ; then + hsfconfig --remove || die "hsfconfig --remove failed" + fi +} diff --git a/net-dialup/hsfmodem/hsfmodem-7.68.00.04.ebuild b/net-dialup/hsfmodem/hsfmodem-7.68.00.04.ebuild deleted file mode 100644 index 469af748a165..000000000000 --- a/net-dialup/hsfmodem/hsfmodem-7.68.00.04.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/hsfmodem-7.68.00.04.ebuild,v 1.2 2008/01/08 10:06:48 maekke 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" - epatch "${FILESDIR}/${P}-sandbox-violation.patch" -} - -src_compile() { - cd "${MY_ARCH_S}" - emake all || die "make failed" -} - -src_install () { - cd "${MY_ARCH_S}" - make ROOT="${D}" install || die "make install failed" - - # on testing arches, kernelcompiler.sh permissions are 0600 (#158736) - fperms a+rx /usr/lib/hsfmodem/modules/kernelcompiler.sh - - 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() { - elog "To complete the installation and configuration of your HSF modem," - elog "please run hsfconfig." -} -- cgit v1.2.3-65-gdbad