summaryrefslogtreecommitdiff
path: root/extra/quota-tools/PKGBUILD
blob: 99354e8159816960168688da0e342edb8477779f (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
# $Id: PKGBUILD 163746 2012-07-18 22:38:58Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=quota-tools
pkgver=4.00
pkgrel=1
epoch=1
pkgdesc="Tools to manage kernel-level quotas in Linux"
arch=('i686' 'x86_64' 'mips64el')
url="http://sourceforge.net/projects/linuxquota/"
license=('GPL' 'BSD')
depends=('e2fsprogs')
backup=('etc/warnquota.conf' 'etc/quotatab' 'etc/quotagrpadmins')
options=('!emptydirs')
source=(http://downloads.sourceforge.net/sourceforge/linuxquota/quota-${pkgver}.tar.gz \
        LICENSE)
sha1sums=('9ef79933bebfd80f007600fd422616ad161c5fd0'
          '57297bdc9e638c500506169bbbe12eb89bcf7d07')

build() {
  cd "${srcdir}/${pkgname}"
  ./configure --prefix=/usr --sysconfdir=/etc
  make RPCGEN="rpcgen -Y /usr/bin"
}

package() {
  cd "${srcdir}/${pkgname}"
  make ROOTDIR="${pkgdir}" install
  install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

# remove conflicts with glibc
  rm "${pkgdir}"/usr/include/rpcsvc/rquota.{h,x}
}