aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/bbftp-server/Makefile
blob: 77c1abd4081efff8cd4fe38536ddf3c563cb6410 (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
# Created by: Petr Holub <hopet@ics.muni.cz>

PORTNAME=   bbftp-server
PORTVERSION=    3.2.1
CATEGORIES= ftp
MASTER_SITES=   http://software.in2p3.fr/bbftp/dist/ \
        ftp://ftp.in2p3.fr/pub/bbftp/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Secure file transfer suite optimized for large files (server)

LICENSE=    GPLv2+

USES=       gmake ssl
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-ssl=${OPENSSLBASE}
WRKSRC_SUBDIR=  bbftpd
USE_RC_SUBR=    bbftpd

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e '/^#include/s,malloc,stdlib,' \
        ${WRKSRC}/bbftpd_cd.c ${WRKSRC}/bbftpd_statfs.c
    @${REINPLACE_CMD} -e '/with_ssl\/lib\/libcrypto/s,\.a,.so,' \
        ${WRKSRC}/${CONFIGURE_SCRIPT}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bbftpd ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/../doc/bbftpd.1 \
        ${STAGEDIR}${MANPREFIX}/man/man1

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/../doc/ports ${WRKSRC}/../doc/stats \
        ${WRKSRC}/../ChangeLog ${WRKSRC}/../README \
        ${WRKSRC}/../TODO ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>