# New ports collection makefile for: vsftpd # Date created: 03 Feb 2001 # Whom: Neil Blakey-Milner # # $FreeBSD$ # PORTNAME= vsftpd PORTVERSION= 0.0.10 CATEGORIES= ftp MASTER_SITES= ftp://ferret.lmh.ox.ac.uk/pub/linux/ MAINTAINER= nbm@FreeBSD.org ALL_TARGET= vsftpd post-patch: @${PERL} -i -p -e \ 's@^(#define VSFTP_DEFAULT_CONFIG )"[/]etc/vsftpd.conf"@\1"${PREFIX}/etc/vsftpd.conf"@' \ ${WRKSRC}/defs.h @${PERL} -i -p \ -e 's@ -ldl@@;' \ -e 's@^CFLAGS.*$$@@' \ ${WRKSRC}/Makefile @${ECHO} "secure_chroot_dir=${PREFIX}/share/vsftpd/empty" >> ${WRKSRC}/vsftpd.conf do-install: @${INSTALL_PROGRAM} ${WRKSRC}/vsftpd ${PREFIX}/libexec/ @${INSTALL_DATA} ${WRKSRC}/vsftpd.conf ${PREFIX}/etc/vsftpd.conf.dist @# @${INSTALL} -d ${PREFIX}/share/vsftpd/empty @if [ ! -e ${PREFIX}/etc/vsftpd.conf ]; then \ ${INSTALL_DATA} ${WRKSRC}/vsftpd.conf ${PREFIX}/etc/ ; \ fi @# @${PERL5} ${PKGINSTALL} .include