ports/64856: Update port: ftp/oftpd to 0.3.7

KATO Tsuguru tkato at prontomail.com
Sun Mar 28 16:10:21 UTC 2004


>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 at 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 at MAX_NUM_CLIENTS 300 at 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:



More information about the freebsd-ports-bugs mailing list