pkgsrc/net/bftpd/Makefile
nia cafa890580 bftpd: update to 6.0
Jesse Smith <jessefrgsmith@yahoo.ca> -> 6.0
	- Make extended passive mode respect the PASSIVE_PORTS variable
	  in the bftpd configuration file. Previously random ports
	  would be assigned.
	- Minor code clean-up in mystrings library to avoid calculating
	  string length multiple times.

Jesse Smith <jessefrgsmith@yahoo.ca> -> 5.9
	- Fixed output of directory listing so that file size is right-justified
	  which makes output look cleaner.
	  Fix suggested by uomo ukko.
	- Addressed some compiler warnings. Make sure we bail out
          of situations even if they should never realisticaly return
	  an error.

Jesse Smith <jessefrgsmith@yahoo.ca> -> 5.8
	- Many spelling errors in source code and documentation found and
	  fixed by Jens of Fossies (fossies.org). Applied spelling corrections.
	- Removed mark-up and special characters from COPYING, README, and INSTALL
	  files.
	- Fixed file size reporting on 32-bit ARM architecture when files are
	  large (greater than 2GB).
	  Problem and fix reported by uomo ukko.

Jesse Smith <jessefrgsmith@yahoo.ca> -> 5.7
	- A malicious client could cause a buffer overflow with
	  a lot of EPSV commands sent in a row. We now close
	  the pasv socket before each new use to avoid accumulating
	  more than 1023.
	  Thanks to Shisong Qin for reporting this issue and suggesting
	  a fix.
2021-10-17 10:11:20 +00:00

47 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.29 2021/10/17 10:11:20 nia Exp $
DISTNAME= bftpd-6.0
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bftpd/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://bftpd.sourceforge.net/
COMMENT= Small and fast FTP server
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= YES
USE_TOOLS+= gmake
MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
WRKSRC= ${WRKDIR}/bftpd
CONF_FILES= ${PREFIX}/share/examples/bftpd/bftpd.conf \
${PKG_SYSCONFDIR}/bftpd.conf
CONFIGURE_ARGS+= --enable-libz
SUBST_CLASSES+= varbase
SUBST_STAGE.varbase= post-configure
SUBST_FILES.varbase= bftpd.conf
SUBST_SED.varbase= -e 's|/var/|${VARBASE}/|g'
SUBST_CLASSES+= sysconf
SUBST_STAGE.sysconf= post-configure
SUBST_FILES.sysconf= mypaths.h bftpd.8
SUBST_SED.sysconf= -e 's|PREFIX"/etc/|"${PKG_SYSCONFDIR}/|g'
SUBST_SED.sysconf+= -e 's|normally /etc/|normally ${PKG_SYSCONFDIR}/|g'
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8 share/examples/bftpd
BUILD_DEFS+= VARBASE
OWN_DIRS+= ${VARBASE}/run/bftpd
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bftpd ${DESTDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/bftpd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
${INSTALL_DATA} ${WRKSRC}/bftpd.conf ${DESTDIR}${PREFIX}/share/examples/bftpd
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"