Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2004 01:00:26 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/64856: Update port: ftp/oftpd to 0.3.7
Message-ID:  <20040329010026.206b2c43.tkato@prontomail.com>
Resent-Message-ID: <200403281610.i2SGAKY1075451@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         64856
>Category:       ports
>Synopsis:       Update port: ftp/oftpd to 0.3.7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 28 08:10:20 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.9-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Update to version 0.3.7

New file:
pkg-message

Remove file:
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/ftp/oftpd/Makefile ftp/oftpd/Makefile
--- /usr/ports/ftp/oftpd/Makefile	Sat Sep 27 20:56:44 2003
+++ ftp/oftpd/Makefile	Sat Mar 27 14:04:24 2004
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	oftpd
-PORTVERSION=	0.3.6
-PORTREVISION=	2
+PORTVERSION=	0.3.7
 CATEGORIES=	ftp
 MASTER_SITES=	http://www.time-travellers.org/oftpd/ \
 		http://atreides.freenix.no/~anders/
@@ -15,36 +14,30 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A threaded, anonymous only FTP server designed for security
 
-GNU_CONFIGURE=	yes
 USE_REINPLACE=	yes
-
-DOCFILES=	README AUTHORS ChangeLog NEWS TODO BUGS
-
-CFLAGS+=	${PTHREAD_CFLAGS}
-CONFIGURE_ENV+=	LIBS="-pthread"
+GNU_CONFIGURE=	yes
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
 MAN8=		oftpd.8
+PORTDOCS=	README AUTHORS ChangeLog NEWS TODO BUGS
+PLIST_FILES=	sbin/oftpd
 
 post-patch:
+	${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
+		 s|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
 .if defined(MAX_NUM_CLIENTS)
-	${REINPLACE_CMD} -e "s@MAX_NUM_CLIENTS 300@MAX_NUM_CLIENTS ${MAX_NUM_CLIENTS}@" ${WRKSRC}/src/oftpd.h
+	${REINPLACE_CMD} -e 's|MAX_NUM_CLIENTS 300|MAX_NUM_CLIENTS ${MAX_NUM_CLIENTS}|g' ${WRKSRC}/src/oftpd.h
 .endif
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/src/oftpd ${PREFIX}/sbin/oftpd
+	${INSTALL_PROGRAM} ${WRKSRC}/src/oftpd ${PREFIX}/sbin
+	${INSTALL_MAN} ${WRKSRC}/man/oftpd.8 ${MANPREFIX}/man/man8
 .if !defined(NOPORTDOCS)
-	${INSTALL} -d -m 555 ${PREFIX}/share/doc/oftpd
-.for i in ${DOCFILES}
-	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/oftpd
+	@${MKDIR} ${DOCSDIR}
+.for file in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
 .endfor
 .endif
-
-post-install:
-	@${INSTALL_MAN} ${WRKSRC}/man/oftpd.8 ${MANPREFIX}/man/man8
-	@${ECHO_MSG} "================================================================================"
-	@${ECHO_MSG} "oftpd only runs standalone, not from inetd."
-	@${ECHO_MSG} "Create a README file in the root anonymous FTP dir to have it displayed to"
-	@${ECHO_MSG} "users upon login."
-	@${ECHO_MSG} "================================================================================"
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -urN /usr/ports/ftp/oftpd/distinfo ftp/oftpd/distinfo
--- /usr/ports/ftp/oftpd/distinfo	Thu Jan 29 20:24:59 2004
+++ ftp/oftpd/distinfo	Sat Mar 27 14:00:47 2004
@@ -1,2 +1,2 @@
-MD5 (oftpd-0.3.6.tar.gz) = 78b4139bb0108297b9814564db986852
-SIZE (oftpd-0.3.6.tar.gz) = 77201
+MD5 (oftpd-0.3.7.tar.gz) = 1a396ad12584c7efe3a0e712dadf28be
+SIZE (oftpd-0.3.7.tar.gz) = 97364
diff -urN /usr/ports/ftp/oftpd/pkg-message ftp/oftpd/pkg-message
--- /usr/ports/ftp/oftpd/pkg-message	Thu Jan  1 09:00:00 1970
+++ ftp/oftpd/pkg-message	Sat Mar 27 13:57:33 2004
@@ -0,0 +1,5 @@
+================================================================================
+oftpd only runs standalone, not from inetd.
+Create a README file in the root anonymous FTP dir to have it displayed to
+users upon login.
+================================================================================
diff -urN /usr/ports/ftp/oftpd/pkg-plist ftp/oftpd/pkg-plist
--- /usr/ports/ftp/oftpd/pkg-plist	Tue May 29 22:24:40 2001
+++ ftp/oftpd/pkg-plist	Thu Jan  1 09:00:00 1970
@@ -1,8 +0,0 @@
-sbin/oftpd
-%%PORTDOCS%%share/doc/oftpd/README
-%%PORTDOCS%%share/doc/oftpd/AUTHORS
-%%PORTDOCS%%share/doc/oftpd/ChangeLog
-%%PORTDOCS%%share/doc/oftpd/NEWS
-%%PORTDOCS%%share/doc/oftpd/TODO
-%%PORTDOCS%%share/doc/oftpd/BUGS
-%%PORTDOCS%%@dirrm share/doc/oftpd
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040329010026.206b2c43.tkato>