From b94110e95acb66a9149e9699e0434a641700a188 Mon Sep 17 00:00:00 2001 From: trevor Date: Tue, 27 Apr 2004 21:24:07 +0000 Subject: Update to 2.8.1b19. PR: 65902 Approved by: portmgr for 4.10 freeze --- net/fspd/Makefile | 72 ++++++++++++++++++++++++++++++------------------------ net/fspd/distinfo | 4 +-- net/fspd/pkg-descr | 22 +++++++++-------- 3 files changed, 54 insertions(+), 44 deletions(-) (limited to 'net/fspd') diff --git a/net/fspd/Makefile b/net/fspd/Makefile index f0e3b91863d3..48f678b54b3c 100644 --- a/net/fspd/Makefile +++ b/net/fspd/Makefile @@ -6,51 +6,59 @@ # PORTNAME= fspd -PORTVERSION= 2.8.1.3 +PORTVERSION= 2.8.1.19 CATEGORIES= net -MASTER_SITES= ftp://ftp.netsw.org/net/ip/filetrans/fsp/ -DISTNAME= fsp.281-B3 +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= fsp +DISTNAME= fsp-2.8.1b19 MAINTAINER= trevor@FreeBSD.org -COMMENT= FSP daemon +COMMENT= FSP daemon, clients and scanner -FORBIDDEN= "buffer overflow (CAN-2004-0011) and directory traversal (CAN-2003-1022) bugs" - -ALL_TARGET= fspserver +CLIENTS= fcatcmd fcdcmd fducmd ffindcmd fgetcmd fgrabcmd fhostcmd \ + flscmd fmkdir fprocmd fput frmcmd frmdircmd fver fspmerge \ + fstatcmd DOCDIR= share/doc/${PORTNAME} -DOCFILES= BETA.README ChangeLog FILES INFO TODO INSTALL MACHINES -USE_REINPLACE= yes +PORTDOCS= BETA.README COPYRIGHT ChangeLog FILES INFO INSTALL MACHINES TODO +MAN1= fcat.1 fcatcmd.1 fcd.1 fcdcmd.1 fdu.1 fducmd.1 ffind.1 \ + ffindcmd.1 fget.1 fgetcmd.1 fgrab.1 fgrabcmd.1 fhost.1 \ + fhostcmd.1 fls.1 flscmd.1 fmkdir.1 fpro.1 fprocmd.1 fput.1 \ + frm.1 frmcmd.1 frmdir.1 frmdircmd.1 fspd.1 fspscan.1 fver.1 \ + fstatcmd.1 +MAN5= fsp_prof.5 +PLIST_FILES= bin/fspd bin/fspscan etc/fspd.conf.sample +OPTIONS= NOCLIENTS "Omit client commands" off +CONFIGURE_TARGET:= --build=${CONFIGURE_TARGET} GNU_CONFIGURE= yes -MAN1= fspd.1 -PLIST= ${WRKDIR}/pkg-plist -WRKSRC= ${WRKDIR}/2.8.1 +USE_BZIP2= yes +WRKSRC= ${WRKDIR}/${DISTNAME} -do-patch: - ${REINPLACE_CMD} -e "s:/usr/fsp:${LOCALBASE}/etc:g" \ - ${WRKSRC}/include/server_conf.h +.include -pre-install: - ${ECHO_CMD} "sbin/fspd" > ${PLIST} -.if !defined(NOPORTDOCS) -.for i in ${DOCFILES} - ${ECHO_CMD} ${DOCDIR}/${i} >> ${PLIST} +.if !defined(WITH_NOCLIENTS) +.for command in ${CLIENTS} +PLIST_FILES+= bin/${command} .endfor - ${ECHO_CMD} share/examples/fspd/example.conf >> ${PLIST} - ${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST} - ${ECHO_CMD} @dirrm share/examples/fspd >> ${PLIST} .endif do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/server/fspd ${LOCALBASE}/sbin -.if !defined(NO_INSTALL_MANPAGES) - ${INSTALL_MAN} ${WRKSRC}/man/man1/fspd.1 ${LOCALBASE}/man/man1/ -.endif .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/examples/fspd ${PREFIX}/${DOCDIR} -.for i in ${DOCFILES} - ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR} + ${MKDIR} ${DOCSDIR} +.for doc in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} .endfor - ${INSTALL_DATA} ${WRKSRC}/example.conf ${PREFIX}/share/examples/fspd .endif +.if !defined(WITH_NOCLIENTS) +.for command in ${CLIENTS} + ${INSTALL_PROGRAM} ${WRKSRC}/clients/${command} ${PREFIX}/bin +.endfor +.endif + ${INSTALL_PROGRAM} ${WRKSRC}/contrib/fspscan ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/server/fspd ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/fspd.conf ${PREFIX}/etc/fspd.conf.sample +.for page in ${MAN1} + ${INSTALL_MAN} ${WRKSRC}/man/${page} ${PREFIX}/man/man1 +.endfor + ${INSTALL_MAN} ${WRKSRC}/man/${MAN5} ${PREFIX}/man/man5 -.include +.include diff --git a/net/fspd/distinfo b/net/fspd/distinfo index 8f0df4e312ca..9a164dd2365a 100644 --- a/net/fspd/distinfo +++ b/net/fspd/distinfo @@ -1,2 +1,2 @@ -MD5 (fsp.281-B3.tar.gz) = b8ff7d267aa630ace3eefe51c32135ea -SIZE (fsp.281-B3.tar.gz) = 154577 +MD5 (fsp-2.8.1b19.tar.bz2) = 0219f935d25d363a633ff588000e378b +SIZE (fsp-2.8.1b19.tar.bz2) = 238743 diff --git a/net/fspd/pkg-descr b/net/fspd/pkg-descr index bde671415cae..811845056706 100644 --- a/net/fspd/pkg-descr +++ b/net/fspd/pkg-descr @@ -1,13 +1,15 @@ -This is a server daemon for FSP, the File Service Protocol. With -it, you can offer files to "anonymous" visitors. Bandwidth can -easily be limited. +This is a server daemon, port scanner and (optionally) clients for FSP, the File +Service Protocol. -Since a service contact port (well-known port) for FSP has not been -assigned by IANA (per RFC 1700), you must choose one yourself when -configuring fspd. Edit the example.conf file and place it in -${LOCALBASE}/etc/fspd.conf (typically LOCALBASE is set to /usr/local). -You can run fspd from inetd or stand-alone. +FSP is lightweight and connectionless. It is typically used for offering files +to "anonymous" visitors over a congested link. It uses UDP rather than TCP +sockets. A service contact port (well-known port) for FSP has not been assigned +by IANA (per RFC 1700). See for an +overview. + +To use fspd, you must copy the fspd.conf.sample file, normally installed in +/usr/local/etc/, to fspd.conf and edit it. -WWW: http://www.faqs.org/faqs/fsp-faq/ +You can run fspd from inetd or stand-alone. -Trevor Johnson +WWW: http://fsp.sf.net -- cgit