aboutsummaryrefslogtreecommitdiffstats
path: root/net/fspd/Makefile
blob: 02f8711014ae35629c04eb3359a01eca8aae38b7 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Created by: trevor
# $FreeBSD$

PORTNAME=   fspd
PORTVERSION=    2.8.1.26
CATEGORIES= net
MASTER_SITES=   SF/fsp/fsp/2.8.1b26
DISTNAME=   fsp-2.8.1b26

MAINTAINER= hsn@sendmail.cz
COMMENT=    FSP daemon, clients, and scanner

LICENSE=    BSD2CLAUSE
LICENSE_FILE=   ${WRKSRC}/COPYRIGHT

CLIENTS=    fcatcmd fcdcmd fducmd ffindcmd fgetcmd fgrabcmd fhostcmd \
        flscmd fmkdir fprocmd fput frmcmd frmdircmd fver fspmerge \
        fstatcmd fmvcmd fbye fsetupcmd
FSPDOCS=    BETA.README COPYRIGHT ChangeLog FILES INFO INSTALL MACHINES \
        TODO PROTOCOL HISTORY faq.html
MAN1CLIENT= fcatcmd.1 fcdcmd.1 fducmd.1 ffindcmd.1 fgetcmd.1 fgrabcmd.1 \
        fhostcmd.1 flscmd.1 fmkdir.1 fprocmd.1 fput.1 frmcmd.1 \
        frmdircmd.1 fver.1 fstatcmd.1 fmvcmd.1 fsetupcmd.1
MAN1SERVER= fspscan.1 fspd.1
MAN5CLIENT= fsp_prof.5 fspsites.5
MAN7CLIENT= fsp_env.7

USES=       scons tar:bzip2
WRKSRC=     ${WRKDIR}/${DISTNAME}

OPTIONS_DEFINE= CLIENTS INFINITE DOCS
CLIENTS_DESC=   Install client commands
INFINITE_DESC=  Infinite retry in client commands

OPTIONS_SUB=    yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MINFINITE}
SCONS_ARGS+=    disable-timeout=yes
.endif

.if ! ${PORT_OPTIONS:MCLIENTS}
SCONS_ARGS+=    without-clients=yes
.endif

post-extract:
    @${CP} ${WRKSRC}/doc/PROTOCOL ${WRKSRC}
    @${CP} ${WRKSRC}/doc/HISTORY ${WRKSRC}
    : > ${WRKSRC}/doc/SConscript

post-build:
    @${CP} ${WRKSRC}/doc/*.html ${WRKSRC}

do-install:
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${FSPDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.if ${PORT_OPTIONS:MCLIENTS}
.for command in ${CLIENTS}
    ${INSTALL_PROGRAM} ${WRKSRC}/clients/${command} ${STAGEDIR}${PREFIX}/bin
.endfor
.for page in ${MAN1CLIENT}
    ${INSTALL_MAN} ${WRKSRC}/man/${page} ${STAGEDIR}${PREFIX}/man/man1
.endfor
.for page in ${MAN5CLIENT}
    ${INSTALL_MAN} ${WRKSRC}/man/${page} ${STAGEDIR}${PREFIX}/man/man5
.endfor
.for page in ${MAN7CLIENT}
    ${INSTALL_MAN} ${WRKSRC}/man/${page} ${STAGEDIR}${PREFIX}/man/man7
.endfor
.endif
    ${INSTALL_PROGRAM} ${WRKSRC}/contrib/fspscan ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/server/fspd ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/fspd.conf \
        ${STAGEDIR}${PREFIX}/etc/fspd.conf.sample
.for page in ${MAN1SERVER}
    ${INSTALL_MAN} ${WRKSRC}/man/${page} ${STAGEDIR}${PREFIX}/man/man1
.endfor

.include <bsd.port.mk>