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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20