1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/ftp/oftpd/Makefile
Anders Nordby 610629a50f Add MAX_NUM_CLIENTS option, to override command-line limit for maximum
number of connections.

PR:		36022
Submitted by:	Gea-Suan Lin <gslin@infomath.math.nctu.edu.tw>
2002-03-17 23:38:44 +00:00

49 lines
1.3 KiB
Makefile

# Ports collection makefile for: oftpd
# Date created: 31 March 2001
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= oftpd
PORTVERSION= 0.3.6
PORTREVISION= 2
CATEGORIES= ftp
MASTER_SITES= http://www.time-travellers.org/oftpd/ \
http://atreides.freenix.no/~anders/
MAINTAINER= anders@FreeBSD.org
GNU_CONFIGURE= yes
DOCFILES= README AUTHORS ChangeLog NEWS TODO BUGS
CFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_ENV+= LIBS="-pthread"
MAN8= oftpd.8
post-patch:
.if defined(MAX_NUM_CLIENTS)
@${PERL} -pi -e "s,MAX_NUM_CLIENTS 300,MAX_NUM_CLIENTS ${MAX_NUM_CLIENTS}," ${WRKSRC}/src/oftpd.h
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/oftpd ${PREFIX}/sbin/oftpd
.if !defined(NOPORTDOCS)
${INSTALL} -d -m 555 ${PREFIX}/share/doc/oftpd
.for i in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/oftpd
.endfor
.endif
post-install:
@${INSTALL_MAN} ${WRKSRC}/man/oftpd.8 ${MANPREFIX}/man/man8
@${ECHO} "================================================================================"
@${ECHO} "oftpd only runs standalone, not from inetd."
@${ECHO} "Create a README file in the root anonymous FTP dir to have it displayed to"
@${ECHO} "users upon login."
@${ECHO} "================================================================================"
.include <bsd.port.mk>