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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Oct 3 04:38:58 2004 UTC (15 years, 2 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
clean up

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-r4.ebuild,v 1.1 2004/08/14 15:32:34 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 ipv6"
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 # apply security patch from bug #60309
36 epatch ${FILESDIR}/${PN}-pathsanitize.patch
37 }
38
39 src_compile() {
40 [ "`gcc-version`" == "2.95" ] && append-ldflags -lpthread
41 use static && append-ldflags -static
42 export LDFLAGS
43
44 econf \
45 $(use_with build included-popt) \
46 $(use_with acl acl-support) \
47 $(use_enable ipv6) \
48 --with-rsyncd-conf=/etc/rsync/rsyncd.conf \
49 || die
50 emake || die "emake failed"
51 }
52
53 src_install() {
54 make DESTDIR="${D}" install || die "make install failed"
55 insinto /etc/conf.d && newins "${FILESDIR}/rsyncd.conf.d" rsyncd
56 exeinto /etc/init.d && newexe "${FILESDIR}/rsyncd.init.d" rsyncd
57 if ! use build ; then
58 dodir /etc/rsync
59 dodoc NEWS OLDNEWS README TODO tech_report.tex
60 if [ ! -e /etc/rsync/rsyncd.conf ] ; then
61 insinto /etc/rsync
62 doins "${FILESDIR}/rsyncd.conf"
63 fi
64 else
65 rm -rf "${D}/usr/share"
66 fi
67 }
68
69 pkg_postinst() {
70 ewarn "Please make sure you do NOT disable the rsync server running"
71 ewarn "in a chroot. Please check /etc/rsync/rsyncd.conf and make sure"
72 ewarn "it says: use chroot = yes"
73 }

  ViewVC Help
Powered by ViewVC 1.1.20