PKGBUILDs/extra/fam/PKGBUILD
2009-10-09 21:23:22 -05:00

47 lines
1.5 KiB
Bash

# $Id: PKGBUILD 42582 2009-06-16 05:21:39Z tpowa $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=fam
pkgver=2.7.0
pkgrel=14
pkgdesc="File Alteration Monitor"
arch=('i686' 'x86_64')
license=('LGPL' 'GPL')
depends=('rpcbind' 'gcc-libs' 'bash')
url="http://oss.sgi.com/projects/fam/"
backup=(etc/fam/fam.conf)
options=('!makeflags') # Don't !libtool
source=(ftp://oss.sgi.com/projects/fam/download/stable/${pkgname}-${pkgver}.tar.gz
fam-2.7.0-dnotify.patch
fam-2.7.0-largefiles.patch
fam-2.7.0-limits.patch
fam-2.7.0-buildfixes.patch
fam)
md5sums=('1bf3ae6c0c58d3201afc97c6a4834e39'
'073d1763318344635ea316293390205c'
'47b41e0b0498793af004696a096d7da1'
'2638b8ffacb9f03b6e438e08ea7b290a'
'fc0cabc0ac4f819680401eb3090c29c9'
'0b4dd9894ccc03f57787f9dfc0a7bd6f')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np1 -i ${srcdir}/fam-2.7.0-dnotify.patch || return 1
patch -Np1 -i ${srcdir}/fam-2.7.0-largefiles.patch || return 1
patch -Np0 -i ${srcdir}/fam-2.7.0-limits.patch || return 1
patch -Np1 -i ${srcdir}/fam-2.7.0-buildfixes.patch || return 1
chmod 755 configure || return 1
autoheader || return 1
aclocal || return 1
automake -a -c || return 1
autoconf || return 1
libtoolize --copy --force || return 1
./configure --prefix=/usr --sysconfdir=/etc/fam
make || return 1
make DESTDIR=${pkgdir} install
install -D -m755 ../fam ${pkgdir}/etc/rc.d/fam
}