diff options
author | Stefaan De Roeck <stefaan@gentoo.org> | 2006-05-26 11:07:52 +0000 |
---|---|---|
committer | Stefaan De Roeck <stefaan@gentoo.org> | 2006-05-26 11:07:52 +0000 |
commit | 286f81ada413830c6b476d7ae03437bb16415c9b (patch) | |
tree | b71d434c61ddce0bd309f2ef1a7463cd4341ca12 | |
parent | Removing some obsolete ebuilds (diff) | |
download | gentoo-2-286f81ada413830c6b476d7ae03437bb16415c9b.tar.gz gentoo-2-286f81ada413830c6b476d7ae03437bb16415c9b.tar.bz2 gentoo-2-286f81ada413830c6b476d7ae03437bb16415c9b.zip |
Removing some obsolete ebuilds
(Portage version: 2.1_rc2)
(Unsigned Manifest commit)
-rw-r--r-- | net-fs/openafs/Manifest | 24 | ||||
-rw-r--r-- | net-fs/openafs/files/digest-openafs-1.4.0 | 9 | ||||
-rw-r--r-- | net-fs/openafs/files/digest-openafs-1.4.0-r1 | 9 | ||||
-rw-r--r-- | net-fs/openafs/openafs-1.4.0-r1.ebuild | 322 | ||||
-rw-r--r-- | net-fs/openafs/openafs-1.4.0.ebuild | 322 |
5 files changed, 4 insertions, 682 deletions
diff --git a/net-fs/openafs/Manifest b/net-fs/openafs/Manifest index f4275e9e95f8..afa2f9e5ddd9 100644 --- a/net-fs/openafs/Manifest +++ b/net-fs/openafs/Manifest @@ -25,8 +25,6 @@ DIST openafs-1.4.0-src.tar.bz2 11268368 RMD160 96cac36c5f0e0891b8a77506003d9bda4 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-gentoo-0.2b.tar.bz2 17242 -DIST openafs-gentoo-0.4.tar.bz2 17266 RMD160 b82f8947cb9aad7520d89e68a28eead6700f74c9 SHA1 bf926ec7d2d045ee3c3875cbaaeef254ef244aca SHA256 f2ab36888ac8f4c50e08176efcda1641d4c79c5fa35fe075089a184ecc4d5156 -DIST openafs-gentoo-0.5.tar.bz2 17244 RMD160 59fa174913bb633984241e77df75fe18b8b3fe20 SHA1 1a14eb9053d3133e56ad382a945e264dd2ee6c46 SHA256 02be90c0a456bf2cbb984ea46dabdecc911d26738e226486c85ca5b4712ea67c DIST openafs-gentoo-0.6.tar.bz2 21735 RMD160 29e94ab293110cba4cd6b7200ae0f8bcaeb98d9e SHA1 fc85748046c49b6ff23aa8741da204ce61e1ee72 SHA256 f704648a03030d075ffa938185b6ab4f69cfb8094ec1feba077ca7600abe0a17 DIST openafs-gentoo-0.7.tar.bz2 19890 RMD160 e4ded5cf06b64ec6db568e37a29b7584d03b73d6 SHA1 e64afd7971c805b6b21a0c224bccb605792e2cf7 SHA256 29ccfcc46d2d70982b3530da5cef2d991815eeb1250d3db8fa912f005cc9385c DIST openafs-gentoo-0.8.tar.bz2 16749 RMD160 59b4fea61bf21554d69c594d9d1a386cef469f82 SHA1 0eeeee5f7ea9a407bfbe96c0b16ed9c33bd055f9 SHA256 af51dea1b3ea8d22ee646de71f97535c057ef1e232c0f9ac498d94c7e44d021f @@ -39,10 +37,6 @@ EBUILD openafs-1.2.13-r2.ebuild 9986 RMD160 c3083691772e11daeadd53c87c4e76bed838 MD5 724bc6d7494376e988f9b32ef90071ba openafs-1.2.13-r2.ebuild 9986 RMD160 c3083691772e11daeadd53c87c4e76bed8382802 openafs-1.2.13-r2.ebuild 9986 SHA256 ed667b3af227a1605f5266362d031595f19920e29b829106d7cbfef339bd16ea openafs-1.2.13-r2.ebuild 9986 -EBUILD openafs-1.4.0-r1.ebuild 9999 RMD160 27dbfe98c50c0941dc4be7298f1714f0b13a6a7d SHA1 c897f21fc1b9198127ce82872e69f07b275dcc3f SHA256 a19eee850f0e495f8f32896d0a0dc91bab9fe09934c0b3544e0898245aeaa098 -MD5 47b8024f7d87444054cf1880fdedd208 openafs-1.4.0-r1.ebuild 9999 -RMD160 27dbfe98c50c0941dc4be7298f1714f0b13a6a7d openafs-1.4.0-r1.ebuild 9999 -SHA256 a19eee850f0e495f8f32896d0a0dc91bab9fe09934c0b3544e0898245aeaa098 openafs-1.4.0-r1.ebuild 9999 EBUILD openafs-1.4.0-r2.ebuild 10034 RMD160 69eb671bc9ec39d380e698f3287f76b42b312405 SHA1 8b7f2c2421ce2f53fca070c01de2e199cbae39a4 SHA256 41925c816cab661a3e0b94bf282e0a006367affd698eea91bc074798261a6bfe MD5 05762017bcd4e24a267dc09bbc133884 openafs-1.4.0-r2.ebuild 10034 RMD160 69eb671bc9ec39d380e698f3287f76b42b312405 openafs-1.4.0-r2.ebuild 10034 @@ -51,10 +45,6 @@ EBUILD openafs-1.4.0-r3.ebuild 10097 RMD160 2b71bae4654d93f83118a870f6bc4f84fd51 MD5 3d2f83320a1aaf2f04a57870e103e510 openafs-1.4.0-r3.ebuild 10097 RMD160 2b71bae4654d93f83118a870f6bc4f84fd51e2e1 openafs-1.4.0-r3.ebuild 10097 SHA256 9394c48d1759abc563767e1c166b9e1bb726fbfd452c916033874436a0be8a37 openafs-1.4.0-r3.ebuild 10097 -EBUILD openafs-1.4.0.ebuild 9995 RMD160 ae691d6d39488d67c883ce459b39292e0fb0c403 SHA1 022a960975400ecc4b69faec4fd77885483a6656 SHA256 53a8d8c6da040526373b86f688f26b3c3b9c5819125d0f8b72d0d9c78660d261 -MD5 1ea3c826321757888dec24f78b549a24 openafs-1.4.0.ebuild 9995 -RMD160 ae691d6d39488d67c883ce459b39292e0fb0c403 openafs-1.4.0.ebuild 9995 -SHA256 53a8d8c6da040526373b86f688f26b3c3b9c5819125d0f8b72d0d9c78660d261 openafs-1.4.0.ebuild 9995 EBUILD openafs-1.4.1-r1.ebuild 9990 RMD160 f20a304b418f16d6077eb7e1f13ef545fa52369e SHA1 caef2eb4980febb409b6edc73efeca0843edc7b3 SHA256 e105185863c155edaaf691ae425e02b1041a56cceb99025cffcbcc65c7f129e7 MD5 c0f2164ec4de1e75ac02f6f3976e5450 openafs-1.4.1-r1.ebuild 9990 RMD160 f20a304b418f16d6077eb7e1f13ef545fa52369e openafs-1.4.1-r1.ebuild 9990 @@ -63,10 +53,10 @@ EBUILD openafs-1.4.1.ebuild 9915 RMD160 43d2462a53ce67f16dc4a137701d03c4ce88d265 MD5 3590125e2067f33da57c5f18f2329aaa openafs-1.4.1.ebuild 9915 RMD160 43d2462a53ce67f16dc4a137701d03c4ce88d265 openafs-1.4.1.ebuild 9915 SHA256 e7539bb0ea8a85f07668155c9923ec1ac9765fba4ebaf3fbd0a41a1d90ff9c1c openafs-1.4.1.ebuild 9915 -MISC ChangeLog 11371 RMD160 37d4db5d14d795796dcbd83e199d94055b620dd1 SHA1 2327f5ea7dfe89ab19c40dc6e30bf5aff651474e SHA256 a0b7917cc39122ba69dbed67633b5cfc58a7b324ba2e0f6869e6740882a4630a -MD5 1b5b36acdb18091d30c7e2077fe1f087 ChangeLog 11371 -RMD160 37d4db5d14d795796dcbd83e199d94055b620dd1 ChangeLog 11371 -SHA256 a0b7917cc39122ba69dbed67633b5cfc58a7b324ba2e0f6869e6740882a4630a ChangeLog 11371 +MISC ChangeLog 11509 RMD160 e94d198109a9245713a6a6e1288046243e2edf7d SHA1 315b6ada81e96fc4a7ac6135afaf05604c3c9f93 SHA256 c7c316b9d5bc949a4656cccd3b21b0c9384ed439e886a6584252d37560ac61b6 +MD5 53afe2ccff5f575787bb58d2ea329990 ChangeLog 11509 +RMD160 e94d198109a9245713a6a6e1288046243e2edf7d ChangeLog 11509 +SHA256 c7c316b9d5bc949a4656cccd3b21b0c9384ed439e886a6584252d37560ac61b6 ChangeLog 11509 MISC metadata.xml 254 RMD160 1bef8b94265bf2b400fb6235b3e43b504b8d2b71 SHA1 a4ad632b650953fa9c9f203a9c55f58ddba37705 SHA256 90d7dcb6aede67bf64f610984a31fc03573512de9e241db42acb32601373db62 MD5 833551f00cc2163ac7f9eb367ee9caa8 metadata.xml 254 RMD160 1bef8b94265bf2b400fb6235b3e43b504b8d2b71 metadata.xml 254 @@ -77,12 +67,6 @@ SHA256 2f74b19b40f358e0b309e9941f372c1db8aea32eaf03acbc726ae5990ccaa181 files/di MD5 a1b6ea45c7ab974a743757727b6ea8ce files/digest-openafs-1.2.13-r2 144 RMD160 ea7b059989bbc59fd0456dca2e1901a9982f918b files/digest-openafs-1.2.13-r2 144 SHA256 45a0d26afc0015cdb57f26021ba3825290bc4e371fe268c1a8c4cfd024ed2c12 files/digest-openafs-1.2.13-r2 144 -MD5 7948e4ffe7408ae5e75792011bf80cd4 files/digest-openafs-1.4.0 777 -RMD160 71c1ee71b18f73a82eeb6536e21f56fdbba5641f files/digest-openafs-1.4.0 777 -SHA256 57b5336e188ce8383d54de1c71e73fad348d0698a7eb19b7e5fd5fa9c45bb490 files/digest-openafs-1.4.0 777 -MD5 691b9ecac3caab4cab80edc42c909150 files/digest-openafs-1.4.0-r1 777 -RMD160 eebb99aa1bc86a7dfd72770a89ec58b142f8baf6 files/digest-openafs-1.4.0-r1 777 -SHA256 2e60f7d16cdc2a9420fb25c8c6dac0f7c43600c88fb5bd8064f72a1a929d22df files/digest-openafs-1.4.0-r1 777 MD5 f3559fdce8dae3cc271754e574f30f95 files/digest-openafs-1.4.0-r2 777 RMD160 e4f9ba8db820bee42d5f30707c5812c022565def files/digest-openafs-1.4.0-r2 777 SHA256 1d1ba88647dd37aba651a5f2a2d8f9effefa0ec562c04d7abedb3e3f22c0ddd4 files/digest-openafs-1.4.0-r2 777 diff --git a/net-fs/openafs/files/digest-openafs-1.4.0 b/net-fs/openafs/files/digest-openafs-1.4.0 deleted file mode 100644 index 8e6d8dd35743..000000000000 --- a/net-fs/openafs/files/digest-openafs-1.4.0 +++ /dev/null @@ -1,9 +0,0 @@ -MD5 315fb1110c0d1f95086de570c254dc32 openafs-1.4.0-doc.tar.bz2 2576915 -RMD160 ed68a6b0aabfefc92c475125991ee214a00d7ee7 openafs-1.4.0-doc.tar.bz2 2576915 -SHA256 47688b4f3ffb270f4d6f279445a0246aaf8d4bd125f692f285b9f255f18a3259 openafs-1.4.0-doc.tar.bz2 2576915 -MD5 df80dab7e8e346c6490a1382e85d05b5 openafs-1.4.0-src.tar.bz2 11268368 -RMD160 96cac36c5f0e0891b8a77506003d9bda448dce23 openafs-1.4.0-src.tar.bz2 11268368 -SHA256 439f4efee7f01f5859ae7b283df793c366e473a877cec687e58af02505a9e52c openafs-1.4.0-src.tar.bz2 11268368 -MD5 95496e4dee5c3c94b70a0131a8455b45 openafs-gentoo-0.4.tar.bz2 17266 -RMD160 b82f8947cb9aad7520d89e68a28eead6700f74c9 openafs-gentoo-0.4.tar.bz2 17266 -SHA256 f2ab36888ac8f4c50e08176efcda1641d4c79c5fa35fe075089a184ecc4d5156 openafs-gentoo-0.4.tar.bz2 17266 diff --git a/net-fs/openafs/files/digest-openafs-1.4.0-r1 b/net-fs/openafs/files/digest-openafs-1.4.0-r1 deleted file mode 100644 index 4af9d6737cd9..000000000000 --- a/net-fs/openafs/files/digest-openafs-1.4.0-r1 +++ /dev/null @@ -1,9 +0,0 @@ -MD5 315fb1110c0d1f95086de570c254dc32 openafs-1.4.0-doc.tar.bz2 2576915 -RMD160 ed68a6b0aabfefc92c475125991ee214a00d7ee7 openafs-1.4.0-doc.tar.bz2 2576915 -SHA256 47688b4f3ffb270f4d6f279445a0246aaf8d4bd125f692f285b9f255f18a3259 openafs-1.4.0-doc.tar.bz2 2576915 -MD5 df80dab7e8e346c6490a1382e85d05b5 openafs-1.4.0-src.tar.bz2 11268368 -RMD160 96cac36c5f0e0891b8a77506003d9bda448dce23 openafs-1.4.0-src.tar.bz2 11268368 -SHA256 439f4efee7f01f5859ae7b283df793c366e473a877cec687e58af02505a9e52c openafs-1.4.0-src.tar.bz2 11268368 -MD5 487b52b89968b32bb9f5bce590e3c11f openafs-gentoo-0.5.tar.bz2 17244 -RMD160 59fa174913bb633984241e77df75fe18b8b3fe20 openafs-gentoo-0.5.tar.bz2 17244 -SHA256 02be90c0a456bf2cbb984ea46dabdecc911d26738e226486c85ca5b4712ea67c openafs-gentoo-0.5.tar.bz2 17244 diff --git a/net-fs/openafs/openafs-1.4.0-r1.ebuild b/net-fs/openafs/openafs-1.4.0-r1.ebuild deleted file mode 100644 index 54d2e2ab593c..000000000000 --- a/net-fs/openafs/openafs-1.4.0-r1.ebuild +++ /dev/null @@ -1,322 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.0-r1.ebuild,v 1.1 2005/12/26 21:03:52 stefaan Exp $ - -inherit flag-o-matic eutils toolchain-funcs versionator - -PATCHVER=0.5 -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 ~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} -} - -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 - - econf \ - $(use_enable pam) \ - $(use_enable debug) \ - --enable-largefile-fileserver \ - ${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() { - # See bug 9849 - # Create afs mountpoint - mkdir /afs 2>/dev/null - - 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 -} - -pkg_prerm() { - # See bug 9849 - # Remove afs mountpoint - rmdir /afs 2>/dev/null -} - diff --git a/net-fs/openafs/openafs-1.4.0.ebuild b/net-fs/openafs/openafs-1.4.0.ebuild deleted file mode 100644 index e86534fbf4a8..000000000000 --- a/net-fs/openafs/openafs-1.4.0.ebuild +++ /dev/null @@ -1,322 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.0.ebuild,v 1.1 2005/11/13 15:14:19 stefaan Exp $ - -inherit flag-o-matic eutils toolchain-funcs versionator - -PATCHVER=0.4 -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 ~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} -} - -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 - - econf \ - $(use_enable pam) \ - $(use_enable debug) \ - --enable-largefile-fileserver \ - ${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, 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: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() { - # See bug 9849 - # Create afs mountpoint - mkdir /afs 2>/dev/null - - 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 -} - -pkg_prerm() { - # See bug 9849 - # Remove afs mountpoint - rmdir /afs 2>/dev/null -} - |