updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / openafs-features / PKGBUILD
blobebdc817bee4730d30f5fd8a5f0b2331306c12627
1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 # Contributor: Szymon Chachulski szym-at-mit-dot-edu
3 pkgname=openafs-features
4 pkgver=1.5.78
5 pkgrel=1
6 pkgdesc="Open source implementation of AFS, modular packaging of Features release"
7 arch=('i686' 'x86_64')
8 url="http://www.openafs.org/"
9 license=('custom')
10 depends=('heimdal')
11 provides=('openafs')
12 conflicts=('openafs')
13 backup=('etc/openafs/CellServDB'
14         'etc/openafs/ThisCell'
15         'etc/openafs/afs.conf'
16         'etc/openafs/cacheinfo')
17 install=openafs.install
18 source=(http://www.openafs.org/dl/openafs/$pkgver/openafs-$pkgver-src.tar.bz2 \
19         cacheinfo openafs.rc)
20 md5sums=('d2ad44d1642f25fce6ac2d2944439559'
21          'a0617306a76c7f3fd7a42135d9ff6d85'
22          'b08e64f44501b97f449c8a38e22ab761')
24 build() {
25   cd "$srcdir/openafs-$pkgver"
27   ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/openafs \
28     --with-krb5-conf=/usr/bin/krb5-config --with-linux-kernel-packaging
29   make all_nolibafs
32 package() {
33   cd "$srcdir/openafs-$pkgver"
35   # fix problem with make install
36 #  install -d -m755 "$pkgdir"/usr/share/openafs/C
38   make DESTDIR="$pkgdir/" install_nolibafs
40   # rename binaries already provided by heimdal
41 #  mv "$pkgdir"/usr/bin/compile_et "$pkgdir"/usr/bin/compile_et-openafs
42   mv "$pkgdir"/usr/bin/kpasswd "$pkgdir"/usr/bin/kpasswd-openafs
43   mv "$pkgdir"/usr/bin/pagsh "$pkgdir"/usr/bin/pagsh-openafs
45   # move pam modules to place where they belong
46   install -d -m755 "$pkgdir"/lib/security
47   mv "$pkgdir"/usr/lib/pam_* "$pkgdir"/lib/security/
49   # install rc script
50   install -D -m755 "$srcdir"/openafs.rc "$pkgdir"/etc/rc.d/openafs
52   # create configs
53   install -D -m644 src/afsd/CellServDB "$pkgdir"/etc/openafs/CellServDB
54   install -D -m644 src/packaging/RedHat/openafs-ThisCell "$pkgdir"/etc/openafs/ThisCell
55   install -D -m644 src/afsd/afs.conf.linux "$pkgdir"/etc/openafs/afs.conf
56   install -D -m644 "$srcdir"/cacheinfo "$pkgdir"/etc/openafs/cacheinfo
58   # create cachedir directories
59   mkdir -p "$pkgdir"/var/cache/openafs
60   chmod 700 "$pkgdir"/var/cache/openafs
62   # remove kernel module
63   rm -rf "$pkgdir"/lib
65   # install license
66   install -D -m644 src/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
69 # vim:set ts=2 sw=2 et: