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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jul 9 19:41:00 2004 UTC (15 years, 8 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
prune old 2.6.2 releases

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/rsync-2.6.2-r2.ebuild,v 1.3 2004/07/01 21:50:14 squinky86 Exp $
4
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 acl? ( http://www.saout.de/misc/${P}-acl.diff.bz2 )"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ~ia64 ppc64 s390"
15 IUSE="build static acl"
16
17 RDEPEND="virtual/libc
18 !build? ( >=dev-libs/popt-1.5 )"
19 DEPEND="${RDEPEND}
20 >=sys-apps/sed-4
21 acl? ( sys-apps/acl )"
22
23 src_unpack() {
24 unpack "${P}.tar.gz"
25 cd ${S}
26 use acl && epatch ${DISTDIR}/${P}-acl.diff.bz2
27
28 # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
29 # yes, updating the man page is very important.
30 sed -i \
31 -e 's|/etc/rsyncd|/etc/rsync/rsyncd|g' \
32 rsyncd.conf.5 \
33 || die "sed rsyncd.conf.5 failed"
34 }
35
36 src_compile() {
37 [ "`gcc-version`" == "2.95" ] && append-ldflags -lpthread
38 use static && append-ldflags -static
39 export LDFLAGS
40 econf \
41 $(use_with build included-popt) \
42 $(use_with acl acl-support) \
43 --with-rsyncd-conf=/etc/rsync/rsyncd.conf \
44 || die
45 emake || die "emake failed"
46 }
47
48 src_install() {
49 make DESTDIR="${D}" install || die "make install failed"
50 insinto /etc/conf.d && newins "${FILESDIR}/rsyncd.conf.d" rsyncd
51 exeinto /etc/init.d && newexe "${FILESDIR}/rsyncd.init.d" rsyncd
52 if ! use build ; then
53 dodir /etc/rsync
54 dodoc NEWS OLDNEWS README TODO tech_report.tex
55 if [ ! -e /etc/rsync/rsyncd.conf ] ; then
56 insinto /etc/rsync
57 doins "${FILESDIR}/rsyncd.conf"
58 fi
59 else
60 rm -rf "${D}/usr/share"
61 fi
62 }
63
64 pkg_postinst() {
65 ewarn "Please make sure you do NOT disable the rsync server running"
66 ewarn "in a chroot. Please check /etc/rsync/rsyncd.conf and make sure"
67 ewarn "it says: use chroot = yes"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20