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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Apr 4 15:57:21 2008 UTC (11 years, 8 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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-3.0.0.ebuild,v 1.2 2008/03/16 06:20:24 vapier Exp $
4
5 inherit eutils flag-o-matic toolchain-funcs autotools
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-3"
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 xattr xinetd"
15
16 DEPEND=">=dev-libs/popt-1.5
17 acl? ( kernel_linux? ( sys-apps/acl ) )
18 xattr? ( kernel_linux? ( sys-apps/attr ) )
19 xinetd? ( sys-apps/xinetd )"
20
21 S=${WORKDIR}/${P/_/}
22
23 src_compile() {
24 use static && append-ldflags -static
25 econf \
26 --without-included-popt \
27 $(use_enable acl acl-support) \
28 $(use_enable xattr xattr-support) \
29 $(use_enable ipv6) \
30 --with-rsyncd-conf=/etc/rsyncd.conf \
31 || die
32 emake || die "emake failed"
33 }
34
35 pkg_preinst() {
36 if [[ -e ${ROOT}/etc/rsync/rsyncd.conf ]] && [[ ! -e ${ROOT}/etc/rsyncd.conf ]] ; then
37 mv "${ROOT}"/etc/rsync/rsyncd.conf "${ROOT}"/etc/rsyncd.conf
38 rm -f "${ROOT}"/etc/rsync/.keep
39 rmdir "${ROOT}"/etc/rsync >& /dev/null
40 fi
41 }
42
43 src_install() {
44 emake DESTDIR="${D}" install || die "make install failed"
45 newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
46 newinitd "${FILESDIR}"/rsyncd.init.d rsyncd
47 dodoc NEWS OLDNEWS README TODO tech_report.tex
48 insinto /etc
49 doins "${FILESDIR}"/rsyncd.conf
50 if use xinetd ; then
51 insinto /etc/xinetd.d
52 newins "${FILESDIR}"/rsyncd.xinetd rsyncd
53 fi
54 }
55
56 pkg_postinst() {
57 ewarn "The rsyncd.conf file has been moved for you to /etc/rsyncd.conf"
58 echo
59 ewarn "Please make sure you do NOT disable the rsync server running"
60 ewarn "in a chroot. Please check /etc/rsyncd.conf and make sure"
61 ewarn "it says: use chroot = yes"
62 }

  ViewVC Help
Powered by ViewVC 1.1.20