View | Details | Raw Unified | Return to bug 64856
Collapse All | Expand All

(-)ftp/oftpd/Makefile (-21 / +14 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	oftpd
8
PORTNAME=	oftpd
9
PORTVERSION=	0.3.6
9
PORTVERSION=	0.3.7
10
PORTREVISION=	2
11
CATEGORIES=	ftp
10
CATEGORIES=	ftp
12
MASTER_SITES=	http://www.time-travellers.org/oftpd/ \
11
MASTER_SITES=	http://www.time-travellers.org/oftpd/ \
13
		http://atreides.freenix.no/~anders/
12
		http://atreides.freenix.no/~anders/
Lines 15-50 Link Here
15
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	A threaded, anonymous only FTP server designed for security
15
COMMENT=	A threaded, anonymous only FTP server designed for security
17
16
18
GNU_CONFIGURE=	yes
19
USE_REINPLACE=	yes
17
USE_REINPLACE=	yes
20
18
GNU_CONFIGURE=	yes
21
DOCFILES=	README AUTHORS ChangeLog NEWS TODO BUGS
19
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
22
23
CFLAGS+=	${PTHREAD_CFLAGS}
24
CONFIGURE_ENV+=	LIBS="-pthread"
25
20
26
MAN8=		oftpd.8
21
MAN8=		oftpd.8
22
PORTDOCS=	README AUTHORS ChangeLog NEWS TODO BUGS
23
PLIST_FILES=	sbin/oftpd
27
24
28
post-patch:
25
post-patch:
26
	${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
27
		 s|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
29
.if defined(MAX_NUM_CLIENTS)
28
.if defined(MAX_NUM_CLIENTS)
30
	${REINPLACE_CMD} -e "s@MAX_NUM_CLIENTS 300@MAX_NUM_CLIENTS ${MAX_NUM_CLIENTS}@" ${WRKSRC}/src/oftpd.h
29
	${REINPLACE_CMD} -e 's|MAX_NUM_CLIENTS 300|MAX_NUM_CLIENTS ${MAX_NUM_CLIENTS}|g' ${WRKSRC}/src/oftpd.h
31
.endif
30
.endif
32
31
33
do-install:
32
do-install:
34
	${INSTALL_PROGRAM} ${WRKSRC}/src/oftpd ${PREFIX}/sbin/oftpd
33
	${INSTALL_PROGRAM} ${WRKSRC}/src/oftpd ${PREFIX}/sbin
34
	${INSTALL_MAN} ${WRKSRC}/man/oftpd.8 ${MANPREFIX}/man/man8
35
.if !defined(NOPORTDOCS)
35
.if !defined(NOPORTDOCS)
36
	${INSTALL} -d -m 555 ${PREFIX}/share/doc/oftpd
36
	@${MKDIR} ${DOCSDIR}
37
.for i in ${DOCFILES}
37
.for file in ${PORTDOCS}
38
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/oftpd
38
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
39
.endfor
39
.endfor
40
.endif
40
.endif
41
41
	@${CAT} ${PKGMESSAGE}
42
post-install:
43
	@${INSTALL_MAN} ${WRKSRC}/man/oftpd.8 ${MANPREFIX}/man/man8
44
	@${ECHO_MSG} "================================================================================"
45
	@${ECHO_MSG} "oftpd only runs standalone, not from inetd."
46
	@${ECHO_MSG} "Create a README file in the root anonymous FTP dir to have it displayed to"
47
	@${ECHO_MSG} "users upon login."
48
	@${ECHO_MSG} "================================================================================"
49
42
50
.include <bsd.port.mk>
43
.include <bsd.port.mk>
(-)ftp/oftpd/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (oftpd-0.3.6.tar.gz) = 78b4139bb0108297b9814564db986852
1
MD5 (oftpd-0.3.7.tar.gz) = 1a396ad12584c7efe3a0e712dadf28be
2
SIZE (oftpd-0.3.6.tar.gz) = 77201
2
SIZE (oftpd-0.3.7.tar.gz) = 97364
(-)ftp/oftpd/pkg-message (+5 lines)
Line 0 Link Here
1
================================================================================
2
oftpd only runs standalone, not from inetd.
3
Create a README file in the root anonymous FTP dir to have it displayed to
4
users upon login.
5
================================================================================
(-)ftp/oftpd/pkg-plist (-8 lines)
Lines 1-8 Link Here
1
sbin/oftpd
2
%%PORTDOCS%%share/doc/oftpd/README
3
%%PORTDOCS%%share/doc/oftpd/AUTHORS
4
%%PORTDOCS%%share/doc/oftpd/ChangeLog
5
%%PORTDOCS%%share/doc/oftpd/NEWS
6
%%PORTDOCS%%share/doc/oftpd/TODO
7
%%PORTDOCS%%share/doc/oftpd/BUGS
8
%%PORTDOCS%%@dirrm share/doc/oftpd

Return to bug 64856