You are not logged in.

#1 2007-09-29 21:19:53

sinecure
Member
Registered: 2007-09-22
Posts: 21
Website

New PKGBUILD for File-RsyncP

As my first foray into PKGBUILDing, I figured I'd try one for a simple perl module.  This will be needed by backuppc, which I'll be attempting next.

see below

I'm unsure if the makedepends are necessary, and `namcap -i` said that the perl dependency was unneeded.  I'd appreciate any feedback.

Last edited by sinecure (2007-10-10 12:09:53)

Offline

#2 2007-09-29 21:51:13

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: New PKGBUILD for File-RsyncP

Namcap does not detect python (and obviously perl) module dependencies correctly in the current version.
There is a thread somewhere where this is mentioned (iirc it was 1 month ago).

It should not be necessary to use /usr/bin/perl , /usr/bin/make or /usr/bin/find as /usr/bin is in the default searchpath.

The makedepends look ok to me.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2007-09-30 09:31:05

sinecure
Member
Registered: 2007-09-22
Posts: 21
Website

Re: New PKGBUILD for File-RsyncP

Checked through the threads.  Thanks for the pointers, good to know.

Left out the full paths, etc.  I'll probably try to get backuppc working, then submit all of them at the same time.

Thanks.

Offline

#4 2007-10-08 05:21:58

dtandersen
Member
Registered: 2007-01-30
Posts: 41

Re: New PKGBUILD for File-RsyncP

What a coincidence! I also want to run BackupPC!  Here is a PKGBUILD for it.

http://bbs.archlinux.org/viewtopic.php?id=38252

Offline

#5 2007-10-09 21:46:10

sinecure
Member
Registered: 2007-09-22
Posts: 21
Website

Re: New PKGBUILD for File-RsyncP

Huh!  I forgot to search the forum for backuppc.  I'll have to remember that for projects in the future. wink

I'll put the latest PKGBUILD for File-RsyncP up here tomorrow, and test out your backuppc PKGBUILD either tomorrow or the next day.

Offline

#6 2007-10-09 23:33:01

dtandersen
Member
Registered: 2007-01-30
Posts: 41

Re: New PKGBUILD for File-RsyncP

It wasn't there when you posted wink

The PKGBUILD for BackupPC builds and installs OK.  I haven't got the mod_perl web interface working yet.

Offline

#7 2007-10-10 05:07:06

sinecure
Member
Registered: 2007-09-22
Posts: 21
Website

Re: New PKGBUILD for File-RsyncP

WOW my awareness is tops. wink

Offline

#8 2007-10-10 12:04:59

sinecure
Member
Registered: 2007-09-22
Posts: 21
Website

Re: New PKGBUILD for File-RsyncP

Here's my final version of the PKGBUILD, now I'll read up on how to submit it.

# Contributor: "David J. Weller-Fahy" <dave-archlinux-packages@weller-fahy.com>
# Maintainer: "David J. Weller-Fahy" <dave-archlinux-packages@weller-fahy.com>
pkgname=perl-file-rsyncp
pkgver=0.68
pkgrel=2
pkgdesc="Perl/CPAN Module File::RsyncP : a simple rsync client"
arch=('i686' 'x86_64')

url="http://search.cpan.org/~cbarratt/File-RsyncP"
source=("http://search.cpan.org/CPAN/authors/id/C/CB/CBARRATT/File-RsyncP-$pkgver.tar.gz")
license=('GPL2')

provides=('file-rsyncp')
depends=('perl>=5.8.8-6' 'glibc')
makedepends=('make' 'gcc' 'findutils')
options=('docs' '!emptydirs')

build() {
    cd  $startdir/src/File-RsyncP-$pkgver || return 1
    eval `perl -V:archname` || return 1
    perl Makefile.PL \
        INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
        INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
        INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} \
        || return 1
    make || return 1
    make DESTDIR=$startdir/pkg install || return 1
    find $startdir/pkg -name '.packlist' -exec rm  '{}' \; || return 1
    find $startdir/pkg -name '*.pod' -exec rm  '{}' \; || return 1
}
md5sums=('ed47c5ef7ff835415692f18137cb0cf9')

Last edited by sinecure (2007-10-11 08:49:25)

Offline

#9 2007-10-12 20:53:35

sinecure
Member
Registered: 2007-09-22
Posts: 21
Website

Re: New PKGBUILD for File-RsyncP

Package is submitted.

Offline

Board footer

Powered by FluxBB