mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
bc07afc1c2
the ECHO macro is set to "echo" by default, but it is set to "true" if make(1) is invoked with the -s option while ECHO_CMD is always set to the echo command. Use command macros where appropriate.
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# New ports collection makefile for: vsftpd
|
|
# Date created: 03 Feb 2001
|
|
# Whom: Neil Blakey-Milner
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= vsftpd
|
|
PORTVERSION= 1.0.1
|
|
CATEGORIES= ftp
|
|
MASTER_SITES= ftp://ferret.lmh.ox.ac.uk/pub/linux/
|
|
|
|
MAINTAINER= nbm@FreeBSD.org
|
|
|
|
ALL_TARGET= vsftpd
|
|
|
|
MAN5= vsftpd.conf.5
|
|
|
|
MAN8= vsftpd.8
|
|
|
|
post-patch:
|
|
@${PERL} -pi -e 's@/etc/vsftpd.conf@${PREFIX}/etc/vsftpd.conf@' \
|
|
${WRKSRC}/defs.h
|
|
@${PERL} -pi -e 's@ -ldl@@; s@^CFLAGS.*$$@@' ${WRKSRC}/Makefile
|
|
@${ECHO_CMD} "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
|
|
@${MKDIR} ${PREFIX}/share/vsftpd/empty
|
|
@for i in ${MAN8} ; do \
|
|
${INSTALL_MAN} -m 644 ${WRKSRC}/$${i} ${MANPREFIX}/man/man8/ ; \
|
|
done
|
|
@for i in ${MAN5} ; do \
|
|
${INSTALL_MAN} -m 644 ${WRKSRC}/$${i} ${MANPREFIX}/man/man5/ ; \
|
|
done
|
|
@${PERL5} ${PKGINSTALL}
|
|
@${MKDIR} /var/ftp
|
|
|
|
.include <bsd.port.mk>
|