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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sat Jun 30 11:31:59 2012 UTC (2 years, 1 month ago) by grobian
Branch: MAIN
Changes since 1.4: +2 -2 lines
Fix elementary Prefix error using ED for DESTDIR in make install.

(Portage version: 2.2.01.20430-prefix/cvs/Darwin i386)

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

  ViewVC Help
Powered by ViewVC 1.1.20