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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Mar 16 00:13:06 2006 UTC (13 years, 10 months ago) by vapier
Branch: MAIN
Version bump #126267 by Kilburn Abrahams.
(Portage version: 2.1_pre6-r3)

1 vapier 1.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.6-r1.ebuild,v 1.2 2006/01/02 18:56:09 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 ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86"
14     IUSE="acl build ipv6 static xinetd"
15    
16     RDEPEND="!build? ( >=dev-libs/popt-1.5 )
17     acl? ( 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     if use acl ; then
27     epatch patches/{acls,xattrs}.diff
28     ./prepare-source || die
29     fi
30     }
31    
32     src_compile() {
33     [[ $(gcc-version) == "2.95" ]] && append-ldflags -lpthread
34     use static && append-ldflags -static
35    
36     econf \
37     $(use_with build included-popt) \
38     $(use_with acl acl-support) \
39     $(use_with acl xattr-support) \
40     $(use_enable ipv6) \
41     --with-rsyncd-conf=/etc/rsyncd.conf \
42     || die
43     emake || die "emake failed"
44     }
45    
46     pkg_preinst() {
47     if [[ -e ${ROOT}/etc/rsync/rsyncd.conf ]] && [[ ! -e ${ROOT}/etc/rsyncd.conf ]] ; then
48     mv "${ROOT}"/etc/rsync/rsyncd.conf "${ROOT}"/etc/rsyncd.conf
49     rm -f "${ROOT}"/etc/rsync/.keep
50     rmdir "${ROOT}"/etc/rsync >& /dev/null
51     fi
52     }
53    
54     src_install() {
55     make DESTDIR="${D}" install || die "make install failed"
56     newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
57     newinitd "${FILESDIR}"/rsyncd.init.d rsyncd
58     if ! use build ; then
59     dodoc NEWS OLDNEWS README TODO tech_report.tex
60     insinto /etc
61     doins "${FILESDIR}"/rsyncd.conf
62     if use xinetd ; then
63     insinto /etc/xinetd.d
64     newins "${FILESDIR}"/rsyncd.xinetd rsyncd
65     fi
66     else
67     rm -r "${D}"/usr/share
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