blob: dcb4aeba30bd5658f76d0ccf2592fca8dfd94d9d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# New ports collection makefile for: vsftpd
# Date created: 03 Feb 2001
# Whom: Neil Blakey-Milner
#
# $FreeBSD$
#
PORTNAME= vsftpd
PORTVERSION= 0.0.15
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 <bsd.port.mk>
|