/[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.9 - (hide annotations) (download)
Mon Jun 25 10:37:15 2012 UTC (2 years, 5 months ago) by flameeyes
Branch: MAIN
Changes since 1.8: +4 -2 lines
Add dependency over dev-lang/perl at build time.

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

1 jdhore 1.2 # Copyright 1999-2012 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 flameeyes 1.9 # $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/rsync-3.0.9.ebuild,v 1.8 2012/04/01 14:45:58 armin76 Exp $
4 vapier 1.1
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 armin76 1.8 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
16 vapier 1.1 IUSE="acl iconv ipv6 static xattr"
17    
18 flameeyes 1.9 RDEPEND=">=dev-libs/popt-1.5
19 vapier 1.1 acl? ( virtual/acl )
20     xattr? ( kernel_linux? ( sys-apps/attr ) )
21     iconv? ( virtual/libiconv )"
22 flameeyes 1.9 DEPEND="${RDEPEND}
23     dev-lang/perl"
24 vapier 1.1
25     S=${WORKDIR}/${P/_/}
26    
27     src_prepare() {
28     epatch_user
29     }
30    
31     src_configure() {
32     use static && append-ldflags -static
33     econf \
34     --without-included-popt \
35     $(use_enable acl acl-support) \
36     $(use_enable xattr xattr-support) \
37     $(use_enable ipv6) \
38     $(use_enable iconv) \
39     --with-rsyncd-conf=/etc/rsyncd.conf \
40     || die
41     }
42    
43     src_install() {
44     emake DESTDIR="${D}" install || die
45     newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
46     newinitd "${FILESDIR}"/rsyncd.init.d rsyncd || die
47     dodoc NEWS OLDNEWS README TODO tech_report.tex
48     insinto /etc
49     doins "${FILESDIR}"/rsyncd.conf || die
50    
51     insinto /etc/logrotate.d
52     newins "${FILESDIR}"/rsyncd.logrotate rsyncd
53    
54     insinto /etc/xinetd.d
55     newins "${FILESDIR}"/rsyncd.xinetd rsyncd
56    
57     # Install the useful contrib scripts
58     exeinto /usr/share/rsync
59     doexe support/* || die
60     rm -f "${D}"/usr/share/rsync/{Makefile*,*.c}
61     }
62    
63     pkg_postinst() {
64     if egrep -qis '^[[:space:]]use chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
65     "${ROOT}"/etc/rsyncd.conf "${ROOT}"/etc/rsync/rsyncd.conf ; then
66     ewarn "You have disabled chroot support in your rsyncd.conf. This"
67     ewarn "is a security risk which you should fix. Please check your"
68     ewarn "/etc/rsyncd.conf file and fix the setting 'use chroot'."
69     fi
70     }

  ViewVC Help
Powered by ViewVC 1.1.20