summaryrefslogtreecommitdiffstats
path: root/base/rsync/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'base/rsync/Pkgfile')
-rwxr-xr-xbase/rsync/Pkgfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/base/rsync/Pkgfile b/base/rsync/Pkgfile
index a670d60cb..918797059 100755
--- a/base/rsync/Pkgfile
+++ b/base/rsync/Pkgfile
@@ -6,7 +6,7 @@
name=rsync
version=3.0.7
-release=1
+release=2
source=( http://rsync.samba.org/ftp/$name/$name-$version.tar.gz\
rsync.driver)
@@ -19,5 +19,12 @@ build() {
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
}