aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2001-12-18 12:38:53 +0800
committerpetef <petef@FreeBSD.org>2001-12-18 12:38:53 +0800
commitd812b315eded70c9c2fea797dbefd20bb3ccb415 (patch)
tree35076a642b9c6a5400062b610a447b57c786779b /ftp
parentc7d53de6b21487e5446211c40322d8f03d438794 (diff)
downloadfreebsd-ports-gnome-d812b315eded70c9c2fea797dbefd20bb3ccb415.tar.gz
freebsd-ports-gnome-d812b315eded70c9c2fea797dbefd20bb3ccb415.tar.zst
freebsd-ports-gnome-d812b315eded70c9c2fea797dbefd20bb3ccb415.zip
- 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)
Diffstat (limited to 'ftp')
-rw-r--r--ftp/vsftpd/Makefile29
-rw-r--r--ftp/vsftpd/distinfo2
-rw-r--r--ftp/vsftpd/pkg-plist7
3 files changed, 24 insertions, 14 deletions
diff --git a/ftp/vsftpd/Makefile b/ftp/vsftpd/Makefile
index dcb4aeba30bd..85258a7d81ca 100644
--- a/ftp/vsftpd/Makefile
+++ b/ftp/vsftpd/Makefile
@@ -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>
diff --git a/ftp/vsftpd/distinfo b/ftp/vsftpd/distinfo
index a7ad44a0f284..7c662c9c0d3e 100644
--- a/ftp/vsftpd/distinfo
+++ b/ftp/vsftpd/distinfo
@@ -1 +1 @@
-MD5 (vsftpd-0.0.15.tar.gz) = 74eadb6c203cc90359632c91e6bb2b9a
+MD5 (vsftpd-1.0.1.tar.gz) = a30724a5e56091164f538bbdce10cdf4
diff --git a/ftp/vsftpd/pkg-plist b/ftp/vsftpd/pkg-plist
index 73fbe069d3e8..6dde76ce1fd8 100644
--- a/ftp/vsftpd/pkg-plist
+++ b/ftp/vsftpd/pkg-plist
@@ -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