blob: e5f09dac6a0d6caedaafe2b4e14902b4f8e8abf4 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# New ports collection makefile for: bsdftpd-ssl
# Date created: 5 Apr 2003
# Whom: Nick Leuta
#
# $FreeBSD$
#
PORTNAME= bsdftpd-ssl
PORTVERSION= 0.6.3
CATEGORIES= ftp
MASTER_SITES= http://bsdftpd-ssl.sc.ru/files/bsdftpd-ssl/archive/0.6/src/
DISTNAME= bsdftpd-6.0-ssl-${PORTVERSION}
MAINTAINER= skynick@mail.sc.ru
# Client only part
.if defined(CLIENT_ONLY)
PKGNAMESUFFIX= -client
COMMENT= FTP command-line client utility with TLS/SSL support
DESCR= ${FILESDIR}/pkg-descr.client
PLIST= ${FILESDIR}/pkg-plist.client
.endif
# Client part
MAN1= ftps.1
# Server part
.if !defined(CLIENT_ONLY)
COMMENT= FTP server with TLS/SSL support
MAN8= ftpd.8
MLINKS= ftpd.8 ftpd-ssl.8
PKGMESSAGE= ${FILESDIR}/pkg-message.server
.endif
MANCOMPRESSED= yes
USE_OPENSSL= yes
BINOWN= root
BINGRP= wheel
SHAREOWN= ${BINOWN}
SHAREGRP= ${BINGRP}
MANOWN= ${BINOWN}
MANGRP= ${BINGRP}
BINMODE= 555
SHAREMODE= 444
MANMODE= ${SHAREMODE}
MANDIR= ${PREFIX}/man/man
DOCDIR= ${DOCSDIR}${PKGNAMESUFFIX}
pre-build:
(cd ${WRKSRC} && ./config.sh FreeBSD) || exit
do-build:
# Client part
(cd ${WRKSRC}/port && make && cd ${WRKSRC}/ftp && make) || exit
# Server part
.if !defined(CLIENT_ONLY)
(cd ${WRKSRC}/ftpd && make) || exit
.endif
do-install:
# Client part
${INSTALL_PROGRAM} ${WRKSRC}/ftp/ftps ${PREFIX}/bin/ftps
${INSTALL_MAN} ${WRKSRC}/ftp/ftps.1.gz ${MANDIR}1/ftps.1.gz
# Server part
.if !defined(CLIENT_ONLY)
${INSTALL_PROGRAM} ${WRKSRC}/ftpd/ftpd ${PREFIX}/libexec/ftpd
${INSTALL_MAN} ${WRKSRC}/ftpd/ftpd.8.gz ${MANDIR}8/ftpd.8.gz
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCDIR}
${INSTALL_DATA} -p ${WRKSRC}/COPYRIGHT ${DOCDIR}/COPYRIGHT
${INSTALL_DATA} -p ${WRKSRC}/README ${DOCDIR}/README
${INSTALL_DATA} -p ${WRKSRC}/INSTALL ${DOCDIR}/INSTALL
${INSTALL_DATA} -p ${WRKSRC}/ChangeLog ${DOCDIR}/ChangeLog
${MKDIR} ${DOCDIR}/docs
${INSTALL_DATA} -p ${WRKSRC}/docs/README ${DOCDIR}/docs/README
${INSTALL_DATA} -p ${WRKSRC}/docs/cert-basics.txt ${DOCDIR}/docs/cert-basics.txt
${INSTALL_DATA} -p ${WRKSRC}/docs/cert-howto.txt ${DOCDIR}/docs/cert-howto.txt
${INSTALL_DATA} -p ${WRKSRC}/docs/ciphers.txt ${DOCDIR}/docs/ciphers.txt
${INSTALL_DATA} -p ${WRKSRC}/docs/licenses ${DOCDIR}/docs/licenses
${INSTALL_DATA} -p ${WRKSRC}/docs/standards.txt ${DOCDIR}/docs/standards.txt
${INSTALL_DATA} -p ${WRKSRC}/docs/verify.txt ${DOCDIR}/docs/verify.txt
${INSTALL_DATA} -p ${WRKSRC}/docs/x509_auth.txt ${DOCDIR}/docs/x509_auth.txt
${MKDIR} ${DOCDIR}/cert
${INSTALL_SCRIPT} -p ${WRKSRC}/cert/cert-nopass.sh ${DOCDIR}/cert/cert-nopass.sh
${INSTALL_SCRIPT} -p ${WRKSRC}/cert/cert-pass.sh ${DOCDIR}/cert/cert-pass.sh
${INSTALL_SCRIPT} -p ${WRKSRC}/cert/dummy.sh ${DOCDIR}/cert/dummy.sh
${INSTALL_SCRIPT} -p ${WRKSRC}/cert/xCA.sh ${DOCDIR}/cert/xCA.sh
.endif
.if !defined(CLIENT_ONLY)
@${ECHO_CMD} "*******************************************************************************"
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD} "*******************************************************************************"
.endif
.include <bsd.port.mk>
|