add wvdial and deps

This commit is contained in:
philm 2011-02-21 09:30:01 +01:00
parent 4d18c0af6d
commit e4c750e487
4 changed files with 125 additions and 0 deletions

27
wvdial/PKGBUILD Normal file
View File

@ -0,0 +1,27 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# Note: it will fail once. Run it again to compile.
pkgname=wvdial
pkgver=1.61
pkgrel=1
pkgdesc="A dialer program to connect to the Internet"
url="http://alumnit.ca/wiki/index.php?page=WvDial"
arch=('i686' 'x86_64')
license=('custom')
depends=('wvstreams>=4.6.1' 'ppp')
source=(http://wvstreams.googlecode.com/files/${pkgname}-${pkgver}.tar.gz)
md5sums=('acd3b2050c9b65fff2aecda6576ee7bc')
build() {
unset LDFLAGS
cd ${srcdir}/${pkgname}-${pkgver}
./configure
make || return 1
make prefix=${pkgdir}/usr PPPDIR=${pkgdir}/etc/ppp/peers install || return 1
install -Dm644 COPYING.LIB ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

44
wvstreams/PKGBUILD Normal file
View File

@ -0,0 +1,44 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=wvstreams
pkgver=4.6.1
pkgrel=1
pkgdesc="A network programming library written in C++"
arch=('i686' 'x86_64')
url="http://alumnit.ca/wiki/?page=WvStreams"
license=('LGPL')
depends=('zlib' 'pam' 'xplc' "openssl" 'readline')
source=(http://wvstreams.googlecode.com/files/${pkgname}-${pkgver}.tar.gz
gcc-4.5.1.patch)
md5sums=('2760dac31a43d452a19a3147bfde571c'
'ce642b80f787e61038c2dea04d2f0635')
options=('!makeflags')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np0 -i $startdir/gcc-4.5.1.patch
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--without-dbus \
--with-pam \
--with-openssl \
--without-tcl \
--without-qt || return 1
make COPTS="$CFLAGS -fPIC" CXXOPTS="$CXXFLAGS -fPIC -fpermissive" VERBOSE=1 || return 1
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install || return 1
# FS#15974
# --without-dbus still installs the pkg-config file
rm ${pkgdir}/usr/lib/pkgconfig/libwvdbus.pc
# --without-qt still installs the pkg-config file
rm ${pkgdir}/usr/lib/pkgconfig/libwvqt.pc
}

22
wvstreams/gcc-4.5.1.patch Normal file
View File

@ -0,0 +1,22 @@
http://bugs.gentoo.org/333301
--- ipstreams/wvunixdgsocket.cc
+++ ipstreams/wvunixdgsocket.cc
@@ -1,5 +1,5 @@
#include "wvunixdgsocket.h"
-#ifdef MACOS
+#if defined(MACOS) || defined(__GNUC__)
#include <sys/types.h>
#include <sys/stat.h>
#endif
--- streams/wvatomicfile.cc
+++ streams/wvatomicfile.cc
@@ -11,7 +11,8 @@
#include "wvfileutils.h"
#include "wvstrutils.h"
-#ifdef MACOS
+#if defined(MACOS) || defined(__GNUC__)
+#include <sys/types.h>
#include <sys/stat.h>
#endif

32
xplc/PKGBUILD Normal file
View File

@ -0,0 +1,32 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=xplc
pkgver=0.3.13
pkgrel=1
pkgdesc="Cross-Platform Lightweight Components"
arch=(i686 x86_64)
url="http://xplc.sourceforge.net"
license=('LGPL')
depends=('gcc-libs')
source=(http://downloads.sourceforge.net/sourceforge/xplc/$pkgname-$pkgver.tar.gz)
md5sums=('39da3270527c8712b8e8fcf03768d29f')
build() {
cd $srcdir/$pkgname-$pkgver
export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
./configure --prefix=/usr --mandir=/usr/share/man --without-libuuid
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
mv $pkgdir/usr/share/man/man1/{uuidgen.1,uuidcdef.1}
rm -f $pkgdir/usr/bin/uuidgen
}