aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/tnftpd/Makefile
blob: 63fb9e76d9bae6d59c20b38976ace12e5615e954 (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
# Created by: ports
# $FreeBSD$

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

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

USES=       autoreconf libtool
GNU_CONFIGURE=  yes

CFLAGS+=    -DSUPPORT_UTMPX -fcommon

SUB_FILES=  pkg-message

PLIST_FILES=    libexec/tnftpd \
        man/man5/ftpd.conf.5.gz \
        man/man5/ftpusers.5.gz \
        man/man8/tnftpd.8.gz
PORTDOCS=   COPYING ChangeLog NEWS README THANKS
PORTEXAMPLES=   ftpd.conf ftpusers

OPTIONS_DEFINE= DOCS EXAMPLES

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/tnftpd ${STAGEDIR}${PREFIX}/libexec
    ${INSTALL_MAN} ${WRKSRC}/src/ftpd.conf.man ${STAGEDIR}${PREFIX}/man/man5/ftpd.conf.5
    ${INSTALL_MAN} ${WRKSRC}/src/ftpusers.man ${STAGEDIR}${PREFIX}/man/man5/ftpusers.5
    ${INSTALL_MAN} ${WRKSRC}/src/tnftpd.man ${STAGEDIR}${PREFIX}/man/man8/tnftpd.8

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

do-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR}
.endfor

.include <bsd.port.mk>