aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/tnftpd/Makefile
blob: 97a5a8bf261287b33dd4dad9106c0830643b0987 (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
# New ports collection makefile for:    tnftpd
# Date created:             3 August 2003
# Whom:                 ports
#
# $FreeBSD$
#

PORTNAME=   tnftpd
PORTVERSION=    20100324
CATEGORIES= ftp ipv6
MASTER_SITES=   ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/

MAINTAINER= cejkar@fit.vutbr.cz
COMMENT=    Enhanced ftp server from NetBSD

USE_AUTOTOOLS=  aclocal automake libtool
ACLOCAL_ARGS=   -I ${LOCALBASE}/share/aclocal

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 900007
CFLAGS+=    -DSUPPORT_UTMPX
.else
CFLAGS+=    -DSUPPORT_UTMP
.endif

MAN5=       ftpd.conf.5 ftpusers.5
MAN8=       tnftpd.8
PLIST_FILES=    libexec/tnftpd
PORTDOCS=   ChangeLog NEWS README THANKS COPYING
PORTEXAMPLES=   ftpd.conf ftpusers

SUB_FILES=  pkg-message

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/tnftpd ${PREFIX}/libexec
    ${INSTALL_MAN} ${WRKSRC}/src/ftpd.conf.man ${PREFIX}/man/man5/ftpd.conf.5
    ${INSTALL_MAN} ${WRKSRC}/src/ftpusers.man ${PREFIX}/man/man5/ftpusers.5
    ${INSTALL_MAN} ${WRKSRC}/src/tnftpd.man ${PREFIX}/man/man8/tnftpd.8
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
    ${MKDIR} ${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
.endfor
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>