1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/net/spread4/Makefile
Olli Hauer 8983a88800 - use reserverd UID/GID
- use ports-framework to create user/group
- remove pkg-(de)install
- rename patchfiles
- rename rc file ( s/.in// )
- bump PORTREVISION

with hat apache@

PR:		169953
Submitted by:	Marcello Coutinho <marcellocoutinho@gmail.com>
2012-07-20 20:32:20 +00:00

87 lines
2.3 KiB
Makefile

# New ports collection makefile for: spread
# Date created: 11 June 2001
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= spread4
PORTVERSION= 4.1.0
PORTREVISION= 1
CATEGORIES= net perl5
MASTER_SITES= LOCAL/wen
DISTNAME= spread-src-${PORTVERSION}
MAINTAINER= apache@FreeBSD.org
COMMENT= The Spread Group Communication System, a network toolkit
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_RC_SUBR= spread
USE_LDCONFIG= yes
ALL_TARGET= all
USERS= spread
GROUPS= spread
RUNDIR= /var/run/spread
PLIST_SUB+= USERS=${USERS} GROUPS=${GROUPS} RUNDIR=${RUNDIR}
WRKSRC= ${WRKDIR}/spread-src-${PORTVERSION}
PKGMESSAGE= ${WRKSRC}/license.txt
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= 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_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>
post-extract:
@${REINPLACE_CMD} -e 's|INSTALLSUBDIRS=daemon docs|INSTALLSUBDIRS=daemon|' \
${WRKSRC}/Makefile.in
post-install:
${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.conf \
${PREFIX}/etc/spread.conf.sample
${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}/docs/sample.spread.access_ip \
${PREFIX}/etc/spread.access_ip
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.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
@${INSTALL} -m 750 -o ${USERS} -g ${GROUPS} -d ${RUNDIR}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>