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

Collapse All | Expand All

(-)spread4/Makefile (-39 / +24 lines)
Lines 7-13 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
GNU_CONFIGURE=	yes
13
GNU_CONFIGURE=	yes
Lines 26-83 Link Here
26
WRKSRC=		${WRKDIR}/spread-src-${PORTVERSION}
26
WRKSRC=		${WRKDIR}/spread-src-${PORTVERSION}
27
27
28
PKGMESSAGE=	${WRKSRC}/license.txt
28
PKGMESSAGE=	${WRKSRC}/license.txt
29
LICENSE_FILE=	${STAGEDIR}${DOCSDIR}/LICENSE
30
OPTIONS_DEFINE=	DOCS
31
PORTDOCS=	DynamicConfiguration.txt Flush_or_SpreadAPI.txt \
32
MultithreadedClients.txt Short_Buffer_Handling.txt TODO PORTING
29
33
30
DOCFILES=	DynamicConfiguration.txt Flush_or_SpreadAPI.txt \
34
.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
35
43
NO_STAGE=	yes
44
.include <bsd.port.pre.mk>
36
.include <bsd.port.pre.mk>
45
37
46
post-extract:
38
post-extract:
47
		@${REINPLACE_CMD} -e 's|INSTALLSUBDIRS=daemon docs|INSTALLSUBDIRS=daemon|' \
39
	@${REINPLACE_CMD} -e 's|INSTALLSUBDIRS=daemon docs|INSTALLSUBDIRS=daemon|' \
48
		${WRKSRC}/Makefile.in
40
	${WRKSRC}/Makefile.in
49
50
post-install:
41
post-install:
42
	(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 \
43
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.conf \
52
		${PREFIX}/etc/spread.conf.sample
44
		${STAGEDIR}${PREFIX}/etc/spread.conf.sample
53
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.access_ip \
45
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.access_ip \
54
		${PREFIX}/etc/spread.access_ip.sample
46
		${STAGEDIR}${PREFIX}/etc/spread.access_ip.sample
55
47
56
.if !exists(${PREFIX}/etc/spread.conf)
48
.if !exists(${STAGEDIR}${PREFIX}/etc/spread.conf)
57
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.conf \
49
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.conf \
58
		${PREFIX}/etc/spread.conf
50
		${STAGEDIR}${PREFIX}/etc/spread.conf
59
.endif
51
.endif
60
52
.if !exists(${STAGEDIR}${PREFIX}/etc/spread.access_ip)
61
.if !exists(${PREFIX}/etc/spread.access_ip)
62
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.access_ip \
53
	${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.access_ip \
63
		${PREFIX}/etc/spread.access_ip
54
		${STAGEDIR}${PREFIX}/etc/spread.access_ip
64
.endif
55
.endif
65
56
	(cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ./*.1 ${STAGEDIR}${PREFIX}/man/man1/)
66
.if !defined(NOPORTDOCS)
57
	(cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ./*.3 ${STAGEDIR}${PREFIX}/man/man3/)
67
	${MKDIR} ${DOCSDIR}
58
.if ${PORT_OPTIONS:MDOCS}
68
.for f in ${DOCFILES}
59
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
69
	${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
60
	(cd ${WRKSRC}/docs/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
70
.endfor
61
	${INSTALL_DATA} ${WRKSRC}/license.txt ${STAGEDIR}${DOCSDIR}/LICENSE
71
.endif
62
.endif
72
63
	@${INSTALL} -m 750 -d ${STAGEDIR}${RUNDIR}
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}
64
	@${CAT} ${PKGMESSAGE}
65
compress-man:
66
MANCOMPRESSED=	no
82
67
83
.include <bsd.port.post.mk>
68
.include <bsd.port.post.mk>
(-)spread4/pkg-plist (-12 / +30 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
30
%%PORTDOCS%%%%DOCSDIR%%/Flush_or_SpreadAPI.txt
26
man/man1/spmonitor.1
31
%%PORTDOCS%%%%DOCSDIR%%/MultithreadedClients.txt
27
man/man1/spread.1
32
%%PORTDOCS%%%%DOCSDIR%%/Short_Buffer_Handling.txt
28
man/man1/sptuser.1
33
%%PORTDOCS%%%%DOCSDIR%%/TODO
29
man/man1/spuser.1
34
%%PORTDOCS%%%%DOCSDIR%%/PORTING
30
man/man3/SP_connect.3
31
man/man3/SP_disconnect.3
32
man/man3/SP_equal_group_ids.3
33
man/man3/SP_error.3
34
man/man3/SP_get_memb_info.3
35
man/man3/SP_get_vs_set_members.3
36
man/man3/SP_get_vs_sets_info.3
37
man/man3/SP_join.3
38
man/man3/SP_kill.3
39
man/man3/SP_leave.3
40
man/man3/SP_multicast.3
41
man/man3/SP_multigroup_multicast.3
42
man/man3/SP_multigroup_scat_multicast.3
43
man/man3/SP_poll.3
44
man/man3/SP_receive.3
45
man/man3/SP_scat_get_memb_info.3
46
man/man3/SP_scat_get_vs_set_members.3
47
man/man3/SP_scat_get_vs_sets_info.3
48
man/man3/SP_scat_multicast.3
49
man/man3/SP_scat_receive.3
50
man/man3/SP_version.3
51
man/man3/libspread.3
52
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
35
%%PORTDOCS%%@dirrm %%DOCSDIR%%
53
%%PORTDOCS%%@dirrm %%DOCSDIR%%
36
@exec install -m 750 -o %%USERS%% -g %%GROUPS%% -d %%RUNDIR%%
54
@exec install -m 750 -o %%USERS%% -g %%GROUPS%% -d %%RUNDIR%%
37
@dirrmtry %%RUNDIR%%
55
@dirrmtry %%RUNDIR%%

Return to bug 193450