57e8d0fff4
Changes: - remove superfluous .if around BUILD_DEFS - drop maintainership, i don't really use the package anymore - XXX: this package doesn't compile on non-IPv6 enabled operating systems 1.2.2: ====== - Fix FreeBSD 5.1/5.2 issue with time_t being long long on that platform. - Tweak vsftpd.conf.5 to avoid automated mails from ESR ;-) - Add -v flag which just outputs the version and exits. - Fix nasty issue resulting in listener instability under extreme load (root cause was re-entering malloc/free). - Fix build with modern glibc-2.3 and no libcap on Linux. - Fix 64-bit file support on Solaris. - Add initial support for running as the user which launched vsftpd, i.e. no root needed. Warning - easy to create insecurity if you use this without knowing what you are doing. - For above run-as-launching-user support: make CDUP re-use CWD code so that deny_file of *..* is useful. - Attempt fix of 64-bit file support on FreeBSD (may need another go).
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2004/05/09 00:29:22 salo Exp $
|
|
#
|
|
|
|
DISTNAME= vsftpd-1.2.2
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://vsftpd.beasts.org/users/cevans/
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://vsftpd.beasts.org/
|
|
COMMENT= FTP server that aims to be very secure
|
|
|
|
USE_BUILDLINK3= YES
|
|
USE_PKGINSTALL= YES
|
|
|
|
PKG_SYSCONFSUBDIR= vsftpd
|
|
|
|
ALL_TARGET= vsftpd
|
|
RCD_SCRIPTS= vsftpd
|
|
|
|
VSFTPD_USER?= vsftpd
|
|
VSFTPD_GROUP?= vsftpd
|
|
PKG_GROUPS= ${VSFTPD_GROUP}
|
|
PKG_USERS= ${VSFTPD_USER}:${VSFTPD_GROUP}::vsftpd\\ user
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/vsftpd
|
|
EGDIR= ${PREFIX}/share/examples/vsftpd
|
|
|
|
CFLAGS= -DPKG_SYSCONFDIR=\"\\\"${PKG_SYSCONFDIR}\\\"\"
|
|
|
|
CONF_FILES= ${EGDIR}/vsftpd.conf.default ${PKG_SYSCONFDIR}/vsftpd.conf
|
|
MAKE_DIRS= /var/chroot
|
|
OWN_DIRS= /var/chroot/vsftpd
|
|
|
|
# XXX: This package doesn't work on non-IPv6 enabled operating systems.
|
|
#
|
|
BUILD_DEFS+= USE_INET6
|
|
|
|
post-patch:
|
|
@cd ${WRKSRC} && \
|
|
for f in vsftpd.8 vsftpd.conf.5 vsftpd.conf; do \
|
|
${MV} $${f} $${f}.orig; \
|
|
${SED} ${FILES_SUBST_SED} $${f}.orig > $${f}; \
|
|
done
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/vsftpd ${PREFIX}/libexec
|
|
${INSTALL_MAN} ${WRKSRC}/vsftpd.8 ${PREFIX}/man/man8
|
|
${INSTALL_MAN} ${WRKSRC}/vsftpd.conf.5 ${PREFIX}/man/man5
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/vsftpd.conf ${EGDIR}/vsftpd.conf.default
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} FAQ INSTALL README TUNING ${DOCDIR}
|
|
|
|
.include "../../security/tcp_wrappers/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|