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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Jan 23 20:57:38 2011 UTC (9 years, 2 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.6.ebuild,v 1.9 2009/10/20 08:33:14 vapier Exp $
4
5 inherit eutils flag-o-matic
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/src/${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 iconv ipv6 static xattr"
15
16 DEPEND=">=dev-libs/popt-1.5
17 acl? ( virtual/acl )
18 xattr? ( kernel_linux? ( sys-apps/attr ) )
19 iconv? ( virtual/libiconv )"
20
21 S=${WORKDIR}/${P/_/}
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 epatch_user
27 }
28
29 src_compile() {
30 use static && append-ldflags -static
31 econf \
32 --without-included-popt \
33 $(use_enable acl acl-support) \
34 $(use_enable xattr xattr-support) \
35 $(use_enable ipv6) \
36 $(use_enable iconv) \
37 --with-rsyncd-conf=/etc/rsyncd.conf \
38 || die
39 emake || die "emake failed"
40 }
41
42 src_install() {
43 emake DESTDIR="${D}" install || die "make install failed"
44 newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
45 newinitd "${FILESDIR}"/rsyncd.init.d rsyncd
46 dodoc NEWS OLDNEWS README TODO tech_report.tex
47 insinto /etc
48 doins "${FILESDIR}"/rsyncd.conf
49
50 insinto /etc/logrotate.d
51 newins "${FILESDIR}"/rsyncd.logrotate rsyncd
52
53 insinto /etc/xinetd.d
54 newins "${FILESDIR}"/rsyncd.xinetd rsyncd
55 }
56
57 pkg_postinst() {
58 if egrep -qs '^[[:space:]]use chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
59 "${ROOT}"/etc/rsyncd.conf "${ROOT}"/etc/rsync/rsyncd.conf ; then
60 ewarn "You have disabled chroot support in your rsyncd.conf. This"
61 ewarn "is a security risk which you should fix. Please check your"
62 ewarn "/etc/rsyncd.conf file and fix the setting 'use chroot'."
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20