summaryrefslogtreecommitdiff
path: root/ftp/ncftpd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/ncftpd/Makefile')
-rw-r--r--ftp/ncftpd/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/ftp/ncftpd/Makefile b/ftp/ncftpd/Makefile
index 496d41d51687..f5692ba8d938 100644
--- a/ftp/ncftpd/Makefile
+++ b/ftp/ncftpd/Makefile
@@ -6,23 +6,33 @@
#
PORTNAME= ncftpd
-PORTVERSION= 2.7.1
+PORTVERSION= 2.7.3
CATEGORIES= ftp
MASTER_SITES= ftp://ftp.ncftp.com/ncftpd/${PORTVERSION}/
-DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd4.4-${ARCH}-export
+DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd${BINVER}-${ARCH}-export
MAINTAINER= jus@security.za.net
COMMENT= A well known commercial FTP daemon with a 30-day evaluation license
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-BROKEN= "Does not fetch"
-
ONLY_FOR_ARCHS= i386
NO_BUILD= YES
LICENSE= shareware
RESTRICTED= "30 day evaluation license"
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500000
+BINVER= 5.0
+.elif ${OSVERSION} >= 480000
+BINVER= 4.8
+.elif ${OSVERSION} >= 350000
+BINVER= 3.5.1
+.else
+BROKEN= "FreeBSD version too old"
+.endif
+
do-install:
${MKDIR} ${PREFIX}/etc/ncftpd
${INSTALL_PROGRAM} ${WRKSRC}/ncftpd ${PREFIX}/sbin
@@ -44,4 +54,4 @@ post-install:
.endif
${SED} -e 's,%%PREFIX%%,${PREFIX},' ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>