mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 02:39:08 -07:00
net-dialup/mwavem: port to EAPI 7
Closes: https://github.com/gentoo/gentoo/pull/18402 Closes: https://bugs.gentoo.org/724974 Closes: https://bugs.gentoo.org/707684 Package-Manager: Portage-3.0.9, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
committed by
David Seifert
parent
fd6ae80cf2
commit
c3868b2816
10
net-dialup/mwavem/files/mwavem-2.0-ar.patch
Normal file
10
net-dialup/mwavem/files/mwavem-2.0-ar.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -12,6 +12,7 @@ dnl Find programs for building and installation.
|
||||
AC_PROG_CC
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_INSTALL
|
||||
+AM_PROG_AR
|
||||
|
||||
dnl Check for libraries
|
||||
AC_CHECK_LIB(pthread, main)
|
||||
22
net-dialup/mwavem/files/mwavem-2.0-fno-common.patch
Normal file
22
net-dialup/mwavem/files/mwavem-2.0-fno-common.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- a/src/include/unidiags.h
|
||||
+++ b/src/include/unidiags.h
|
||||
@@ -65,7 +65,7 @@ bits Source bits Definition
|
||||
|
||||
#define BIT(x) (1<<x)
|
||||
|
||||
-UINT shit;
|
||||
+extern UINT shit;
|
||||
|
||||
typedef struct _V34INFO { /* for key 18 */
|
||||
UINT INFOa_bits4049 :10;
|
||||
--- a/src/manager/dspsrv.c
|
||||
+++ b/src/manager/dspsrv.c
|
||||
@@ -75,7 +75,7 @@ HANDLE hMwThread;
|
||||
DWORD MwThreadId;
|
||||
/* @TBD CRITICAL_SECTION MwTerminateSection; */
|
||||
BOOL MwTerminate = FALSE;
|
||||
-HANDLE hDrv;
|
||||
+extern HANDLE hDrv;
|
||||
HANDLE hMwProcess;
|
||||
|
||||
BOOL AllocateHeaps( void );
|
||||
@@ -1,12 +1,9 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
EAPI=7
|
||||
|
||||
AT_M4DIR="m4"
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
|
||||
inherit autotools-utils
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="User level application for IBM Mwave modem"
|
||||
HOMEPAGE="http://oss.software.ibm.com/acpmodem/"
|
||||
@@ -16,37 +13,44 @@ LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog FAQ NEWS README README.devfs THANKS )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-gentoo.patch"
|
||||
"${FILESDIR}/${P}-glibc-2.10.patch"
|
||||
"${FILESDIR}"/${P}-gentoo.patch
|
||||
"${FILESDIR}"/${P}-glibc-2.10.patch
|
||||
"${FILESDIR}"/${P}-fno-common.patch
|
||||
"${FILESDIR}"/${P}-ar.patch
|
||||
)
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
HTML_DOCS=( doc/mwave.html )
|
||||
|
||||
dosbin "${FILESDIR}/mwave-dev-handler"
|
||||
src_prepare() {
|
||||
default
|
||||
rm README.freebsd || die
|
||||
mv configure.{in,ac} || die
|
||||
AT_M4DIR=m4 eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dosbin "${FILESDIR}"/mwave-dev-handler
|
||||
|
||||
insinto /etc/devfs.d
|
||||
newins "${FILESDIR}/mwave.devfs" mwave
|
||||
newins "${FILESDIR}"/mwave.devfs mwave
|
||||
|
||||
insinto /etc/modprobe.d
|
||||
newins "${FILESDIR}/mwave.modules" mwave.conf
|
||||
newins "${FILESDIR}"/mwave.modules mwave.conf
|
||||
|
||||
docinto doc
|
||||
dodoc doc/mwave.sgml doc/mwave.txt
|
||||
dohtml doc/mwave.html
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [ -e "${ROOT}/dev/.devfsd" ]; then
|
||||
if [[ -e "${EROOT}"/dev/.devfsd ]]; then
|
||||
# device node is created by devfs
|
||||
ebegin "Restarting devfsd to reread devfs rules"
|
||||
killall -HUP devfsd
|
||||
eend $?
|
||||
else
|
||||
elog "Create device node if needed, using command like this:"
|
||||
elog "# mknod --mode=0660 \"${ROOT}/dev/modems/mwave\" c 10 219"
|
||||
elog "# mknod --mode=0660 \"${EROOT}/dev/modems/mwave\" c 10 219"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user