Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 406061 | Differences between
and this patch

Collapse All | Expand All

(-)rsync-3.0.9.ebuild (-6 / +7 lines)
Lines 2-10 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/rsync-3.0.9.ebuild,v 1.1 2011/10/30 23:18:05 vapier Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/rsync-3.0.9.ebuild,v 1.1 2011/10/30 23:18:05 vapier Exp $
4
4
5
EAPI="2"
5
EAPI="3"
6
6
7
inherit eutils flag-o-matic
7
inherit eutils flag-o-matic prefix
8
8
9
DESCRIPTION="File transfer program to keep remote files into sync"
9
DESCRIPTION="File transfer program to keep remote files into sync"
10
HOMEPAGE="http://rsync.samba.org/"
10
HOMEPAGE="http://rsync.samba.org/"
Lines 12-18 Link Here
12
12
13
LICENSE="GPL-3"
13
LICENSE="GPL-3"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16
IUSE="acl iconv ipv6 static xattr"
16
IUSE="acl iconv ipv6 static xattr"
17
17
18
DEPEND=">=dev-libs/popt-1.5
18
DEPEND=">=dev-libs/popt-1.5
Lines 24-29 Link Here
24
24
25
src_prepare() {
25
src_prepare() {
26
	epatch_user
26
	epatch_user
27
	epatch "${FILESDIR}"/${PN}-3.0.7-mint.patch
28
	eprefixify
27
}
29
}
28
30
29
src_configure() {
31
src_configure() {
Lines 34-41 Link Here
34
		$(use_enable xattr xattr-support) \
36
		$(use_enable xattr xattr-support) \
35
		$(use_enable ipv6) \
37
		$(use_enable ipv6) \
36
		$(use_enable iconv) \
38
		$(use_enable iconv) \
37
		--with-rsyncd-conf=/etc/rsyncd.conf \
39
		--with-rsyncd-conf="${EPREFIX}"/etc/rsyncd.conf
38
		|| die
39
}
40
}
40
41
41
src_install() {
42
src_install() {
Lines 60-66 Link Here
60
61
61
pkg_postinst() {
62
pkg_postinst() {
62
	if egrep -qis '^[[:space:]]use chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
63
	if egrep -qis '^[[:space:]]use chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
63
		"${ROOT}"/etc/rsyncd.conf "${ROOT}"/etc/rsync/rsyncd.conf ; then
64
		"${EROOT}"/etc/rsyncd.conf "${EROOT}"/etc/rsync/rsyncd.conf ; then
64
		ewarn "You have disabled chroot support in your rsyncd.conf.  This"
65
		ewarn "You have disabled chroot support in your rsyncd.conf.  This"
65
		ewarn "is a security risk which you should fix.  Please check your"
66
		ewarn "is a security risk which you should fix.  Please check your"
66
		ewarn "/etc/rsyncd.conf file and fix the setting 'use chroot'."
67
		ewarn "/etc/rsyncd.conf file and fix the setting 'use chroot'."
(-)files/rsyncd.conf (-2 / +2 lines)
Lines 4-15 Link Here
4
# See rsync(1) and rsyncd.conf(5) man pages for help
4
# See rsync(1) and rsyncd.conf(5) man pages for help
5
5
6
# This line is required by the /etc/init.d/rsyncd script
6
# This line is required by the /etc/init.d/rsyncd script
7
pid file = /var/run/rsyncd.pid
7
pid file = @GENTOO_PORTAGE_EPREFIX@/var/run/rsyncd.pid
8
use chroot = yes
8
use chroot = yes
9
read only = yes
9
read only = yes
10
10
11
# Simple example for enabling your own local rsync server
11
# Simple example for enabling your own local rsync server
12
#[gentoo-portage]
12
#[gentoo-portage]
13
#	path = /usr/portage
13
#	path = @GENTOO_PORTAGE_EPREFIX@/usr/portage
14
#	comment = Gentoo Portage tree
14
#	comment = Gentoo Portage tree
15
#	exclude = /distfiles /packages
15
#	exclude = /distfiles /packages
(-)files/rsyncd.xinetd (-1 / +1 lines)
Lines 4-10 Link Here
4
	protocol    = tcp
4
	protocol    = tcp
5
	wait        = no
5
	wait        = no
6
	user        = root
6
	user        = root
7
	server      = /usr/bin/rsync
7
	server      = @GENTOO_PORTAGE_EPREFIX@/usr/bin/rsync
8
	server_args = --daemon
8
	server_args = --daemon
9
	disable     = yes
9
	disable     = yes
10
}
10
}

Return to bug 406061