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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu May 22 22:13:29 2003 UTC (16 years, 6 months ago) by mholzer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
cleanup

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.ebuild,v 1.6 2003/02/24 00:58:48 lu_zero Exp $
4
5 DESCRIPTION="File transfer program to keep remote files into sync"
6 HOMEPAGE="http://rsync.samba.org"
7 LICENSE="GPL-2"
8
9 DEPEND="virtual/glibc
10 !build? ( >=dev-libs/popt-1.5 )"
11
12 KEYWORDS="x86 ~hppa arm"
13 SLOT="0"
14
15 SRC_URI="http://rsync.samba.org/ftp/rsync/${P}.tar.gz"
16 S=${WORKDIR}/${P}
17
18 src_unpack() {
19 unpack ${A}
20 cd ${S}
21
22 # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
23 # configure option doesn't work
24 mv rsync.h rsync.h.orig
25 sed <rsync.h.orig >rsync.h \
26 -e 's|/etc/rsyncd.conf|/etc/rsync/rsyncd.conf|g'
27
28 # yes, updating the man page is very important.
29 mv rsyncd.conf.5 rsyncd.conf.5.orig
30 sed <rsyncd.conf.5.orig >rsyncd.conf.5 \
31 -e 's|/etc/rsyncd|/etc/rsync/rsyncd|g'
32 }
33
34 src_compile() {
35 if [ -n "$(use build)" ]; then
36 POPTSETTING="--with-included-popt"
37 else
38 POPTSETTING=""
39 fi
40 ./configure --prefix=/usr --host=${CHOST} ${POPTSETTING} || die
41 if [ "`use static`" ] ; then
42 emake LDFLAGS="-static" || die
43 else
44 emake || die
45 fi
46 }
47
48 src_install () {
49 make prefix=${D}/usr \
50 mandir=${D}/usr/share/man \
51 install || die
52 if [ -z "`use build`" ]
53 then
54 dodir /etc/rsync
55 dodoc COPYING NEWS OLDNEWS README TODO tech_report.tex
56 else
57 rm -rf ${D}/usr/share
58 fi
59 }
60
61 pkg_postinst() {
62 if [ ! -d /etc/rsync ]
63 then
64 mkdir /etc/rsync
65 fi
66 }

  ViewVC Help
Powered by ViewVC 1.1.20