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

Contents of /net-misc/rsync/rsync-2.5.6-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 4 16:30:27 2003 UTC (16 years, 4 months ago) by drobbins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
removing rsyncs with security holes

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/rsync/rsync-2.5.6-r4.ebuild,v 1.1 2003/10/19 03:15:26 vapier Exp $
4
5 inherit eutils
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 http://www.imada.sdu.dk/~bardur/personal/patches/${PN}-proxy-auth/${P}-proxy-auth-1.patch"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64"
15
16 DEPEND="virtual/glibc
17 >=sys-apps/sed-4
18 !build? ( >=dev-libs/popt-1.5 )"
19
20 src_unpack() {
21 unpack ${P}.tar.gz
22 epatch ${DISTDIR}/${P}-proxy-auth-1.patch
23 cd ${S}
24
25 # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
26 # configure option doesn't work
27 sed -i 's|/etc/rsyncd.conf|/etc/rsync/rsyncd.conf|g' rsync.h
28 # yes, updating the man page is very important.
29 sed -i 's|/etc/rsyncd|/etc/rsync/rsyncd|g' rsyncd.conf.5
30 }
31
32 src_compile() {
33 [ -n "$(use build)" ] \
34 && POPTSETTING="--with-included-popt" \
35 || POPTSETTING=""
36 [ -z "${CC}" ] && CC=gcc
37 if [ "`${CC} -dumpversion | cut -d. -f1,2`" = "2.95" ] ; then
38 export LDFLAGS="${LDFLAGS} -lpthread"
39 fi
40 econf \
41 ${POPTSETTING} \
42 --with-rsh=ssh \
43 || die
44 use static && export LDFLAGS="${LDFLAGS} -static"
45 emake || die
46 }
47
48 src_install() {
49 einstall || die
50 insinto /etc/conf.d && newins ${FILESDIR}/rsyncd.conf.d rsyncd
51 exeinto /etc/init.d && newexe ${FILESDIR}/rsyncd.init.d rsyncd
52 if [ -z "`use build`" ] ; then
53 dodir /etc/rsync
54 dodoc COPYING NEWS OLDNEWS README TODO tech_report.tex
55 if [ ! -e /etc/rsync/rsyncd.conf ] ; then
56 insinto /etc/rsync
57 doins ${FILESDIR}/rsyncd.conf
58 fi
59 else
60 rm -rf ${D}/usr/share
61 fi
62 }
63
64 pkg_postinst() {
65 einfo 'This patch enables usage of user:pass@proxy.foo:port'
66 einfo 'in the RSYNC_PROXY environment variable to support'
67 einfo 'the "Basic" proxy authentication scheme if you are'
68 einfo 'behind a password protected HTTP proxy.'
69 }

  ViewVC Help
Powered by ViewVC 1.1.20