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

Contents of /net-misc/rsync/rsync-2.6.3_pre2.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.3_pre2.ebuild,v 1.1 2004/09/25 06:52:04 vapier 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/preview/${P/_/}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~ppc64 ~s390"
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 use acl && epatch patches/acl.diff
28
29 # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
30 # yes, updating the man page is very important.
31 sed -i \
32 -e 's|/etc/rsyncd|/etc/rsync/rsyncd|g' \
33 rsyncd.conf.5 \
34 || die "sed rsyncd.conf.5 failed"
35 }
36
37 src_compile() {
38 [ "`gcc-version`" == "2.95" ] && append-ldflags -lpthread
39 use static && append-ldflags -static
40
41 econf \
42 $(use_with build included-popt) \
43 $(use_with acl acl-support) \
44 $(use_enable ipv6) \
45 --with-rsyncd-conf=/etc/rsync/rsyncd.conf \
46 || 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 }

  ViewVC Help
Powered by ViewVC 1.1.20