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

Contents of /net-misc/rsync/rsync-2.6.8-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Feb 3 21:34:30 2007 UTC (13 years, 2 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2006 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.8-r2.ebuild,v 1.5 2006/12/13 08:53:58 grobian Exp $
4
5 inherit eutils flag-o-matic toolchain-funcs
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 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
14 IUSE="acl build ipv6 static xinetd"
15
16 RDEPEND="!build? ( >=dev-libs/popt-1.5 )
17 acl? ( kernel_linux? ( sys-apps/acl ) )"
18 DEPEND="${RDEPEND}
19 >=sys-apps/portage-2.0.51"
20
21 S=${WORKDIR}/${P/_/}
22
23 src_unpack() {
24 unpack ${P/_/}.tar.gz
25 cd "${S}"
26 epatch "${FILESDIR}"/${P}-fix-deferred-msgs.patch #133054
27 epatch "${FILESDIR}"/${P}-verbose-quiet-output.patch #133217
28 if use acl ; then
29 epatch patches/{acls,xattrs}.diff
30 ./prepare-source || die
31 fi
32 }
33
34 src_compile() {
35 [[ $(gcc-version) == "2.95" ]] && append-ldflags -lpthread
36 use static && append-ldflags -static
37
38 econf \
39 $(use_with build included-popt) \
40 $(use_enable acl acl-support) \
41 $(use_enable acl xattr-support) \
42 $(use_enable ipv6) \
43 --with-rsyncd-conf=/etc/rsyncd.conf \
44 || die
45 emake || die "emake failed"
46 }
47
48 pkg_preinst() {
49 if [[ -e ${ROOT}/etc/rsync/rsyncd.conf ]] && [[ ! -e ${ROOT}/etc/rsyncd.conf ]] ; then
50 mv "${ROOT}"/etc/rsync/rsyncd.conf "${ROOT}"/etc/rsyncd.conf
51 rm -f "${ROOT}"/etc/rsync/.keep
52 rmdir "${ROOT}"/etc/rsync >& /dev/null
53 fi
54 }
55
56 src_install() {
57 make DESTDIR="${D}" install || die "make install failed"
58 newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
59 newinitd "${FILESDIR}"/rsyncd.init.d rsyncd
60 if ! use build ; then
61 dodoc NEWS OLDNEWS README TODO tech_report.tex
62 insinto /etc
63 doins "${FILESDIR}"/rsyncd.conf
64 if use xinetd ; then
65 insinto /etc/xinetd.d
66 newins "${FILESDIR}"/rsyncd.xinetd rsyncd
67 fi
68 else
69 rm -r "${D}"/usr/share
70 fi
71 }
72
73 pkg_postinst() {
74 ewarn "The rsyncd.conf file has been moved for you to /etc/rsyncd.conf"
75 echo
76 ewarn "Please make sure you do NOT disable the rsync server running"
77 ewarn "in a chroot. Please check /etc/rsyncd.conf and make sure"
78 ewarn "it says: use chroot = yes"
79 }

  ViewVC Help
Powered by ViewVC 1.1.20