summaryrefslogtreecommitdiff
path: root/extra/fam/PKGBUILD
blob: 4f2560625f64a0c8a0915cd2416dde4979072b63 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $Id: PKGBUILD 136014 2011-08-21 14:26:17Z eric $
# Maintainer:
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=fam
pkgver=2.7.0
pkgrel=16
pkgdesc="File Alteration Monitor"
arch=('i686' 'x86_64' 'mips64el')
license=('LGPL' 'GPL')
depends=('rpcbind' 'gcc-libs' 'bash')
url="http://oss.sgi.com/projects/fam/"
backup=('etc/fam/fam.conf')
options=('!makeflags' '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'
         'ec50139679bc31508a843cafa47cd298')

build() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  patch -p1 -i "${srcdir}"/fam-2.7.0-dnotify.patch
  patch -p1 -i "${srcdir}"/fam-2.7.0-largefiles.patch
  patch -p0 -i "${srcdir}"/fam-2.7.0-limits.patch
  patch -p1 -i "${srcdir}"/fam-2.7.0-buildfixes.patch

  chmod 755 configure

  autoheader
  aclocal
  automake -a -c
  autoconf
  libtoolize --copy --force

  ./configure --build=$CHOST --prefix=/usr --sysconfdir=/etc/fam
  make
}

package() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -D -m755 "${srcdir}"/fam "${pkgdir}"/etc/rc.d/fam
}