1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 # Contributor: Szymon Chachulski szym-at-mit-dot-edu
3 pkgname=openafs-features
6 pkgdesc="Open source implementation of AFS, modular packaging of Features release"
8 url="http://www.openafs.org/"
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 \
20 md5sums=('d2ad44d1642f25fce6ac2d2944439559'
21 'a0617306a76c7f3fd7a42135d9ff6d85'
22 'b08e64f44501b97f449c8a38e22ab761')
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
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/
50 install -D -m755 "$srcdir"/openafs.rc "$pkgdir"/etc/rc.d/openafs
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
66 install -D -m644 src/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
69 # vim:set ts=2 sw=2 et: