aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/ncftpd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/ncftpd/Makefile')
-rw-r--r--ftp/ncftpd/Makefile46
1 files changed, 28 insertions, 18 deletions
diff --git a/ftp/ncftpd/Makefile b/ftp/ncftpd/Makefile
index 06f07dc5a281..a7c17a65cd53 100644
--- a/ftp/ncftpd/Makefile
+++ b/ftp/ncftpd/Makefile
@@ -6,34 +6,47 @@
#
PORTNAME= ncftpd
-PORTVERSION= 2.8.3
+PORTVERSION= 2.8.5
CATEGORIES= ftp
-MASTER_SITES= ${MASTER_SITE_LOCAL} \
- ftp://ftp.ncftp.com/ncftpd/${PORTVERSION}/ \
- ftp://ftp.nl.uu.net/pub/unix/ftp/ncftpd/${PORTVERSION}/
-MASTER_SITE_SUBDIR= miwi
-DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd${BINVER}-${ARCH}-export
+MASTER_SITES= ftp://ftp.ncftp.com/ncftpd/${PORTVERSION}/ \
+ ftp://ftp.nl.uu.net/pub/unix/ftp/ncftpd/${PORTVERSION}/ \
+ LOCAL/beech
+DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd${BINVER}-${DIST_ARCH}-export
MAINTAINER= beech@FreeBSD.org
-COMMENT= A well known commercial FTP daemon with a 30-day evaluation license
+COMMENT= Commercial FTP daemon with a 30-day evaluation license
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-ONLY_FOR_ARCHS= i386
+ONLY_FOR_ARCHS= i386 amd64
NO_BUILD= YES
LICENSE= shareware
RESTRICTED= 30 day evaluation license
+USE_RC_SUBR= ncftpd.sh
+SUB_FILES= pkg-message
+
+PORTDOCS= install.html README README.freebsd LICENSE
+
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 600000
+.if ${OSVERSION} >= 700000
+BINVER= 7.0
+.elif ${OSVERSION} >= 600000
BINVER= 6.0
.else
-BINVER= 5.4
-.else
BROKEN= FreeBSD version too old
.endif
+.if ${ARCH} == amd64
+DIST_ARCH= x86_64
+.if ${BINVER} == "6.0"
+BINVER= 6.2
+.endif
+.else
+DIST_ARCH= i386
+.endif
+
do-install:
${MKDIR} ${PREFIX}/etc/ncftpd
${INSTALL_PROGRAM} ${WRKSRC}/ncftpd ${PREFIX}/sbin
@@ -43,16 +56,13 @@ do-install:
${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
+ @${INSTALL} -d ${DOCSDIR}
+ @ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
- @${SED} -e 's,%%PREFIX%%,${PREFIX},' ${PKGMESSAGE}
+
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>