/[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.3 - (hide annotations) (download)
Tue Oct 5 05:20:38 2004 UTC (15 years, 10 months ago) by vapier
Branch: MAIN
Changes since 1.2: +6 -2 lines
run autoconf/autoheader after applying the acl patch #66299

1 vapier 1.1 # Copyright 1999-2004 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 vapier 1.3 # $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/rsync-2.6.3.ebuild,v 1.2 2004/10/03 04:38:58 vapier Exp $
4 vapier 1.1
5     inherit eutils flag-o-matic gcc
6    
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.2 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~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.1
33     # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
34     # yes, updating the man page is very important.
35     sed -i \
36     -e 's|/etc/rsyncd|/etc/rsync/rsyncd|g' \
37     rsyncd.conf.5 \
38     || die "sed rsyncd.conf.5 failed"
39     }
40    
41     src_compile() {
42     [ "`gcc-version`" == "2.95" ] && append-ldflags -lpthread
43     use static && append-ldflags -static
44    
45     econf \
46     $(use_with build included-popt) \
47     $(use_with acl acl-support) \
48     $(use_enable ipv6) \
49     --with-rsyncd-conf=/etc/rsync/rsyncd.conf \
50     || die
51     emake || die "emake failed"
52     }
53    
54     src_install() {
55     make DESTDIR="${D}" install || die "make install failed"
56     insinto /etc/conf.d && newins "${FILESDIR}/rsyncd.conf.d" rsyncd
57     exeinto /etc/init.d && newexe "${FILESDIR}/rsyncd.init.d" rsyncd
58     if ! use build ; then
59     dodir /etc/rsync
60     dodoc NEWS OLDNEWS README TODO tech_report.tex
61     if [ ! -e /etc/rsync/rsyncd.conf ] ; then
62     insinto /etc/rsync
63     doins "${FILESDIR}/rsyncd.conf"
64     fi
65     else
66     rm -rf "${D}/usr/share"
67     fi
68     }
69    
70     pkg_postinst() {
71     ewarn "Please make sure you do NOT disable the rsync server running"
72     ewarn "in a chroot. Please check /etc/rsync/rsyncd.conf and make sure"
73     ewarn "it says: use chroot = yes"
74     }

  ViewVC Help
Powered by ViewVC 1.1.20