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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (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.10: +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.ebuild,v 1.10 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 patches need to be forward ported again.
11 # acl? ( http://www.saout.de/misc/${PN}-2.6.0-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 IUSE="build static"
18
19 RDEPEND="virtual/libc
20 !build? ( >=dev-libs/popt-1.5 )"
21 DEPEND="${RDEPEND}
22 >=sys-apps/sed-4
23 acl? ( sys-apps/acl )"
24
25 src_unpack() {
26 unpack "${P}.tar.gz"
27 cd ${S}
28 #use acl && epatch ${DISTDIR}/${PN}-2.6.0-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' \
34 rsync.h \
35 || die "sed rsync.h failed"
36 # yes, updating the man page is very important.
37 sed -i \
38 -e 's|/etc/rsyncd|/etc/rsync/rsyncd|g' \
39 rsyncd.conf.5 \
40 || die "sed rsyncd.conf.5 failed"
41 }
42
43 src_compile() {
44 [ "`gcc-version`" == "2.95" ] && append-ldflags -lpthread
45 use static && append-ldflags -static
46 export LDFLAGS
47 econf \
48 $(use_with build included-popt) \
49 $(use_with acl acl-support) \
50 || die
51 emake || die "emake failed"
52 }
53
54 src_install() {
55 make DESTDIR="${D}" install || die "make install failed"
56 insinto /etc/conf.d && newins "${FILESDIR}/rsyncd.conf.d" rsyncd
57 exeinto /etc/init.d && newexe "${FILESDIR}/rsyncd.init.d" rsyncd
58 if ! use build ; then
59 dodir /etc/rsync
60 dodoc NEWS OLDNEWS README TODO tech_report.tex
61 if [ ! -e /etc/rsync/rsyncd.conf ] ; then
62 insinto /etc/rsync
63 doins "${FILESDIR}/rsyncd.conf"
64 fi
65 else
66 rm -rf "${D}/usr/share"
67 fi
68 }
69
70 pkg_postinst() {
71 ewarn "Please make sure you do NOT disable the rsync server running"
72 ewarn "in a chroot. Please check /etc/rsync/rsyncd.conf and make sure"
73 ewarn "it says: use chroot = yes"
74 }

  ViewVC Help
Powered by ViewVC 1.1.20