aboutsummaryrefslogtreecommitdiffstats
path: root/net/sendfile/Makefile
blob: 8e333052b1575e4506710e06a1de3b717b9252c7 (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
# Created by: sec@42.org
# $FreeBSD$

PORTNAME=   sendfile
PORTVERSION=    2.1a
PORTREVISION=   2
CATEGORIES= net
MASTER_SITES=   ftp://ftp.belwue.de/pub/unix/sendfile/current/
DISTNAME=   ${PORTNAME}-20010216

MAINTAINER= sec@42.org
COMMENT=    Simple Asynchronous File Transfer Reference Implementation

HAS_CONFIGURE=  yes
CONFIGURE_SCRIPT=   makeconfig
CONFIGURE_ENV=  PREFIX="${PREFIX}"
USE_RC_SUBR=    sendfiled
MAKE_ARGS+= BATCH=true
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

MAN1=       sendfile.1 sendmsg.1 receive.1 fetchfile.1 utf7encode.1 \
        wlock.1
MAN7=       fetchfile.7
MAN8=       sendfiled.8
MLINKS=     utf7encode.1 utf7decode.1

NO_STAGE=   yes
post-install:
    @if [ ! -f ${PREFIX}/etc/sendfile.cf ]; then \
      ${CP} -p ${PREFIX}/etc/sendfile.cf.sample ${PREFIX}/etc/sendfile.cf ; \
    fi
    @if [ ! -f ${PREFIX}/etc/sendfile.deny ]; then \
      ${CP} -p ${PREFIX}/etc/sendfile.deny.sample ${PREFIX}/etc/sendfile.deny ; \
    fi

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 900007
BROKEN=     fails to build with new utmpx
.endif

.include <bsd.port.post.mk>