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

(-)Makefile 2012-11-11 14:27:08.000000000 +0800 (-13 / +12 lines)
Lines 1-9 Link Here
1
# New ports collection makefile for:   nuttcp
1
# Created by:                                  Andy Clark <andrewclarkii@gmail.com>
2
# Date Created:                                17 Jul 2009
2
# $FreeBSD$
3
# Whom:                                        Andy Clark <andrewclarkii@gmail.com>
4
#
5
# $FreeBSD: ports/benchmarks/nuttcp/Makefile,v 1.2 2009/11/10 06:47:19 linimon Exp $
6
#
7
3
8
PORTNAME=      nuttcp
4
PORTNAME=      nuttcp
9
PORTVERSION=   6.1.2
5
PORTVERSION=   6.1.2
Lines 26-36 Link Here
26
NUTTSCPVERSION=        1.7
22
NUTTSCPVERSION=        1.7
27
NUTTSCPDISTFILE=nuttscp-${NUTTSCPVERSION}
23
NUTTSCPDISTFILE=nuttscp-${NUTTSCPVERSION}
28
24
29
OPTIONS=       NUTTSCP "Install script for copying files over nuttcp" on
25
OPTIONS_DEFINE=        NUTTSCP
26
OPTIONS_DEFAULT=       NUTTSCP
27
28
NUTTSCP_DESC=  Install script for copying files over nuttcp
30
29
31
.include <bsd.port.pre.mk>
30
.include <bsd.port.pre.mk>
32
31
33
.if defined(WITH_NUTTSCP)
32
.if ${PORT_OPTIONS:MNUTTSCP}
34
USE_PERL5=     yes
33
USE_PERL5=     yes
35
PLIST_SUB+=    NUTTSCP=""
34
PLIST_SUB+=    NUTTSCP=""
36
.else
35
.else
Lines 46-52 Link Here
46
       ${REINPLACE_CMD} 's|/usr/bin/perl|${PERL}|g' ${WRKDIR}/nuttscp
45
       ${REINPLACE_CMD} 's|/usr/bin/perl|${PERL}|g' ${WRKDIR}/nuttscp
47
46
48
do-install:
47
do-install:
49
.      if defined(WITH_NUTTSCP)
48
.      if ${PORT_OPTIONS:MNUTTSCP}
50
               ${INSTALL_SCRIPT} ${WRKDIR}/nuttscp ${PREFIX}/bin/
49
               ${INSTALL_SCRIPT} ${WRKDIR}/nuttscp ${PREFIX}/bin/
51
               ( cd ${PREFIX}/bin; ${LN} -sf nuttscp nuttrcp )
50
               ( cd ${PREFIX}/bin; ${LN} -sf nuttscp nuttrcp )
52
.      endif
51
.      endif
Lines 55-67 Link Here
55
       ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8/
54
       ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8/
56
55
57
       ${MKDIR} ${DATADIR}/
56
       ${MKDIR} ${DATADIR}/
58
.      for file in LICENSE README examples.txt
57
.      for ${FILE} in LICENSE README examples.txt
59
               ${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}/
58
               ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DATADIR}/
60
.      endfor
59
.      endfor
61
60
62
       ${MKDIR} ${PREFIX}/etc/xinetd.d/
61
       ${MKDIR} ${PREFIX}/etc/xinetd.d/
63
.      for file in ${PORTNAME} ${PORTNAME}4 ${PORTNAME}6
62
.      for i${FILE} in ${PORTNAME} ${PORTNAME}4 ${PORTNAME}6
64
               ${INSTALL_DATA} ${WRKSRC}/xinetd.d/${file} \
63
               ${INSTALL_DATA} ${WRKSRC}/xinetd.d/${FILE} \
65
                       ${PREFIX}/etc/xinetd.d/
64
                       ${PREFIX}/etc/xinetd.d/
66
.      endfor
65
.      endfor

Return to bug 173560