From owner-svn-ports-head@FreeBSD.ORG Wed Oct 30 05:45:43 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 98AA7E07; Wed, 30 Oct 2013 05:45:43 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 762C5255B; Wed, 30 Oct 2013 05:45:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9U5jhIO029042; Wed, 30 Oct 2013 05:45:43 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9U5jgOc029037; Wed, 30 Oct 2013 05:45:42 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201310300545.r9U5jgOc029037@svn.freebsd.org> From: Kevin Lo Date: Wed, 30 Oct 2013 05:45:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r332071 - in head/ftp/atftp: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 05:45:43 -0000 Author: kevlo Date: Wed Oct 30 05:45:42 2013 New Revision: 332071 URL: http://svnweb.freebsd.org/changeset/ports/332071 Log: - Support stage - Silent warnings Modified: head/ftp/atftp/Makefile head/ftp/atftp/files/patch-tftp_def.c head/ftp/atftp/files/patch-tftp_def.h head/ftp/atftp/files/patch-tftpd.h head/ftp/atftp/files/patch-tftpd_list.c Modified: head/ftp/atftp/Makefile ============================================================================== --- head/ftp/atftp/Makefile Wed Oct 30 05:43:05 2013 (r332070) +++ head/ftp/atftp/Makefile Wed Oct 30 05:45:42 2013 (r332071) @@ -16,11 +16,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVER USE_RC_SUBR= atftpd GNU_CONFIGURE= yes -PLIST_FILES= bin/atftp \ - sbin/atftpd +PLIST_FILES= bin/atftp sbin/atftpd man/man1/atftp.1.gz man/man8/atftpd.8.gz -MAN1= atftp.1 -MAN8= atftpd.8 - -NO_STAGE= yes .include Modified: head/ftp/atftp/files/patch-tftp_def.c ============================================================================== --- head/ftp/atftp/files/patch-tftp_def.c Wed Oct 30 05:43:05 2013 (r332070) +++ head/ftp/atftp/files/patch-tftp_def.c Wed Oct 30 05:45:42 2013 (r332071) @@ -1,8 +1,20 @@ ---- tftp_def.c.orig 2010-10-11 11:20:48.000000000 +0800 -+++ tftp_def.c 2010-10-11 11:20:40.000000000 +0800 -@@ -140,11 +140,14 @@ +--- tftp_def.c.orig 2004-02-13 11:16:09.000000000 +0800 ++++ tftp_def.c 2013-10-30 13:34:05.000000000 +0800 +@@ -88,7 +88,7 @@ + res->tv_usec -= 1000000; + return -1; + } +- else if (res->tv_usec <= 0); ++ else + { + return -1; + } +@@ -138,13 +138,16 @@ + /* + * This is a strncpy function that take care of string NULL termination */ - inline char *Strncpy(char *to, const char *from, size_t size) +-inline char *Strncpy(char *to, const char *from, size_t size) ++char *Strncpy(char *to, const char *from, size_t size) { - to[size-1] = '\000'; - return strncpy(to, from, size - 1); Modified: head/ftp/atftp/files/patch-tftp_def.h ============================================================================== --- head/ftp/atftp/files/patch-tftp_def.h Wed Oct 30 05:43:05 2013 (r332070) +++ head/ftp/atftp/files/patch-tftp_def.h Wed Oct 30 05:45:42 2013 (r332071) @@ -1,5 +1,5 @@ --- tftp_def.h.orig 2004-02-13 11:16:09.000000000 +0800 -+++ tftp_def.h 2012-11-21 13:21:56.000000000 +0800 ++++ tftp_def.h 2013-10-30 13:23:22.000000000 +0800 @@ -19,6 +19,7 @@ #include @@ -13,7 +13,7 @@ int timeval_diff(struct timeval *res, struct timeval *t1, struct timeval *t0); int print_eng(double value, char *string, int size, char *format); -inline char *Strncpy(char *to, const char *from, size_t size); -+extern inline char *Strncpy(char *to, const char *from, size_t size); ++char *Strncpy(char *to, const char *from, size_t size); int Gethostbyname(char *addr, struct hostent *host); #endif Modified: head/ftp/atftp/files/patch-tftpd.h ============================================================================== --- head/ftp/atftp/files/patch-tftpd.h Wed Oct 30 05:43:05 2013 (r332070) +++ head/ftp/atftp/files/patch-tftpd.h Wed Oct 30 05:45:42 2013 (r332071) @@ -1,5 +1,5 @@ --- tftpd.h.orig 2004-02-27 10:05:26.000000000 +0800 -+++ tftpd.h 2012-11-21 13:07:15.000000000 +0800 ++++ tftpd.h 2013-10-30 13:25:35.000000000 +0800 @@ -71,6 +71,11 @@ struct client_info { struct sockaddr_in client; @@ -17,7 +17,7 @@ * Defined in tftpd_list.c, operation on client structure list. */ -inline void tftpd_clientlist_ready(struct thread_data *thread); -+extern inline void tftpd_clientlist_ready(struct thread_data *thread); ++void tftpd_clientlist_ready(struct thread_data *thread); void tftpd_clientlist_remove(struct thread_data *thread, struct client_info *client); void tftpd_clientlist_free(struct thread_data *thread); Modified: head/ftp/atftp/files/patch-tftpd_list.c ============================================================================== --- head/ftp/atftp/files/patch-tftpd_list.c Wed Oct 30 05:43:05 2013 (r332070) +++ head/ftp/atftp/files/patch-tftpd_list.c Wed Oct 30 05:45:42 2013 (r332071) @@ -1,5 +1,5 @@ ---- tftpd_list.c.orig 2010-10-11 12:44:39.000000000 +0800 -+++ tftpd_list.c 2010-10-11 12:44:34.000000000 +0800 +--- tftpd_list.c.orig 2004-02-27 10:05:26.000000000 +0800 ++++ tftpd_list.c 2013-10-30 13:25:57.000000000 +0800 @@ -137,23 +137,17 @@ struct thread_data *data, struct client_info *client) @@ -40,3 +40,12 @@ { *thread = current; /* insert the new client at the end. If the client is already +@@ -202,7 +196,7 @@ + return 0; + } + +-inline void tftpd_clientlist_ready(struct thread_data *thread) ++void tftpd_clientlist_ready(struct thread_data *thread) + { + pthread_mutex_lock(&thread->client_mutex); + thread->client_ready = 1;