diff options
author | dinoex <dinoex@FreeBSD.org> | 2002-11-11 12:03:25 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2002-11-11 12:03:25 +0800 |
commit | 50b129777bfa1f97df6cdfcae32876bec7b5f478 (patch) | |
tree | 1152126d90e565c13b8641ec3d126fc438e6a4ce /ftp/vsftpd/Makefile | |
parent | 97e1fe426ed7440f298c93eaa3e40f274d121c16 (diff) | |
download | freebsd-ports-gnome-50b129777bfa1f97df6cdfcae32876bec7b5f478.tar.gz freebsd-ports-gnome-50b129777bfa1f97df6cdfcae32876bec7b5f478.tar.zst freebsd-ports-gnome-50b129777bfa1f97df6cdfcae32876bec7b5f478.zip |
- Update to 1.1.3
- supports tcp_wrappers in standalone mode
- verboose install
- documentation added
PR: 45199
Submitted by: matthias.andree@web.de
Diffstat (limited to 'ftp/vsftpd/Makefile')
-rw-r--r-- | ftp/vsftpd/Makefile | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/ftp/vsftpd/Makefile b/ftp/vsftpd/Makefile index 053962680174..f1f8b22f2b24 100644 --- a/ftp/vsftpd/Makefile +++ b/ftp/vsftpd/Makefile @@ -6,7 +6,7 @@ # PORTNAME= vsftpd -PORTVERSION= 1.1.2 +PORTVERSION= 1.1.3 CATEGORIES= ftp MASTER_SITES= ftp://vsftpd.beasts.org/users/cevans/ @@ -14,38 +14,54 @@ MAINTAINER= dinoex@FreeBSD.org USE_PERL5= yes ALL_TARGET= vsftpd - MAN5= vsftpd.conf.5 - MAN8= vsftpd.8 +DOCFILES= AUDIT BENCHMARKS BUGS COPYING Changelog FAQ INSTALL LICENSE \ + README README.security REWARD SIZE SPEED TODO TUNING .include <bsd.port.pre.mk> -post-patch: +do-configure: @${MV} ${WRKSRC}/defs.h ${WRKSRC}/defs.h.sed ${SED} -e "s=/etc/vsftpd.conf=${PREFIX}/etc/vsftpd.conf=" \ ${WRKSRC}/defs.h.sed > ${WRKSRC}/defs.h @${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.sed ${SED} -e "s/^CFLAGS =/CFLAGS +=/" \ ${WRKSRC}/Makefile.sed > ${WRKSRC}/Makefile - @${ECHO_CMD} "secure_chroot_dir=${PREFIX}/share/vsftpd/empty" >> \ + @${MV} ${WRKSRC}/builddefs.h ${WRKSRC}/builddefs.h.sed + ${SED} -e "s/#undef VSF_BUILD_TCPWRAPPERS/#define VSF_BUILD_TCPWRAPPERS 1/" \ + ${WRKSRC}/builddefs.h.sed > ${WRKSRC}/builddefs.h + ${SED} -e "s/^CFLAGS =/CFLAGS +=/" \ + ${WRKSRC}/Makefile.sed > ${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 + ${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 + ${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 + ${PERL5} ${PKGINSTALL} + ${MKDIR} /var/ftp +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for i in ${DOCFILES} + ${INSTALL_DATA} -m 644 ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.for i in EXAMPLE SECURITY + ${MKDIR} ${DOCSDIR}/${i} + ${CP} -p -R -L ${WRKSRC}/${i}/./ ${DOCSDIR}/${i}/ + ${CHMOD} -R -L a+rX,go-w ${DOCSDIR}/${i}/ +.endfor +.endif .include <bsd.port.post.mk> |