------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX tasklist_lock.patch 1330 RMD160 349e0f140b52b76aec4b7ddec58ba1d27f22dd18 SHA1 f568adfbbfe0121dfa46f3a9cb18a4722a297403 SHA256 ed2300a9f9a5baefd4a84dc81e1a7c4e2e19f2c5f9aada73989a95285ed72a89
MD5 cc82a85a267672eb495404a080ccbdae files/tasklist_lock.patch 1330
RMD160 349e0f140b52b76aec4b7ddec58ba1d27f22dd18 files/tasklist_lock.patch 1330
DIST openafs-1.4.0-src.tar.bz2 11268368 RMD160 96cac36c5f0e0891b8a77506003d9bda448dce23 SHA1 09839a6bc71da3902f591c4f4f3c27cb63168195 SHA256 439f4efee7f01f5859ae7b283df793c366e473a877cec687e58af02505a9e52c
DIST openafs-1.4.1-src.tar.bz2 11244316 RMD160 f842cc0ba7c434eea82721528c0449a307aea62b SHA1 8f2ba479dfdc32e7471555f4a19493839bdd736f SHA256 9563259772342ce50c5efd1c2c96cf643f4e9c818e1922e48a3d9183bb7fece6
DIST openafs-1.4.2-src.tar.bz2 12437458 RMD160 821a7064008d26050cdb1715bf04a19aac598578 SHA1 062d78e3ee4237ab09fa3b01fed8b2fb35a7f3e5 SHA256 6a83b393a680c2dbbb186c1adc1acdcfb95f8e2db892ba6e66fe524c6d9b9814
-DIST openafs-1.5.8-src.tar.bz2 12570373 RMD160 ec4d52f838e7ea52ba3e9fb8c681d8d36e678db3 SHA1 439600d26af296f65b4926ef591f96745a242bc2 SHA256 e17d6c28985dfe8f2cea4b1e794d569b6579bf029a0e32e6ee5e49fad2690b8f
+DIST openafs-1.5.12-src.tar.bz2 13090135 RMD160 a778da90c28b71187b6af262909eb01ae8e1d720 SHA1 a4967de68817486fc6b02610c283c379a2517eb6 SHA256 7c9af7b47b8a23824c6b0ebe6bc2cbfb9405e17d238a96212555c702c564f2b1
DIST openafs-gentoo-0.10.tar.bz2 16807 RMD160 cf7c3e16387dbc274140e0f96b25a2a749e87b45 SHA1 8e67074c906253e22aa01c4f3544b7454b0d2fb4 SHA256 d462f3168610d73153f20eb37057f7f8607d95c56342a5f1de8c984174300a6d
DIST openafs-gentoo-0.2a.tar.bz2 17761
DIST openafs-gentoo-0.7.tar.bz2 19890 RMD160 e4ded5cf06b64ec6db568e37a29b7584d03b73d6 SHA1 e64afd7971c805b6b21a0c224bccb605792e2cf7 SHA256 29ccfcc46d2d70982b3530da5cef2d991815eeb1250d3db8fa912f005cc9385c
MD5 36adfb79c25d8e5d4f7e321692dc615d openafs-kernel-1.4.2.ebuild 1442
RMD160 2bbea1ebab8336076f94b86fb31655087ccf9c4f openafs-kernel-1.4.2.ebuild 1442
SHA256 976a099364d8e8579c2ec2230b79c03081e81c0b5a9fa704f78b93c06483c777 openafs-kernel-1.4.2.ebuild 1442
-EBUILD openafs-kernel-1.5.8.ebuild 1466 RMD160 e51636dfc8fcf8eb47a1d6fe623859ce2a892be7 SHA1 79662bddca65dcfc169ffd7ac8b5193362845c56 SHA256 c9d6d63ed288ce55a25fbdadc7999e6dc72cd3f77363b2cfebb32c91c568e44e
-MD5 363507141b149ac597f312839616bab7 openafs-kernel-1.5.8.ebuild 1466
-RMD160 e51636dfc8fcf8eb47a1d6fe623859ce2a892be7 openafs-kernel-1.5.8.ebuild 1466
-SHA256 c9d6d63ed288ce55a25fbdadc7999e6dc72cd3f77363b2cfebb32c91c568e44e openafs-kernel-1.5.8.ebuild 1466
-MISC ChangeLog 6480 RMD160 2d10b65222f7684aeb124ae532f2cdd975ce7558 SHA1 07f812e287ac611da4b5c15ce15a1c61d2cd8da8 SHA256 363b53b1c6bed802e762a94b1b4cb5efab38c7fd1210751489663965941eae78
-MD5 bdecdcae9670292fd87d8f8e54334f1a ChangeLog 6480
-RMD160 2d10b65222f7684aeb124ae532f2cdd975ce7558 ChangeLog 6480
-SHA256 363b53b1c6bed802e762a94b1b4cb5efab38c7fd1210751489663965941eae78 ChangeLog 6480
+EBUILD openafs-kernel-1.5.12.ebuild 1467 RMD160 3eea2aea1640b313df2ae32bae67f7b24eb5d079 SHA1 cce5d1be69f218d9570c68c19bfab2e11795fb7e SHA256 525c7599d8aaa734154a23ef7b8b61e77ffe4fc40f666bee521263b97f926c96
+MD5 de8a70d96e592ff74d1c48141df44907 openafs-kernel-1.5.12.ebuild 1467
+RMD160 3eea2aea1640b313df2ae32bae67f7b24eb5d079 openafs-kernel-1.5.12.ebuild 1467
+SHA256 525c7599d8aaa734154a23ef7b8b61e77ffe4fc40f666bee521263b97f926c96 openafs-kernel-1.5.12.ebuild 1467
+MISC ChangeLog 6695 RMD160 2d49c3fdff4b2fe3b092296f93105be029c697c9 SHA1 9b56bf00db38727adb3049700ee08c04bde47c2f SHA256 38503230da74190e420325ee57c40a8fdd619a798cb943400d12a1af139e874e
+MD5 80c81ac63d9135f651c52b8338e610fa ChangeLog 6695
+RMD160 2d49c3fdff4b2fe3b092296f93105be029c697c9 ChangeLog 6695
+SHA256 38503230da74190e420325ee57c40a8fdd619a798cb943400d12a1af139e874e ChangeLog 6695
MISC metadata.xml 254 RMD160 1bef8b94265bf2b400fb6235b3e43b504b8d2b71 SHA1 a4ad632b650953fa9c9f203a9c55f58ddba37705 SHA256 90d7dcb6aede67bf64f610984a31fc03573512de9e241db42acb32601373db62
MD5 833551f00cc2163ac7f9eb367ee9caa8 metadata.xml 254
RMD160 1bef8b94265bf2b400fb6235b3e43b504b8d2b71 metadata.xml 254
MD5 b4871d6ce5bfc85db97cc7e51a5f305e files/digest-openafs-kernel-1.4.2-r1 518
RMD160 a2037719fb17a8cf90de022030dd1844a2d5ab90 files/digest-openafs-kernel-1.4.2-r1 518
SHA256 1ba9739f441ac7e2ca70cc234d3e6a3cbf4d708e7880c9db09c91a76c02fe153 files/digest-openafs-kernel-1.4.2-r1 518
-MD5 de65c2f52f4079c085a64babeae32d96 files/digest-openafs-kernel-1.5.8 521
-RMD160 f6572b699a639b6429ab1c566106ce92607df884 files/digest-openafs-kernel-1.5.8 521
-SHA256 f45e276b5cf09303c6937900303f0f05f6968743030b7f2ef78e27315dbd40fa files/digest-openafs-kernel-1.5.8 521
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-
-iD8DBQFFb6CGcsIHjyDViGQRAiqaAJ9vWfoMAeLAo8hSVyO6KGkScRxMFACg5ZO1
-g8B9yHeSeHHVrzwVfUpWLTc=
-=7rij
------END PGP SIGNATURE-----
+MD5 9eb0ac37b00fd25cff555d104d82900d files/digest-openafs-kernel-1.5.12 524
+RMD160 0424472a9be42d44d956e1d4b0b93e84d784e289 files/digest-openafs-kernel-1.5.12 524
+SHA256 335363fd1e248a11b3ce527db13630a3b2e0df2b3fe82f3fe070897c51d61a6b files/digest-openafs-kernel-1.5.12 524
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX CellServDB 41 RMD160 60358d0208a7fd49e099915c4e5ed8b8d1f7f468 SHA1 e3aaed78f76d43770380541760942ac8258244f6 SHA256 0f3bbc0a460a982a0b1b616b9873aa03b4d9adc8e03614a7105eeb701f36e976
MD5 4584cc6910401787e1ebd81cfa06f060 files/CellServDB 41
RMD160 60358d0208a7fd49e099915c4e5ed8b8d1f7f468 files/CellServDB 41
DIST openafs-1.4.1-src.tar.bz2 11244316 RMD160 f842cc0ba7c434eea82721528c0449a307aea62b SHA1 8f2ba479dfdc32e7471555f4a19493839bdd736f SHA256 9563259772342ce50c5efd1c2c96cf643f4e9c818e1922e48a3d9183bb7fece6
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.5.8-doc.tar.bz2 3083502 RMD160 048984f02cd89e518bfae29c7a8063407e925016 SHA1 33acb303cf3359ea785ae389813048d6d517c464 SHA256 4b36d8269366382a807be48604af44f8b5bb54ae3ccdf870867eefcf5e6578b9
-DIST openafs-1.5.8-src.tar.bz2 12570373 RMD160 ec4d52f838e7ea52ba3e9fb8c681d8d36e678db3 SHA1 439600d26af296f65b4926ef591f96745a242bc2 SHA256 e17d6c28985dfe8f2cea4b1e794d569b6579bf029a0e32e6ee5e49fad2690b8f
+DIST openafs-1.5.12-doc.tar.bz2 3083685 RMD160 76608ea4b0d139beb0f33b071180c78a4de9e5d9 SHA1 8ece61f7576834ab9b80fa8de833df81e823530a SHA256 f178d08af3aab9211ea551876d7ba9a68b6ff0a6d82b82d5ef2fb798f18a50b2
+DIST openafs-1.5.12-src.tar.bz2 13090135 RMD160 a778da90c28b71187b6af262909eb01ae8e1d720 SHA1 a4967de68817486fc6b02610c283c379a2517eb6 SHA256 7c9af7b47b8a23824c6b0ebe6bc2cbfb9405e17d238a96212555c702c564f2b1
DIST openafs-gentoo-0.10.tar.bz2 16807 RMD160 cf7c3e16387dbc274140e0f96b25a2a749e87b45 SHA1 8e67074c906253e22aa01c4f3544b7454b0d2fb4 SHA256 d462f3168610d73153f20eb37057f7f8607d95c56342a5f1de8c984174300a6d
DIST openafs-gentoo-0.2b.tar.bz2 17242
DIST openafs-gentoo-0.6.tar.bz2 21735 RMD160 29e94ab293110cba4cd6b7200ae0f8bcaeb98d9e SHA1 fc85748046c49b6ff23aa8741da204ce61e1ee72 SHA256 f704648a03030d075ffa938185b6ab4f69cfb8094ec1feba077ca7600abe0a17
MD5 3b8a4cc61776499701adef60a472d09d openafs-1.4.2.ebuild 9991
RMD160 4c199360eb2b3df0d84b8aeabcc050a2086afeff openafs-1.4.2.ebuild 9991
SHA256 c1045252b0c76ee1a8f59a00e874ea8d6613c1e8ab248843812e5cb74683c38c openafs-1.4.2.ebuild 9991
-EBUILD openafs-1.5.8.ebuild 10013 RMD160 fc19b2552448ddbb9ffe02d3e0b93acf72212a6e SHA1 af4a9e56fe576f71a5ce8e71a850b9bfadec9942 SHA256 2dbd1fc8ec475297a98955aeb904ec5def6bb5d7056981dfca3860a97f0373a1
-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 13903 RMD160 02c38589092571f30d8a7c9ee490e54b1e39c730 SHA1 5a246a4bf9f062d93a13c6e7c433d7ec17980606 SHA256 050324410d6311d93bba09ab172b146e4f5f8a3f4999db7fe86043e8feb19886
-MD5 c9e31d68ee00c0267571e538fadd0be6 ChangeLog 13903
-RMD160 02c38589092571f30d8a7c9ee490e54b1e39c730 ChangeLog 13903
-SHA256 050324410d6311d93bba09ab172b146e4f5f8a3f4999db7fe86043e8feb19886 ChangeLog 13903
+EBUILD openafs-1.5.12.ebuild 10014 RMD160 f42d8aa5f3bc498801c0081b5e743a6a2f2e84d3 SHA1 a024a8102ae99678e5e2d3680556bd5c951eca0b SHA256 ecd85eec7e3f7e0ce07ba80ef3b6b8de1abe97491e3c93d6a05c2f5fc733e976
+MD5 5c4358e48da34cdd5077f76189418089 openafs-1.5.12.ebuild 10014
+RMD160 f42d8aa5f3bc498801c0081b5e743a6a2f2e84d3 openafs-1.5.12.ebuild 10014
+SHA256 ecd85eec7e3f7e0ce07ba80ef3b6b8de1abe97491e3c93d6a05c2f5fc733e976 openafs-1.5.12.ebuild 10014
+MISC ChangeLog 14097 RMD160 8e2d9989bc868e6d1d1d901747658d8446777757 SHA1 f165abf8dd73e32ad76c67739c82456d080d913c SHA256 ad4bd42a8df93a55073e817d11b0a7fd7e778911b4ff63414812b21aba10886a
+MD5 5ffed2ed3dcfb89e53b65ef42258eb98 ChangeLog 14097
+RMD160 8e2d9989bc868e6d1d1d901747658d8446777757 ChangeLog 14097
+SHA256 ad4bd42a8df93a55073e817d11b0a7fd7e778911b4ff63414812b21aba10886a ChangeLog 14097
MISC metadata.xml 254 RMD160 1bef8b94265bf2b400fb6235b3e43b504b8d2b71 SHA1 a4ad632b650953fa9c9f203a9c55f58ddba37705 SHA256 90d7dcb6aede67bf64f610984a31fc03573512de9e241db42acb32601373db62
MD5 833551f00cc2163ac7f9eb367ee9caa8 metadata.xml 254
RMD160 1bef8b94265bf2b400fb6235b3e43b504b8d2b71 metadata.xml 254
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 012407386425af6d2c5f1c513b93f21d files/digest-openafs-1.5.8 780
-RMD160 d7f81f57006b98fe941bd2bebe453dd20de1bc48 files/digest-openafs-1.5.8 780
-SHA256 de3c0e669b809543667640e34e76dc6a453e5aa0452c9b5057ff58e613c6f5db files/digest-openafs-1.5.8 780
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-
-iD8DBQFFb6DjcsIHjyDViGQRAiWaAKDajFdamj8zbxA7hjvbCpKMBS6uoACeIDeh
-aqydekpDC1WwW28jF08UcQE=
-=wTOl
------END PGP SIGNATURE-----
+MD5 e11c7fa7a3b44f3e459a87629b30b800 files/digest-openafs-1.5.12 786
+RMD160 23e3ba9fcd783d2a4403500e63a97cc983a3dabd files/digest-openafs-1.5.12 786
+SHA256 738266f983b73cf832b311c13cbb46a5b1e0db2078c04f65727c53cf790390c1 files/digest-openafs-1.5.12 786
+++ /dev/null
-# 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.5.8.ebuild,v 1.1 2006/09/09 14:35:25 stefaan Exp $
-
-inherit flag-o-matic eutils toolchain-funcs versionator
-
-PATCHVER=0.10
-DESCRIPTION="The OpenAFS distributed file system"
-HOMEPAGE="http://www.openafs.org/"
-SRC_URI="http://openafs.org/dl/${PN}/${PV}/${P}-src.tar.bz2
- doc? ( http://openafs.org/dl/${PN}/${PV}/${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
-}
-