diff options
author | beech <beech@FreeBSD.org> | 2008-09-23 17:06:22 +0800 |
---|---|---|
committer | beech <beech@FreeBSD.org> | 2008-09-23 17:06:22 +0800 |
commit | 96b988a9c5ef737d2b45f303f031672cf41b2279 (patch) | |
tree | 6ab2f62cd4bbd54b466f3833f345468e4d124eff /ftp/ncftpd/Makefile | |
parent | d98851b1c29191412716e54149a3991e4a6cd8dc (diff) | |
download | freebsd-ports-gnome-96b988a9c5ef737d2b45f303f031672cf41b2279.tar.gz freebsd-ports-gnome-96b988a9c5ef737d2b45f303f031672cf41b2279.tar.zst freebsd-ports-gnome-96b988a9c5ef737d2b45f303f031672cf41b2279.zip |
- Update to 2.8.5
- Add amd64 support for 6.x and 7.x
- Remove 5.x support
- Update startup script to rcNG
- Fix docs handling
- Cleanup and tweaks
PR: ports/127527
Submitted by: OH Changsun <oh@xbsd.kr>
Diffstat (limited to 'ftp/ncftpd/Makefile')
-rw-r--r-- | ftp/ncftpd/Makefile | 46 |
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> |