diff options
author | marino <marino@FreeBSD.org> | 2014-09-10 08:38:03 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2014-09-10 08:38:03 +0800 |
commit | 0b4126427fb85bf31a05a1dc25e510a224351909 (patch) | |
tree | 6ca917b0619b3388c5efcb290e541a79b0d8478a | |
parent | cfbd740c28767e8ea36959f384a2707c223c9477 (diff) | |
download | freebsd-ports-gnome-0b4126427fb85bf31a05a1dc25e510a224351909.tar.gz freebsd-ports-gnome-0b4126427fb85bf31a05a1dc25e510a224351909.tar.zst freebsd-ports-gnome-0b4126427fb85bf31a05a1dc25e510a224351909.zip |
Stage net/spread4
PR: 193450
Submitted by: Chris Hutchinson
Stage fixes: marino
-rw-r--r-- | net/spread4/Makefile | 71 | ||||
-rw-r--r-- | net/spread4/pkg-plist | 42 |
2 files changed, 50 insertions, 63 deletions
diff --git a/net/spread4/Makefile b/net/spread4/Makefile index 5e3c17c8fea8..4e34149e61e1 100644 --- a/net/spread4/Makefile +++ b/net/spread4/Makefile @@ -7,8 +7,8 @@ CATEGORIES= net perl5 MASTER_SITES= LOCAL/ohauer DISTNAME= spread-src-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org -COMMENT= The Spread Group Communication System, a network toolkit +MAINTAINER= portmaster@bsdforge.com +COMMENT= Spread Group Communication System, a network toolkit GNU_CONFIGURE= yes USES= gmake @@ -26,58 +26,29 @@ SUB_LIST+= USERS=${USERS} GROUPS=${GROUPS} WRKSRC= ${WRKDIR}/spread-src-${PORTVERSION} PKGMESSAGE= ${WRKSRC}/license.txt - -DOCFILES= DynamicConfiguration.txt Flush_or_SpreadAPI.txt \ +LICENSE_FILE= ${WRKSRC}/license.txt +OPTIONS_DEFINE= DOCS +PORTDOCS= 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 - -NO_STAGE= yes -.include <bsd.port.pre.mk> post-extract: - @${REINPLACE_CMD} -e 's|INSTALLSUBDIRS=daemon docs|INSTALLSUBDIRS=daemon|' \ + @${REINPLACE_CMD} -e 's|INSTALLSUBDIRS=daemon docs|INSTALLSUBDIRS=daemon|' \ ${WRKSRC}/Makefile.in post-install: - ${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.conf \ - ${PREFIX}/etc/spread.conf.sample - ${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.access_ip \ - ${PREFIX}/etc/spread.access_ip.sample - -.if !exists(${PREFIX}/etc/spread.conf) - ${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.conf \ - ${PREFIX}/etc/spread.conf -.endif - -.if !exists(${PREFIX}/etc/spread.access_ip) - ${INSTALL_DATA} -m 644 ${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> + (cd ${STAGEDIR}${PREFIX}/lib/ && ${STRIP_CMD} libspread.so.3.0.0 \ + libspread-core.so.3.0.0 libtspread-core.so.3.0.0) + ${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.conf \ + ${STAGEDIR}${PREFIX}/etc/spread.conf.sample + ${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.access_ip \ + ${STAGEDIR}${PREFIX}/etc/spread.access_ip.sample + (cd ${WRKSRC} && ${INSTALL_DATA} docs/*.1 \ + ${STAGEDIR}${MANPREFIX}/man/man1) + (cd ${WRKSRC} && ${INSTALL_DATA} docs/*.3 \ + ${STAGEDIR}${MANPREFIX}/man/man3) + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${RUNDIR} + (cd ${WRKSRC}/docs && \ + ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) + +.include <bsd.port.mk> diff --git a/net/spread4/pkg-plist b/net/spread4/pkg-plist index 8bd2b701185c..7b7de915ee37 100644 --- a/net/spread4/pkg-plist +++ b/net/spread4/pkg-plist @@ -3,12 +3,8 @@ bin/spflooder bin/spmonitor bin/sptuser bin/spuser -@unexec if cmp -s %D/etc/spread.access_ip.sample %D/etc/spread.access_ip; then rm -f %D/etc/spread.access_ip; fi -etc/spread.access_ip.sample -@exec if [ ! -f %D/etc/spread.access_ip ] ; then cp -p %D/%F %B/spread.access_ip; fi -@unexec if cmp -s %D/etc/spread.conf.sample %D/etc/spread.conf; then rm -f %D/etc/spread.conf; fi -etc/spread.conf.sample -@exec if [ ! -f %D/etc/spread.conf ] ; then cp -p %D/%F %B/spread.conf; fi +@sample etc/spread.access_ip.sample +@sample etc/spread.conf.sample include/fl.h include/sp.h include/sp_events.h @@ -26,12 +22,32 @@ lib/libtspread-core.so lib/libtspread-core.so.3 lib/libtspread-core.so.3.0.0 sbin/spread -%%PORTDOCS%%%%DOCSDIR%%/DynamicConfiguration.txt -%%PORTDOCS%%%%DOCSDIR%%/Flush_or_SpreadAPI.txt -%%PORTDOCS%%%%DOCSDIR%%/MultithreadedClients.txt -%%PORTDOCS%%%%DOCSDIR%%/Short_Buffer_Handling.txt -%%PORTDOCS%%%%DOCSDIR%%/TODO -%%PORTDOCS%%%%DOCSDIR%%/PORTING -%%PORTDOCS%%@dirrm %%DOCSDIR%% +man/man1/spflooder.1.gz +man/man1/spmonitor.1.gz +man/man1/spread.1.gz +man/man1/sptuser.1.gz +man/man1/spuser.1.gz +man/man3/SP_connect.3.gz +man/man3/SP_disconnect.3.gz +man/man3/SP_equal_group_ids.3.gz +man/man3/SP_error.3.gz +man/man3/SP_get_memb_info.3.gz +man/man3/SP_get_vs_set_members.3.gz +man/man3/SP_get_vs_sets_info.3.gz +man/man3/SP_join.3.gz +man/man3/SP_kill.3.gz +man/man3/SP_leave.3.gz +man/man3/SP_multicast.3.gz +man/man3/SP_multigroup_multicast.3.gz +man/man3/SP_multigroup_scat_multicast.3.gz +man/man3/SP_poll.3.gz +man/man3/SP_receive.3.gz +man/man3/SP_scat_get_memb_info.3.gz +man/man3/SP_scat_get_vs_set_members.3.gz +man/man3/SP_scat_get_vs_sets_info.3.gz +man/man3/SP_scat_multicast.3.gz +man/man3/SP_scat_receive.3.gz +man/man3/SP_version.3.gz +man/man3/libspread.3.gz @exec install -m 750 -o %%USERS%% -g %%GROUPS%% -d %%RUNDIR%% @dirrmtry %%RUNDIR%% |