/[gentoo-x86]/net-misc/rsync/rsync-3.0.9.ebuild
Gentoo

Contents of /net-misc/rsync/rsync-3.0.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Aug 18 15:38:05 2012 UTC (2 years, 10 months ago) by vapier
Branch: MAIN
Changes since 1.10: +2 -3 lines
Revert wrong perl change.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
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.10 2012/06/29 05:11:14 vapier Exp $
4
5 EAPI="2"
6
7 inherit eutils flag-o-matic
8
9 DESCRIPTION="File transfer program to keep remote files into sync"
10 HOMEPAGE="http://rsync.samba.org/"
11 SRC_URI="http://rsync.samba.org/ftp/rsync/src/${P/_/}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
16 IUSE="acl iconv ipv6 static xattr"
17
18 RDEPEND=">=dev-libs/popt-1.5
19 acl? ( virtual/acl )
20 xattr? ( kernel_linux? ( sys-apps/attr ) )
21 iconv? ( virtual/libiconv )"
22 DEPEND="${RDEPEND}"
23
24 S=${WORKDIR}/${P/_/}
25
26 src_prepare() {
27 epatch_user
28 }
29
30 src_configure() {
31 use static && append-ldflags -static
32 econf \
33 --without-included-popt \
34 $(use_enable acl acl-support) \
35 $(use_enable xattr xattr-support) \
36 $(use_enable ipv6) \
37 $(use_enable iconv) \
38 --with-rsyncd-conf=/etc/rsyncd.conf
39 touch proto.h-tstamp #421625
40 }
41
42 src_install() {
43 emake DESTDIR="${D}" install || die
44 newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
45 newinitd "${FILESDIR}"/rsyncd.init.d rsyncd || die
46 dodoc NEWS OLDNEWS README TODO tech_report.tex
47 insinto /etc
48 doins "${FILESDIR}"/rsyncd.conf || die
49
50 insinto /etc/logrotate.d
51 newins "${FILESDIR}"/rsyncd.logrotate rsyncd
52
53 insinto /etc/xinetd.d
54 newins "${FILESDIR}"/rsyncd.xinetd rsyncd
55
56 # Install the useful contrib scripts
57 exeinto /usr/share/rsync
58 doexe support/* || die
59 rm -f "${D}"/usr/share/rsync/{Makefile*,*.c}
60 }
61
62 pkg_postinst() {
63 if egrep -qis '^[[:space:]]use chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
64 "${ROOT}"/etc/rsyncd.conf "${ROOT}"/etc/rsync/rsyncd.conf ; then
65 ewarn "You have disabled chroot support in your rsyncd.conf. This"
66 ewarn "is a security risk which you should fix. Please check your"
67 ewarn "/etc/rsyncd.conf file and fix the setting 'use chroot'."
68 fi
69 }

  ViewVC Help
Powered by ViewVC 1.1.20