blob: 7dad5d1b113a8af7bf5479f3f248f529894951ab (
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
39
40
41
42
43
44
45
|
# New ports collection makefile for: vsftpd
# Date created: 03 Feb 2001
# Whom: Neil Blakey-Milner
#
# $FreeBSD$
#
PORTNAME= vsftpd
PORTVERSION= 1.1.0
CATEGORIES= ftp
MASTER_SITES= ftp://vsftpd.beasts.org/users/cevans/
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.*$$@CFLAGS= -D"atoll(x)=strtoll(x, (char **)NULL, 10)"@' ${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>
|