head	1.15;
access;
symbols
	RELEASE_8_3_0:1.13
	RELEASE_9_0_0:1.13
	RELEASE_7_4_0:1.13
	RELEASE_8_2_0:1.13
	RELEASE_6_EOL:1.13
	RELEASE_8_1_0:1.13
	RELEASE_7_3_0:1.12
	RELEASE_8_0_0:1.12
	RELEASE_7_2_0:1.12
	RELEASE_7_1_0:1.9
	RELEASE_6_4_0:1.9
	RELEASE_5_EOL:1.9
	RELEASE_7_0_0:1.9
	RELEASE_6_3_0:1.9
	PRE_XORG_7:1.7
	RELEASE_4_EOL:1.7
	RELEASE_6_2_0:1.7
	RELEASE_6_1_0:1.7
	RELEASE_5_5_0:1.7
	RELEASE_6_0_0:1.7
	RELEASE_5_4_0:1.6
	RELEASE_4_11_0:1.6
	RELEASE_5_3_0:1.6
	RELEASE_4_10_0:1.5
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.1;
locks; strict;
comment	@# @;


1.15
date	2012.11.17.05.57.28;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.06.26.17.11.21;	author lwhsu;	state Exp;
branches;
next	1.13;

1.13
date	2010.03.20.13.59.03;	author miwi;	state Exp;
branches;
next	1.12;

1.12
date	2009.04.07.19.41.45;	author itetcu;	state Exp;
branches;
next	1.11;

1.11
date	2009.01.05.19.44.01;	author pav;	state Exp;
branches;
next	1.10;

1.10
date	2008.12.08.21.10.35;	author beech;	state Exp;
branches;
next	1.9;

1.9
date	2007.10.04.00.50.27;	author edwin;	state Exp;
branches;
next	1.8;

1.8
date	2007.08.30.17.58.15;	author sem;	state Exp;
branches;
next	1.7;

1.7
date	2005.07.18.20.54.41;	author pav;	state Exp;
branches;
next	1.6;

1.6
date	2004.07.21.12.48.22;	author krion;	state Exp;
branches;
next	1.5;

1.5
date	2004.03.02.23.23.54;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2004.01.11.23.03.43;	author krion;	state Exp;
branches;
next	1.3;

1.3
date	2003.12.04.15.04.25;	author krion;	state Exp;
branches;
next	1.2;

1.2
date	2003.09.06.00.14.11;	author leeym;	state Exp;
branches;
next	1.1;

1.1
date	2003.04.06.15.06.19;	author arved;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Switch exporter over
@
text
@# New ports collection makefile for:	bsdftpd-ssl
# Date created:				5 Apr 2003
# Whom:					Nick Leuta
#
# $FreeBSD: head/ftp/bsdftpd-ssl/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	bsdftpd-ssl
PORTVERSION=	1.1.0
PORTREVISION=	3
CATEGORIES=	ftp
MASTER_SITES=	http://bsdftpd.org/files/bsdftpd-ssl/archive/1.1/src/ \
		http://www.sourcefiles.org/System/Daemons/FTP/
.if defined(CLIENT_ONLY)
PKGNAMESUFFIX=	-client
.endif

MAINTAINER=	skynick@@mail.sc.ru
COMMENT=	Secure FTP server with the TLS/SSL support
.if defined(CLIENT_ONLY)
COMMENT=	FTP command-line client utility with the TLS/SSL support
.endif

USE_OPENSSL=	yes

.include <bsd.port.pre.mk>

# Client only part
.if defined(CLIENT_ONLY)
DESCR=		${FILESDIR}/pkg-descr.client
PLIST=		${FILESDIR}/pkg-plist.client
.endif
# Client part
MAN1=	ftps.1
# Server part
.if !defined(CLIENT_ONLY)
MAN5=	ftpchroot.5 xferlog.5
MAN8=	ftpd.8
MLINKS=	ftpd.8 ftpd-ssl.8 ftpchroot.5 ftpchroot-ssl.5
.ifndef NOPORTEXAMPLES
SUB_FILES=	pkg-message
.endif
USE_RC_SUBR=	${PORTNAME}
.endif

MANCOMPRESSED=	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/ftpchroot.5.gz ${MANDIR}5/ftpchroot.5.gz
	${INSTALL_MAN} ${WRKSRC}/ftpd/xferlog.5.gz ${MANDIR}5/xferlog.5.gz
	${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/cert-dummy.sh ${DOCDIR}/cert/cert-dummy.sh
	${INSTALL_SCRIPT} -p ${WRKSRC}/cert/xCA.sh ${DOCDIR}/cert/xCA.sh
.endif
.if !defined(CLIENT_ONLY)
.if !defined(NOPORTEXAMPLES)
	${MKDIR} ${EXAMPLESDIR}/rc.conf.d
	${INSTALL_DATA} -p ${FILESDIR}/README.examples ${EXAMPLESDIR}/README
	${INSTALL_DATA} -p ${FILESDIR}/ftpchroot ${EXAMPLESDIR}/ftpchroot
	${INSTALL_DATA} -p ${FILESDIR}/ftpusers ${EXAMPLESDIR}/ftpusers
	${INSTALL_DATA} -p ${FILESDIR}/rc_conf_d.bsdftpd_ssl ${EXAMPLESDIR}/rc.conf.d/bsdftpd_ssl
	@@${ECHO_CMD} "*******************************************************************************"
	@@${CAT} ${PKGMESSAGE}
	@@${ECHO_CMD} "*******************************************************************************"
.endif
.endif

.include <bsd.port.post.mk>
@


1.14
log
@- Fix utmpx for FreeBSD 9+
- Seperate logwtmp.c patch from patch-gcc4
- Change MASTER_SITES because the original site has no ns record now
- Undefine DISTNAME
- Bump PORTREVISION

PR:		ports/169096
Submitted by:	Hung-te Liang <lhd@@cs.nctu.edu.tw>
Approved by:	Nick Leuta <skynick@@mail.sc.ru> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.13
log
@- Mark BROKEN on HEAD: fails to build with new utmpx

Reported by:	pointyhat
@
text
@d10 1
a10 1
PORTREVISION=	2
d12 5
a16 2
MASTER_SITES=	http://bsdftpd.org/files/bsdftpd-ssl/archive/1.1/src/
DISTNAME=	bsdftpd-ssl-${PORTVERSION}
d19 4
a27 4
.if ${OSVERSION} > 900007
BROKEN=		fails to build with new utmpx
.endif

a29 2
PKGNAMESUFFIX=	-client
COMMENT=	FTP command-line client utility with the TLS/SSL support
a36 1
COMMENT=	Secure FTP server with the TLS/SSL support
@


1.12
log
@- fix plist with -DNOPORTEXAMPLES
- while here, modernize the port (USE_RC_SUBR, SUB_FILES)
- bump PORTREVISION

Prompted by:	QAT QA run
Approved by:	maintainer timeout on QATMail
@
text
@d21 4
@


1.11
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d10 1
a10 1
PORTREVISION=	1
d36 4
a39 3
PKGMESSAGE=	${WRKDIR}/pkg-message
SED_ARG=	's|%%PREFIX%%|${PREFIX}|g; s|%%DOCSDIR%%|${DOCSDIR}|g; s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g; s|%%RC_SUBR%%|${RC_SUBR}|g'
USE_RC_SUBR=	yes
a65 4
	@@${SED} ${SED_ARG} ${FILESDIR}/pkg-message.server > \
	${WRKDIR}/pkg-message
	@@${SED} ${SED_ARG} ${FILESDIR}/bsdftpd_ssl.sh > \
	${WRKDIR}/bsdftpd_ssl.sh
d105 1
a105 1
	${MKDIR} ${EXAMPLESDIR}
a110 1
	${INSTALL_SCRIPT} ${WRKDIR}/bsdftpd_ssl.sh ${PREFIX}/etc/rc.d/bsdftpd_ssl.sh
d115 1
@


1.10
log
@- Fix MASTER_SITES (make fetchable)

PR:		ports/129443
Submitted by:	Alexander Kirpa <freebsd-bug@@kirpa.com>
Approved by:	Nick Leuta <skynick@@mail.sc.ru> (maintainer)
@
text
@a37 2
. if ${OSVERSION} >= 503001
#    FreeBSD >= 5.3
a38 3
. else
PLIST=		${FILESDIR}/pkg-plist.server.compat
. endif
a64 2
. if ${OSVERSION} >= 503001
#    FreeBSD >= 5.3
a68 4
. else
	@@${SED} ${SED_ARG} ${FILESDIR}/pkg-message.server.compat > \
	${WRKDIR}/pkg-message
. endif
a107 2
. if ${OSVERSION} >= 503001
#    FreeBSD >= 5.3
a114 3
. else
	${INSTALL_SCRIPT} ${FILESDIR}/bsdftpd_ssl.sh.compat ${PREFIX}/etc/rc.d/bsdftpd_ssl.sh.sample
. endif
@


1.9
log
@Remove always-false/true conditions based on OSVERSION 500000
@
text
@d12 1
a12 1
MASTER_SITES=	http://bsdftpd-ssl.sc.ru/files/bsdftpd-ssl/archive/1.1/src/
@


1.8
log
@- Patch to fix build with gcc 4.x
- PORTREVISION bump because some minor functional changes.

PR:		ports/115841
Submitted by:	maintainer
@
text
@a61 4
.if ${OSVERSION} < 500000
# Compatibility with FreeBSD 4.x
	(cd ${WRKSRC} && ./config.sh _conv_gcc29x) || exit
.endif
@


1.7
log
@- Update to 1.1.0

PR:		ports/83633
Submitted by:	Nick Leuta <skynick@@mail.sc.ru> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	0
@


1.6
log
@Update to 1.0.2

PR:		ports/69343
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	1.0.2
d12 1
a12 1
MASTER_SITES=	http://bsdftpd-ssl.sc.ru/files/bsdftpd-ssl/archive/1.0/src/
d17 4
d35 1
a35 1
MLINKS=	ftpd.8 ftpd-ssl.8
d37 7
a43 1
SED_ARG=	's|%%PREFIX%%|${PREFIX}|g; s|%%DOCSDIR%%|${DOCSDIR}|g'
a46 1
USE_OPENSSL=	yes
d62 4
d67 1
d74 2
d78 6
d123 12
a134 1
	@@${INSTALL_SCRIPT} ${FILESDIR}/bsdftpd-ssl.sh ${PREFIX}/etc/rc.d/bsdftpd-ssl.sh.sample
d140 1
a140 1
.include <bsd.port.mk>
@


1.5
log
@- Update to 1.0.1

PR:		ports/63650
Submitted by:	Nick Leuta <skynick@@mail.sc.ru> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.0.1
@


1.4
log
@- Data transfere may be aborted now with the next message,
  because the EINTR error isn't handled: "426 Data connection:
  Interrupted system call".

PR:		61221
Submitted by:	maintainer
@
text
@d9 2
a10 2
PORTVERSION=	1.0.0
PORTREVISION=	1
d29 1
a29 1
MAN5=	ftpchroot.5
d32 2
a33 1
PKGMESSAGE=	${FILESDIR}/pkg-message.server
d60 2
d72 1
d101 1
@


1.3
log
@- Update to version 1.0.0

PR:		59761
Submitted by:	maintainer
@
text
@d10 1
@


1.2
log
@update to 0.6.3

PR:		56508
Submitted by:	Nick Leuta <skynick@@mail.sc.ru>
@
text
@d9 1
a9 1
PORTVERSION=	0.6.3
d11 2
a12 2
MASTER_SITES=	http://bsdftpd-ssl.sc.ru/files/bsdftpd-ssl/archive/0.6/src/
DISTNAME=	bsdftpd-6.0-ssl-${PORTVERSION}
d19 1
a19 1
COMMENT=	FTP command-line client utility with TLS/SSL support
d27 2
a28 1
COMMENT=	FTP server with TLS/SSL support
d67 1
d92 1
a92 1
	${INSTALL_SCRIPT} -p ${WRKSRC}/cert/dummy.sh ${DOCDIR}/cert/dummy.sh
@


1.1
log
@Add BSDftpd-ssl, an RFC 2228 compliant TLS/SSL-enhanced FTP server.

PR:		44756
Submitted by:	Nick Leuta <skynick@@stu.lipetsk.ru>
@
text
@d9 1
a9 1
PORTVERSION=	0.6.2
@

