View | Details | Raw Unified | Return to bug 193450 | Differences between
and this patch

Collapse All | Expand All

(-)spread4/Makefile (-46 / +21 lines)
Lines 7-15 Link Here
7
MASTER_SITES=	LOCAL/ohauer
7
MASTER_SITES=	LOCAL/ohauer
8
DISTNAME=	spread-src-${PORTVERSION}
8
DISTNAME=	spread-src-${PORTVERSION}
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	portmaster@bsdforge.com
11
COMMENT=	The Spread Group Communication System, a network toolkit
11
COMMENT=	The Spread Group Communication System, a network toolkit
12
12
13
LICENSE=	SPREAD
14
LICENSE_NAME=	SPREAD BSD LICENSE
15
LICENSE_FILE=	${WRKSRC}/license.txt
16
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
17
13
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
14
USES=		gmake
19
USES=		gmake
15
USE_RC_SUBR=	spread
20
USE_RC_SUBR=	spread
Lines 25-83 Link Here
25
30
26
WRKSRC=		${WRKDIR}/spread-src-${PORTVERSION}
31
WRKSRC=		${WRKDIR}/spread-src-${PORTVERSION}
27
32
28
PKGMESSAGE=	${WRKSRC}/license.txt
33
OPTIONS_DEFINE=	DOCS
34
PORTDOCS=	DynamicConfiguration.txt Flush_or_SpreadAPI.txt \
35
MultithreadedClients.txt Short_Buffer_Handling.txt TODO PORTING
29
36
30
DOCFILES=	DynamicConfiguration.txt Flush_or_SpreadAPI.txt \
37
.include <bsd.port.options.mk>
31
		MultithreadedClients.txt Short_Buffer_Handling.txt \
32
		TODO PORTING
33
MAN1=		spflooder.1 spmonitor.1 spread.1 sptuser.1 spuser.1
34
MAN3=		SP_connect.3 SP_disconnect.3 SP_equal_group_ids.3 \
35
		SP_error.3 SP_get_memb_info.3 SP_get_vs_set_members.3 \
36
		SP_get_vs_sets_info.3 SP_join.3 SP_kill.3 \
37
		SP_leave.3 SP_multicast.3 SP_multigroup_multicast.3 \
38
		SP_multigroup_scat_multicast.3 SP_poll.3 SP_receive.3 \
39
		SP_scat_get_memb_info.3 SP_scat_get_vs_set_members.3 \
40
		SP_scat_get_vs_sets_info.3 SP_scat_multicast.3 \
41
		SP_scat_receive.3 SP_version.3 libspread.3
42
38
43
NO_STAGE=	yes
44
.include <bsd.port.pre.mk>
39
.include <bsd.port.pre.mk>
45
40
46
post-extract:
41
post-extract:
47
		@${REINPLACE_CMD} -e 's|INSTALLSUBDIRS=daemon docs|INSTALLSUBDIRS=daemon|' \
42
	@${REINPLACE_CMD} -e 's|INSTALLSUBDIRS=daemon docs|INSTALLSUBDIRS=daemon|' \
48
		${WRKSRC}/Makefile.in
43
	${WRKSRC}/Makefile.in
49
50
post-install:
44
post-install:
45
	(cd ${STAGEDIR}${PREFIX}/lib/ && ${STRIP_CMD} libspread.so.3.0.0 libspread-core.so.3.0.0 libtspread-core.so.3.0.0)
51
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.conf \
46
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.conf \
52
		${PREFIX}/etc/spread.conf.sample
47
		${STAGEDIR}${PREFIX}/etc/spread.conf.sample
53
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.access_ip \
48
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.access_ip \
54
		${PREFIX}/etc/spread.access_ip.sample
49
		${STAGEDIR}${PREFIX}/etc/spread.access_ip.sample
55
50
	(cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ./*.1 ${STAGEDIR}${PREFIX}/man/man1/)
56
.if !exists(${PREFIX}/etc/spread.conf)
51
	(cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ./*.3 ${STAGEDIR}${PREFIX}/man/man3/)
57
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.conf \
52
.if ${PORT_OPTIONS:MDOCS}
58
		${PREFIX}/etc/spread.conf
53
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
54
	(cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
59
.endif
55
.endif
56
	@${INSTALL} -m 750 -d ${STAGEDIR}${RUNDIR}
60
57
61
.if !exists(${PREFIX}/etc/spread.access_ip)
62
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.access_ip \
63
		${PREFIX}/etc/spread.access_ip
64
.endif
65
66
.if !defined(NOPORTDOCS)
67
	${MKDIR} ${DOCSDIR}
68
.for f in ${DOCFILES}
69
	${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
70
.endfor
71
.endif
72
73
.for f in ${MAN1}
74
	${INSTALL_MAN} ${WRKSRC}/docs/${f} ${LOCALBASE}/man/man1/
75
.endfor
76
77
.for f in ${MAN3}
78
	${INSTALL_MAN} ${WRKSRC}/docs/${f} ${LOCALBASE}/man/man3/
79
.endfor
80
	@${INSTALL} -m 750 -o ${USERS} -g ${GROUPS} -d ${RUNDIR}
81
	@${CAT} ${PKGMESSAGE}
82
83
.include <bsd.port.post.mk>
58
.include <bsd.port.post.mk>
(-)spread4/pkg-plist (-12 / +29 lines)
Lines 3-14 Link Here
3
bin/spmonitor
3
bin/spmonitor
4
bin/sptuser
4
bin/sptuser
5
bin/spuser
5
bin/spuser
6
@unexec if cmp -s %D/etc/spread.access_ip.sample %D/etc/spread.access_ip; then rm -f %D/etc/spread.access_ip; fi
6
@sample etc/spread.access_ip.sample
7
etc/spread.access_ip.sample
7
@sample etc/spread.conf.sample
8
@exec if [ ! -f %D/etc/spread.access_ip ] ; then cp -p %D/%F %B/spread.access_ip; fi
9
@unexec if cmp -s %D/etc/spread.conf.sample %D/etc/spread.conf; then rm -f %D/etc/spread.conf; fi
10
etc/spread.conf.sample
11
@exec if [ ! -f %D/etc/spread.conf ] ; then cp -p %D/%F %B/spread.conf; fi
12
include/fl.h
8
include/fl.h
13
include/sp.h
9
include/sp.h
14
include/sp_events.h
10
include/sp_events.h
Lines 26-37 Link Here
26
lib/libtspread-core.so.3
22
lib/libtspread-core.so.3
27
lib/libtspread-core.so.3.0.0
23
lib/libtspread-core.so.3.0.0
28
sbin/spread
24
sbin/spread
29
%%PORTDOCS%%%%DOCSDIR%%/DynamicConfiguration.txt
25
man/man1/spflooder.1.gz
30
%%PORTDOCS%%%%DOCSDIR%%/Flush_or_SpreadAPI.txt
26
man/man1/spmonitor.1.gz
31
%%PORTDOCS%%%%DOCSDIR%%/MultithreadedClients.txt
27
man/man1/spread.1.gz
32
%%PORTDOCS%%%%DOCSDIR%%/Short_Buffer_Handling.txt
28
man/man1/sptuser.1.gz
33
%%PORTDOCS%%%%DOCSDIR%%/TODO
29
man/man1/spuser.1.gz
34
%%PORTDOCS%%%%DOCSDIR%%/PORTING
30
man/man3/SP_connect.3.gz
31
man/man3/SP_disconnect.3.gz
32
man/man3/SP_equal_group_ids.3.gz
33
man/man3/SP_error.3.gz
34
man/man3/SP_get_memb_info.3.gz
35
man/man3/SP_get_vs_set_members.3.gz
36
man/man3/SP_get_vs_sets_info.3.gz
37
man/man3/SP_join.3.gz
38
man/man3/SP_kill.3.gz
39
man/man3/SP_leave.3.gz
40
man/man3/SP_multicast.3.gz
41
man/man3/SP_multigroup_multicast.3.gz
42
man/man3/SP_multigroup_scat_multicast.3.gz
43
man/man3/SP_poll.3.gz
44
man/man3/SP_receive.3.gz
45
man/man3/SP_scat_get_memb_info.3.gz
46
man/man3/SP_scat_get_vs_set_members.3.gz
47
man/man3/SP_scat_get_vs_sets_info.3.gz
48
man/man3/SP_scat_multicast.3.gz
49
man/man3/SP_scat_receive.3.gz
50
man/man3/SP_version.3.gz
51
man/man3/libspread.3.gz
35
%%PORTDOCS%%@dirrm %%DOCSDIR%%
52
%%PORTDOCS%%@dirrm %%DOCSDIR%%
36
@exec install -m 750 -o %%USERS%% -g %%GROUPS%% -d %%RUNDIR%%
53
@exec install -m 750 -o %%USERS%% -g %%GROUPS%% -d %%RUNDIR%%
37
@dirrmtry %%RUNDIR%%
54
@dirrmtry %%RUNDIR%%

Return to bug 193450