diff options
-rw-r--r-- | net/msntp/Makefile | 10 | ||||
-rw-r--r-- | net/msntp/files/patch-internet.c | 22 | ||||
-rw-r--r-- | net/msntp/pkg-plist | 4 |
3 files changed, 28 insertions, 8 deletions
diff --git a/net/msntp/Makefile b/net/msntp/Makefile index 58c3d71e59e8..8ab45391db54 100644 --- a/net/msntp/Makefile +++ b/net/msntp/Makefile @@ -7,6 +7,7 @@ PORTNAME= msntp PORTVERSION= 1.6 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.openpkg.org/sources/DST/${PORTNAME}/ @@ -17,14 +18,15 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="-lm" CFLAGS+= -DLOCKNAME='\"/var/run/msntp.pid\"' CFLAGS+= -DSAVENAME='\"/var/db/msntp.state\"' MAN1= msntp.1 +PORTDOCS= README RFC2030.TXT +PLIST_FILES= bin/msntp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/msntp ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/msntp.1 ${PREFIX}/man/man1 - ${MKDIR} ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/msntp.1 ${MANPREFIX}/man/man1 .if !defined(NOPORTDOCS) - ${INSTALL_DATA} ${WRKSRC}/Copyright ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL} -d ${DOCSDIR} + @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif .include <bsd.port.mk> diff --git a/net/msntp/files/patch-internet.c b/net/msntp/files/patch-internet.c new file mode 100644 index 000000000000..1894b72174e4 --- /dev/null +++ b/net/msntp/files/patch-internet.c @@ -0,0 +1,22 @@ +--- internet.c.orig Sat Sep 30 10:42:51 2000 ++++ internet.c Thu Feb 21 09:18:31 2008 +@@ -77,17 +77,8 @@ + + /* Look up the Internet name or IP number. */ + +- if (! isdigit(hostname[0])) { +- errno = 0; +- host = gethostbyname(hostname); +- } else { +- if ((ipaddr = inet_addr(hostname)) == (unsigned long)-1) +- fatal(0,"invalid IP number %s",hostname); +- network_to_address(address,ipaddr); +- errno = 0; +- host = gethostbyaddr((void *)address,sizeof(struct in_addr), +- AF_INET); +- } ++ errno = 0; ++ host = gethostbyname(hostname); + + /* Now clear the timer and check the result. */ + diff --git a/net/msntp/pkg-plist b/net/msntp/pkg-plist deleted file mode 100644 index 13e0ab382582..000000000000 --- a/net/msntp/pkg-plist +++ /dev/null @@ -1,4 +0,0 @@ -bin/msntp -%%PORTDOCS%%%%DOCSDIR%%/Copyright -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%@dirrm %%DOCSDIR%% |