mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
- fix looking up the host name addresses on 64 bits platforms
(use in_addr_t instead of long and check it against INADDR_NONE) - adjust MASTERSITES and WWW Please note that the project is dead upstream. PR: 165481 Submitted by: Howard Goldstein
This commit is contained in:
parent
e6a5ae7d9a
commit
2cb75bd68f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=302431
@ -7,9 +7,10 @@
|
||||
|
||||
PORTNAME= cpige
|
||||
DISTVERSION= 1.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= http://ed.zehome.com/cpige/ \
|
||||
http://T32.TecNik93.com/FreeBSD/ports/sources/cpige/
|
||||
MASTER_SITES= http://old.ed.zehome.com/cpige/ \
|
||||
http://T32.TecNik93.com/FreeBSD/ports/cpige/sources/
|
||||
|
||||
MAINTAINER= itetcu@FreeBSD.org
|
||||
COMMENT= Icecast/Shoutcast stream ripper
|
||||
|
20
audio/cpige/files/patch-mynet.c
Normal file
20
audio/cpige/files/patch-mynet.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- ./mynet.c.orig 2006-08-20 17:51:17.000000000 +0300
|
||||
+++ ./mynet.c 2012-08-12 12:29:05.000000000 +0300
|
||||
@@ -86,7 +86,7 @@
|
||||
{
|
||||
struct sockaddr_in serverSockAddr;
|
||||
struct hostent *serverHostEnt;
|
||||
- long hostAddr;
|
||||
+ in_addr_t hostAddr;
|
||||
|
||||
#if WIN32
|
||||
int res;
|
||||
@@ -105,7 +105,7 @@
|
||||
hostAddr = inet_addr(servername);
|
||||
|
||||
/* If it is an ip address */
|
||||
- if ((long) hostAddr != (long)-1)
|
||||
+ if ( hostAddr != INADDR_NONE )
|
||||
memcpy(&serverSockAddr.sin_addr, &hostAddr, sizeof(hostAddr));
|
||||
else {
|
||||
serverHostEnt = gethostbyname(servername);
|
@ -2,4 +2,4 @@ cPige records an audio stream, separating into individual
|
||||
"Artist - Track.mp3" files. It can also record on an
|
||||
hour-by-hour basis.
|
||||
|
||||
WWW: http://ed.zehome.com/?page=cpige-en
|
||||
WWW: http://old.ed.zehome.com/?page=cpige
|
||||
|
Loading…
Reference in New Issue
Block a user