summaryrefslogtreecommitdiffstats
path: root/rsync/Pkgfile
blob: 918797059f6263c9d9352095c889c49a8378cafc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Description: Protocol de synchronisation de fichiers très efficace
# URL: http://samba.anu.edu.au/rsync/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: 

name=rsync
version=3.0.7
release=2
source=( http://rsync.samba.org/ftp/$name/$name-$version.tar.gz\
	rsync.driver)


build() {
	cd $name-$version
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info 
	make
	make DESTDIR=$PKG install
	install -d $PKG/etc/ports/drivers
	case `uname -m` in
        i?86)
               sed -i "s/ARCH/x86_64/g" $SRC/rsync.driver;;
        x86_64) 
               sed -i "s/ARCH/i686/g" $SRC/rsync.driver;;
        esac

	install -m 755 $SRC/rsync.driver $PKG/etc/ports/drivers/rsync
}