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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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

  ViewVC Help
Powered by ViewVC 1.1.20