* update wvdial to 1.61-9
This commit is contained in:
parent
629ce1ad01
commit
d047328b82
@ -5,26 +5,39 @@
|
||||
|
||||
pkgname=wvdial
|
||||
pkgver=1.61
|
||||
pkgrel=8
|
||||
pkgrel=9
|
||||
pkgdesc="A dialer program to connect to the Internet"
|
||||
url="https://web.archive.org/web/20110504183753/http://alumnit.ca:80/wiki/index.php?page=WvDial"
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
license=('custom')
|
||||
depends=('wvstreams' 'ppp' 'gcc-libs')
|
||||
makedepends=('lockdev')
|
||||
options=('!makeflags' '!buildflags')
|
||||
source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/wvstreams/${pkgname}-${pkgver}.tar.gz")
|
||||
sha512sums=('e949632583d889ad040c284f42c46790d247fffbc2d5e926c4b5836c970002f07741d26d052489bdc9c8144dcbb62a12851a3c275a5cecd5393d2722f43bb49a')
|
||||
options=('makeflags' 'buildflags')
|
||||
source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/wvstreams/${pkgname}-${pkgver}.tar.gz"
|
||||
wvdial-1.61-FTBFS-with-gcc-4.5.patch # Debian
|
||||
wvdial-1.61-parallel-make.patch # Gentoo
|
||||
wvdial-1.61-destdir.patch) # Gentoo
|
||||
sha512sums=('e949632583d889ad040c284f42c46790d247fffbc2d5e926c4b5836c970002f07741d26d052489bdc9c8144dcbb62a12851a3c275a5cecd5393d2722f43bb49a'
|
||||
'edaee8a70dfa6de566aadd668e0f76336539eac278d7aa2f2d42ce35afd93940f4b63683389e0bd3a01a8acc8d329df16d3e3fe72a996152344521acbbd50c41'
|
||||
'bc8f425b0ca6511729bbe0d3b57d39bbc0fb08aa544d97ba577bc07b67bce3502fcdf86c4e298641e0d61a1432f05aa9dcc7cf3e728daa42944a50363cf2d6b6'
|
||||
'6f1394922aa75ab97e7a589935157ac2f15ed79cf90fa4a2e3bfa0dbe60a6c3a8e072b152c292d1ff02352c2c230a692d35fe23723e3a8c98558db441f49fa22')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
patch -Np1 -i ../wvdial-1.61-FTBFS-with-gcc-4.5.patch
|
||||
patch -Np1 -i ../wvdial-1.61-parallel-make.patch
|
||||
patch -Np1 -i ../wvdial-1.61-destdir.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"/${pkgname}-${pkgver}
|
||||
./configure
|
||||
make LOCKDEV="-llockdev"
|
||||
make CPPOPTS="$CPPFLAGS -D_DEFAULT_SOURCE"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}"/${pkgname}-${pkgver}
|
||||
make prefix="${pkgdir}"/usr PPPDIR="${pkgdir}"/etc/ppp/peers install
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
install -Dm644 COPYING.LIB "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
||||
}
|
||||
|
19
wvdial/wvdial-1.61-FTBFS-with-gcc-4.5.patch
Normal file
19
wvdial/wvdial-1.61-FTBFS-with-gcc-4.5.patch
Normal file
@ -0,0 +1,19 @@
|
||||
Description: prevent FTBFS with binutils-gold and gcc 4.5
|
||||
Author: Firas Kraiem <firas@fkraiem.org>
|
||||
Bug-Debian: https://bugs.debian.org/608018
|
||||
Author: Matthias Klose <doko@ubuntu.com>
|
||||
Bug-Debian: https://bugs.debian.org/609573)
|
||||
Last-Update: 2011-01-10
|
||||
Index: wvdial-1.61/Makefile.in
|
||||
===================================================================
|
||||
--- wvdial-1.61.orig/Makefile.in 2011-01-10 21:49:50.000000000 +0300
|
||||
+++ wvdial-1.61/Makefile.in 2011-01-10 21:50:51.000000000 +0300
|
||||
@@ -34,7 +34,7 @@
|
||||
wvdialmon.o
|
||||
|
||||
wvdial wvdialconf papchaptest pppmon: \
|
||||
- LDFLAGS+=-luniconf -lwvstreams -lwvutils -lwvbase
|
||||
+ LIBS+=-luniconf -lwvstreams -lwvutils -lwvbase
|
||||
|
||||
wvdial wvdialconf papchaptest pppmon: wvdial.a
|
||||
|
35
wvdial/wvdial-1.61-destdir.patch
Normal file
35
wvdial/wvdial-1.61-destdir.patch
Normal file
@ -0,0 +1,35 @@
|
||||
=== modified file 'Makefile.in'
|
||||
--- a/Makefile.in 2010-05-27 13:08:26 +0000
|
||||
+++ b/Makefile.in 2010-05-27 13:08:41 +0000
|
||||
@@ -3,7 +3,7 @@
|
||||
WVPACKAGE_TARNAME=@PACKAGE_TARNAME@
|
||||
WVPACKAGE_VERSION=@PACKAGE_VERSION@
|
||||
|
||||
-prefix=/usr/local
|
||||
+prefix=${DESTDIR}/usr
|
||||
WVSTREAMS_INC=
|
||||
WVSTREAMS_LIB=
|
||||
WVSTREAMS_BIN=$(prefix)/bin
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
BINDIR=${prefix}/bin
|
||||
MANDIR=${prefix}/share/man
|
||||
-PPPDIR=/etc/ppp/peers
|
||||
+PPPDIR=${DESTDIR}/etc/ppp/peers
|
||||
|
||||
include wvrules.mk
|
||||
|
||||
|
||||
=== modified file 'config.defaults.mk'
|
||||
--- a/config.defaults.mk 2010-05-27 13:08:26 +0000
|
||||
+++ b/config.defaults.mk 2010-05-27 13:43:03 +0000
|
||||
@@ -13,7 +13,7 @@
|
||||
LIBS_PAM=-lpam
|
||||
LIBS_TCL=
|
||||
|
||||
-prefix=/usr/local
|
||||
+prefix=${DESTDIR}/usr
|
||||
datadir=${prefix}/share
|
||||
includedir=${prefix}/include
|
||||
infodir=${prefix}/share/info
|
||||
|
20
wvdial/wvdial-1.61-parallel-make.patch
Normal file
20
wvdial/wvdial-1.61-parallel-make.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- wvdial-1.61/wvrules-posix.mk
|
||||
+++ wvdial-1.61/wvrules-posix.mk
|
||||
@@ -85,12 +85,15 @@
|
||||
$(AR) s $1
|
||||
endef
|
||||
|
||||
-CC: FORCE
|
||||
+CC:
|
||||
@CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
|
||||
$(WVSTREAMS_SRC)/gen-cc CC c
|
||||
|
||||
-CXX: FORCE
|
||||
+CXX:
|
||||
@CC="$(CXX)" CFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
|
||||
$(WVSTREAMS_SRC)/gen-cc CXX cc
|
||||
|
||||
+#All files must depend on the above two rules. This is a godawful hack.
|
||||
+$(shell find -type f '(' -name '*.c' -o -name '*.cc' ')' ): CC CXX
|
||||
+
|
||||
wvlink=$(LINK_MSG)$(WVLINK_CC) $(LDFLAGS) $($1-LDFLAGS) -o $1 $(filter %.o %.a %.so, $2) $($1-LIBS) $(XX_LIBS) $(LDLIBS) $(PRELIBS) $(LIBS)
|
Loading…
x
Reference in New Issue
Block a user