summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorStefaan De Roeck <stefaan@gentoo.org>2006-10-18 06:41:25 +0000
committerStefaan De Roeck <stefaan@gentoo.org>2006-10-18 06:41:25 +0000
commit3e0fb66e9f1402a330976861dce2b50c410df3ce (patch)
treec22e1cdf5ed7fb7bcb21eac57895c2ea6585c483 /net-fs
parentRevision bump to 1.4.2, remove old 1.4.2_rc3, remove -j1 (diff)
downloadhistorical-3e0fb66e9f1402a330976861dce2b50c410df3ce.tar.gz
historical-3e0fb66e9f1402a330976861dce2b50c410df3ce.tar.bz2
historical-3e0fb66e9f1402a330976861dce2b50c410df3ce.zip
Revision bump to 1.4.2, remove old 1.4.2_rc3, remove -j1
Package-Manager: portage-2.1.2_pre2-r2
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/openafs/Manifest26
-rw-r--r--net-fs/openafs/files/digest-openafs-1.4.2_rc39
-rw-r--r--net-fs/openafs/openafs-1.4.2_rc3.ebuild321
3 files changed, 13 insertions, 343 deletions
diff --git a/net-fs/openafs/Manifest b/net-fs/openafs/Manifest
index f5c927861d7f..3084c6bc3f88 100644
--- a/net-fs/openafs/Manifest
+++ b/net-fs/openafs/Manifest
@@ -28,8 +28,8 @@ DIST openafs-1.4.0-doc.tar.bz2 2576915 RMD160 ed68a6b0aabfefc92c475125991ee214a0
DIST openafs-1.4.0-src.tar.bz2 11268368 RMD160 96cac36c5f0e0891b8a77506003d9bda448dce23 SHA1 09839a6bc71da3902f591c4f4f3c27cb63168195 SHA256 439f4efee7f01f5859ae7b283df793c366e473a877cec687e58af02505a9e52c
DIST openafs-1.4.1-doc.tar.bz2 3090382 RMD160 1e8265191affec7584626e88fde018332937fcd0 SHA1 8c6457f8ea0dea8afbc38b3cc393b5d63ef56d4f SHA256 6331c755bed05d40e97e1d53ac3c3feaf05b5fbd4aac6aec373b32cfe597e295
DIST openafs-1.4.1-src.tar.bz2 11244316 RMD160 f842cc0ba7c434eea82721528c0449a307aea62b SHA1 8f2ba479dfdc32e7471555f4a19493839bdd736f SHA256 9563259772342ce50c5efd1c2c96cf643f4e9c818e1922e48a3d9183bb7fece6
-DIST openafs-1.4.2fc3-doc.tar.bz2 3081384 RMD160 5d3701e8b9d99076888f361198411b8eda79df81 SHA1 4ab2fc35fed7df666d8d7a0ac5fa868425011188 SHA256 109509b34664b71bf642d9589c4d3414baeb85c7ad6a484b2ed2870157566f30
-DIST openafs-1.4.2fc3-src.tar.bz2 12433296 RMD160 2f95c8631b2cc393136ba6a5b81c247830708ea5 SHA1 e52d4cfe009d8ff426e27679fd0699d204b7d3e9 SHA256 b13ff2184b877ceeafc222e87efd1af4406c51e01b20541e5111c138476d936a
+DIST openafs-1.4.2-doc.tar.bz2 3084229 RMD160 7f6876c2265fd0b6fe3cd07274734f2b5c7af14b SHA1 47cfa24de531cdb552fb28c88989b94302e83333 SHA256 a404ac22a67588e78d598b46fcf3ada61a729d70b38fb0c49f2c95a87f530aab
+DIST openafs-1.4.2-src.tar.bz2 12437458 RMD160 821a7064008d26050cdb1715bf04a19aac598578 SHA1 062d78e3ee4237ab09fa3b01fed8b2fb35a7f3e5 SHA256 6a83b393a680c2dbbb186c1adc1acdcfb95f8e2db892ba6e66fe524c6d9b9814
DIST openafs-1.4.2fc4-doc.tar.bz2 3081396 RMD160 a464898ddb5c2ceeb68fe9bd92664b044deaf007 SHA1 a941f029b70addb79b1e72d6f704e2e9d5310457 SHA256 f927224e59e9542de84a3298e79c6b3f0331f03b750d6cdf8b86b243d26d6358
DIST openafs-1.4.2fc4-src.tar.bz2 12440535 RMD160 8d13e8e438dcd3ccdd70a36b800bc4ca83f0bdc1 SHA1 7a67afe09d90293c99d25bf73debca3cc0ad812d SHA256 a7d807e6fdec9d7bf240538eae4c943c0a9cc4c56a73b46bf08fa1e64aa35488
DIST openafs-1.5.8-doc.tar.bz2 3083502 RMD160 048984f02cd89e518bfae29c7a8063407e925016 SHA1 33acb303cf3359ea785ae389813048d6d517c464 SHA256 4b36d8269366382a807be48604af44f8b5bb54ae3ccdf870867eefcf5e6578b9
@@ -54,10 +54,10 @@ EBUILD openafs-1.4.1-r1.ebuild 9988 RMD160 24fab31fe36ecfb52ac07a23e12365f895283
MD5 0581d6c41699e28f54c6f85ad19d4aaa openafs-1.4.1-r1.ebuild 9988
RMD160 24fab31fe36ecfb52ac07a23e12365f895283a2b openafs-1.4.1-r1.ebuild 9988
SHA256 15c245dc8e9f926fa558d377ef5876f22db53ca031aeb08fb48416e40a459d36 openafs-1.4.1-r1.ebuild 9988
-EBUILD openafs-1.4.2_rc3.ebuild 10108 RMD160 9e36043618b68a6d5da842d9ab9e113f21e3b8dc SHA1 20a31cecefba40de499b1fe984928ad63946bb24 SHA256 e5c15b0ada57dae9d8c9061e67065ab7a10899168a3fa413316093f2738af59f
-MD5 7b270c5247fed89f3397caf043083d2b openafs-1.4.2_rc3.ebuild 10108
-RMD160 9e36043618b68a6d5da842d9ab9e113f21e3b8dc openafs-1.4.2_rc3.ebuild 10108
-SHA256 e5c15b0ada57dae9d8c9061e67065ab7a10899168a3fa413316093f2738af59f openafs-1.4.2_rc3.ebuild 10108
+EBUILD openafs-1.4.2.ebuild 9993 RMD160 c75890cc150c8f2d7d9b044d91103abf1f1a8d9a SHA1 545e53be23aa353bc5068d2289f0753243640ec9 SHA256 9186db994383efa77c190fdc7099adb75fe3d72371f783fdfb6b386df2cd051e
+MD5 f9387ab4f31e1948ab6612710d3b9584 openafs-1.4.2.ebuild 9993
+RMD160 c75890cc150c8f2d7d9b044d91103abf1f1a8d9a openafs-1.4.2.ebuild 9993
+SHA256 9186db994383efa77c190fdc7099adb75fe3d72371f783fdfb6b386df2cd051e openafs-1.4.2.ebuild 9993
EBUILD openafs-1.4.2_rc4.ebuild 10131 RMD160 b551e5850176303ca31db117fe1509e941b37417 SHA1 4ab60b0d476996d9dcf240933cfb684b4eaf3692 SHA256 97675ab8b8bda01cb0afdcbc3c7d6cae2b88d1b11f3600fd9b4599600b8f5a64
MD5 a656fdd5ee97d066f7b167bf30c57843 openafs-1.4.2_rc4.ebuild 10131
RMD160 b551e5850176303ca31db117fe1509e941b37417 openafs-1.4.2_rc4.ebuild 10131
@@ -66,10 +66,10 @@ EBUILD openafs-1.5.8.ebuild 10013 RMD160 fc19b2552448ddbb9ffe02d3e0b93acf72212a6
MD5 1a0c1e35c178316dc2ade63d8beb95a7 openafs-1.5.8.ebuild 10013
RMD160 fc19b2552448ddbb9ffe02d3e0b93acf72212a6e openafs-1.5.8.ebuild 10013
SHA256 2dbd1fc8ec475297a98955aeb904ec5def6bb5d7056981dfca3860a97f0373a1 openafs-1.5.8.ebuild 10013
-MISC ChangeLog 12762 RMD160 8e4a7d7d5f56ec0e9d12ddacee6388e6e27bc7d7 SHA1 864739390dc925da43e36b68096c4d3ebc90e1e2 SHA256 849f02b8699de94a1d246b5bb5a6cadf72f6c74600c0ebee8f4b06043a14d969
-MD5 ae9579cd54e8a95888d9b2be2d59b345 ChangeLog 12762
-RMD160 8e4a7d7d5f56ec0e9d12ddacee6388e6e27bc7d7 ChangeLog 12762
-SHA256 849f02b8699de94a1d246b5bb5a6cadf72f6c74600c0ebee8f4b06043a14d969 ChangeLog 12762
+MISC ChangeLog 12957 RMD160 eae5e90a121c99a1452b40a8d029390f7e72d910 SHA1 a44260f56d6f628093d8f899aaad0e8b366907fc SHA256 489630e993eb8314d01b58d9637daa01964173a2cd0099d1bd0feb0c8c2821ab
+MD5 2dfe052982fe7cae5b7ca4d57b2ffd51 ChangeLog 12957
+RMD160 eae5e90a121c99a1452b40a8d029390f7e72d910 ChangeLog 12957
+SHA256 489630e993eb8314d01b58d9637daa01964173a2cd0099d1bd0feb0c8c2821ab ChangeLog 12957
MISC metadata.xml 254 RMD160 1bef8b94265bf2b400fb6235b3e43b504b8d2b71 SHA1 a4ad632b650953fa9c9f203a9c55f58ddba37705 SHA256 90d7dcb6aede67bf64f610984a31fc03573512de9e241db42acb32601373db62
MD5 833551f00cc2163ac7f9eb367ee9caa8 metadata.xml 254
RMD160 1bef8b94265bf2b400fb6235b3e43b504b8d2b71 metadata.xml 254
@@ -86,9 +86,9 @@ SHA256 1d1ba88647dd37aba651a5f2a2d8f9effefa0ec562c04d7abedb3e3f22c0ddd4 files/di
MD5 3fb564f42abba1e0338e69d3a7cd4ec8 files/digest-openafs-1.4.1-r1 777
RMD160 82a59fc3128bfc1f28578399b0a7d68759ef845c files/digest-openafs-1.4.1-r1 777
SHA256 7d530ae01eea78043215b05db615d2394a80a368029c29c6a8618e9ab66b37e2 files/digest-openafs-1.4.1-r1 777
-MD5 5358c1cb2cb7b8721cb422408becc27c files/digest-openafs-1.4.2_rc3 795
-RMD160 6fd9cb48dabcd18ecca1bc0e21ed78a29290836e files/digest-openafs-1.4.2_rc3 795
-SHA256 7293b54b5322a6cefaba644c185f801ad50af17f47595d1807ff4e8b06dcaac2 files/digest-openafs-1.4.2_rc3 795
+MD5 79fab24eda891b8c4c6bbdaff79ba1f0 files/digest-openafs-1.4.2 777
+RMD160 c2a4e300bc51a9756e61a09e20a1934785c2944e files/digest-openafs-1.4.2 777
+SHA256 3bf6b95a5d6dacc94cf3812ab58cda86e8fb7c18610ea0245732feb38dd5e507 files/digest-openafs-1.4.2 777
MD5 3e2753b15fe19586613b2f0f2426fadf files/digest-openafs-1.4.2_rc4 795
RMD160 99cea5d7df39b616f2ac7045b95f550e4cd20ec5 files/digest-openafs-1.4.2_rc4 795
SHA256 8c97d19397b0b79d30900ab4d3def88aa30ca95b72bf84fdbbbad05849c7d364 files/digest-openafs-1.4.2_rc4 795
diff --git a/net-fs/openafs/files/digest-openafs-1.4.2_rc3 b/net-fs/openafs/files/digest-openafs-1.4.2_rc3
deleted file mode 100644
index 0f4cd741b7e6..000000000000
--- a/net-fs/openafs/files/digest-openafs-1.4.2_rc3
+++ /dev/null
@@ -1,9 +0,0 @@
-MD5 24f1c774ddeaa1435fe763f37f54eb79 openafs-1.4.2fc3-doc.tar.bz2 3081384
-RMD160 5d3701e8b9d99076888f361198411b8eda79df81 openafs-1.4.2fc3-doc.tar.bz2 3081384
-SHA256 109509b34664b71bf642d9589c4d3414baeb85c7ad6a484b2ed2870157566f30 openafs-1.4.2fc3-doc.tar.bz2 3081384
-MD5 2eade303b340f5708642055341af8288 openafs-1.4.2fc3-src.tar.bz2 12433296
-RMD160 2f95c8631b2cc393136ba6a5b81c247830708ea5 openafs-1.4.2fc3-src.tar.bz2 12433296
-SHA256 b13ff2184b877ceeafc222e87efd1af4406c51e01b20541e5111c138476d936a openafs-1.4.2fc3-src.tar.bz2 12433296
-MD5 6f298d8eb669b91b43b50ff8bd8dc5ef openafs-gentoo-0.9.tar.bz2 17015
-RMD160 07b90f9093677c6e043412c42dfa8096628fe6de openafs-gentoo-0.9.tar.bz2 17015
-SHA256 3f08b6f76b860efe522affccdfc393ea12b2255a3fe476d8d3f12b5f88233f26 openafs-gentoo-0.9.tar.bz2 17015
diff --git a/net-fs/openafs/openafs-1.4.2_rc3.ebuild b/net-fs/openafs/openafs-1.4.2_rc3.ebuild
deleted file mode 100644
index f1df034d672f..000000000000
--- a/net-fs/openafs/openafs-1.4.2_rc3.ebuild
+++ /dev/null
@@ -1,321 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.2_rc3.ebuild,v 1.2 2006/09/19 13:55:39 stefaan Exp $
-
-inherit flag-o-matic eutils toolchain-funcs versionator
-
-PATCHVER=0.9
-MY_PV=${PV/_rc/fc}
-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}/candidate/${MY_PV}/${MY_P}-src.tar.bz2
- doc? ( http://openafs.org/dl/${PN}/candidate/${MY_PV}/${MY_P}-doc.tar.bz2 )
- mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2"
-
-LICENSE="IPL-1"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~ia64 ~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
-
- XCFLAGS="${CFLAGS}" \
- econf \
- $(use_enable pam) \
- $(use_enable debug) \
- --enable-largefile-fileserver \
- --enable-supergroups \
- ${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
- 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
- mv src/man/kpasswd.1 src/man/kpasswd_afs.1
-
- # install manuals
- doman src/man/*.?
-
- use kerberos && doman src/aklog/aklog.1
- use pam && doman src/pam/pam_afs.5
-
- # minimal documentation
- dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB
-
- # documentation package
- if use doc; then
- 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
-}
-
-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 section on Upgrading in"
- ewarn "the Gentoo OpenAFS documentation"
- ewarn "(see http://www.gentoo.org/doc/en/openafs.xml)"
- 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 oldconfigfile2=${ROOT}etc/conf.d/afs-client
- local newconfigfile=${ROOT}etc/conf.d/openafs-client
-
- if [ -f ${oldconfigfile} -a ! -e ${newconfigfile} ]; then
- cp ${oldconfigfile} ${newconfigfile}
- elif [ -f ${oldconfigfile2} -a ! -e ${newconfigfile} ]; then
- cp ${oldconfigfile2} ${newconfigfile}
- fi
-
- oldconfigfile=${ROOT}etc/conf.d/afs-server
- newconfigfile=${ROOT}etc/conf.d/openafs-server
- 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 ${IMAGE}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" > ${IMAGE}etc/openafs/cacheinfo
- fi
- # ThisCell: default to "openafs.org"
- if [ ! -e ${ROOT}etc/openafs/ThisCell ]; then
- echo "openafs.org" > ${IMAGE}etc/openafs/ThisCell
- fi
-}
-
-pkg_postinst() {
- einfo ""
- einfo "If you are upgrading from a < 1.4.0_rc8 version of the ebuild,"
- einfo "we urge you to look at the upgrade-section of the"
- einfo "Gentoo OpenAFS documentation. (If you're upgrading from"
- einfo "< 1.3.85, then you really really should)"
-
- ebeep 5
-
- einfo ""
- einfo "This installation should work out of the box (at least the"
- einfo "client part doing global afs-cell browsing, unless you had"
- einfo "a previous and different configuration). If you want to"
- einfo "set up your own cell or modify the standard config,"
- einfo "please have a look at the Gentoo OpenAFS documentation"
- einfo "(warning: it is not yet up to date wrt the new file locations)"
- einfo ""
- einfo "The documentation can be found at:"
- einfo " http://www.gentoo.org/doc/en/openafs.xml"
-
- epause 5
-}
-