2003-09-10 08:11:48 +00:00
|
|
|
# Ports collection makefile for: ftpd-tls
|
|
|
|
# Date created: 21 August 2003
|
|
|
|
# Whom: marius@alchemy.franken.de
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ftpd-tls
|
2003-10-09 08:46:46 +00:00
|
|
|
PORTVERSION= 20031008
|
2006-02-20 12:38:27 +00:00
|
|
|
PORTREVISION= 2
|
2003-09-10 08:11:48 +00:00
|
|
|
CATEGORIES= ftp security
|
2006-06-14 20:46:26 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= marius
|
2003-09-10 08:11:48 +00:00
|
|
|
|
2004-04-20 13:49:29 +00:00
|
|
|
MAINTAINER= marius@FreeBSD.org
|
2003-09-10 08:11:48 +00:00
|
|
|
COMMENT= Ftp server supporting FTP AUTH TLS
|
|
|
|
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
USE_OPENSSL= YES
|
2006-02-20 12:38:27 +00:00
|
|
|
USE_RC_SUBR= ftpd-tls.sh
|
2003-09-10 08:11:48 +00:00
|
|
|
|
|
|
|
MAN8= ftpd-tls.8
|
|
|
|
|
2006-02-20 12:38:27 +00:00
|
|
|
CONFIGURE_ARGS= --with-openssl-dir=${OPENSSLBASE}
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2003-09-10 08:11:48 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.for i in README.TLS ftpd.8.TLS pathnames.h tlsutil.c
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/${i}
|
|
|
|
.endfor
|
|
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g; s|%%DOCSDIR%%|${DOCSDIR}|g' \
|
|
|
|
${PKGDIR}/pkg-message > ${WRKDIR}/pkg-message
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/ftpd ${PREFIX}/libexec/ftpd-tls
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/ftpd.8.TLS ${PREFIX}/man/man8/ftpd-tls.8
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in README.TLS draft-murray-auth-ftp-ssl-09.txt
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.if !exists(${PREFIX}/etc/ftpd-tls)
|
|
|
|
@${MKDIR} ${PREFIX}/etc/ftpd-tls
|
|
|
|
@${CHMOD} 700 ${PREFIX}/etc/ftpd-tls
|
|
|
|
.endif
|
|
|
|
.if (!exists(${PREFIX}/etc/ftpd-tls/ftpusers)) && (exists(/etc/ftpusers))
|
|
|
|
@${INSTALL_DATA} /etc/ftpusers ${PREFIX}/etc/ftpd-tls
|
|
|
|
.endif
|
|
|
|
|
2006-02-20 12:38:27 +00:00
|
|
|
pre-install:
|
|
|
|
# Make sure there's no startup script left over from a previous installation.
|
|
|
|
@${RM} -f ${PREFIX}/etc/rc.d/ftpd-tls.sh
|
|
|
|
|
2003-09-10 08:11:48 +00:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${WRKDIR}/pkg-message
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|