2013-09-21 00:10:23 +02:00
|
|
|
# Created by: Anders Nordby <anders@fix.no>
|
2001-10-25 16:36:41 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= spread
|
2008-06-19 01:51:55 +02:00
|
|
|
PORTVERSION= 3.17.4
|
2014-11-26 14:08:24 +01:00
|
|
|
PORTREVISION= 5
|
2002-11-16 23:28:08 +01:00
|
|
|
CATEGORIES= net perl5
|
2014-06-02 20:57:55 +02:00
|
|
|
MASTER_SITES= http://bsdforge.com/projects/source/net/spread/
|
2001-10-25 16:36:41 +02:00
|
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
|
|
|
|
|
2014-05-20 08:03:04 +02:00
|
|
|
MAINTAINER= portmaster@bsdforge.com
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= The Spread Group Communication System, a network toolkit
|
2001-10-25 16:36:41 +02:00
|
|
|
|
2009-05-17 09:23:23 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2002-11-16 23:28:08 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2014-06-02 20:57:55 +02:00
|
|
|
USES= perl5 tar:xz
|
2014-11-26 14:08:24 +01:00
|
|
|
USE_PERL5= build run
|
2012-07-20 22:32:20 +02:00
|
|
|
USE_RC_SUBR= spread
|
2006-12-26 17:25:45 +01:00
|
|
|
USE_LDCONFIG= yes
|
2001-10-25 16:36:41 +02:00
|
|
|
|
2012-07-20 22:32:20 +02:00
|
|
|
USERS= spread
|
|
|
|
GROUPS= spread
|
|
|
|
RUNDIR= /var/run/spread
|
|
|
|
|
|
|
|
PLIST_SUB+= USERS=${USERS} GROUPS=${GROUPS} RUNDIR=${RUNDIR}
|
|
|
|
|
2001-10-25 16:36:41 +02:00
|
|
|
MAKE_ARGS+= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS}
|
2005-10-28 20:30:58 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION}
|
|
|
|
|
|
|
|
PKGMESSAGE= ${WRKSRC}/license.txt
|
|
|
|
PORTDOCS= Readme.txt LICENSE
|
|
|
|
HEADERFILES= sp_func.h sp_func.h sp_events.h
|
2003-12-29 07:21:20 +01:00
|
|
|
|
2001-10-25 16:36:41 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-08-02 20:39:11 +02:00
|
|
|
# bsd.port.mk doesn't allow us to use GNU_CONFIGURE and PERL_CONFIGURE together.
|
|
|
|
PERL_CONFIGURE_ARGS= CC="${CC}" CCFLAGS="${CFLAGS}" PREFIX="${PREFIX}" \
|
2005-10-28 20:30:58 +02:00
|
|
|
INSTALLPRIVLIB="${PREFIX}/lib" INSTALLARCHLIB="${PREFIX}/lib"
|
2003-12-29 07:21:20 +01:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
2005-10-28 20:30:58 +02:00
|
|
|
${WRKSRC}/docs/${PORTNAME}.1 ${WRKSRC}/docs/spmonitor.1
|
2003-12-29 07:21:20 +01:00
|
|
|
|
2001-10-25 16:36:41 +02:00
|
|
|
post-build:
|
2003-12-29 07:21:20 +01:00
|
|
|
@cd ${WRKSRC}/perl/Spread && \
|
2013-08-02 20:39:11 +02:00
|
|
|
${SETENV} ${CONFIGURE_ENV} ${PERL5} ./Makefile.PL ${PERL_CONFIGURE_ARGS}
|
2003-12-29 07:21:20 +01:00
|
|
|
@cd ${WRKSRC}/perl/Spread && \
|
|
|
|
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile
|
|
|
|
@cd ${WRKSRC}/perl/Spread && ${MAKE}
|
2001-10-25 16:36:41 +02:00
|
|
|
|
2002-11-16 23:28:08 +01:00
|
|
|
post-install:
|
2005-10-28 20:30:58 +02:00
|
|
|
.for f in ${HEADERFILES}
|
2014-05-20 08:03:04 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/include
|
2005-10-28 20:30:58 +02:00
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample.spread.conf \
|
2014-05-20 08:03:04 +02:00
|
|
|
${STAGEDIR}${PREFIX}/etc/spread.conf.sample
|
|
|
|
.if !exists(${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf)
|
2005-10-28 20:30:58 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample.spread.conf \
|
2014-05-20 08:03:04 +02:00
|
|
|
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf
|
2005-10-28 20:30:58 +02:00
|
|
|
.endif
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample.spread.access_ip \
|
2014-05-20 08:03:04 +02:00
|
|
|
${STAGEDIR}${PREFIX}/etc/spread.access_ip.sample
|
|
|
|
.if !exists(${STAGEDIR}${PREFIX}/etc/spread.access_ip)
|
2005-10-28 20:30:58 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample.spread.access_ip \
|
2014-05-20 08:03:04 +02:00
|
|
|
${STAGEDIR}${PREFIX}/etc/spread.access_ip
|
2001-10-25 16:36:41 +02:00
|
|
|
.endif
|
2014-05-20 08:03:04 +02:00
|
|
|
(cd ${WRKSRC}/perl/Spread && ${MAKE} PREFIX=${STAGEDIR}${PREFIX} install)
|
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/perl/Spread/test.pl ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Readme.txt ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/license.txt ${STAGEDIR}${DOCSDIR}/LICENSE
|
|
|
|
${INSTALL} -m 750 -d ${STAGEDIR}${RUNDIR}
|
2014-06-02 20:57:55 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libspread.so.1
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtspread.so.1
|
2014-11-26 14:08:24 +01:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Spread/Spread.so
|
2001-10-25 16:36:41 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|