aboutsummaryrefslogtreecommitdiff
path: root/net/spread4/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/spread4/Makefile')
-rw-r--r--net/spread4/Makefile89
1 files changed, 44 insertions, 45 deletions
diff --git a/net/spread4/Makefile b/net/spread4/Makefile
index de7d56d0aea9..dc58358c2f9f 100644
--- a/net/spread4/Makefile
+++ b/net/spread4/Makefile
@@ -5,81 +5,80 @@
# $FreeBSD$
#
-PORTNAME= spread
-PORTVERSION= 3.17.4
+PORTNAME= spread4
+PORTVERSION= 4.0.0
CATEGORIES= net perl5
MASTER_SITES= http://www.edu-linux.org/down/
-DISTNAME= ${PORTNAME}-src-${PORTVERSION}
+DISTNAME= spread-src-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= wenheping@gmail.com
COMMENT= The Spread Group Communication System, a network toolkit
GNU_CONFIGURE= yes
-USE_PERL5= yes
+USE_GMAKE= yes
USE_RC_SUBR= spread.sh
USE_LDCONFIG= yes
+ALL_TARGET= all
-MAKE_ARGS+= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS}
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
-WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION}
+WRKSRC= ${WRKDIR}/spread-src-${PORTVERSION}
PKGMESSAGE= ${WRKSRC}/license.txt
-PORTDOCS= Readme.txt LICENSE
-HEADERFILES= sp_func.h sp_func.h sp_events.h
+
+DOCFILES= DynamicConfiguration.txt Flush_or_SpreadAPI.txt \
+ MultithreadedClients.txt Short_Buffer_Handling.txt \
+ TODO PORTING
MAN1= spflooder.1 spmonitor.1 spread.1 sptuser.1 spuser.1
-MAN3= libsp.3 SP_connect.3 SP_disconnect.3 SP_equal_group_ids.3 \
- SP_error.3 SP_join.3 SP_leave.3 \
- SP_multicast.3 SP_multigroup_multicast.3 \
+MAN3= SP_connect.3 SP_disconnect.3 SP_equal_group_ids.3 \
+ SP_error.3 SP_get_memb_info.3 SP_get_vs_set_members.3 \
+ SP_get_vs_sets_info.3 SP_join.3 SP_kill.3 \
+ SP_leave.3 SP_multicast.3 SP_multigroup_multicast.3 \
SP_multigroup_scat_multicast.3 SP_poll.3 SP_receive.3 \
- SP_scat_multicast.3 SP_scat_receive.3
+ SP_scat_get_memb_info.3 SP_scat_get_vs_set_members.3 \
+ SP_scat_get_vs_sets_info.3 SP_scat_multicast.3 \
+ SP_scat_receive.3 SP_version.3 libspread.3
.include <bsd.port.pre.mk>
-# bsd.port.mk doesn't allow us to use GNU_CONFIGURE and PERL_CONFIGURE together.
-PERL_CONFIGURE_ARGS= CC="${CC}" CCFLAGS="${CFLAGS}" PREFIX="${PREFIX}" \
- INSTALLPRIVLIB="${PREFIX}/lib" INSTALLARCHLIB="${PREFIX}/lib"
-
-_MANPAGES+= ${PREFIX}/lib/perl5/${PERL_VERSION}/man/man3/Spread.3
-
-post-configure:
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
- ${WRKSRC}/docs/${PORTNAME}.1 ${WRKSRC}/docs/spmonitor.1
-
-post-build:
- @cd ${WRKSRC}/perl/Spread && \
- ${SETENV} ${CONFIGURE_ENV} ${PERL5} ./Makefile.PL ${PERL_CONFIGURE_ARGS}
- @cd ${WRKSRC}/perl/Spread && \
- ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile
- @cd ${WRKSRC}/perl/Spread && ${MAKE}
+post-extract:
+ @${REINPLACE_CMD} -e 's|INSTALLSUBDIRS=daemon docs|INSTALLSUBDIRS=daemon|' \
+ ${WRKSRC}/Makefile.in
pre-install:
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
-.for f in ${HEADERFILES}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/include
-.endfor
- ${INSTALL_DATA} ${WRKSRC}/sample.spread.conf \
+ ${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.conf \
${PREFIX}/etc/spread.conf.sample
-.if !exists(${PREFIX}/etc/${PORTNAME}.conf)
- ${INSTALL_DATA} ${WRKSRC}/sample.spread.conf \
- ${PREFIX}/etc/${PORTNAME}.conf
-.endif
- ${INSTALL_DATA} ${WRKSRC}/sample.spread.access_ip \
+ ${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.access_ip \
${PREFIX}/etc/spread.access_ip.sample
+
+.if !exists(${PREFIX}/etc/spread.conf)
+ ${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.conf \
+ ${PREFIX}/etc/spread.conf
+.endif
+
.if !exists(${PREFIX}/etc/spread.access_ip)
- ${INSTALL_DATA} ${WRKSRC}/sample.spread.access_ip \
+ ${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.access_ip \
${PREFIX}/etc/spread.access_ip
.endif
- (cd ${WRKSRC}/perl/Spread && ${MAKE} install)
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/perl/Spread/test.pl ${EXAMPLESDIR}
+
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/Readme.txt ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/license.txt ${DOCSDIR}/LICENSE
+.for f in ${DOCFILES}
+ ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
+.endfor
.endif
+
+.for f in ${MAN1}
+ ${INSTALL_MAN} ${WRKSRC}/docs/${f} ${LOCALBASE}/man/man1/
+.endfor
+
+.for f in ${MAN3}
+ ${INSTALL_MAN} ${WRKSRC}/docs/${f} ${LOCALBASE}/man/man3/
+.endfor
+
@${CAT} ${PKGMESSAGE}
- @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>