mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
Use perl's in-place editing rather than large patches.
This commit is contained in:
parent
43e04c360c
commit
cbeaaa75eb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=22365
2 changed files with 2 additions and 55 deletions
|
@ -23,9 +23,8 @@ MAN1= rsync.1
|
|||
MAN5= rsyncd.conf.5
|
||||
|
||||
pre-configure:
|
||||
@${MV} ${WRKSRC}/rsync.1 ${WRKSRC}/rsync.1.in
|
||||
@${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \
|
||||
${WRKSRC}/rsync.1.in > ${WRKSRC}/rsync.1
|
||||
@${PERL} -pi.orig -e 's:/etc/:${PREFIX}/etc/:g' ${WRKSRC}/rsync.1
|
||||
@${PERL} -pi.orig -e 's:/etc/:${PREFIX}/etc/:g' ${WRKSRC}/rsyncd.conf.5
|
||||
|
||||
post-install:
|
||||
@strip ${PREFIX}/bin/rsync
|
||||
|
|
|
@ -1,32 +1,5 @@
|
|||
--- rsyncd.conf.5.orig Tue Apr 6 08:04:17 1999
|
||||
+++ rsyncd.conf.5 Tue Apr 6 14:43:50 1999
|
||||
@@ -66,7 +66,7 @@
|
||||
config file\&.
|
||||
.PP
|
||||
Note that you should not send the rsync server a HUP signal to force
|
||||
-it to reread the \f(CW/etc/rsyncd\&.conf\fP\&. The file is re-read on each client
|
||||
+it to reread the \f(CW!!PREFIX!!/etc/rsyncd\&.conf\fP\&. The file is re-read on each client
|
||||
connection\&.
|
||||
.PP
|
||||
.SH "GLOBAL OPTIONS"
|
||||
@@ -128,7 +128,7 @@
|
||||
.IP "\fBpath\fP"
|
||||
The "path" option specifies the directory in the servers
|
||||
filesystem to make available in this module\&. You must specify this option
|
||||
-for each module in \f(CW/etc/rsyncd\&.conf\fP\&.
|
||||
+for each module in \f(CW!!PREFIX!!/etc/rsyncd\&.conf\fP\&.
|
||||
.IP
|
||||
.IP "\fBuse chroot\fP"
|
||||
If "use chroot" is true, the rsync server will chroot
|
||||
@@ -239,7 +239,7 @@
|
||||
you may find that passwords longer than 8 characters don\'t work\&.
|
||||
.IP
|
||||
There is no default for the "secrets file" option, you must choose a name
|
||||
-(such as \f(CW/etc/rsyncd\&.secrets\fP)\&.
|
||||
+(such as \f(CW!!PREFIX!!/etc/rsyncd\&.secrets\fP)\&.
|
||||
.IP
|
||||
.IP "\fBstrict modes\fP"
|
||||
The "strict modes" option determines whether or not
|
||||
@@ -429,7 +429,7 @@
|
||||
.br
|
||||
syslog facility = local5
|
||||
|
@ -36,28 +9,3 @@
|
|||
.PP
|
||||
|
||||
.DS
|
||||
@@ -454,13 +454,13 @@
|
||||
path = /data/cvs
|
||||
comment = CVS repository (requires authentication)
|
||||
auth users = tridge, susan
|
||||
- secrets file = /etc/rsyncd\&.secrets
|
||||
+ secrets file = !!PREFIX!!/etc/rsyncd\&.secrets
|
||||
|
||||
.DE
|
||||
|
||||
|
||||
.PP
|
||||
-The /etc/rsyncd\&.secrets file would look something like this:
|
||||
+The !!PREFIX!!/etc/rsyncd\&.secrets file would look something like this:
|
||||
.PP
|
||||
tridge:mypass
|
||||
.br
|
||||
@@ -468,7 +468,7 @@
|
||||
.PP
|
||||
.SH "FILES"
|
||||
.PP
|
||||
-/etc/rsyncd\&.conf
|
||||
+!!PREFIX!!/etc/rsyncd\&.conf
|
||||
.PP
|
||||
.SH "SEE ALSO"
|
||||
.PP
|
||||
|
|
Loading…
Add table
Reference in a new issue