blob: 19aae4547c8e5431da6cac2e19b700bd3da98653 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Created by: Justin Stanford <jus@security.za.net>
# $FreeBSD$
PORTNAME= ncftpd
PORTVERSION= 2.8.7
CATEGORIES= ftp
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= ports@FreeBSD.org
COMMENT= Commercial FTP daemon with a 30-day evaluation license
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
ONLY_FOR_ARCHS= i386 amd64
NO_BUILD= YES
RESTRICTED= 30 day evaluation license
USE_RC_SUBR= ncftpd
SUB_FILES= pkg-message
PORTDOCS= install.html README README.freebsd LICENSE
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 900000
BINVER= 9.0
IGNORE= not yet available for 9.x
.elif ${OSVERSION} >= 800000
BINVER= 8.0
.else
BINVER= 7.0
.endif
.if ${ARCH} == amd64
DIST_ARCH= x86_64
.else
DIST_ARCH= i386
.endif
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
post-install:
.if !defined(NOPORTDOCS)
@${INSTALL} -d ${DOCSDIR}
@ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|