2001-06-27 13:34:06 +00:00
|
|
|
# New ports collection Makefile for: ncftpd
|
|
|
|
# Date created: 19 June 2001
|
|
|
|
# Whom: Justin Stanford <jus@security.za.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ncftpd
|
2004-08-20 08:53:26 +00:00
|
|
|
PORTVERSION= 2.8.1
|
2001-06-27 13:34:06 +00:00
|
|
|
CATEGORIES= ftp
|
|
|
|
MASTER_SITES= ftp://ftp.ncftp.com/ncftpd/${PORTVERSION}/
|
2003-10-14 12:23:36 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd${BINVER}-${ARCH}-export
|
2001-06-27 13:34:06 +00:00
|
|
|
|
|
|
|
MAINTAINER= jus@security.za.net
|
2003-02-21 12:06:51 +00:00
|
|
|
COMMENT= A well known commercial FTP daemon with a 30-day evaluation license
|
2001-06-27 13:34:06 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
NO_BUILD= YES
|
|
|
|
LICENSE= shareware
|
2004-08-20 08:54:45 +00:00
|
|
|
RESTRICTED= "30 day evaluation license"
|
2001-06-27 13:34:06 +00:00
|
|
|
|
2003-10-14 12:23:36 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 500000
|
2004-08-20 08:53:26 +00:00
|
|
|
BINVER= 5.2.1
|
2003-10-14 12:23:36 +00:00
|
|
|
.elif ${OSVERSION} >= 480000
|
|
|
|
BINVER= 4.8
|
|
|
|
.elif ${OSVERSION} >= 350000
|
|
|
|
BINVER= 3.5.1
|
|
|
|
.else
|
|
|
|
BROKEN= "FreeBSD version too old"
|
|
|
|
.endif
|
|
|
|
|
2001-06-27 13:34:06 +00:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/etc/ncftpd
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ncftpd ${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_edquota ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_passwd ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_repquota ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_spy ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/general.cf-dist ${PREFIX}/etc/ncftpd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/domain.cf-dist ${PREFIX}/etc/ncftpd
|
|
|
|
${INSTALL_SCRIPT} ${SCRIPTDIR}/ncftpd.sh ${PREFIX}/etc/rc.d
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/ncftpd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/install.html ${PREFIX}/share/doc/ncftpd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ncftpd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.freebsd ${PREFIX}/share/doc/ncftpd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/ncftpd
|
|
|
|
.endif
|
2004-08-20 08:53:26 +00:00
|
|
|
@${SED} -e 's,%%PREFIX%%,${PREFIX},' ${PKGMESSAGE}
|
2001-06-27 13:34:06 +00:00
|
|
|
|
2003-10-14 12:23:36 +00:00
|
|
|
.include <bsd.port.post.mk>
|