2001-09-16 18:18:47 +02:00
|
|
|
# New ports collection makefile for: twoftpd
|
|
|
|
# Date created: 14 September 2001
|
|
|
|
# Whom: Gea-Suan Lin (gslin@ccca.nctu.edu.tw)
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= twoftpd
|
2008-08-10 23:19:57 +02:00
|
|
|
PORTVERSION= 1.41
|
2009-03-11 18:04:03 +01:00
|
|
|
PORTREVISION= 1
|
2001-09-16 18:18:47 +02:00
|
|
|
CATEGORIES= ftp
|
2003-12-24 14:57:06 +01:00
|
|
|
MASTER_SITES= http://untroubled.org/${PORTNAME}/
|
2001-09-16 18:18:47 +02:00
|
|
|
|
2008-07-27 06:30:53 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= A simple, secure, efficient FTP server
|
2001-09-16 18:18:47 +02:00
|
|
|
|
2008-08-10 23:19:57 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/bg-installer:${PORTSDIR}/devel/bglibs
|
2009-03-11 18:04:03 +01:00
|
|
|
LIB_DEPENDS= cvm-v2client.2:${PORTSDIR}/security/cvm
|
2003-12-24 14:57:06 +01:00
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2008-08-10 23:19:57 +02:00
|
|
|
#-I${LOCALBASE}/include/bglibs
|
2005-08-29 14:20:05 +02:00
|
|
|
LDFLAGS+= -s -L${LOCALBASE}/lib
|
|
|
|
BGLIBS_LIB= ${LOCALBASE}/lib/bglibs
|
|
|
|
BGLIBS_INCLUDE= ${LOCALBASE}/include/bglibs
|
2003-04-13 12:31:09 +02:00
|
|
|
|
2003-10-24 13:10:25 +02:00
|
|
|
DOCS= NEWS README TODO
|
2005-02-22 10:25:05 +01:00
|
|
|
MAN1= twoftpd-auth.1 twoftpd-switch.1 twoftpd-xfer.1
|
|
|
|
|
|
|
|
do-patch:
|
|
|
|
${REINPLACE_CMD} -e 's,timezone,tm.tm_gmtoff,' ${WRKSRC}/statmod.c
|
2002-05-21 05:33:11 +02:00
|
|
|
|
2003-06-15 20:38:30 +02:00
|
|
|
do-configure:
|
2003-12-24 14:57:06 +01:00
|
|
|
${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-bin
|
|
|
|
${ECHO_CMD} "${MANPREFIX}/man" > ${WRKSRC}/conf-man
|
|
|
|
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
|
|
|
|
${ECHO_CMD} "${CC} ${LDFLAGS}" > ${WRKSRC}/conf-ld
|
2005-08-29 14:20:05 +02:00
|
|
|
${ECHO_CMD} "${BGLIBS_INCLUDE}" > ${WRKSRC}/conf-bgincs
|
|
|
|
${ECHO_CMD} "${BGLIBS_LIB}" > ${WRKSRC}/conf-bglibs
|
2001-09-16 18:18:47 +02:00
|
|
|
|
2003-10-24 13:10:25 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-04-26 22:52:47 +02:00
|
|
|
post-install:
|
2003-10-24 13:10:25 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2001-09-16 18:18:47 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|