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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations) (download)
Wed Jan 19 23:25:59 2005 UTC (15 years, 4 months ago) by vapier
Branch: MAIN
Changes since 1.9: +2 -2 lines
move back into unstable
(Portage version: 2.0.51-r13)

1 kumba 1.9 # Copyright 1999-2005 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.10 # $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/rsync-2.6.3.ebuild,v 1.9 2005/01/19 13:03:33 kumba Exp $
4 vapier 1.1
5 vapier 1.4 inherit eutils flag-o-matic gcc gnuconfig
6 vapier 1.1
7     DESCRIPTION="File transfer program to keep remote files into sync"
8     HOMEPAGE="http://rsync.samba.org/"
9     SRC_URI="http://rsync.samba.org/ftp/rsync/${P/_/}.tar.gz"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13 vapier 1.10 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
14 vapier 1.1 IUSE="build static acl ipv6"
15    
16     RDEPEND="virtual/libc
17     !build? ( >=dev-libs/popt-1.5 )"
18     DEPEND="${RDEPEND}
19     >=sys-apps/sed-4
20     acl? ( sys-apps/acl )"
21    
22     S="${WORKDIR}/${P/_/}"
23    
24     src_unpack() {
25     unpack "${P/_/}.tar.gz"
26     cd ${S}
27 vapier 1.3 if use acl ; then
28     epatch patches/acl.diff
29     autoconf || die "autoconf"
30     autoheader || die "autoheader"
31     fi
32 vapier 1.4 gnuconfig_update
33 vapier 1.1
34     # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
35     # yes, updating the man page is very important.
36     sed -i \
37     -e 's|/etc/rsyncd|/etc/rsync/rsyncd|g' \
38 vapier 1.6 rsync.1 rsyncd.conf.5 \
39 vapier 1.1 || die "sed rsyncd.conf.5 failed"
40     }
41    
42     src_compile() {
43     [ "`gcc-version`" == "2.95" ] && append-ldflags -lpthread
44     use static && append-ldflags -static
45    
46     econf \
47     $(use_with build included-popt) \
48     $(use_with acl acl-support) \
49     $(use_enable ipv6) \
50     --with-rsyncd-conf=/etc/rsync/rsyncd.conf \
51     || die
52     emake || die "emake failed"
53     }
54    
55     src_install() {
56     make DESTDIR="${D}" install || die "make install failed"
57     insinto /etc/conf.d && newins "${FILESDIR}/rsyncd.conf.d" rsyncd
58     exeinto /etc/init.d && newexe "${FILESDIR}/rsyncd.init.d" rsyncd
59     if ! use build ; then
60     dodir /etc/rsync
61     dodoc NEWS OLDNEWS README TODO tech_report.tex
62     if [ ! -e /etc/rsync/rsyncd.conf ] ; then
63     insinto /etc/rsync
64     doins "${FILESDIR}/rsyncd.conf"
65     fi
66     else
67     rm -rf "${D}/usr/share"
68     fi
69     }
70    
71     pkg_postinst() {
72     ewarn "Please make sure you do NOT disable the rsync server running"
73     ewarn "in a chroot. Please check /etc/rsync/rsyncd.conf and make sure"
74     ewarn "it says: use chroot = yes"
75     }

  ViewVC Help
Powered by ViewVC 1.1.20