1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

- update to 1.0.1

- style (spaces -> ^I)
- clean up post-patch target
- make sure /var/ftp exists

PR:		32929, 32939
Submitted by:	Matthias Andree <matthias.andree@web.de>,
                Miguel Mendez <flynn@energyhq.homeip.net>
Approved by:	nbm (approval to update the port while he is away)
This commit is contained in:
Pete Fritchman 2001-12-18 04:38:53 +00:00
parent 3810853c74
commit e736dd9db4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51720
3 changed files with 24 additions and 14 deletions

View File

@ -6,33 +6,40 @@
#
PORTNAME= vsftpd
PORTVERSION= 0.0.15
PORTVERSION= 1.0.1
CATEGORIES= ftp
MASTER_SITES= ftp://ferret.lmh.ox.ac.uk/pub/linux/
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} -i -p -e \
's@^(#define VSFTP_DEFAULT_CONFIG )"[/]etc/vsftpd.conf"@\1"${PREFIX}/etc/vsftpd.conf"@' \
@${PERL} -pi -e 's@/etc/vsftpd.conf@${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
@${PERL} -pi -e 's@ -ldl@@; 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
@#
@${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>

View File

@ -1 +1 @@
MD5 (vsftpd-0.0.15.tar.gz) = 74eadb6c203cc90359632c91e6bb2b9a
MD5 (vsftpd-1.0.1.tar.gz) = a30724a5e56091164f538bbdce10cdf4

View File

@ -1,6 +1,9 @@
libexec/vsftpd
@exec mkdir -p %D/share/vsftpd/empty
@unexec if ! `grep -q %D/etc/vsftpd.conf %D/etc/vsftpd.conf.dist`; then rm %D/etc/vsftpd.conf; fi
etc/vsftpd.conf.dist
@exec if [ ! -f %B/vsftpd.conf ]; then cp %B/vsftpd.conf.dist %B/vsftpd.conf; fi
@unexec rmdir %D/share/vsftpd/empty 2>/dev/null || true
@unexec rmdir %D/share/vsftpd 2>/dev/null || true
@exec if [ ! -d /var/ftp ]; then mkdir /var/ftp ; fi
@unexec rmdir /var/ftp 2>/dev/null || true
@dirrm share/vsftpd/empty
@dirrm share/vsftpd