From b40cc14ca4b2cf7ee3713eeaf6d80678e19c1d5f Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 8 Jul 2014 20:39:42 +0200 Subject: [PATCH] New package: cvsps2-2.1 --- srcpkgs/cvsps2/patches/inet_addr-64bit.patch | 12 ++++++++++++ srcpkgs/cvsps2/template | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 srcpkgs/cvsps2/patches/inet_addr-64bit.patch create mode 100644 srcpkgs/cvsps2/template diff --git a/srcpkgs/cvsps2/patches/inet_addr-64bit.patch b/srcpkgs/cvsps2/patches/inet_addr-64bit.patch new file mode 100644 index 00000000000..c064941690e --- /dev/null +++ b/srcpkgs/cvsps2/patches/inet_addr-64bit.patch @@ -0,0 +1,12 @@ +Use INADDR_NONE instead of -1 to check inet_addr() result +--- cbtcommon/tcpsocket.c.1 2013-04-14 13:21:14.848464155 +0400 ++++ cbtcommon/tcpsocket.c 2013-04-14 13:23:23.015136709 +0400 +@@ -198,7 +198,7 @@ + memcpy(dest, &ip.s_addr, sizeof(ip.s_addr)); + } + #else +- if ( (*dest = inet_addr(addr_str)) != -1) ++ if ( (*dest = inet_addr(addr_str)) != INADDR_NONE) + { + /* nothing */ + } diff --git a/srcpkgs/cvsps2/template b/srcpkgs/cvsps2/template new file mode 100644 index 00000000000..2ef6c72b12d --- /dev/null +++ b/srcpkgs/cvsps2/template @@ -0,0 +1,17 @@ +# Template file for 'cvsps2' +pkgname=cvsps2 +version=2.1 +revision=1 +wrksrc=cvsps-${version} +build_style=gnu-makefile +makedepends="zlib-devel" +short_desc="Generating 'patchsets' from a CVS repo (for git-cvsimport)" +maintainer="Christian Neukirchen " +license="GPL-2" +homepage="http://www.cobite.com/cvsps/" +distfiles="http://www.cobite.com/cvsps/cvsps-${version}.tar.gz" +checksum=91d3198b33463861a581686d5fcf99a5c484e7c4d819384c04fda9cafec1075a + +do_install() { + make install prefix=$DESTDIR/usr +}