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

Contents of /net-misc/rsync/rsync-2.6.9-r6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Jan 8 06:09:28 2009 UTC (11 years, 2 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2008 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.9-r6.ebuild,v 1.9 2008/06/21 04:51:47 vapier 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 ipv6 static xinetd"
15
16 DEPEND=">=dev-libs/popt-1.5
17 acl? ( kernel_linux? ( sys-apps/acl ) )
18 xinetd? ( sys-apps/xinetd )"
19
20 S=${WORKDIR}/${P/_/}
21
22 src_unpack() {
23 unpack ${P/_/}.tar.gz
24 cd "${S}"
25 if use acl ; then
26 epatch patches/{acls,xattrs}.diff
27 epatch "${FILESDIR}"/${P}-delete-acls-xattr.patch
28 epatch "${FILESDIR}"/rsync-3.0.1-xattr-alloc.diff #216887
29 ./prepare-source || die
30 fi
31 epatch "${FILESDIR}"/${P}-stats-fix.patch #165121
32 epatch "${FILESDIR}"/${P}-fname-obo.patch #189132
33 epatch "${FILESDIR}"/${P}-pid-early.patch #192075
34 }
35
36 src_compile() {
37 [[ $(gcc-version) == "2.95" ]] && append-ldflags -pthread
38 use static && append-ldflags -static
39
40 econf \
41 --without-included-popt \
42 $(use_enable acl acl-support) \
43 $(use_enable acl xattr-support) \
44 $(use_enable ipv6) \
45 --with-rsyncd-conf=/etc/rsyncd.conf \
46 || die
47 emake || die "emake failed"
48 }
49
50 pkg_preinst() {
51 if [[ -e ${ROOT}/etc/rsync/rsyncd.conf ]] && [[ ! -e ${ROOT}/etc/rsyncd.conf ]] ; then
52 mv "${ROOT}"/etc/rsync/rsyncd.conf "${ROOT}"/etc/rsyncd.conf
53 rm -f "${ROOT}"/etc/rsync/.keep
54 rmdir "${ROOT}"/etc/rsync >& /dev/null
55 fi
56 }
57
58 src_install() {
59 emake DESTDIR="${D}" install || die "make install failed"
60 newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
61 newinitd "${FILESDIR}"/rsyncd.init.d rsyncd
62 dodoc NEWS OLDNEWS README TODO tech_report.tex
63 insinto /etc
64 doins "${FILESDIR}"/rsyncd.conf
65 if use xinetd ; then
66 insinto /etc/xinetd.d
67 newins "${FILESDIR}"/rsyncd.xinetd rsyncd
68 fi
69 }
70
71 pkg_postinst() {
72 ewarn "The rsyncd.conf file has been moved for you to /etc/rsyncd.conf"
73 echo
74 ewarn "Please make sure you do NOT disable the rsync server running"
75 ewarn "in a chroot. Please check /etc/rsyncd.conf and make sure"
76 ewarn "it says: use chroot = yes"
77 }

  ViewVC Help
Powered by ViewVC 1.1.20