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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Jul 27 14:31:34 2004 UTC (15 years, 8 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
gnuconfig loving

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.0-r1.ebuild,v 1.5 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 http://www.imada.sdu.dk/~bardur/personal/patches/${PN}-proxy-auth/${PN}-2.5.6-proxy-auth-1.patch
11 acl? ( http://www.saout.de/misc/${P}-acl.diff.bz2 )"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha arm ~hppa ~amd64 ~ia64 ~ppc64 s390"
16 IUSE="build static acl"
17
18 RDEPEND="virtual/libc
19 !build? ( >=dev-libs/popt-1.5 )"
20 DEPEND="${RDEPEND}
21 >=sys-apps/sed-4
22 acl? ( sys-apps/acl )"
23
24 src_unpack() {
25 unpack "${P}.tar.gz"
26 cd ${S}
27 epatch "${DISTDIR}/${PN}-2.5.6-proxy-auth-1.patch"
28 use acl && epatch ${DISTDIR}/${P}-acl.diff.bz2
29
30 # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
31 # configure option doesn't work
32 sed -i \
33 -e 's|/etc/rsyncd.conf|/etc/rsync/rsyncd.conf|g' rsync.h \
34 || die "sed rsync.h failed"
35 # yes, updating the man page is very important.
36 sed -i \
37 -e 's|/etc/rsyncd|/etc/rsync/rsyncd|g' 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 export LDFLAGS
45 econf $(use_with build included-popt) \
46 $(use_with acl acl-support) || die
47 emake || die "emake failed"
48 }
49
50 src_install() {
51 make DESTDIR="${D}" install || die "make install failed"
52 insinto /etc/conf.d && newins "${FILESDIR}/rsyncd.conf.d" rsyncd
53 exeinto /etc/init.d && newexe "${FILESDIR}/rsyncd.init.d" rsyncd
54 if ! use build ; then
55 dodir /etc/rsync
56 dodoc NEWS OLDNEWS README TODO tech_report.tex
57 if [ ! -e /etc/rsync/rsyncd.conf ] ; then
58 insinto /etc/rsync
59 doins "${FILESDIR}/rsyncd.conf"
60 fi
61 else
62 rm -rf "${D}/usr/share"
63 fi
64 }
65
66 pkg_postinst() {
67 ewarn "Please make sure you do NOT disable the rsync server running"
68 ewarn "in a chroot. Please check /etc/rsync/rsyncd.conf and make sure"
69 ewarn "it says: use chroot = yes"
70
71 einfo 'This patch enables usage of user:pass@proxy.foo:port'
72 einfo 'in the RSYNC_PROXY environment variable to support'
73 einfo 'the "Basic" proxy authentication scheme if you are'
74 einfo 'behind a password protected HTTP proxy.'
75 }

  ViewVC Help
Powered by ViewVC 1.1.20