Re: rsync patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Oops, don't know if the attachment went through.  Pasted below for convenience:

# $Id$

pkgname=rsync
pkgver=3.1.1
pkgrel=3
pkgdesc="A file transfer program to keep remote files in sync"
arch=('i686' 'x86_64')
url="http://rsync.samba.org/";
license=('GPL3')
depends=('perl' 'popt' 'acl' 'zlib')
backup=('etc/rsyncd.conf' 'etc/xinetd.d/rsync')
source=("http://rsync.samba.org/ftp/rsync/$pkgname-$pkgver.tar.gz";
        "http://rsync.samba.org/ftp/rsync/$pkgname-$pkgver.tar.gz.asc";
        "http://rsync.samba.org/ftp/rsync/$pkgname-patches-$pkgver.tar.gz";
        "http://rsync.samba.org/ftp/rsync/$pkgname-patches-$pkgver.tar.gz.asc";
        'rsyncd.conf' 'rsync.xinetd' 'rsyncd.service'
        'rsyncd.socket' 'rsyncd@.service')
md5sums=('43bd6676f0b404326eee2d63be3cdcfe'
         'SKIP'
         '72de3e3528c1a1940b226e456393f26d'
         'SKIP'
         'bce64d122a8e0f86872a4a21a03bc7f3'
         'ea3e9277dc908bc51f9eddc0f6b935c1'
         'f90ba7f3717028769d6f230a2402b5aa'
         'ae4c381e0c02d6132c7f6ded3f473041'
         '53f94e613e0bc502d38dd61bd2cd7636')


prepare() {
        cd "$srcdir/$pkgname-$pkgver"

        # Backwards compatibility:
  patch -p1 -i patches/acls.diff
  patch -p1 -i patches/xattrs.diff
  patch -p1 -i patches/copy-devices.diff

        # Add --timelimit support:
  patch -p1 -i patches/time-limit.diff
}

build() {
        cd "$srcdir/$pkgname-$pkgver"
        ./configure --prefix=/usr \
                --with-included-popt=no \
                --disable-debug
        make
}

check() {
        cd "$srcdir/$pkgname-$pkgver"
        make test
}

package() {
        cd "$srcdir/$pkgname-$pkgver"
        make DESTDIR="$pkgdir" install
        install -Dm644 ../rsyncd.conf "$pkgdir/etc/rsyncd.conf"
        install -Dm644 ../rsync.xinetd "$pkgdir/etc/xinetd.d/rsync"
        install -Dm644 ../rsyncd.service
"$pkgdir/usr/lib/systemd/system/rsyncd.service"
        install -m644 ../rsyncd.socket
"$pkgdir/usr/lib/systemd/system/rsyncd.socket"
        install -m644 ../rsyncd@.service
"$pkgdir/usr/lib/systemd/system/rsyncd@.service"
        install -Dm755 support/rrsync "$pkgdir/usr/lib/rsync/rrsync"
}


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux