ChangeLog

# ChangeLog for net-fs/openafs
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.150 2008/10/09 06:06:59 stefaan Exp $

*openafs-kernel-1.4.8_pre2 (08 Oct 2008)

08 Oct 2008; Stefaan De Roeck
+openafs-1.4.8_pre2.ebuild:
Version bump to 1.4.8_pre2

22 Sep 2008; Stefaan De Roeck openafs-1.4.7.ebuild:
Keyworded alpha

04 May 2008; Markus Meier
openafs-1.4.6_p20080222.ebuild:
amd64 stable, bug #211367

*openafs-1.4.7 (03 May 2008)

03 May 2008; Stefaan De Roeck
+files/openafs-1.4.7-uname.patch, +openafs-1.4.7.ebuild:
Version bump to 1.4.7 + fix bug #211378

*openafs-1.4.7_pre3-r1 (01 May 2008)

01 May 2008; Stefaan De Roeck
+openafs-1.4.7_pre3-r1.ebuild:
Hack/fix incompatibility with autoconf-2.62 (bug #218234)

*openafs-1.4.7_pre3 (10 Apr 2008)

10 Apr 2008; Stefaan De Roeck
+openafs-1.4.7_pre3.ebuild:
Yet another version bump

04 Apr 2008; Stefaan De Roeck
-files/openafs-pinstall-execve-1.2.10.patch, -files/CellServDB,
-files/README, -files/ThisCell, -files/afs.rc.rc6,
-openafs-1.2.10-r1.ebuild, -openafs-1.2.13-r2.ebuild,
-openafs-1.4.5.ebuild, -openafs-1.4.5-r2.ebuild,
-openafs-1.4.7_pre1.ebuild, -openafs-1.5.27.ebuild,
-openafs-1.5.33.ebuild:
Remove lots of obsolete versions

*openafs-1.4.7_pre2 (31 Mar 2008)

31 Mar 2008; Stefaan De Roeck
+openafs-1.4.7_pre2.ebuild:
Version bump to 1.4.7_pre2

*openafs-1.5.34 (25 Mar 2008)
*openafs-1.4.7_pre1 (25 Mar 2008)

25 Mar 2008; Stefaan De Roeck
+openafs-1.4.7_pre1.ebuild, +openafs-1.5.34.ebuild:
Version bumps to 1.4.7_pre1 and 1.5.34

*openafs-1.5.33 (20 Mar 2008)

20 Mar 2008; Stefaan De Roeck +openafs-1.5.33.ebuild:
Version bump to 1.5.33

26 Feb 2008; Christian Faulhammer
openafs-1.4.6_p20080222.ebuild:
quote variable

26 Feb 2008; Christian Faulhammer
openafs-1.4.6_p20080222.ebuild:
stable x86, bug 211367

*openafs-1.4.6_p20080222 (22 Feb 2008)

22 Feb 2008; Stefaan De Roeck
+files/openafs-1.4.5-shared-libs.patch, +openafs-1.4.6_p20080222.ebuild:
Add version pulled from stable-cvs for linux-2.6.24 compatibility (bug
#207882), keep more symbols in shared libraries (bug #202489)

02 Jan 2008; Stefaan De Roeck openafs-1.4.6.ebuild:
Stable on alpha, bug #203573

01 Jan 2008; Joseph Jezak openafs-1.4.6.ebuild:
Marked ppc/ppc64 stable for bug #203573.

31 Dec 2007; openafs-1.4.6.ebuild:
Stable on amd64; bug 203573

29 Dec 2007; Markus Meier openafs-1.4.6.ebuild:
x86 stable, security bug #203573

*openafs-1.4.6 (28 Dec 2007)

28 Dec 2007; Stefaan De Roeck +openafs-1.4.6.ebuild:
Security bug #203573: bump to openafs version 1.4.6

13 Dec 2007; Stefaan De Roeck
-files/openafs-ppc64.patch, -openafs-1.4.4_p20070724-r1.ebuild:
Remove obsolete files

06 Dec 2007; Tobias Scherbaum
openafs-1.4.5-r2.ebuild:
ppc stable, bug #199876

01 Dec 2007; Markus Rothe openafs-1.4.5-r2.ebuild:
Stable on ppc64

28 Nov 2007; Stefaan De Roeck
openafs-1.4.5-r2.ebuild:
Stable on alpha

27 Nov 2007; Stefaan De Roeck
openafs-1.4.5-r2.ebuild, openafs-1.5.27.ebuild:
QA + synchronizing 1.5.x with 1.4.x

*openafs-1.4.5-r2 (27 Nov 2007)

27 Nov 2007; Stefaan De Roeck
+files/openafs-alpha-ucontext.patch, -openafs-1.4.5-r1.ebuild,
+openafs-1.4.5-r2.ebuild:
Use ucontext on alpha

26 Nov 2007; Stefaan De Roeck -openafs-1.4.4.ebuild,
-openafs-1.4.4_p20070724.ebuild, -openafs-1.4.5_pre1.ebuild,
-openafs-1.5.19.ebuild:
Remove obsolete versions

23 Nov 2007; Christoph Mende openafs-1.4.5.ebuild:
Stable on amd64 wrt bug #199876

*openafs-1.4.5-r1 (23 Nov 2007)

23 Nov 2007; Stefaan De Roeck
+openafs-1.4.5-r1.ebuild:
Fix filename collision with app-crypt/mit-krb5

23 Nov 2007; Markus Meier openafs-1.4.5.ebuild:
x86 stable, bug #199876

23 Nov 2007; Markus Rothe openafs-1.4.5.ebuild:
Stable on ppc64; bug #199876

*openafs-1.5.27 (15 Nov 2007)
*openafs-1.4.5 (15 Nov 2007)

15 Nov 2007; Stefaan De Roeck -files/fs-fix.patch,
+openafs-1.4.5.ebuild, +openafs-1.5.27.ebuild:
Version bumps

14 Nov 2007; Stefaan De Roeck
-openafs-1.4.0-r2.ebuild, -openafs-1.4.2.ebuild,
-openafs-1.4.3_rc2.ebuild, -openafs-1.4.3_rc3.ebuild:
Remove obsolete versions

01 Nov 2007; Ferris McCormick
openafs-1.4.5_pre1.ebuild:
Add ~sparc as part of Bug #176050

*openafs-1.4.5_pre1 (13 Oct 2007)

13 Oct 2007; Stefaan De Roeck
+openafs-1.4.5_pre1.ebuild:
Version bump, fixes bug #194122

02 Oct 2007; Stefaan De Roeck
openafs-1.4.4_p20070724-r1.ebuild:
Stable on alpha (bug #191216)

23 Sep 2007; Joseph Jezak
openafs-1.4.4_p20070724-r1.ebuild:
Marked ppc/ppc64 stable early to fix klog issues (bug #191216).

19 Sep 2007; Stefaan De Roeck
openafs-1.4.4_p20070724-r1.ebuild:
Use pam.eclass (bug #191946)

19 Sep 2007; Stefaan De Roeck
+files/openafs-ppc64.patch, openafs-1.4.4_p20070724-r1.ebuild:
Fix for ppc64 (bug #191216)

*openafs-1.4.4_p20070724-r1 (19 Sep 2007)

19 Sep 2007; Stefaan De Roeck
+openafs-1.4.4_p20070724-r1.ebuild:
Forgot to apply the patch that makes this a real 20070724 version, fix in r1

13 Sep 2007; Markus Meier
openafs-1.4.4_p20070724.ebuild:
stable on x86, wrt bug #191216

09 Sep 2007; Joseph Jezak
openafs-1.4.4_p20070724.ebuild:
Marked ppc stable for bug #191216.

*openafs-1.4.4_p20070724 (24 Jul 2007)

24 Jul 2007; Stefaan De Roeck
+openafs-1.4.4_p20070724.ebuild:
Add prerelease for compatibility with linux-2.6.22 (bug #185130)

02 Jun 2007; Raúl Porcel openafs-1.2.13-r2.ebuild,
openafs-1.4.0-r2.ebuild, openafs-1.4.2.ebuild, openafs-1.4.3_rc2.ebuild,
openafs-1.4.3_rc3.ebuild, openafs-1.4.4.ebuild, openafs-1.5.19.ebuild:
Drop ia64 keyword as it doesn't work with current glibc, bug 156008

*openafs-1.5.19 (07 May 2007)

07 May 2007; Stefaan De Roeck -openafs-1.5.14.ebuild,
-openafs-1.5.15.ebuild, +openafs-1.5.19.ebuild:
Version bump 1.5.19, remove older versions

06 May 2007; Marius Mauch openafs-1.2.10-r1.ebuild,
openafs-1.2.13-r2.ebuild, openafs-1.4.0-r2.ebuild, openafs-1.4.2.ebuild,
openafs-1.4.3_rc2.ebuild, openafs-1.4.3_rc3.ebuild, openafs-1.4.4.ebuild,
openafs-1.5.14.ebuild, openafs-1.5.15.ebuild:
Replacing einfo with elog

28 Apr 2007; Sven Wegener openafs-1.2.10-r1.ebuild:
Fix *initd, *confd and *envd calls (#17388, #174266)

27 Mar 2007; Chris Gianelloni openafs-1.4.4.ebuild:
Stable on amd64 wrt bug #171662.

26 Mar 2007; Alec Warner openafs-1.2.10-r1.ebuild:
Remove dependency on portage: ref bug 162516

25 Mar 2007; Markus Rothe openafs-1.4.4.ebuild:
Stable on ppc64; bug #171662

25 Mar 2007; Stefaan De Roeck openafs-1.4.4.ebuild:
stable on alpha, bug #171662

25 Mar 2007; Raúl Porcel openafs-1.4.4.ebuild:
x86 stable wrt bug 171662

25 Mar 2007; Tobias Scherbaum
openafs-1.4.4.ebuild:
Stable on ppc wrt bug #171662.

*openafs-1.4.4 (21 Mar 2007)

21 Mar 2007; Stefaan De Roeck +openafs-1.4.4.ebuild:
Version bump directly to 1.4.4, addresses privilege escalation security
advisory at
https://lists.openafs.org/pipermail/openafs-announce/2007/000187.html

*openafs-1.4.3_rc3 (08 Mar 2007)

08 Mar 2007; Stefaan De Roeck
+openafs-1.4.3_rc3.ebuild:
Version bump to new release candidate

*openafs-1.5.15 (15 Feb 2007)

15 Feb 2007; Stefaan De Roeck -openafs-1.5.12.ebuild,
+openafs-1.5.15.ebuild:
Version bump for 1.5.x, remove obsolete ebuild

*openafs-1.4.3_rc2 (15 Feb 2007)

15 Feb 2007; Stefaan De Roeck
-openafs-1.4.3_pre20061220-r1.ebuild, -openafs-1.4.3_rc1.ebuild,
+openafs-1.4.3_rc2.ebuild:
Version bump for 1.4.x, remove obsolete ebuilds

*openafs-1.5.14 (20 Jan 2007)
*openafs-1.4.3_rc1 (20 Jan 2007)

20 Jan 2007; Stefaan De Roeck
+openafs-1.4.3_rc1.ebuild, +openafs-1.5.14.ebuild:
Version bumps to 1.4.3_rc1 and 1.5.14, plus propagating some previous
changes in 1.4 to 1.5

*openafs-1.4.3_pre20061220-r1 (10 Jan 2007)

10 Jan 2007; Stefaan De Roeck +files/fs-fix.patch,
-openafs-1.4.3_pre20061220.ebuild, +openafs-1.4.3_pre20061220-r1.ebuild:
More prototyping, fix bug #158537

10 Jan 2007; Stefaan De Roeck -files/kauth-fix.patch:
Remove obsolete patch

04 Jan 2007; Stefaan De Roeck
openafs-1.4.3_pre20061220.ebuild:
Update license information

24 Dec 2006; Stefaan De Roeck
-openafs-1.4.1-r1.ebuild:
Remove obsolete ebuilds

*openafs-1.4.3_pre20061220 (22 Dec 2006)

22 Dec 2006; Stefaan De Roeck
+openafs-1.4.3_pre20061220.ebuild:
Bump to cvs-checkout, to address the (by now) urgent bug #156842, also fixes
bug #125385, and bug #158588

*openafs-1.5.12 (03 Dec 2006)

03 Dec 2006; Stefaan De Roeck -openafs-1.5.8.ebuild,
+openafs-1.5.12.ebuild:
Version bump of unstable (hard-masked) version to 1.5.12

01 Dec 2006; Joseph Jezak openafs-1.4.2.ebuild:
Marked ppc stable for bug #156008.

25 Nov 2006; Stefaan De Roeck openafs-1.4.2.ebuild:
stable on alpha, bug #156008

24 Nov 2006; Markus Rothe openafs-1.4.2.ebuild:
Stable on ppc64; bug #156008

24 Nov 2006; Christian Faulhammer openafs-1.4.2.ebuild:
stable x86, bug #156008

23 Nov 2006; openafs-1.4.2.ebuild:
stable on amd64

21 Nov 2006; Joseph Jezak openafs-1.4.1-r1.ebuild:
Marked ppc stable for bug #151567.

11 Nov 2006; Stefaan De Roeck
-openafs-1.4.2_rc4.ebuild:
Remove obsolete ebuild

04 Nov 2006; Christian Faulhammer
openafs-1.4.1-r1.ebuild:
stabled x86, bug #151567

19 Oct 2006; Stefaan De Roeck openafs-1.4.2.ebuild:
Re-enabling emake -j1, solving bug #151940

*openafs-1.4.2 (18 Oct 2006)

18 Oct 2006; Stefaan De Roeck
-openafs-1.4.2_rc3.ebuild, +openafs-1.4.2.ebuild:
Revision bump to 1.4.2, remove old 1.4.2_rc3, remove -j1

16 Oct 2006; Markus Rothe openafs-1.4.1-r1.ebuild:
Stable on ppc64; bug #151567

22 Sep 2006; Stefaan De Roeck Manifest:
Add cvs flags such that keyword substitution is not done for
files/kauth-fix.patch

*openafs-1.4.2_rc4 (21 Sep 2006)

21 Sep 2006; Stefaan De Roeck +files/kauth-fix.patch,
+openafs-1.4.2_rc4.ebuild:
Version bump, fix installation of documentation

19 Sep 2006; Stefaan De Roeck
openafs-1.4.2_rc3.ebuild:
enable support for nested pts groups, fixing bug #145339

*openafs-1.5.8 (09 Sep 2006)

09 Sep 2006; Stefaan De Roeck +openafs-1.5.8.ebuild:
Add development release (hard masked), address bug #145339

*openafs-1.4.2_rc3 (09 Sep 2006)

09 Sep 2006; Stefaan De Roeck
+openafs-1.4.2_rc3.ebuild:
Version bump to release candidate

09 Sep 2006; Stefaan De Roeck
openafs-1.4.1-r1.ebuild:
Stable on alpha (wrt bug #124381)

09 Aug 2006; Simon Stelling openafs-1.4.0-r2.ebuild:
stable on amd64

03 Jun 2006; Stefaan De Roeck
-openafs-1.4.0-r3.ebuild, -openafs-1.4.1.ebuild:
Removing obsolete ebuilds

26 May 2006; Stefaan De Roeck -openafs-1.4.0.ebuild,
-openafs-1.4.0-r1.ebuild:
Removing some obsolete ebuilds

*openafs-1.4.1-r1 (26 May 2006)

26 May 2006; Stefaan De Roeck
+openafs-1.4.1-r1.ebuild:
Ensuring usage of CFLAGS, + fixing bugs #131267 and #131333

*openafs-1.4.1 (22 Apr 2006)

22 Apr 2006; Stefaan De Roeck +openafs-1.4.1.ebuild:
Version bump, fixes #126420

30 Mar 2006; Stefaan De Roeck
openafs-1.4.0-r2.ebuild:
Dependency on openafs-kernel changed to latest available revision of given
version (in preparation of stabling new openafs-kernel)

29 Mar 2006; Aron Griffis openafs-1.4.0-r2.ebuild:
Mark 1.4.0-r2 stable on ia64

*openafs-1.4.0-r3 (27 Mar 2006)

27 Mar 2006; Stefaan De Roeck
+openafs-1.4.0-r3.ebuild:
Update dependency in client init script, update patchset to match
openafs-kernel

17 Mar 2006; Stefaan De Roeck
openafs-1.4.0-r2.ebuild:
Added blocking dependency hoping it will alert people not to try glibc 2.4
with openafs (bug #126420)

15 Mar 2006; Markus Rothe openafs-1.4.0-r2.ebuild:
Stable on ppc64; bug #124381

05 Mar 2006; Joshua Jackson openafs-1.4.0-r2.ebuild:
stable on x86; bug #124381

02 Feb 2006; Aron Griffis openafs-1.4.0-r2.ebuild:
Mark 1.4.0-r2 ~ia64 #120840

*openafs-1.4.0-r2 (25 Jan 2006)

25 Jan 2006; Stefaan De Roeck
+openafs-1.4.0-r2.ebuild:
Move mountpoint creation/deletion from ebuild to init-script, fixing bug
#116854

*openafs-1.4.0-r1 (26 Dec 2005)

26 Dec 2005; Stefaan De Roeck
-openafs-1.4.0_rc3.ebuild, -openafs-1.4.0_rc8.ebuild,
+openafs-1.4.0-r1.ebuild:
Fix init script for linux-2.4 (bug #116220), remove older ebuilds

*openafs-1.4.0 (13 Nov 2005)

13 Nov 2005; Stefaan De Roeck
openafs-1.4.0_rc8.ebuild, +openafs-1.4.0.ebuild:
Version bump to 1.4.0, fixing bug #111230, + init-script cleanup, new
CellServDB

*openafs-1.4.0_rc8 (30 Oct 2005)

30 Oct 2005; Stefaan De Roeck
+openafs-1.4.0_rc8.ebuild:
Version bump to 1.4.0_rc8, fixing bugs #77332, #104586, #106811, #108728,
changing init-scripts/config-file names to openafs* i/o afs*

30 Sep 2005; Stefaan De Roeck
openafs-1.2.10-r1.ebuild:
Remove unnecessary global DISABLE_SANDBOX, fixing bug #103184

23 Sep 2005; Markus Rothe openafs-1.4.0_rc3.ebuild:
Added ~ppc64 (bug #100625)

20 Sep 2005; Stefaan De Roeck ChangeLog:
-openafs-1.2.13.ebuild, -openafs-1.2.13-r1.ebuild,
-openafs-1.3.85.ebuild, -openafs-1.4.0_rc2.ebuild,
-openafs-1.4.0_rc2-r1.ebuild:
Remove obsolete ebuilds and patches

*openafs-1.4.0_rc3 (05 Sep 2005)

05 Sep 2005; Stefaan De Roeck
+openafs-1.4.0_rc3.ebuild:
Version bump to 1.4.0_rc3

*openafs-1.4.0_rc2-r1 (02 Sep 2005)
*openafs-1.2.13-r2 (02 Sep 2005)

02 Sep 2005; Stefaan De Roeck
+openafs-1.2.13-r2.ebuild, +openafs-1.4.0_rc2-r1.ebuild:
Fix installation of files in /etc/init.d and /etc/conf.d, install
documentation for 1.4-series on 'use doc'

*openafs-1.4.0_rc2 (02 Sep 2005)
*openafs-1.2.13-r1 (02 Sep 2005)

02 Sep 2005; Stefaan De Roeck
+openafs-1.2.13-r1.ebuild, +openafs-1.4.0_rc2.ebuild:
more modular init scripts, so that client and server are separate; version
bump to 1.4.0 rc2 in the 1.4 family; and a bunch of other tweaks such as:
starting after a local dns server when available, arrange a sensible default
configuration, do parsing of cacheinfo during startup, etc. closing bugs
#97478, #97480, #100837, #101128

29 Jul 2005; David Holm openafs-1.3.85.ebuild:
Added to ~ppc.

29 Jul 2005; Seemant Kulleen openafs-1.2.13.ebuild:
switch to proper kernel checking thingy. thanks dsd

28 Jul 2005; Seemant Kulleen openafs-1.2.13.ebuild,
openafs-1.3.85.ebuild:
make sure it's make -j1

*openafs-1.3.85 (28 Jul 2005)
*openafs-1.2.13 (28 Jul 2005)

28 Jul 2005; Seemant Kulleen metadata.xml,
-openafs-1.2.10-r2.ebuild, +openafs-1.2.13.ebuild, +openafs-1.3.85.ebuild:
version bump to: 1.2.13 in the stable (2.4 kernel) branch and 1.3.85 in the
testing branch for 2.6 kernels. Note that 1.3.85 should work with 2.4
kernels as well. This hard work was done by up and coming Gentoo developer
Stefaan De Roeck .

27 Jul 2005; Seemant Kulleen -openafs-1.2.10.ebuild,
-openafs-1.2.11.ebuild:
remove crufty ebuilds for the impending influx of stefaan's new and sexy stuff

30 May 2005; Sven Wegener openafs-1.2.10-r2.ebuild,
openafs-1.2.11.ebuild:
Moved from gcc.eclass to toolchain-funcs.eclass, bug #92745.

06 Feb 2005; :
Added PROVIDE for virtual/afs

07 Jun 2004; Michael Sterrett
openafs-1.2.10-r2.ebuild, openafs-1.2.11.ebuild:
pkg_preun() -> pkg_prerm()

27 Apr 2004; Aron Griffis openafs-1.2.10-r1.ebuild,
openafs-1.2.10-r2.ebuild, openafs-1.2.10.ebuild, openafs-1.2.11.ebuild:
Add inherit eutils

19 Feb 2004; Ryan Phillips openafs-1.2.10-r2.ebuild,
files/openafs-typechange.patch:
Added Jacob Joseph's old_gid_t -> u16 patch from bug #10952

*openafs-1.2.11 (17 Feb 2004)

17 Feb 2004; openafs-1.2.11.ebuild,
files/openafs-pinstall-execve-env.patch:
added Jon Nials' new ebuild, and pinstall patch. Fixes #37961"

21 Jan 2004; files/afs.rc.rc6:
added a fix by Brett Holcomb regarding the startup file. Fixes #37545

21 Jan 2004; openafs-1.2.10-r2.ebuild:
removed fPIC from compile options

*openafs-1.2.10-r2 (12 Jan 2004)

12 Jan 2004; Aron Griffis openafs-1.2.10-r2.ebuild:
Enable multi-arch support for bug 10952. Thanks to Steven Jenkins for doing
the initial investigation on this.

05 Jan 2004; zhen metadata.xml:
adding to net-fs herd

08 Dec 2003; files/afs.rc.rc6:
added Steven Jenkins patch, #26213

25 Nov 2003; openafs-1.2.10-r1.ebuild:
Added Tobias' fix for the tail problem

24 Nov 2003; openafs-1.2.10-r1.ebuild:
added fixheadtails

24 Nov 2003; openafs-1.2.8.ebuild,
openafs-1.2.9.ebuild:
removed older version

21 Nov 2003; openafs-1.2.10-r1.ebuild,
openafs-1.2.10.ebuild, files/openafs-pinstall-execve-1.2.10.patch:
added execve patch submitted from Ian on bug #31671 for versions >= 1.2.10

21 Nov 2003; openafs-1.2.10-r1.ebuild,
openafs-1.2.10.ebuild, openafs-1.2.8.ebuild, openafs-1.2.9.ebuild:
Replaced reserved word ARCH with SYS_NAME

19 Oct 2003; Ryan Phillips files/afs.rc.rc6:
Added Steven Jenkins' init.d script patch

*openafs-1.2.10-r1 (19 aug 2003)

27 Oct 2003; Ryan Phillips openafs-1.2.10-r1.ebuild :
Removed pinstall patch.

19 Aug 2003; Ryan Phillips openafs-1.2.10-r1.ebuild :
Removed afs.rc, kaserver-patch.diff, openafs-1.2.5-sunrpc-overflow.patch,
openafs-1.2.8-errno.patch since they are not used anymore.

Added Steven Jenkins' pinsta--execve-adhere patch. Fixes #26287

*openafs-1.2.10 (06 aug 2003)

06 Aug 2003; Ryan Phillips openafs-1.2.10.ebuild :
Added Steven Jenkins' update. Fixes #26041 and a provisional fix for #15581

*openafs-1.2.9 (02 Aug 2003)

02 Aug 2003; Seemant Kulleen openafs-1.2.9.ebuild,
openafs-1.3.2-r1.ebuild, openafs-1.3.2.ebuild:
new version in the stable 1.2 series. Ebuild by Bernhard Schmidt
in bug #21688 opened by: Ian . This
ebuild was extensively tested and cleaned up by: Steven Jenkins


12 Jun 2003; openafs-1.2.8.ebuild,
openafs-1.3.2-r1.ebuild, openafs-1.3.2.ebuild:
fix Header

*openafs-1.3.2-r1 (10 Jun 2003)

10 Jun 2003; openafs-1.3.2-r1.ebuild,
openafs-1.3.2.ebuild:
DEPEND on sed >= 4

29 Mar 2003; Ryan Phillips files/kaserver-diff.patch:
Fixes a security hole in openafs.

03 Jan 2003; Daniel Ahlberg files/afs.rc.rc6 :
Fix bug #5634.

06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords

*openafs-1.2.8 (31 Jan 2003)

30 Jul 2003; Ryan Phillips openafs-1.2.8.ebuild :
Added Frederick Grim's patch

31 Jan 2003; Ryan Phillips openafs-1.2.8.ebuild :
new version

*openafs-1.2.6-r1 (1 Oct 2002)

31 Dec 2002; Ryan Phillips openafs-1.2.6-r1.ebuild :
Added Chris Snyder's ebuild mod that updates env.d/

26 Dec 2002; Ryan Phillips openafs-1.2.6-r1.ebuild :

Fixed compile issue. #12628


14 Oct 2002; Daniel Ahlberg openafs-1.2.6-r1.ebuild :
Updated CONFIG_PROTECT_MASK.

1 Oct 2002; Ryan Phillips openafs-1.2.6-r1.ebuild:

Thanks to everyone involved, especially conteb @ alum.rpi.edu for submitting
the patch. Hopefully bug #7775 can be laid to rest.

*openafs-1.2.6 (03 Aug 2002)

14 Oct 2002; Daniel Ahlberg openafs-1.2.6-r1.ebuild :
Updated CONFIG_PROTECT_MASK.

15 Sep 2002; Ryan Phillips openafs-1.2.6.ebuild :

12 Sep 2002; Daniel Ahlberg openafs-1.2.6.ebuild :
Added CONFIG_PROTECT_MASK to allow binaries in /etc to be overwritten.
Closes #5976.

Temporarily disabled the sandbox due to bug #7775

03 Aug 2002; Daniel Ahlberg openafs-1.2.6.ebuild :

03 Aug 2002; Daniel Ahlberg openafs-1.2.6.ebuild :
Security fix.

*openafs-1.2.5-r1 (03 Aug 2002)

02 Aug 2002; Daniel Ahlberg openafs-1.2.5-r1.ebuild :
Security fix.

*openafs-1.3.2 (29 Jul 2002)

14 Oct 2002; Daniel Ahlberg openafs-1.2.6-r1.ebuild :
Updated CONFIG_PROTECT_MASK.

12 Sep 2002; Daniel Ahlberg openafs-1.3.2.ebuild :
Added CONFIG_PROTECT_MASK to allow binaries in /etc to be overwritten.
Closes #5976.

29 Jul 2002; Ryan Phillips openafs-1.3.2.ebuild :
Masked unstable version.

*openafs-1.2.5 (30 Jul 2002)

30 Jul 2002; Ryan Phillips openafs-1.2.5.ebuild :
Added latest stable version

*openafs-1.2.2-r7 (1 Feb 2002)

1 Feb 2002; G.Bevin ChangeLog :
Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.

Manifest

AUX openafs-1.4.5-shared-libs.patch 1965 RMD160 d96a35e1d8dff8c7895e905371e5aa3926ba8abc SHA1 7eab40b4c6be4c6eacdfbb4c21c0bef1fdf639be SHA256 ca5908132d012d8dfb618575e35086f0b6fdc2ebff9edfe7dd993521f23ff84d
AUX openafs-1.4.7-uname.patch 539 RMD160 9bf99d02ce9d6f9db2aeceac8bfc05915ade507a SHA1 41f40a14cbeaffb42148a41da516585fc1a86662 SHA256 a759ec0508156fa087d3421fa3838986ccc925484a6b32c877d8035121b5ed1c
AUX openafs-alpha-ucontext.patch 392 RMD160 a6c1e442a185ce7a70d1ccb58060ce59365e2755 SHA1 b6033c3a4bcea350a4f18a1292e2fd3a747d1e7a SHA256 e498be56da52e8e9dbf37b2a3e568d4f469fe4118cb617f3c0fdada9f0744291
DIST openafs-1.4.6-cvs20080222.patch.bz2 284987 RMD160 de642f29f66844a5ff8fbdd3dd2ec8af41748869 SHA1 5dcf1d85df1a90fc00cf596da76fe75b7a951c14 SHA256 749f32890ffb68b2a1a8348348854140baca781e9996c8b873b7e9d97d5c068a
DIST openafs-1.4.6-doc.tar.bz2 3217027 RMD160 abfb25ed194b1c7a1fe23d9d05336c5ab9ba99d3 SHA1 a77e7fbeff50f34f88e2f833848e9b5dacd6f900 SHA256 fe463510c0cfc773461c7ba16d77ee09d7b3ade2481f8cc58cf233a02aa1f6cc
DIST openafs-1.4.6-src.tar.bz2 12485179 RMD160 856fa915c7847c25dab77b450bc8b0c6f6aeb308 SHA1 39489babe20c42c16ea8f11457de423b2bcca009 SHA256 996c6b53d81bd87f754e9596e24e11e65e6402b6ddab727634e05d73f3bb0ea1
DIST openafs-1.4.7-doc.tar.bz2 3245606 RMD160 59583e0c98d15d8368942355e52ae37e2b91ff44 SHA1 bab28f7b50af8759638997699233d01b27754a35 SHA256 abdc0ba317f247986df966c3f6f3364035303a12b8113152e3efd97b96c0627e
DIST openafs-1.4.7-src.tar.bz2 11493357 RMD160 79f1d0f0c72f8e26537cd344d63ce9f18e870d6d SHA1 dbaefb0e53d1dc0fde2792d04bd6786f36ba7e7b SHA256 580cd1ba03fbdf3362f2b66c0732d3bcf02bebdf19930faa014716b214541314
DIST openafs-1.4.7pre2-doc.tar.bz2 3245870 RMD160 1e8ce6b549ac1dbcb5ed8320c45c4fd848b87033 SHA1 6a03139cd4183b6dcfd53fee23d55d5ee65fe055 SHA256 be6bf2934d39177b610d879edeb0b45c85c7730a8db360b447de0e1921783a15
DIST openafs-1.4.7pre2-src.tar.bz2 11491127 RMD160 71c3f446e906ecb9209f2c00762c708f7e285c7c SHA1 cac7c829f5be84fc4cb35fb59a20799d20cf3915 SHA256 203a4e7a554eef3a5062d6e7a3ab136acb2c245ee26256552404d01ae998c3de
DIST openafs-1.4.7pre3-doc.tar.bz2 3245111 RMD160 8a4702966ca79ea3c494bffd90de9aa7b4431e1c SHA1 f51358f057b120b04f56640b1e5e6f85a44fe060 SHA256 5680955d63aead93a03c58ac5d2ca1c1b86f464b6cb9b5f1fe23595ff488ce2a
DIST openafs-1.4.7pre3-src.tar.bz2 11489391 RMD160 8a47224a1708f5191dd4fc29ded69ab734a69df6 SHA1 765f76a31a2d126d9d072ede67869239f685ce6a SHA256 25582916a693c301afe2504d05ed8f4f6fffb21f0c6d3d0a7ab0b4709b813a91
DIST openafs-1.4.8pre2-doc.tar.bz2 2985326 RMD160 46bf5df7654188994b2723eb2dde4bcf2880f12a SHA1 8b682bce638ca408af0433acb97ed30b422c190f SHA256 0f7ffe813bc1d5152829a1199c08bc4f3caf42ef856b0f9478e19d91b5ba41a1
DIST openafs-1.4.8pre2-src.tar.bz2 11538856 RMD160 5877b2111e1bcb6717c002185213791f19102e0f SHA1 fa7b8057720917b6e9632778ac338c1a1b9589f2 SHA256 c23b7d7ea997d9b50391eb45e5b553886ee77e8047498afd051a98e270194322
DIST openafs-1.5.34-doc.tar.bz2 3268687 RMD160 c7824edf73b4cd8f0929cf7d4fab5b4c17aebb80 SHA1 f449554f6419106cd679238ee2a7211777ae638e SHA256 ab5da4a359e61ef9b81e5059e470ea066c67e6bd8bc2a898f704aff2c42cfef3
DIST openafs-1.5.34-src.tar.bz2 12151866 RMD160 188f79e90de1eaa8457f2c5612cb2512a2e996e5 SHA1 11d9526b46395397a15ea83654584aaf61c7e594 SHA256 015f448bbc05e2b774858a6adfad1a37ce4d4aa402c6f63325c638d0153912b9
DIST openafs-gentoo-0.14.tar.bz2 18293 RMD160 2a7ed8a40395d402de2f972fe0f96154d811e2b6 SHA1 dbff67178e7eae1bdbd5af43f6bedaeb747bd25a SHA256 e27918d395d656659b6f0d288d8a4d2501bd4ca6582824b8f3bbd420b06e6f6c
DIST openafs-gentoo-0.15.tar.bz2 20155 RMD160 40270539fe8992f76953b6ab5f133ec23b017316 SHA1 8f985eb753786c9289721cc7818d96112a5310fc SHA256 3448b50e839826f3fe09ae95a593030a8029c5a769744e74b6d8f3f52f03f940
EBUILD openafs-1.4.6.ebuild 4341 RMD160 a22676428837ff00762f7530c7245a6b405c6949 SHA1 a4222de4091ceba7512914346a60d2bebed79ad6 SHA256 e4bd02cf1c37bb7d74e1f727088bf02c18d1214d85b3b0f0021160e6dbca5904
EBUILD openafs-1.4.6_p20080222.ebuild 4897 RMD160 2a42fe6ec58c61093ca4c4f0d4f004f04fb18224 SHA1 c7b44d54ce797d35742cde9d4087c85200b0ca01 SHA256 4072d0810a6f58456d955952ba0fa47599a455b0a4a78f337bc7b1b3fcdc2c93
EBUILD openafs-1.4.7.ebuild 4855 RMD160 d6521059c8e68f7e8bc5b154098c7a09c05a9dad SHA1 9fb8364aa973cf36643b716890acc543a29a57ef SHA256 38f5f87025241aed0d65a9f15fc5399301e30d2c6681bdfc14796c0100b790ba
EBUILD openafs-1.4.7_pre2.ebuild 4731 RMD160 bddec3a989a2552d38e796613c0552f8ac27e4bf SHA1 621b7acad370a60b1b29ce6ae9369216b1b66496 SHA256 0695d970015c8572d07e19bbabe368b48c036ac99f17bf6ba63fd92d87f4b9e0
EBUILD openafs-1.4.7_pre3-r1.ebuild 4833 RMD160 0d1111a7373946e8698d5264af7448873978a86e SHA1 841b6a9cf604470bda9ae5ae8134943087cea3d2 SHA256 0a2d6b323b52bb3510b79391b484a0298e967366ba01f3f6f21e7250a1ac912f
EBUILD openafs-1.4.7_pre3.ebuild 4731 RMD160 bd7bf12ae227f02ee0ef9aeb1814dca98f6420fd SHA1 56a15e7cb03a600ce2fddfa3940b6cc0e9b46f4e SHA256 5fd89d240488b173733b4533c3039dec29cf7b2446124b0d1b7229e2f814a750
EBUILD openafs-1.4.8_pre2.ebuild 4643 RMD160 a9ea10f7504a6873436cf09eb1cd53831fbea5dc SHA1 60e31f59ca75a2c264171410047df26a3be3ab8d SHA256 9bf282f13a533e16853e3a6ce61722381f0a797f91330b17b96c526a8e4b2548
EBUILD openafs-1.5.34.ebuild 4288 RMD160 d2198b8e8c5aa4f19c50c37b8437156405b2a850 SHA1 54d2ed75c695dcd41400fe43fb1307cca4abaaac SHA256 9dd45f5d87c98437ebc2438110f36fde84d1fd6dc047d17f922622763d7c8f73
MISC ChangeLog 23778 RMD160 60000d26aa6894dca0c6cfa4a8f6efce485df284 SHA1 1bdc31f9ecf658b2da62b6b5e79632da6b3287f0 SHA256 51b2251e6c5d293c13f2b2e1fc14cbe182ace9c92f7e43c8a2189920952178f5
MISC metadata.xml 254 RMD160 1bef8b94265bf2b400fb6235b3e43b504b8d2b71 SHA1 a4ad632b650953fa9c9f203a9c55f58ddba37705 SHA256 90d7dcb6aede67bf64f610984a31fc03573512de9e241db42acb32601373db62

files

metadata.xml




net-fs

stefaan@gentoo.org
Stefaan De Roeck

openafs-1.4.6.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.6.ebuild,v 1.5 2008/01/02 14:01:23 stefaan Exp $

inherit flag-o-matic eutils toolchain-funcs versionator pam

PATCHVER=0.14
DESCRIPTION="The OpenAFS distributed file system"
HOMEPAGE="http://www.openafs.org/"
SRC_URI="http://openafs.org/dl/${PV}/${P}-src.tar.bz2
doc? ( http://openafs.org/dl/${PV}/${P}-doc.tar.bz2 )
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2"

LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc"
SLOT="0"
KEYWORDS="alpha amd64 ppc ppc64 ~sparc x86"
IUSE="debug kerberos pam doc"

RDEPEND="~net-fs/openafs-kernel-${PV}
pam? ( sys-libs/pam )
kerberos? ( virtual/krb5 )"

PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)
CONFDIR=${WORKDIR}/gentoo/configs
SCRIPTDIR=${WORKDIR}/gentoo/scripts

src_unpack() {
unpack ${A}; cd "${S}"

# Apply patches to apply chosen compiler settings, fix the hardcoded paths
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg
EPATCH_SUFFIX="patch" epatch ${PATCHDIR}

epatch "${FILESDIR}"/openafs-alpha-ucontext.patch

sed -i 's/^[ \t]*XCFLAGS.*//' src/cf/osconf.m4

./regen.sh || die "Failed: regenerating configure script"
}

src_compile() {
# cannot use "use_with" macro, as --without-krb5-config crashes the econf
local myconf=""
if use kerberos; then
myconf="--with-krb5-conf=$(type -p krb5-config)"
fi

# fix linux version at 2.6
AFS_SYSKVERS=26 \
XCFLAGS="${CFLAGS}" \
econf \
$(use_enable pam) \
$(use_enable debug) \
--enable-largefile-fileserver \
--enable-supergroups \
--disable-kernel-module \
${myconf} || die econf

emake -j1 all_nolibafs || die "Build failed"
}

src_install() {
make DESTDIR="${D}" install_nolibafs || die "Installing failed"

# pam_afs and pam_afs.krb have been installed in irregular locations, fix
if use pam; then
dopammod "${D}"/usr/$(get_libdir)/pam_afs*
rm -f "${D}"/usr/$(get_libdir)/pam_afs*
fi

# compile_et collides with com_err. Remove it from this package.
rm "${D}"/usr/bin/compile_et

# avoid collision with mit_krb5's version of kpasswd
(cd "${D}"/usr/bin; mv kpasswd kpasswd_afs)
use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1)

# minimal documentation
dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB

# documentation package
if use doc; then
use pam && doman src/pam/pam_afs.5

cp -pPR doc/* "${D}"/usr/share/doc/${PF}
fi

# Gentoo related scripts
newconfd ${CONFDIR}/openafs-client openafs-client
newconfd ${CONFDIR}/openafs-server openafs-server
newinitd ${SCRIPTDIR}/openafs-client openafs-client
newinitd ${SCRIPTDIR}/openafs-server openafs-server

# used directories: client
keepdir /etc/openafs
keepdir /var/cache/openafs

# used directories: server
keepdir /etc/openafs/server
diropts -m0700
keepdir /var/lib/openafs
keepdir /var/lib/openafs/db
diropts -m0755
keepdir /var/lib/openafs/logs

# link logfiles to /var/log
dosym ../lib/openafs/logs /var/log/openafs
}

pkg_preinst() {
## Somewhat intelligently install default configuration files
## (when they are not present)
# CellServDB
if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \
|| grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null
then
cp ${CONFDIR}/CellServDB "${D}"etc/openafs
fi
# cacheinfo: use a default location cache, 200 megabyte in size
# (should be safe for about any root partition, the user can increase
# the size as required)
if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then
echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo
fi
# ThisCell: default to "openafs.org"
if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then
echo "openafs.org" > "${D}"etc/openafs/ThisCell
fi
}

pkg_postinst() {
elog
elog "This installation should work out of the box (at least the"
elog "client part doing global afs-cell browsing, unless you had"
elog "a previous and different configuration). If you want to"
elog "set up your own cell or modify the standard config,"
elog "please have a look at the Gentoo OpenAFS documentation"
elog "(warning: it is not yet up to date wrt the new file locations)"
elog
elog "The documentation can be found at:"
elog " http://www.gentoo.org/doc/en/openafs.xml"
}

openafs-1.4.6_p20080222.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.6_p20080222.ebuild,v 1.4 2008/05/04 13:41:50 maekke Exp $

inherit flag-o-matic eutils toolchain-funcs versionator pam

PATCHVER=0.14
MY_PV_DATE=${PV#*_p}
MY_PV=${PV%_p*}
MY_P=${PN}-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="The OpenAFS distributed file system"
HOMEPAGE="http://www.openafs.org/"
SRC_URI="http://openafs.org/dl/${PN}/${MY_PV}/${MY_P}-src.tar.bz2
doc? ( http://openafs.org/dl/${PN}/${MY_PV}/${MY_P}-doc.tar.bz2 )
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2
mirror://gentoo/${PN}-${MY_PV}-cvs${MY_PV_DATE}.patch.bz2"

LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc"
SLOT="0"
KEYWORDS="~alpha amd64 ~ppc ~ppc64 ~sparc x86"
IUSE="debug kerberos pam doc"

RDEPEND="~net-fs/openafs-kernel-${PV}
pam? ( sys-libs/pam )
kerberos? ( virtual/krb5 )"

PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)
CONFDIR=${WORKDIR}/gentoo/configs
SCRIPTDIR=${WORKDIR}/gentoo/scripts

src_unpack() {
unpack ${A}; cd "${S}"

# Apply patches to apply chosen compiler settings, fix the hardcoded paths
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg
EPATCH_SUFFIX="patch" epatch ${PATCHDIR}

# patch up to the specified cvs version
epatch "${DISTDIR}"/${MY_P}-cvs${MY_PV_DATE}.patch.bz2

# enable UCONTEXT on alpha
epatch "${FILESDIR}"/openafs-alpha-ucontext.patch
# don't use mapfiles to strip symbols (bug #202489)
epatch "${FILESDIR}"/openafs-1.4.5-shared-libs.patch

# disable XCFLAGS override
sed -i 's/^[ \t]*XCFLAGS.*//' src/cf/osconf.m4
# disable compiler choice override
sed -i 's/^[ \t]\+\(CC\|CCOBJ\|MT_CC\)="[^ ]*\(.*\)"/\1="${CC}\2"/' src/cf/osconf.m4

./regen.sh || die "Failed: regenerating configure script"
}

src_compile() {
# cannot use "use_with" macro, as --without-krb5-config crashes the econf
local myconf=""
if use kerberos; then
myconf="--with-krb5-conf=$(type -p krb5-config)"
fi

# fix linux version at 2.6
AFS_SYSKVERS=26 \
XCFLAGS="${CFLAGS}" \
econf \
$(use_enable pam) \
$(use_enable debug) \
--enable-largefile-fileserver \
--enable-supergroups \
--disable-kernel-module \
${myconf} || die econf

emake -j1 all_nolibafs || die "Build failed"
}

src_install() {
make DESTDIR="${D}" install_nolibafs || die "Installing failed"

# pam_afs and pam_afs.krb have been installed in irregular locations, fix
if use pam; then
dopammod "${D}"/usr/$(get_libdir)/pam_afs*
rm -f "${D}"/usr/$(get_libdir)/pam_afs*
fi

# compile_et collides with com_err. Remove it from this package.
rm "${D}"/usr/bin/compile_et

# avoid collision with mit_krb5's version of kpasswd
(cd "${D}"/usr/bin; mv kpasswd kpasswd_afs)
use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1)

# minimal documentation
dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB

# documentation package
if use doc; then
use pam && doman src/pam/pam_afs.5

cp -pPR doc/* "${D}"/usr/share/doc/${PF}
fi

# Gentoo related scripts
newconfd ${CONFDIR}/openafs-client openafs-client
newconfd ${CONFDIR}/openafs-server openafs-server
newinitd ${SCRIPTDIR}/openafs-client openafs-client
newinitd ${SCRIPTDIR}/openafs-server openafs-server

# used directories: client
keepdir /etc/openafs
keepdir /var/cache/openafs

# used directories: server
keepdir /etc/openafs/server
diropts -m0700
keepdir /var/lib/openafs
keepdir /var/lib/openafs/db
diropts -m0755
keepdir /var/lib/openafs/logs

# link logfiles to /var/log
dosym ../lib/openafs/logs /var/log/openafs
}

pkg_preinst() {
## Somewhat intelligently install default configuration files
## (when they are not present)
# CellServDB
if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \
|| grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null
then
cp ${CONFDIR}/CellServDB "${D}"etc/openafs
fi
# cacheinfo: use a default location cache, 200 megabyte in size
# (should be safe for about any root partition, the user can increase
# the size as required)
if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then
echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo
fi
# ThisCell: default to "openafs.org"
if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then
echo "openafs.org" > "${D}"etc/openafs/ThisCell
fi
}

pkg_postinst() {
elog
elog "This installation should work out of the box (at least the"
elog "client part doing global afs-cell browsing, unless you had"
elog "a previous and different configuration). If you want to"
elog "set up your own cell or modify the standard config,"
elog "please have a look at the Gentoo OpenAFS documentation"
elog "(warning: it is not yet up to date wrt the new file locations)"
elog
elog "The documentation can be found at:"
elog " http://www.gentoo.org/doc/en/openafs.xml"
}

openafs-1.4.7.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.7.ebuild,v 1.2 2008/09/22 11:37:08 stefaan Exp $

inherit flag-o-matic eutils toolchain-funcs versionator pam

PATCHVER=0.14
DESCRIPTION="The OpenAFS distributed file system"
HOMEPAGE="http://www.openafs.org/"
SRC_URI="http://openafs.org/dl/${PV}/${P}-src.tar.bz2
doc? ( http://openafs.org/dl/${PV}/${P}-doc.tar.bz2 )
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2"

LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc"
SLOT="0"
KEYWORDS="alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug kerberos pam doc"

RDEPEND="~net-fs/openafs-kernel-${PV}
pam? ( sys-libs/pam )
kerberos? ( virtual/krb5 )"

PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)
CONFDIR=${WORKDIR}/gentoo/configs
SCRIPTDIR=${WORKDIR}/gentoo/scripts

src_unpack() {
unpack ${A}; cd "${S}"

# Apply patches to apply chosen compiler settings, fix the hardcoded paths
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg
EPATCH_EXCLUDE="006_all_ppc64.patch" \
EPATCH_SUFFIX="patch" epatch ${PATCHDIR}

# enable UCONTEXT on alpha
epatch "${FILESDIR}"/openafs-alpha-ucontext.patch
# don't use mapfiles to strip symbols (bug #202489)
epatch "${FILESDIR}"/openafs-1.4.5-shared-libs.patch
# use uname i.o. arch (bug #211378)
epatch "${FILESDIR}"/openafs-1.4.7-uname.patch

# disable XCFLAGS override
sed -i 's/^[ \t]*XCFLAGS.*/:/' src/cf/osconf.m4
# disable compiler choice override
sed -i 's/^[ \t]\+\(CC\|CCOBJ\|MT_CC\)="[^ ]*\(.*\)"/\1="${CC}\2"/' src/cf/osconf.m4

# fix autoconf cludge (bug #218234)
sed -i 's/^AC_\(AIX\|MINIX\)$//' acinclude.m4

./regen.sh || die "Failed: regenerating configure script"
}

src_compile() {
# cannot use "use_with" macro, as --without-krb5-config crashes the econf
local myconf=""
if use kerberos; then
myconf="--with-krb5-conf=$(type -p krb5-config)"
fi

# AFS_SYSKVERS: fix linux version at 2.6
AFS_SYSKVERS=26 \
XCFLAGS="${CFLAGS}" \
econf \
$(use_enable pam) \
$(use_enable debug) \
--enable-largefile-fileserver \
--enable-supergroups \
--disable-kernel-module \
${myconf} || die econf

emake -j1 all_nolibafs || die "Build failed"
}

src_install() {
make DESTDIR="${D}" install_nolibafs || die "Installing failed"

# pam_afs and pam_afs.krb have been installed in irregular locations, fix
if use pam; then
dopammod "${D}"/usr/$(get_libdir)/pam_afs*
rm -f "${D}"/usr/$(get_libdir)/pam_afs*
fi

# compile_et collides with com_err. Remove it from this package.
rm "${D}"/usr/bin/compile_et

# avoid collision with mit_krb5's version of kpasswd
(cd "${D}"/usr/bin; mv kpasswd kpasswd_afs)
use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1)

# minimal documentation
dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB

# documentation package
if use doc; then
use pam && doman src/pam/pam_afs.5

cp -pPR doc/* "${D}"/usr/share/doc/${PF}
fi

# Gentoo related scripts
newconfd ${CONFDIR}/openafs-client openafs-client
newconfd ${CONFDIR}/openafs-server openafs-server
newinitd ${SCRIPTDIR}/openafs-client openafs-client
newinitd ${SCRIPTDIR}/openafs-server openafs-server

# used directories: client
keepdir /etc/openafs
keepdir /var/cache/openafs

# used directories: server
keepdir /etc/openafs/server
diropts -m0700
keepdir /var/lib/openafs
keepdir /var/lib/openafs/db
diropts -m0755
keepdir /var/lib/openafs/logs

# link logfiles to /var/log
dosym ../lib/openafs/logs /var/log/openafs
}

pkg_preinst() {
## Somewhat intelligently install default configuration files
## (when they are not present)
# CellServDB
if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \
|| grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null
then
cp ${CONFDIR}/CellServDB "${D}"etc/openafs
fi
# cacheinfo: use a default location cache, 200 megabyte in size
# (should be safe for about any root partition, the user can increase
# the size as required)
if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then
echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo
fi
# ThisCell: default to "openafs.org"
if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then
echo "openafs.org" > "${D}"etc/openafs/ThisCell
fi
}

pkg_postinst() {
elog
elog "This installation should work out of the box (at least the"
elog "client part doing global afs-cell browsing, unless you had"
elog "a previous and different configuration). If you want to"
elog "set up your own cell or modify the standard config,"
elog "please have a look at the Gentoo OpenAFS documentation"
elog "(warning: it is not yet up to date wrt the new file locations)"
elog
elog "The documentation can be found at:"
elog " http://www.gentoo.org/doc/en/openafs.xml"
}

openafs-1.4.7_pre2.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.7_pre2.ebuild,v 1.1 2008/03/31 21:47:54 stefaan Exp $

inherit flag-o-matic eutils toolchain-funcs versionator pam

PATCHVER=0.14
MY_PV=${PV/_pre/pre}
MY_P=${PN}-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="The OpenAFS distributed file system"
HOMEPAGE="http://www.openafs.org/"
SRC_URI="http://openafs.org/dl/candidate/${MY_PV}/${MY_P}-src.tar.bz2
doc? ( http://openafs.org/dl/candidate/${MY_PV}/${MY_P}-doc.tar.bz2 )
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2"

LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug kerberos pam doc"

RDEPEND="~net-fs/openafs-kernel-${PV}
pam? ( sys-libs/pam )
kerberos? ( virtual/krb5 )"

PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)
CONFDIR=${WORKDIR}/gentoo/configs
SCRIPTDIR=${WORKDIR}/gentoo/scripts

src_unpack() {
unpack ${A}; cd "${S}"

# Apply patches to apply chosen compiler settings, fix the hardcoded paths
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg
EPATCH_SUFFIX="patch" epatch ${PATCHDIR}

# enable UCONTEXT on alpha
epatch "${FILESDIR}"/openafs-alpha-ucontext.patch
# don't use mapfiles to strip symbols (bug #202489)
epatch "${FILESDIR}"/openafs-1.4.5-shared-libs.patch

# disable XCFLAGS override
sed -i 's/^[ \t]*XCFLAGS.*/:/' src/cf/osconf.m4
# disable compiler choice override
sed -i 's/^[ \t]\+\(CC\|CCOBJ\|MT_CC\)="[^ ]*\(.*\)"/\1="${CC}\2"/' src/cf/osconf.m4

./regen.sh || die "Failed: regenerating configure script"
}

src_compile() {
# cannot use "use_with" macro, as --without-krb5-config crashes the econf
local myconf=""
if use kerberos; then
myconf="--with-krb5-conf=$(type -p krb5-config)"
fi

# fix linux version at 2.6
AFS_SYSKVERS=26 \
XCFLAGS="${CFLAGS}" \
econf \
$(use_enable pam) \
$(use_enable debug) \
--enable-largefile-fileserver \
--enable-supergroups \
--disable-kernel-module \
${myconf} || die econf

emake -j1 all_nolibafs || die "Build failed"
}

src_install() {
make DESTDIR="${D}" install_nolibafs || die "Installing failed"

# pam_afs and pam_afs.krb have been installed in irregular locations, fix
if use pam; then
dopammod "${D}"/usr/$(get_libdir)/pam_afs*
rm -f "${D}"/usr/$(get_libdir)/pam_afs*
fi

# compile_et collides with com_err. Remove it from this package.
rm "${D}"/usr/bin/compile_et

# avoid collision with mit_krb5's version of kpasswd
(cd "${D}"/usr/bin; mv kpasswd kpasswd_afs)
use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1)

# minimal documentation
dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB

# documentation package
if use doc; then
use pam && doman src/pam/pam_afs.5

cp -pPR doc/* "${D}"/usr/share/doc/${PF}
fi

# Gentoo related scripts
newconfd ${CONFDIR}/openafs-client openafs-client
newconfd ${CONFDIR}/openafs-server openafs-server
newinitd ${SCRIPTDIR}/openafs-client openafs-client
newinitd ${SCRIPTDIR}/openafs-server openafs-server

# used directories: client
keepdir /etc/openafs
keepdir /var/cache/openafs

# used directories: server
keepdir /etc/openafs/server
diropts -m0700
keepdir /var/lib/openafs
keepdir /var/lib/openafs/db
diropts -m0755
keepdir /var/lib/openafs/logs

# link logfiles to /var/log
dosym ../lib/openafs/logs /var/log/openafs
}

pkg_preinst() {
## Somewhat intelligently install default configuration files
## (when they are not present)
# CellServDB
if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \
|| grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null
then
cp ${CONFDIR}/CellServDB "${D}"etc/openafs
fi
# cacheinfo: use a default location cache, 200 megabyte in size
# (should be safe for about any root partition, the user can increase
# the size as required)
if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then
echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo
fi
# ThisCell: default to "openafs.org"
if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then
echo "openafs.org" > "${D}"etc/openafs/ThisCell
fi
}

pkg_postinst() {
elog
elog "This installation should work out of the box (at least the"
elog "client part doing global afs-cell browsing, unless you had"
elog "a previous and different configuration). If you want to"
elog "set up your own cell or modify the standard config,"
elog "please have a look at the Gentoo OpenAFS documentation"
elog "(warning: it is not yet up to date wrt the new file locations)"
elog
elog "The documentation can be found at:"
elog " http://www.gentoo.org/doc/en/openafs.xml"
}

openafs-1.4.7_pre3-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.7_pre3-r1.ebuild,v 1.1 2008/05/01 14:41:50 stefaan Exp $

inherit flag-o-matic eutils toolchain-funcs versionator pam

PATCHVER=0.14
MY_PV=${PV/_pre/pre}
MY_P=${PN}-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="The OpenAFS distributed file system"
HOMEPAGE="http://www.openafs.org/"
SRC_URI="http://openafs.org/dl/candidate/${MY_PV}/${MY_P}-src.tar.bz2
doc? ( http://openafs.org/dl/candidate/${MY_PV}/${MY_P}-doc.tar.bz2 )
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2"

LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug kerberos pam doc"

RDEPEND="~net-fs/openafs-kernel-${PV}
pam? ( sys-libs/pam )
kerberos? ( virtual/krb5 )"

PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)
CONFDIR=${WORKDIR}/gentoo/configs
SCRIPTDIR=${WORKDIR}/gentoo/scripts

src_unpack() {
unpack ${A}; cd "${S}"

# Apply patches to apply chosen compiler settings, fix the hardcoded paths
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg
EPATCH_SUFFIX="patch" epatch ${PATCHDIR}

# enable UCONTEXT on alpha
epatch "${FILESDIR}"/openafs-alpha-ucontext.patch
# don't use mapfiles to strip symbols (bug #202489)
epatch "${FILESDIR}"/openafs-1.4.5-shared-libs.patch

# disable XCFLAGS override
sed -i 's/^[ \t]*XCFLAGS.*/:/' src/cf/osconf.m4
# disable compiler choice override
sed -i 's/^[ \t]\+\(CC\|CCOBJ\|MT_CC\)="[^ ]*\(.*\)"/\1="${CC}\2"/' src/cf/osconf.m4

# fix autoconf cludge (bug #218234)
sed -i 's/^AC_\(AIX\|MINIX\)$//' acinclude.m4

./regen.sh || die "Failed: regenerating configure script"
}

src_compile() {
# cannot use "use_with" macro, as --without-krb5-config crashes the econf
local myconf=""
if use kerberos; then
myconf="--with-krb5-conf=$(type -p krb5-config)"
fi

# AFS_SYSKVERS: fix linux version at 2.6
AFS_SYSKVERS=26 \
XCFLAGS="${CFLAGS}" \
econf \
$(use_enable pam) \
$(use_enable debug) \
--enable-largefile-fileserver \
--enable-supergroups \
--disable-kernel-module \
${myconf} || die econf

emake -j1 all_nolibafs || die "Build failed"
}

src_install() {
make DESTDIR="${D}" install_nolibafs || die "Installing failed"

# pam_afs and pam_afs.krb have been installed in irregular locations, fix
if use pam; then
dopammod "${D}"/usr/$(get_libdir)/pam_afs*
rm -f "${D}"/usr/$(get_libdir)/pam_afs*
fi

# compile_et collides with com_err. Remove it from this package.
rm "${D}"/usr/bin/compile_et

# avoid collision with mit_krb5's version of kpasswd
(cd "${D}"/usr/bin; mv kpasswd kpasswd_afs)
use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1)

# minimal documentation
dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB

# documentation package
if use doc; then
use pam && doman src/pam/pam_afs.5

cp -pPR doc/* "${D}"/usr/share/doc/${PF}
fi

# Gentoo related scripts
newconfd ${CONFDIR}/openafs-client openafs-client
newconfd ${CONFDIR}/openafs-server openafs-server
newinitd ${SCRIPTDIR}/openafs-client openafs-client
newinitd ${SCRIPTDIR}/openafs-server openafs-server

# used directories: client
keepdir /etc/openafs
keepdir /var/cache/openafs

# used directories: server
keepdir /etc/openafs/server
diropts -m0700
keepdir /var/lib/openafs
keepdir /var/lib/openafs/db
diropts -m0755
keepdir /var/lib/openafs/logs

# link logfiles to /var/log
dosym ../lib/openafs/logs /var/log/openafs
}

pkg_preinst() {
## Somewhat intelligently install default configuration files
## (when they are not present)
# CellServDB
if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \
|| grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null
then
cp ${CONFDIR}/CellServDB "${D}"etc/openafs
fi
# cacheinfo: use a default location cache, 200 megabyte in size
# (should be safe for about any root partition, the user can increase
# the size as required)
if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then
echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo
fi
# ThisCell: default to "openafs.org"
if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then
echo "openafs.org" > "${D}"etc/openafs/ThisCell
fi
}

pkg_postinst() {
elog
elog "This installation should work out of the box (at least the"
elog "client part doing global afs-cell browsing, unless you had"
elog "a previous and different configuration). If you want to"
elog "set up your own cell or modify the standard config,"
elog "please have a look at the Gentoo OpenAFS documentation"
elog "(warning: it is not yet up to date wrt the new file locations)"
elog
elog "The documentation can be found at:"
elog " http://www.gentoo.org/doc/en/openafs.xml"
}

openafs-1.4.7_pre3.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.7_pre3.ebuild,v 1.1 2008/04/10 10:22:14 stefaan Exp $

inherit flag-o-matic eutils toolchain-funcs versionator pam

PATCHVER=0.14
MY_PV=${PV/_pre/pre}
MY_P=${PN}-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="The OpenAFS distributed file system"
HOMEPAGE="http://www.openafs.org/"
SRC_URI="http://openafs.org/dl/candidate/${MY_PV}/${MY_P}-src.tar.bz2
doc? ( http://openafs.org/dl/candidate/${MY_PV}/${MY_P}-doc.tar.bz2 )
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2"

LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug kerberos pam doc"

RDEPEND="~net-fs/openafs-kernel-${PV}
pam? ( sys-libs/pam )
kerberos? ( virtual/krb5 )"

PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)
CONFDIR=${WORKDIR}/gentoo/configs
SCRIPTDIR=${WORKDIR}/gentoo/scripts

src_unpack() {
unpack ${A}; cd "${S}"

# Apply patches to apply chosen compiler settings, fix the hardcoded paths
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg
EPATCH_SUFFIX="patch" epatch ${PATCHDIR}

# enable UCONTEXT on alpha
epatch "${FILESDIR}"/openafs-alpha-ucontext.patch
# don't use mapfiles to strip symbols (bug #202489)
epatch "${FILESDIR}"/openafs-1.4.5-shared-libs.patch

# disable XCFLAGS override
sed -i 's/^[ \t]*XCFLAGS.*/:/' src/cf/osconf.m4
# disable compiler choice override
sed -i 's/^[ \t]\+\(CC\|CCOBJ\|MT_CC\)="[^ ]*\(.*\)"/\1="${CC}\2"/' src/cf/osconf.m4

./regen.sh || die "Failed: regenerating configure script"
}

src_compile() {
# cannot use "use_with" macro, as --without-krb5-config crashes the econf
local myconf=""
if use kerberos; then
myconf="--with-krb5-conf=$(type -p krb5-config)"
fi

# fix linux version at 2.6
AFS_SYSKVERS=26 \
XCFLAGS="${CFLAGS}" \
econf \
$(use_enable pam) \
$(use_enable debug) \
--enable-largefile-fileserver \
--enable-supergroups \
--disable-kernel-module \
${myconf} || die econf

emake -j1 all_nolibafs || die "Build failed"
}

src_install() {
make DESTDIR="${D}" install_nolibafs || die "Installing failed"

# pam_afs and pam_afs.krb have been installed in irregular locations, fix
if use pam; then
dopammod "${D}"/usr/$(get_libdir)/pam_afs*
rm -f "${D}"/usr/$(get_libdir)/pam_afs*
fi

# compile_et collides with com_err. Remove it from this package.
rm "${D}"/usr/bin/compile_et

# avoid collision with mit_krb5's version of kpasswd
(cd "${D}"/usr/bin; mv kpasswd kpasswd_afs)
use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1)

# minimal documentation
dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB

# documentation package
if use doc; then
use pam && doman src/pam/pam_afs.5

cp -pPR doc/* "${D}"/usr/share/doc/${PF}
fi

# Gentoo related scripts
newconfd ${CONFDIR}/openafs-client openafs-client
newconfd ${CONFDIR}/openafs-server openafs-server
newinitd ${SCRIPTDIR}/openafs-client openafs-client
newinitd ${SCRIPTDIR}/openafs-server openafs-server

# used directories: client
keepdir /etc/openafs
keepdir /var/cache/openafs

# used directories: server
keepdir /etc/openafs/server
diropts -m0700
keepdir /var/lib/openafs
keepdir /var/lib/openafs/db
diropts -m0755
keepdir /var/lib/openafs/logs

# link logfiles to /var/log
dosym ../lib/openafs/logs /var/log/openafs
}

pkg_preinst() {
## Somewhat intelligently install default configuration files
## (when they are not present)
# CellServDB
if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \
|| grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null
then
cp ${CONFDIR}/CellServDB "${D}"etc/openafs
fi
# cacheinfo: use a default location cache, 200 megabyte in size
# (should be safe for about any root partition, the user can increase
# the size as required)
if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then
echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo
fi
# ThisCell: default to "openafs.org"
if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then
echo "openafs.org" > "${D}"etc/openafs/ThisCell
fi
}

pkg_postinst() {
elog
elog "This installation should work out of the box (at least the"
elog "client part doing global afs-cell browsing, unless you had"
elog "a previous and different configuration). If you want to"
elog "set up your own cell or modify the standard config,"
elog "please have a look at the Gentoo OpenAFS documentation"
elog "(warning: it is not yet up to date wrt the new file locations)"
elog
elog "The documentation can be found at:"
elog " http://www.gentoo.org/doc/en/openafs.xml"
}

openafs-1.4.8_pre2.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.8_pre2.ebuild,v 1.1 2008/10/08 21:59:02 stefaan Exp $

inherit flag-o-matic eutils toolchain-funcs versionator pam

PATCHVER=0.15
MY_PV=${PV/_pre/pre}
MY_P=${PN}-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="The OpenAFS distributed file system"
HOMEPAGE="http://www.openafs.org/"
SRC_URI="http://openafs.org/dl/candidate/${MY_PV}/${MY_P}-src.tar.bz2
doc? ( http://openafs.org/dl/candidate/${MY_PV}/${MY_P}-doc.tar.bz2 )
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2"

LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug kerberos pam doc"

RDEPEND="~net-fs/openafs-kernel-${PV}
pam? ( sys-libs/pam )
kerberos? ( virtual/krb5 )"

PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)
CONFDIR=${WORKDIR}/gentoo/configs
SCRIPTDIR=${WORKDIR}/gentoo/scripts

src_unpack() {
unpack ${A}; cd "${S}"

# Apply patches to apply chosen compiler settings, fix the hardcoded paths
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg
EPATCH_SUFFIX="patch" epatch ${PATCHDIR}

# disable XCFLAGS override
sed -i 's/^[ \t]*XCFLAGS.*/:/' src/cf/osconf.m4
# disable compiler choice override
sed -i 's/^[ \t]\+\(CC\|CCOBJ\|MT_CC\)="[^ ]*\(.*\)"/\1="${CC}\2"/' src/cf/osconf.m4

# fix autoconf cludge (bug #218234)
sed -i 's/^AC_\(AIX\|MINIX\)$//' acinclude.m4

./regen.sh || die "Failed: regenerating configure script"
}

src_compile() {
# cannot use "use_with" macro, as --without-krb5-config crashes the econf
local myconf=""
if use kerberos; then
myconf="--with-krb5-conf=$(type -p krb5-config)"
fi

# AFS_SYSKVERS: fix linux version at 2.6
AFS_SYSKVERS=26 \
XCFLAGS="${CFLAGS}" \
econf \
$(use_enable pam) \
$(use_enable debug) \
--enable-largefile-fileserver \
--enable-supergroups \
--disable-kernel-module \
${myconf} || die econf

emake -j1 all_nolibafs || die "Build failed"
}

src_install() {
make DESTDIR="${D}" install_nolibafs || die "Installing failed"

# pam_afs and pam_afs.krb have been installed in irregular locations, fix
if use pam; then
dopammod "${D}"/usr/$(get_libdir)/pam_afs*
rm -f "${D}"/usr/$(get_libdir)/pam_afs*
fi

# compile_et collides with com_err. Remove it from this package.
rm "${D}"/usr/bin/compile_et

# avoid collision with mit_krb5's version of kpasswd
(cd "${D}"/usr/bin; mv kpasswd kpasswd_afs)
use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1)

# minimal documentation
dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB

# documentation package
if use doc; then
use pam && doman src/pam/pam_afs.5

cp -pPR doc/* "${D}"/usr/share/doc/${PF}
fi

# Gentoo related scripts
newconfd ${CONFDIR}/openafs-client openafs-client
newconfd ${CONFDIR}/openafs-server openafs-server
newinitd ${SCRIPTDIR}/openafs-client openafs-client
newinitd ${SCRIPTDIR}/openafs-server openafs-server

# used directories: client
keepdir /etc/openafs
keepdir /var/cache/openafs

# used directories: server
keepdir /etc/openafs/server
diropts -m0700
keepdir /var/lib/openafs
keepdir /var/lib/openafs/db
diropts -m0755
keepdir /var/lib/openafs/logs

# link logfiles to /var/log
dosym ../lib/openafs/logs /var/log/openafs
}

pkg_preinst() {
## Somewhat intelligently install default configuration files
## (when they are not present)
# CellServDB
if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \
|| grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null
then
cp ${CONFDIR}/CellServDB "${D}"etc/openafs
fi
# cacheinfo: use a default location cache, 200 megabyte in size
# (should be safe for about any root partition, the user can increase
# the size as required)
if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then
echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo
fi
# ThisCell: default to "openafs.org"
if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then
echo "openafs.org" > "${D}"etc/openafs/ThisCell
fi
}

pkg_postinst() {
elog
elog "This installation should work out of the box (at least the"
elog "client part doing global afs-cell browsing, unless you had"
elog "a previous and different configuration). If you want to"
elog "set up your own cell or modify the standard config,"
elog "please have a look at the Gentoo OpenAFS documentation"
elog "(warning: it is not yet up to date wrt the new file locations)"
elog
elog "The documentation can be found at:"
elog " http://www.gentoo.org/doc/en/openafs.xml"
}

openafs-1.5.34.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.5.34.ebuild,v 1.1 2008/03/25 11:22:42 stefaan Exp $

inherit flag-o-matic eutils toolchain-funcs versionator pam

PATCHVER=0.14
DESCRIPTION="The OpenAFS distributed file system"
HOMEPAGE="http://www.openafs.org/"
SRC_URI="http://openafs.org/dl/${PV}/${P}-src.tar.bz2
doc? ( http://openafs.org/dl/${PV}/${P}-doc.tar.bz2 )
mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2"

LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
IUSE="debug kerberos pam doc"

RDEPEND="~net-fs/openafs-kernel-${PV}
pam? ( sys-libs/pam )
kerberos? ( virtual/krb5 )"

PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)
CONFDIR=${WORKDIR}/gentoo/configs
SCRIPTDIR=${WORKDIR}/gentoo/scripts

src_unpack() {
unpack ${A}; cd "${S}"

# Apply patches to apply chosen compiler settings, fix the hardcoded paths
# to be more FHS friendly, and the fix the incorrect typecasts for va_arg
EPATCH_SUFFIX="patch" epatch ${PATCHDIR}

sed -i 's/^[ \t]*XCFLAGS.*//' src/cf/osconf.m4

./regen.sh || die "Failed: regenerating configure script"
}

src_compile() {
# cannot use "use_with" macro, as --without-krb5-config crashes the econf
local myconf=""
if use kerberos; then
myconf="--with-krb5-conf=$(type -p krb5-config)"
fi

# fix linux version at 2.6
AFS_SYSKVERS=26 \
XCFLAGS="${CFLAGS}" \
econf \
$(use_enable pam) \
$(use_enable debug) \
--enable-largefile-fileserver \
--enable-supergroups \
--disable-kernel-module \
${myconf} || die econf

emake -j1 all_nolibafs || die "Build failed"
}

src_install() {
make DESTDIR="${D}" install_nolibafs || die "Installing failed"

# pam_afs and pam_afs.krb have been installed in irregular locations, fix
if use pam; then
dopammod "${D}"/usr/$(get_libdir)/pam_afs*
rm -f "${D}"/usr/$(get_libdir)/pam_afs*
fi

# compile_et collides with com_err. Remove it from this package.
rm "${D}"/usr/bin/compile_et

# avoid collision with mit_krb5's version of kpasswd
(cd "${D}"/usr/bin; mv kpasswd kpasswd_afs)
use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1)

# minimal documentation
dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB

# documentation package
if use doc; then
use pam && doman src/pam/pam_afs.5

cp -pPR doc/* "${D}"/usr/share/doc/${PF}
fi

# Gentoo related scripts
newconfd ${CONFDIR}/openafs-client openafs-client
newconfd ${CONFDIR}/openafs-server openafs-server
newinitd ${SCRIPTDIR}/openafs-client openafs-client
newinitd ${SCRIPTDIR}/openafs-server openafs-server

# used directories: client
keepdir /etc/openafs
keepdir /var/cache/openafs

# used directories: server
keepdir /etc/openafs/server
diropts -m0700
keepdir /var/lib/openafs
keepdir /var/lib/openafs/db
diropts -m0755
keepdir /var/lib/openafs/logs

# link logfiles to /var/log
dosym ../lib/openafs/logs /var/log/openafs
}

pkg_preinst() {
## Somewhat intelligently install default configuration files
## (when they are not present)
# CellServDB
if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \
|| grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null
then
cp ${CONFDIR}/CellServDB "${D}"etc/openafs
fi
# cacheinfo: use a default location cache, 200 megabyte in size
# (should be safe for about any root partition, the user can increase
# the size as required)
if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then
echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo
fi
# ThisCell: default to "openafs.org"
if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then
echo "openafs.org" > "${D}"etc/openafs/ThisCell
fi
}

pkg_postinst() {
elog
elog "This installation should work out of the box (at least the"
elog "client part doing global afs-cell browsing, unless you had"
elog "a previous and different configuration). If you want to"
elog "set up your own cell or modify the standard config,"
elog "please have a look at the Gentoo OpenAFS documentation"
elog "(warning: it is not yet up to date wrt the new file locations)"
elog
elog "The documentation can be found at:"
elog " http://www.gentoo.org/doc/en/openafs.xml"
}