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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Nov 12 15:44:46 2004 UTC (15 years, 9 months ago) by vapier
Branch: MAIN
Changes since 1.4: +2 -2 lines
sh KEYWORDS

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.3.ebuild,v 1.4 2004/10/15 03:15:59 vapier Exp $
4
5 inherit eutils flag-o-matic gcc gnuconfig
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
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
14 IUSE="build static acl ipv6"
15
16 RDEPEND="virtual/libc
17 !build? ( >=dev-libs/popt-1.5 )"
18 DEPEND="${RDEPEND}
19 >=sys-apps/sed-4
20 acl? ( sys-apps/acl )"
21
22 S="${WORKDIR}/${P/_/}"
23
24 src_unpack() {
25 unpack "${P/_/}.tar.gz"
26 cd ${S}
27 if use acl ; then
28 epatch patches/acl.diff
29 autoconf || die "autoconf"
30 autoheader || die "autoheader"
31 fi
32 gnuconfig_update
33
34 # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
35 # yes, updating the man page is very important.
36 sed -i \
37 -e 's|/etc/rsyncd|/etc/rsync/rsyncd|g' \
38 rsyncd.conf.5 \
39 || die "sed rsyncd.conf.5 failed"
40 }
41
42 src_compile() {
43 [ "`gcc-version`" == "2.95" ] && append-ldflags -lpthread
44 use static && append-ldflags -static
45
46 econf \
47 $(use_with build included-popt) \
48 $(use_with acl acl-support) \
49 $(use_enable ipv6) \
50 --with-rsyncd-conf=/etc/rsync/rsyncd.conf \
51 || die
52 emake || die "emake failed"
53 }
54
55 src_install() {
56 make DESTDIR="${D}" install || die "make install failed"
57 insinto /etc/conf.d && newins "${FILESDIR}/rsyncd.conf.d" rsyncd
58 exeinto /etc/init.d && newexe "${FILESDIR}/rsyncd.init.d" rsyncd
59 if ! use build ; then
60 dodir /etc/rsync
61 dodoc NEWS OLDNEWS README TODO tech_report.tex
62 if [ ! -e /etc/rsync/rsyncd.conf ] ; then
63 insinto /etc/rsync
64 doins "${FILESDIR}/rsyncd.conf"
65 fi
66 else
67 rm -rf "${D}/usr/share"
68 fi
69 }
70
71 pkg_postinst() {
72 ewarn "Please make sure you do NOT disable the rsync server running"
73 ewarn "in a chroot. Please check /etc/rsync/rsyncd.conf and make sure"
74 ewarn "it says: use chroot = yes"
75 }

  ViewVC Help
Powered by ViewVC 1.1.20