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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat May 9 20:49:40 2009 UTC (10 years, 10 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc33/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.4.ebuild,v 1.10 2009/01/08 06:16:16 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 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 iconv? ( virtual/libiconv )"
21
22 S=${WORKDIR}/${P/_/}
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27
28 local check base=${PORTAGE_CONFIGROOT}/etc/portage/patches
29 for check in {${CATEGORY}/${PF},${CATEGORY}/${P},${CATEGORY}/${PN}}; do
30 EPATCH_SOURCE=${base}/${CTARGET}/${check}
31 [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${base}/${CHOST}/${check}
32 [[ -r ${EPATCH_SOURCE} ]] || EPATCH_SOURCE=${base}/${check}
33 if [[ -d ${EPATCH_SOURCE} ]] ; then
34 EPATCH_SUFFIX="patch"
35 EPATCH_FORCE="yes" \
36 EPATCH_MULTI_MSG="Applying user patches from ${EPATCH_SOURCE} ..." \
37 epatch
38 break
39 fi
40 done
41 }
42
43 src_compile() {
44 use static && append-ldflags -static
45 econf \
46 --without-included-popt \
47 $(use_enable acl acl-support) \
48 $(use_enable xattr xattr-support) \
49 $(use_enable ipv6) \
50 $(use_enable iconv) \
51 --with-rsyncd-conf=/etc/rsyncd.conf \
52 || die
53 emake || die "emake failed"
54 }
55
56 pkg_preinst() {
57 if [[ -e ${ROOT}/etc/rsync/rsyncd.conf ]] && [[ ! -e ${ROOT}/etc/rsyncd.conf ]] ; then
58 mv "${ROOT}"/etc/rsync/rsyncd.conf "${ROOT}"/etc/rsyncd.conf
59 rm -f "${ROOT}"/etc/rsync/.keep
60 rmdir "${ROOT}"/etc/rsync >& /dev/null
61 fi
62 }
63
64 src_install() {
65 emake DESTDIR="${D}" install || die "make install failed"
66 newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
67 newinitd "${FILESDIR}"/rsyncd.init.d rsyncd
68 dodoc NEWS OLDNEWS README TODO tech_report.tex
69 insinto /etc
70 doins "${FILESDIR}"/rsyncd.conf
71
72 insinto /etc/logrotate.d
73 newins "${FILESDIR}"/rsyncd.logrotate rsyncd
74
75 if use xinetd ; then
76 insinto /etc/xinetd.d
77 newins "${FILESDIR}"/rsyncd.xinetd rsyncd
78 fi
79 }
80
81 pkg_postinst() {
82 ewarn "The rsyncd.conf file has been moved for you to /etc/rsyncd.conf"
83 echo
84 ewarn "Please make sure you do NOT disable the rsync server running"
85 ewarn "in a chroot. Please check /etc/rsyncd.conf and make sure"
86 ewarn "it says: use chroot = yes"
87 }

  ViewVC Help
Powered by ViewVC 1.1.20