View | Details | Raw Unified | Return to bug 183189
Collapse All | Expand All

(-)./Makefile (-11 / +4 lines)
Lines 1-5 Link Here
1
# Created by: David O'Brien (obrien@cs.ucdavis.edu)
1
# Created by: David O'Brien (obrien@cs.ucdavis.edu)
2
# $FreeBSD: net/rsync/Makefile 329238 2013-10-03 21:28:47Z ehaupt $
2
# $FreeBSD: net/rsync/Makefile 329238 2013-10-03 21:28:47Z ehaupt $
3
3
4
PORTNAME=	rsync
4
PORTNAME=	rsync
5
PORTVERSION=	3.1.0
5
PORTVERSION=	3.1.0
Lines 28-36 Link Here
28
28
29
PORTDOCS=	NEWS README csprotocol.txt tech_report.tex
29
PORTDOCS=	NEWS README csprotocol.txt tech_report.tex
30
30
31
MAN1=		rsync.1
32
MAN5=		rsyncd.conf.5
33
34
# define options
31
# define options
35
OPTIONS_DEFINE=		POPT_PORT ZLIB_BASE SSH ICONV
32
OPTIONS_DEFINE=		POPT_PORT ZLIB_BASE SSH ICONV
36
OPTIONS_RADIO=		PTS
33
OPTIONS_RADIO=		PTS
Lines 52-58 Link Here
52
# define default options
49
# define default options
53
OPTIONS_DEFAULT=SSH ZLIB_BASE
50
OPTIONS_DEFAULT=SSH ZLIB_BASE
54
51
55
NO_STAGE=	yes
56
.include <bsd.port.options.mk>
52
.include <bsd.port.options.mk>
57
53
58
.if ${PORT_OPTIONS:MZLIB_BASE}
54
.if ${PORT_OPTIONS:MZLIB_BASE}
Lines 128-141 Link Here
128
		${WRKSRC}/rsync.h ${WRKSRC}/zlib/zutil.h
124
		${WRKSRC}/rsync.h ${WRKSRC}/zlib/zutil.h
129
125
130
post-install:
126
post-install:
131
	@${STRIP_CMD} ${PREFIX}/bin/rsync
127
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rsync
132
	@${INSTALL_DATA} ${FILESDIR}/rsyncd.conf.sample ${PREFIX}/etc/
128
	@${INSTALL_DATA} ${FILESDIR}/rsyncd.conf.sample ${STAGEDIR}${PREFIX}/etc/
133
	@[ -f ${PREFIX}/etc/rsyncd.conf ] || \
134
		${CP} ${PREFIX}/etc/rsyncd.conf.sample \
135
		${PREFIX}/etc/rsyncd.conf
136
.if ${PORT_OPTIONS:MDOCS}
129
.if ${PORT_OPTIONS:MDOCS}
137
	@${MKDIR} ${DOCSDIR}
130
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
138
	@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
131
	@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
139
.endif
132
.endif
140
133
141
test: build
134
test: build
(-)./files/rsyncd.in
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $FreeBSD: net/rsync/files/rsyncd.in 302141 2012-08-05 23:19:36Z dougb $
3
# $FreeBSD: net/rsync/files/rsyncd.in 302141 2012-08-05 23:19:36Z dougb $
4
#
4
#
5
5
6
# PROVIDE: %%NAME%%
6
# PROVIDE: %%NAME%%
(-)./pkg-plist (+2 lines)
Lines 1-5 Link Here
1
@comment $FreeBSD: net/rsync/pkg-plist 300897 2012-07-14 14:29:18Z beat $
1
@comment $FreeBSD: net/rsync/pkg-plist 300897 2012-07-14 14:29:18Z beat $
2
bin/rsync
2
bin/rsync
3
man/man1/rsync.1.gz
4
man/man5/rsyncd.conf.5.gz
3
@unexec if cmp -s %D/etc/rsyncd.conf.sample %D/etc/rsyncd.conf; then rm -f %D/etc/rsyncd.conf; fi
5
@unexec if cmp -s %D/etc/rsyncd.conf.sample %D/etc/rsyncd.conf; then rm -f %D/etc/rsyncd.conf; fi
4
etc/rsyncd.conf.sample
6
etc/rsyncd.conf.sample
5
@exec [ -f %B/rsyncd.conf ] || cp %B/%f %B/rsyncd.conf
7
@exec [ -f %B/rsyncd.conf ] || cp %B/%f %B/rsyncd.conf

Return to bug 183189