New package: cvsps2-2.1

This commit is contained in:
Christian Neukirchen 2014-07-08 20:39:42 +02:00
parent ab2ca60f6b
commit b40cc14ca4
2 changed files with 29 additions and 0 deletions

View File

@ -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 */
}

17
srcpkgs/cvsps2/template Normal file
View File

@ -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 <chneukirchen@gmail.com>"
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
}