summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefaan De Roeck <stefaan@gentoo.org>2008-04-05 09:27:59 +0000
committerStefaan De Roeck <stefaan@gentoo.org>2008-04-05 09:27:59 +0000
commitfa878363dddc3b9a8f64f2bc7e38d25a97163bf4 (patch)
treecaacd9aced82f6ffcbce74f7b725f156882440e2 /net-fs/openafs
parentadd 70-seahorse-agent from the overlay, fix bug #205000 (diff)
downloadhistorical-fa878363dddc3b9a8f64f2bc7e38d25a97163bf4.tar.gz
historical-fa878363dddc3b9a8f64f2bc7e38d25a97163bf4.tar.bz2
historical-fa878363dddc3b9a8f64f2bc7e38d25a97163bf4.zip
Remove lots of obsolete versions
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-fs/openafs')
-rw-r--r--net-fs/openafs/ChangeLog11
-rw-r--r--net-fs/openafs/files/CellServDB2
-rw-r--r--net-fs/openafs/files/README219
-rw-r--r--net-fs/openafs/files/ThisCell1
-rw-r--r--net-fs/openafs/files/afs.rc.rc6223
-rw-r--r--net-fs/openafs/files/openafs-pinstall-execve-1.2.10.patch58
-rw-r--r--net-fs/openafs/openafs-1.2.10-r1.ebuild108
-rw-r--r--net-fs/openafs/openafs-1.2.13-r2.ebuild312
-rw-r--r--net-fs/openafs/openafs-1.4.5-r2.ebuild142
-rw-r--r--net-fs/openafs/openafs-1.4.5.ebuild143
-rw-r--r--net-fs/openafs/openafs-1.4.7_pre1.ebuild151
-rw-r--r--net-fs/openafs/openafs-1.5.27.ebuild140
-rw-r--r--net-fs/openafs/openafs-1.5.33.ebuild140
13 files changed, 10 insertions, 1640 deletions
diff --git a/net-fs/openafs/ChangeLog b/net-fs/openafs/ChangeLog
index 878da38fd448..b19068dcb317 100644
--- a/net-fs/openafs/ChangeLog
+++ b/net-fs/openafs/ChangeLog
@@ -1,6 +1,15 @@
# 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.143 2008/03/31 21:47:54 stefaan Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.144 2008/04/05 09:27:58 stefaan Exp $
+
+ 04 Apr 2008; Stefaan De Roeck <stefaan@gentoo.org>
+ -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)
diff --git a/net-fs/openafs/files/CellServDB b/net-fs/openafs/files/CellServDB
deleted file mode 100644
index 24b2f7251c8f..000000000000
--- a/net-fs/openafs/files/CellServDB
+++ /dev/null
@@ -1,2 +0,0 @@
->netlabs #Cell name
-10.0.0.1 #storage
diff --git a/net-fs/openafs/files/README b/net-fs/openafs/files/README
deleted file mode 100644
index f35074161e38..000000000000
--- a/net-fs/openafs/files/README
+++ /dev/null
@@ -1,219 +0,0 @@
-README openafs for gentoo linux
--------------------------------
-
-Changelog:
-
-04.06.2001 initial release
-
-
-1. Overview
------------
-
-- There's an openafs faq available on
- http://www.angelfire.com/hi/plutonic/afs-faq.html
-- Openafs main page is at http://www.openafs.com
-- AFS was originally developed by Transarc which is now owned by IBM.
- You can find some information about AFS on
- http://www.transarc.ibm.com/Product/EFS/AFS/index.html
-
-2. Client installation
-----------------------
-
-NOTE: You need to have access to a running afs-server in your network.
-First edit ThisCell and CellServDB according to your local network structure.
-If you're unsure what to put there, either read the afs documentation or contact
-your local administrators. Just run emerge openafs-1.0.4.ebuild on your gentoo
-linux machine to build the client. After building add the afs start script with
-rc-update add afs. Now you're ready to go !!
-
-3. Server installation
-----------------------
-
-NOTE: This is a quick quick beginnings manual !!! If you really want to use afs
-download and print out the afs documentation !!!
-
-3.1 Installing your afs server
-
- 1. Startup main afs server process
- /usr/afs/bin/bosserver -noauth &
- Verify that /usr/vice/etc/ThisCell and CellServDB got created
-
- 2. Give your cell a name !!
- /usr/afs/bin/bos setcellname <server name> <cell name> -noauth
- e.g.: /usr/afs/bin/bos setcellname darks.net-labs.local gentoo -noauth
- Verify that ThisCell and CellServDB got updated !!!
-
- 3. Startup authentification, backup, protection and volume loction servers
-
- /usr/afs/bin/bos create <server name> kaserver simple /usr/afs/bin/kaserver -cell <cell name> -noauth
- e.g: /usr/afs/bin/bos create darks.net-labs.local kaserver simple /usr/afs/bin/kaserver -cell gentoo -noauth
-
- /usr/afs/bin/bos create <server name> buserver simple /usr/afs/bin/buserver -cell <cell name> -noauth
- e.g: /usr/afs/bin/bos create darks.net-labs.local buserver simple /usr/afs/bin/buserver -cell gentoo -noauth
-
- /usr/afs/bin/bos create <server name> ptserver simple /usr/afs/bin/ptserver -cell <cell name> -noauth
- e.g: /usr/afs/bin/bos create darks.net-labs.local ptserver simple /usr/afs/bin/ptserver -cell gentoo -noauth
-
- /usr/afs/bin/bos create <server name> vlserver simple /usr/afs/bin/vlserver -cell <cell name> -noauth
- e.g: /usr/afs/bin/bos create darks.net-labs.local vlserver simple /usr/afs/bin/vlserver -cell gentoo -noauth
-
- Verify that all servers are running:
- /usr/afs/bin/bos status <server name> -noauth
- e.g.: /usr/afs/bin/bos status darks.net-labs.local -noauth
-
- 4. Initialize Cell Security
- .. which basically means creating afs admin account.
-
- /usr/afs/bin/kas -cell <cell name> -noauth
- This should give you the ka> prompt.
-
- ka> create afs
- initial_password:
- Verifying, please re-enter initial_password:
- ka> create admin
- initial_password:
- Verifying, please re-enter initial_password:
- ka>
-
- Verfiy that users got created and set admin flag for user admin:
-
- ka> examine afs
-
- User data for afs
- key (0) cksum is 2651715259, last cpw: Mon Jun 4 20:49:30 2001
- password will never expire.
- An unlimited number of unsuccessful authentications is permitted.
- entry never expires. Max ticket lifetime 100.00 hours.
- last mod on Mon Jun 4 20:49:30 2001 by <none>
- permit password reuse
- ka> setfields admin -flags admin
- ka> examine admin
-
- User data for admin (ADMIN)
- key (0) cksum is 2651715259, last cpw: Mon Jun 4 20:49:59 2001
- password will never expire.
- An unlimited number of unsuccessful authentications is permitted.
- entry never expires. Max ticket lifetime 25.00 hours.
- last mod on Mon Jun 4 20:51:10 2001 by <none>
- permit password reuse
- ka>
-
- Create users in the afs enviroment:
-
- /usr/afs/bin/bos adduser <server name> admin -cell <cell name> -noauth
- e.g.: /usr/afs/bin/bos adduser darks.net-labs.local admin -cell gentoo -noauth
-
- /usr/afs/bin/bos addkey <server name> -kvno 0 -cell <cell name> -noauth
- e.g.: /usr/afs/bin/bos addkey darks.net-labs.local -kvno 0 -cell gentoo -noauth
- input key:
- Retype input key:
- NOTE: you need to give the password you provided for the afs account above
-
- Create a protection database entry for the admin user:
-
- /usr/afs/bin/pts createuser -name admin -cell <cell name> [-id <AFS UID>] -noauth
- MATCH UNIX ID'S AND AFS UID'S WITH THE -id FLAG !!
- e.g.: /usr/afs/bin/pts createuser -name admin -cell gentoo -noauth
- User admin has id 1
-
- /usr/afs/bin/pts adduser admin system:administrators -cell <cell name> -noauth
- e.g.: /usr/afs/bin/pts adduser admin system:administrators -cell gentoo -noauth
-
- Check admin privileges:
-
- /usr/afs/bin/pts membership admin -cell gentoo -noauth
- Groups admin (id: 1) is a member of:
- system:administrators
-
- Restart afs processes:
-
- /usr/afs/bin/bos restart <server name> -all -cell <cell name> -noauth
- e.g.: /usr/afs/bin/bos restart darks.net-labs.local -all -cell gentoo -noauth
-
- 5. Start the file and volume servers and the salvager
-
- /usr/afs/bin/bos create <server name> fs fs /usr/afs/bin/fileserver /usr/afs/bin/volserver /usr/afs/bin/salvager -cell <cell name> -noauth
- e.g.: /usr/afs/bin/bos create darks.net-labs.local fs fs /usr/afs/bin/fileserver /usr/afs/bin/volserver /usr/afs/bin/salvager -cell gentoo -noauth
-
- Verify that all processe are running:
-
- /usr/afs/bin/bos status darks.net-labs.local -long -noauth
- Instance kaserver, (type is simple) currently running normally.
- Process last started at Mon Jun 4 21:07:17 2001 (2 proc starts)
- Last exit at Mon Jun 4 21:07:17 2001
- Command 1 is '/usr/afs/bin/kaserver'
-
- Instance buserver, (type is simple) currently running normally.
- Process last started at Mon Jun 4 21:07:17 2001 (2 proc starts)
- Last exit at Mon Jun 4 21:07:17 2001
- Command 1 is '/usr/afs/bin/buserver'
-
- Instance ptserver, (type is simple) currently running normally.
- Process last started at Mon Jun 4 21:07:17 2001 (2 proc starts)
- Last exit at Mon Jun 4 21:07:17 2001
- Command 1 is '/usr/afs/bin/ptserver'
-
- Instance vlserver, (type is simple) currently running normally.
- Process last started at Mon Jun 4 21:07:17 2001 (2 proc starts)
- Last exit at Mon Jun 4 21:07:17 2001
- Command 1 is '/usr/afs/bin/vlserver'
-
- Instance fs, (type is fs) currently running normally.
- Auxiliary status is: file server running.
- Process last started at Mon Jun 4 21:09:30 2001 (2 proc starts)
- Command 1 is '/usr/afs/bin/fileserver'
- Command 2 is '/usr/afs/bin/volserver'
- Command 3 is '/usr/afs/bin/salvager'
-
- 6. Create the main volume or synchronize with existing servers
-
- a) This is the first server:
-
- /usr/afs/bin/vos create <server name> <partition name> root.afs -cell <cell name> -noauth
- e.g.: /usr/afs/bin/vos create darks.net-labs.local /vicepa root.afs -cell gentoo -noauth
-
- b) You're installing a backup server:
-
- /usr/afs/bin/vos syncvldb <server name> -cell <cell name> -verbose -noauth
- /usr/afs/bin/vos syncserv <server name> -cell <cell name> -verbose -noauth
-
- 7. Start the Update Server
-
- /usr/afs/bin/bos create <server name> upserver simple "/usr/afs/bin/upserver -crypt /usr/afs/etc -clear /usr/afs/bin" -cell <cell name> -noauth
- e.g.: /usr/afs/bin/bos create darks.net-labs.local upserver simple "/usr/afs/bin/upserver -crypt /usr/afs/etc -clear /usr/afs/bin" -cell gentoo -noauth
-
- 8. Modifiy /etc/afs/afs.conf
-
- Edit afs.conf to start afs server
-
- That's it !! Your afs server should hopefully be up and running !!!
-
-3.2 Configuring the Top Level of the AFS filespace
-
- 1. Let anyuser lookup /afs
- /usr/afs/bin/fs setacl /afs system:anyuser rl
-
- 2. Create root volume
-
- /usr/afs/bin/vos create <server name> <partition name> root.cell
- /usr/afs/bin/fs mkmount /afs/cellname root.cell
- e.g.: /usr/afs/bin/fs mkmount /afs/gentoo root.cell
- /usr/afs/bin/fs setacl /afs/cellname system:anyuser rl
-
- Create read/write mountpoint
-
- /usr/afs/bin/fs mkmount /afs/.cellname root.cell -rw
- e.g.: /usr/afs/bin/fs mkmount /afs/.gentoo root.cell -rw
-
-
-OK .. you're ready to go !! Now it's time to read AFS documentation and learn how to
-create volumes, create users and groups, set acl's and so on .. Have Fun :))
-
-
-
-
-
-
-
-
-
diff --git a/net-fs/openafs/files/ThisCell b/net-fs/openafs/files/ThisCell
deleted file mode 100644
index 618723244591..000000000000
--- a/net-fs/openafs/files/ThisCell
+++ /dev/null
@@ -1 +0,0 @@
-netlabs \ No newline at end of file
diff --git a/net-fs/openafs/files/afs.rc.rc6 b/net-fs/openafs/files/afs.rc.rc6
deleted file mode 100644
index e3bbe3d5a804..000000000000
--- a/net-fs/openafs/files/afs.rc.rc6
+++ /dev/null
@@ -1,223 +0,0 @@
-#! /sbin/runscript
-#RCUPDATE:34:77:This line is required for script management
-
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-#
-# This software has been released under the terms of the IBM Public
-# License. For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# AFS Start and stop AFS components
-#
-#
-# chkconfig: 345 60 20
-# description: AFS is a distributed file system which provides location
-# transparency, caching and secure authentication.
-# Additional configuration can be done in the /etc/sysconfig/afs
-# file. Read the documentation in that file for more information.
-#
-# Note that AFS does not use a pid file in /var/run. It is turned off by
-# unmounting /afs.
-#
-# Modified by Holger Brueckner <darks@fet.org> for gentoo-linux
-
-# Gather up options and post startup script name, if present
-if [ -f /etc/afs/afs.conf ]; then
- . /etc/afs/afs.conf
-fi
-
-
-# dependecies
-depend() {
- need net
-}
-
-# check for ext2 partition
-
-check_ext2() {
- PART=`cat /proc/mounts | grep vice | grep ext2 | awk '{print $1}'`
- if [ -z "$PART" ]
- then
- echo ">>> PLEASE CREATE A EXT2 (no reiserfs) PARTITION (of aprox. 200M)"
- echo ">>> AND MOUNT IT TO /USR/VICE/CACHE !!!"
- return 1
- fi
-}
-
-# check if cacheinfo exist, otherwise create it !!
-
-check_cacheinfo(){
- [ ! -f /usr/vice/etc/cacheinfo ] && {
- PART=`cat /proc/mounts | grep vice | grep ext2 | awk '{print $1}'`
- CACHESIZE=`df $PART | grep ^/ | awk '{print $4}'`
- CACHESIZE=`expr $CACHESIZE \* 9`
- CACHESIZE=`expr $CACHESIZE / 10`
- echo "/afs:/usr/vice/cache:$CACHESIZE" > /usr/vice/etc/cacheinfo
- }
-}
-
-# is_on returns 1 if value of arg is "on"
-is_on() {
- if test "$1" = "on" ; then return 0
- else return 1
- fi
-}
-
-# If choose_client can't correctly determine which client to use, set
-# LIBAFS manually.
-choose_client() {
-
- # Use the second field of the uname -v output instead of just
- # doing a match on the whole thing to protect against matching
- # a timezone named SMP -- I don't know of one, but let's be
- # paranoid.
-
- set X `uname -v`; shift
- case $2 in
- SMP) MP=.mp ;; # MP system
- *) MP= ;; # SP system
- esac
-
- # For now, just use uname -r to get the module version.
- VERSION=`uname -r`
-
- LIBAFS=libafs-$VERSION$MP.o
-}
-
-#
-# Find prefix symbol to use with insmod. We find the unregister_filesystem
-# string from /proc/ksyms since we know it's there. If /proc/ksyms does not
-# exist, we print that info to the console and use the uname -v output to
-# decide on a prefix.
-# unregister_filesystem_Rsmp_b240cad8 is a typcial SMP version string from
-# a kernel built from ftp.kernel.org
-#
-
-KSYMS_FILE=/proc/ksyms
-SEARCH_STR="unregister_filesystem"
-DEFAULT_SMP_PREFIX="smp_" # Redhat kernels need "smp" instead
-PREFIX="" # none needed for UP with <= 1Gig memory
-
-set_prefix()
-{
- h='[0-9a-fA-F]'
- h8="$h$h$h$h$h$h$h$h"
- prefix_set=0
-
- set X `fgrep $SEARCH_STR $KSYMS_FILE 2> /dev/null`; shift
- str=$2
- case $str in
- ${SEARCH_STR}_R$h8)
- # No prefix required
- ;;
- $SEARCH_STR)
- # No versioning in kernel symbols
- ;;
- ${SEARCH_STR}_R*$h8)
- suffix=${str#${SEARCH_STR}_R}
- PREFIX=${suffix%$h8}
- ;;
- *)
- case $str in
- '')
- echo afsd: Cannot find \"$SEARCH_STR\" in file $KSYMS_FILE
- ;;
- *)
- echo afsd: Malformed kernel version symbol \"$str\"
- ;;
- esac
-
- echo Guessing prefix from output of uname -v
- set X `uname -v`; shift
- case $2 in
- SMP)
- PREFIX=$DEFAULT_SMP_PREFIX
- ;;
- esac
- ;;
- esac
-}
-
-
-MODLOADDIR=/usr/vice/etc/modload
-# load_client loads the AFS client module if it's not already loaded.
-load_client() {
- # If LIBAFS is set, use it.
- if [ -z "$LIBAFS" ] ; then
- # Try to determine the right client.
- choose_client
- fi
-
- if [ ! -f $MODLOADDIR/$LIBAFS ] ; then
- echo AFS module $MODLOADDIR/$LIBAFS does not exist. Not starting AFS.
- return 1
- fi
-
- # use the prefix command if required
- set_prefix
- /sbin/insmod ${PREFIX:+-P $PREFIX} -f -m $MODLOADDIR/$LIBAFS > $MODLOADDIR/libafs.map 2>&1
-}
-
-start(){
- # Load kernel extensions
-
- if check_ext2 ; then :
- else
- eend 1 "Error: No ext2 partition for afs cache"
- fi
- check_cacheinfo
-
- ebegin "Starting AFS services"
-
- if load_client ; then :
- else
- echo Failed to load AFS client, not starting AFS services.
- eend "Error Starting AFS client"
- fi
-
- # Start bosserver, it if exists
- if is_on $AFS_SERVER && test -x /usr/afs/bin/bosserver ; then
- /usr/afs/bin/bosserver
- fi
-
- # Start AFS client
- if is_on $AFS_CLIENT && test -x /usr/sbin/afsd ; then
- /usr/sbin/afsd ${OPTIONS} 1>&2
- STATUS=$?
- # Start AFS version of inetd.conf if present.
- #if test -f /usr/afsws/etc/inetd.conf -a -x /usr/afsws/etc/inetd.afs ; then
- # /usr/afsws/etc/inetd.afs /usr/afsws/etc/inetd.conf
- #fi
- $AFS_POST_INIT
- fi
- eend $STATUS "Error starting AFS"
-
-}
-
-stop() {
- # Stop AFS
- ebegin "Stopping AFS services"
-
- if is_on $AFS_CLIENT ; then
-# killall inetd.afs
- umount /afs
- STATUS=$?
- fi
-
- if is_on $AFS_SERVER && test -x /usr/afs/bin/bos ; then
- echo "Stopping AFS bosserver"
- /usr/afs/bin/bos shutdown localhost -localauth -wait
- killall -HUP bosserver
- fi
-
- LIBAFS=`/sbin/lsmod | fgrep libafs`
- if [ -n "$LIBAFS" ] ; then
- LIBAFS=`echo $LIBAFS | awk 'BEGIN { FS = " " } { print $1 }'`
- /sbin/rmmod $LIBAFS
- STATUS=$?
- fi
- eend $STATUS "Error starting AFS"
-
-}
-
diff --git a/net-fs/openafs/files/openafs-pinstall-execve-1.2.10.patch b/net-fs/openafs/files/openafs-pinstall-execve-1.2.10.patch
deleted file mode 100644
index 4fd9c4e61cc3..000000000000
--- a/net-fs/openafs/files/openafs-pinstall-execve-1.2.10.patch
+++ /dev/null
@@ -1,58 +0,0 @@
---- openafs/src/pinstall/install.c 2003-07-25 04:40:16.000000000 +0000
-+++ openafs/src/pinstall/install.c 2003-11-17 21:47:15.000000000 +0000
-@@ -172,6 +172,9 @@
- char *iname, *oname; {
- int pid;
- pid_t status;
-+ static char *env[] = {
-+ 0,
-+ };
- static char *strip[] = {
- "strip", 0, 0,
- };
-@@ -190,7 +193,7 @@
- case 0: /* child */
- copy[1] = iname;
- copy[2] = oname;
-- execve("/bin/cp", copy, (char **)0);
-+ execve("/bin/cp", copy, env);
- perror("/bin/cp");
- exit(1);
-
-@@ -236,7 +239,7 @@
- #else
- #define STRIP_BIN "/bin/strip"
- #endif
-- execve(STRIP_BIN, strip, (char **)0);
-+ execve(STRIP_BIN, strip, env);
- perror(STRIP_BIN);
- exit(1);
-
-@@ -281,6 +284,9 @@
- quickStrip (iname, oname, ignored, copy_only)
- char *iname, *oname; {
- int pid, status;
-+ static char *env[] = {
-+ 0,
-+ };
- static char *strip[] = {
- "strip", 0, 0,
- };
-@@ -299,7 +305,7 @@
- case 0: /* child */
- copy[1] = iname;
- copy[2] = oname;
-- execve("/bin/cp", copy, 0);
-+ execve("/bin/cp", copy, env);
- perror("/bin/cp");
- exit(1);
-
-@@ -337,7 +343,7 @@
-
- case 0: /* child */
- strip[1] = oname;
-- execve("/bin/strip", strip, 0);
-+ execve("/bin/strip", strip, env);
- perror("/bin/strip");
- exit(1);
-
diff --git a/net-fs/openafs/openafs-1.2.10-r1.ebuild b/net-fs/openafs/openafs-1.2.10-r1.ebuild
deleted file mode 100644
index 1b2140a998e3..000000000000
--- a/net-fs/openafs/openafs-1.2.10-r1.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.2.10-r1.ebuild,v 1.18 2007/07/12 05:38:40 mr_bones_ Exp $
-
-inherit check-kernel fixheadtails eutils
-
-DESCRIPTION="The AFS 3 scalable distributed file system"
-HOMEPAGE="http://www.openafs.org/"
-SRC_URI="http://openafs.org/dl/openafs/${PV}/${P}-src.tar.bz2"
-
-SLOT="0"
-LICENSE="IPL-1"
-KEYWORDS="-* x86"
-IUSE=""
-
-DEPEND="virtual/linux-sources
- >=sys-libs/ncurses-5.2
- >=sys-libs/pam-0.75
- >=sys-apps/gawk-3.1.1"
-
-SYS_NAME=i386_linux24
-
-pkg_setup() {
- if is_2_5_kernel || is_2_6_kernel
- then
- die "OpenAFS does not yet support 2.5 and 2.6 kernels"
- fi
-}
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
- ht_fix_file "acinclude.m4"
- ht_fix_file "config.guess"
- ht_fix_file "src/afsd/afs.rc.linux"
- ht_fix_file "aclocal.m4"
- ht_fix_file "configure"
- ht_fix_file "configure-libafs"
- epatch ${FILESDIR}/openafs-pinstall-execve-1.2.10.patch
-}
-
-src_compile() {
- econf \
- --with-afs-sysname=i386_linux24 \
- --enable-transarc-paths || die
-
- make || die
-}
-
-src_install () {
- make dest || die
-
- # Client
-
- cd ${S}/${SYS_NAME}/dest/root.client/usr/vice
-
- insinto /etc/afs/modload
- doins etc/modload/*
- insinto /etc/afs/C
- doins etc/C/*
-
- insinto /etc/afs
- doins ${FILESDIR}/{ThisCell,CellServDB}
- doins etc/afs.conf
-
- mount -t afs | awk '{ exit $3 == "/afs" }' && keepdir /afs
-
- newinitd ${FILESDIR}/afs.rc.rc6 afs
-
- dosbin etc/afsd
-
- # Client Bin
- cd ${S}/${SYS_NAME}/dest
- exeinto /usr/afsws/bin
- doexe bin/*
-
- exeinto /etc/afs/afsws
- doexe etc/*
-
- cp -a include lib ${D}/usr/afsws
- dosym /usr/afsws/lib/afs/libtermlib.a /usr/afsws/lib/afs/libnull.a
-
- # Server
- cd ${S}/${SYS_NAME}/dest/root.server/usr/afs
- exeinto /usr/afs/bin
- doexe bin/*
-
- dodir /usr/vice
- dosym /etc/afs /usr/vice/etc
- dosym /etc/afs/afsws /usr/afsws/etc
-
- dodoc ${FILESDIR}/README
-
- dodir /etc/env.d
- echo 'CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws"' \
- >> ${D}/etc/env.d/01${PN}
- echo 'PATH=/usr/afsws/bin:/etc/afs/afsws' \
- >> ${D}/etc/env.d/01${PN}
- echo 'ROOTPATH=/usr/afsws/bin:/etc/afs/afsws:/usr/afs/bin' \
- >> ${D}/etc/env.d/01${PN}
-}
-
-pkg_postinst () {
- elog "UPDATE CellServDB and ThisCell to your needs !!"
- elog "FOLLOW THE INSTRUCTIONS IN AFS QUICK BEGINNINGS"
- elog "PAGE >45 TO DO INITIAL SERVER SETUP"
-}
diff --git a/net-fs/openafs/openafs-1.2.13-r2.ebuild b/net-fs/openafs/openafs-1.2.13-r2.ebuild
deleted file mode 100644
index 8ed5f2f9b708..000000000000
--- a/net-fs/openafs/openafs-1.2.13-r2.ebuild
+++ /dev/null
@@ -1,312 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.2.13-r2.ebuild,v 1.5 2007/07/12 05:38:40 mr_bones_ Exp $
-
-inherit fixheadtails flag-o-matic eutils toolchain-funcs versionator
-
-PATCHVER=0.2b
-DESCRIPTION="The OpenAFS distributed file system"
-HOMEPAGE="http://www.openafs.org/"
-SRC_URI="http://openafs.org/dl/${PN}/${PV}/${P}-src.tar.bz2
- mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2
- http://dev.gentoo.org/~stefaan/distfiles/${PN}-gentoo-${PATCHVER}.tar.bz2"
-
-LICENSE="IPL-1"
-SLOT="0"
-KEYWORDS="~alpha ~x86"
-IUSE="pam"
-
-RDEPEND="=net-fs/openafs-kernel-${PV}*"
-
-PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)
-CONFDIR=${WORKDIR}/gentoo/configs
-SCRIPTDIR=${WORKDIR}/gentoo/scripts
-
-src_unpack() {
- unpack ${A}; cd ${S}
-
- ht_fix_file "acinclude.m4"
- ht_fix_file "config.guess"
- ht_fix_file "src/afsd/afs.rc.linux"
- ht_fix_file "aclocal.m4"
- ht_fix_file "configure"
- ht_fix_file "configure-libafs"
-
- EPATCH_SUFFIX="patch" epatch ${PATCHDIR}
-}
-
-src_compile() {
- econf \
- --enable-full-vos-listvol-switch \
- || die econf
-
- emake -j1 CC="$(tc-getCC) -fPIC" MT_CC="$(tc-getCC)" 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
- dodir /$(get_libdir)/security
- mv ${D}/usr/$(get_libdir)/pam_afs* ${D}/$(get_libdir)/security
- 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
- mv ${D}/usr/bin/kpasswd ${D}/usr/bin/kpasswd_afs
-
- # install manuals
- doman src/man/*.?
- doman src/aklog/aklog.1
- use pam && doman src/pam/pam_afs.5
-
- # minimal documentation
- dodoc ${CONFDIR}/README ${CONFDIR}/ChangeLog*
-
- # documentation package
- if use doc; then
- cp -pPR doc/* ${D}/usr/share/doc/${P}
- fi
-
- # Gentoo related scripts
- newconfd ${CONFDIR}/afs-client afs-client
- newconfd ${CONFDIR}/afs-server afs-server
- newinitd ${SCRIPTDIR}/afs-client afs-client
- newinitd ${SCRIPTDIR}/afs-server afs-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
- keepdir /var/lib/openafs/logs
-}
-
-migrate_to_fhs() {
- # conventions:
- # only automatically migrate if the destination directories are
- # as of yet non-existant
-
- # path translations
- local oldafsconfdir=${ROOT}usr/afs/etc
- local newafsconfdir=${ROOT}etc/openafs/server
- local oldviceetcdir=${ROOT}usr/vice/etc
- local newviceetcdir=${ROOT}etc/openafs
- local oldafslocaldir=${ROOT}usr/afs/local
- local newafslocaldir=${ROOT}var/lib/openafs
- local oldafsdbdir=${ROOT}usr/afs/db
- local newafsdbdir=${ROOT}var/lib/openafs/db
-
- # detect Transarc afsconfdir
- local afsconfdir=0
- [ ! -L ${oldafsconfdir} -a -d ${oldafsconfdir} -a ! -e ${newafsconfdir} ] && afsconfdir=1
-
- # detect Transarc viceetcdir
- local viceetcdir=0
- local viceetcsoftlink=0
- if [ -d ${oldviceetcdir} -a ! -e ${newviceetcdir} ]; then
- if [ ! -L ${oldviceetcdir} ]; then
- viceetcdir=1
- else
- if [ $(readlink ${oldviceetcdir}) = /etc/afs ]; then
- viceetcdir=1
- viceetcsoftlink=1
- fi
- fi
- fi
-
- # detect Transarc afslocaldir
- local afslocaldir=0
- [ ! -L ${oldafslocaldir} -a -d ${oldafslocaldir} -a ! -e ${newafslocaldir} ] && afslocaldir=1
-
- # detect Transarc afsdbdir
- local afsdbdir=0
- [ ! -L ${oldafsdbdir} -a -d ${oldafsdbdir} -a ! -e ${newafsdbdir} ] && afsdbdir=1
-
- # detect Transarc afsbosconfigdir
- local afsbosconfigdir=0
- [ ${afslocaldir} = 1 -a -f ${oldafslocaldir}/BosConfig ] && afsbosconfigdir=1
-
- # any of these?
- local any=$((${afsconfdir}+${viceetcdir}+${afsdbdir}+${afslocaldir}))
-
- # No migration needed? Then bail out
- if [ ${any} = 0 ]; then
- return 0
- fi
-
- # Root not / ? Then do not attempt automatic migration
- if [ "$ROOT" != "/" ]; then
- ewarn Old-style configuration files found, but not migrating
- ewarn because installation rootdir is not /
- ebeep 5
- return 0
- fi
-
- # detect whether an installation with old config files is running
- local pid
- if pid=$(pgrep -n -U 0 bosserver) &>/dev/null; then
- # find location of executable
- if ! executable=$(readlink /proc/${pid}/exe); then
- die "Couldn't execute readlink on bosserver process"
- fi
- # if executable is not located in /usr/sbin, assume Transarc locations
- if [[ $executable != ${ROOT}usr/sbin/* ]]; then
- ewarn "Found a running process with the name \"bosserver\" and pid ${pid}"
- ewarn "that is not located in /usr/sbin. This suggests a running"
- ewarn "OpenAFS-server with traditional TransARC path conventions."
- ewarn "This installation procedure aims to migrate old"
- ewarn "configuration files to new FHS-conform locations."
- ewarn "Please stop the running server and reattempt the upgrade"
- die "Installation aborted because of running OpenAFS server"
- fi
- fi
-
- # warn about migration
- ewarn
- ewarn "OpenAFS configuration/data-files have been found in old"
- ewarn "TransARC-style locations, for which the standard FHS equivalents"
- ewarn "do not exist yet. "
- ewarn "Following procedure will copy those files to the new locations such"
- ewarn "that, given a previously working configuration, both server"
- ewarn "and client should restart without problems. Files will be copied"
- ewarn "only, and not removed from the old locations. For assistance"
- ewarn "in removing the old files, consult the documentation in"
- ewarn "/usr/share/openafs/gentoo"
- ewarn "Will continue in 30 seconds, press Ctrl-C to abort"
- ewarn
- ebeep 10
- epause 20
-
- # fortunately, there's no overlap between the old locations and the new ones
-
- # afsconfdir: migrate /usr/afs/etc to /etc/openafs/server
- if [ ${afsconfdir} = 1 ]; then
- mkdir -m 755 -p ${newafsconfdir}
- cp ${oldafsconfdir}/* ${newafsconfdir}
- fi
-
- # viceetcdir: migrate /usr/vice/etc (likely a link to /etc/afs) to /etc/openafs
- if [ ${viceetcdir} = 1 ]; then
- mkdir -m 755 -p ${newviceetcdir}
- cp ${oldviceetcdir}/* ${newviceetcdir}
- fi
-
- # afslocaldir: migrate /usr/afs/local to /var/lib/openafs
- if [ ${afslocaldir} = 1 ]; then
- mkdir -m 700 -p ${newafslocaldir}
- cp ${oldafslocaldir}/* ${newafslocaldir}
-
- # afsbosconfigdir: migrate /usr/afs/local/BosConfig to /etc/openafs/BosConfig
- if [ ${afsbosconfigdir} = 1 ]; then
- sed -i \
- -e 's:/usr/afs/bin/:/usr/libexec/openafs/:g' \
- -e 's:/usr/afs/etc:/etc/openafs/server:g' \
- -e 's:/usr/afs/bin:/usr/bin:g' \
- ${newafslocaldir}/BosConfig
- if [ -d ${newviceetcdir} ]; then
- mv ${newafslocaldir}/BosConfig ${newviceetcdir}
- else
- ewarn
- ewarn "No ${newviceetcdir} found, couldn't move BosConfig there,"
- ewarn "it will remain in ${newafslocaldir}. Please investigate"
- ewarn "before attempting to start the server"
- ewarn
- ebeep 3
- fi
- fi
- fi
-
- # afsdbdir: migrate /usr/afs/db to /var/lib/openafs/db
- if [ ${afsdbdir} = 1 ]; then
- mkdir -m 700 -p ${newafsdbdir}
- cp ${oldafsdbdir}/* ${newafsdbdir}
- fi
-
- ewarn "Migration finished"
- ewarn "Please remember to manually migrate disk-cache (if present)"
- ewarn "Alter /etc/openafs/cacheinfo to do so"
- ebeep 5
-}
-
-migrate_configfile() {
- local oldconfigfile=${ROOT}etc/conf.d/afs
- local newconfigfile=${ROOT}etc/conf.d/afs-client
-
- if [ -f ${oldconfigfile} -a ! -e ${newconfigfile} ]; then
- cp ${oldconfigfile} ${newconfigfile}
- fi
-}
-
-pkg_preinst() {
- migrate_to_fhs
- migrate_configfile
-
- ## 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, 50 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:50000" > ${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() {
- # See bug 9849
- # Create afs mountpoint
- mkdir /afs 2>/dev/null
-
- elog
- elog "For browsing global Cells, please get CellServDB from"
- elog "/usr/share/doc/${PF} and put in /etc/openafs. Then start"
- elog "using /etc/init.d/afs right away."
- elog "For more functionality, look at the limited README in the"
- elog "same directory, or turn to the more elaborate procedures"
- elog "described on http://www.openafs.org (quick beginnings)"
- elog "After initial server setup, you can edit /etc/conf.d/afs"
- elog "to enable the BOS Server."
- elog ""
- elog "To use AFS fully, you need either to start:"
- elog "1. kaserver, which is included with openafs but as it is"
- elog "based on kerberos4, it is not recommended."
- elog "2. app-crypt/kth-krb, but as it is also based on kerberos4 protocol,"
- elog " you can keep passwords replicated in contrast to kaserver, but still"
- elog " don't waste your time here."
- elog "3. app-crypt/heimdal, which is kerberos5 distribution written in Europe,"
- elog " so no US export restrictions apply (*recommended*, compatible with"
- elog " MIT krb5, see below)."
- elog " BTW: if you need kerberos4 backwards compatibility,"
- elog " heimdal can be compiled with --with-krb4 switch to provide it, but"
- elog " app-crypt/kth-krb must be installed so that heimdal's configure"
- elog " can find it. Beware that krb4 approach is not considered"
- elog " safe anymore, so do not install kth-krb unless you really need it."
- elog "4. app-crypt/mit-krb5, if export restrictions allow you to do so."
- elog
-
- epause 20
- ebeep 5
-}
-
-pkg_prerm() {
- # See bug 9849
- # Remove afs mountpoint
- rmdir /afs 2>/dev/null
-}
diff --git a/net-fs/openafs/openafs-1.4.5-r2.ebuild b/net-fs/openafs/openafs-1.4.5-r2.ebuild
deleted file mode 100644
index b7c6ad98b1d7..000000000000
--- a/net-fs/openafs/openafs-1.4.5-r2.ebuild
+++ /dev/null
@@ -1,142 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.5-r2.ebuild,v 1.5 2007/12/06 20:33:40 dertobi123 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"
-}
diff --git a/net-fs/openafs/openafs-1.4.5.ebuild b/net-fs/openafs/openafs-1.4.5.ebuild
deleted file mode 100644
index fd3a06c16161..000000000000
--- a/net-fs/openafs/openafs-1.4.5.ebuild
+++ /dev/null
@@ -1,143 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.5.ebuild,v 1.4 2007/11/23 23:09:49 angelos 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}
-
- 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 doc/man-pages/man1; mv kpasswd.1 kpasswd_afs.1)
-
- # minimal documentation
- dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB
-
- # documentation package
- if use doc; then
- # install manuals
- doman doc/man-pages/man?/*.?
-
- 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"
-}
diff --git a/net-fs/openafs/openafs-1.4.7_pre1.ebuild b/net-fs/openafs/openafs-1.4.7_pre1.ebuild
deleted file mode 100644
index e79c7b469a68..000000000000
--- a/net-fs/openafs/openafs-1.4.7_pre1.ebuild
+++ /dev/null
@@ -1,151 +0,0 @@
-# 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_pre1.ebuild,v 1.1 2008/03/25 11:22:42 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"
-}
diff --git a/net-fs/openafs/openafs-1.5.27.ebuild b/net-fs/openafs/openafs-1.5.27.ebuild
deleted file mode 100644
index 0ec934913ef1..000000000000
--- a/net-fs/openafs/openafs-1.5.27.ebuild
+++ /dev/null
@@ -1,140 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.5.27.ebuild,v 1.2 2007/11/27 17:29:53 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"
-}
diff --git a/net-fs/openafs/openafs-1.5.33.ebuild b/net-fs/openafs/openafs-1.5.33.ebuild
deleted file mode 100644
index 24c0935ec22c..000000000000
--- a/net-fs/openafs/openafs-1.5.33.ebuild
+++ /dev/null
@@ -1,140 +0,0 @@
-# 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.33.ebuild,v 1.1 2008/03/20 15:10:59 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"
-}