summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorStefaan De Roeck <stefaan@gentoo.org>2007-12-28 15:22:08 +0000
committerStefaan De Roeck <stefaan@gentoo.org>2007-12-28 15:22:08 +0000
commit156ba835ac9f175f328381478695ce99f21fe473 (patch)
treea88d38dd2e1ce2f3de78f00cbd0ab6eff3bc9a85 /net-fs
parentSecurity bug #203573: bump to openafs version 1.4.6 (diff)
downloadgentoo-2-156ba835ac9f175f328381478695ce99f21fe473.tar.gz
gentoo-2-156ba835ac9f175f328381478695ce99f21fe473.tar.bz2
gentoo-2-156ba835ac9f175f328381478695ce99f21fe473.zip
Security bug #203573: bump to openafs version 1.4.6
(Portage version: 2.1.4_rc11)
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/openafs/ChangeLog7
-rw-r--r--net-fs/openafs/files/digest-openafs-1.4.69
-rw-r--r--net-fs/openafs/openafs-1.4.6.ebuild142
3 files changed, 157 insertions, 1 deletions
diff --git a/net-fs/openafs/ChangeLog b/net-fs/openafs/ChangeLog
index 05d8590c5859..96752a424f38 100644
--- a/net-fs/openafs/ChangeLog
+++ b/net-fs/openafs/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-fs/openafs
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.132 2007/12/13 10:24:47 stefaan Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.133 2007/12/28 15:22:07 stefaan Exp $
+
+*openafs-1.4.6 (28 Dec 2007)
+
+ 28 Dec 2007; Stefaan De Roeck <stefaan@gentoo.org> +openafs-1.4.6.ebuild:
+ Security bug #203573: bump to openafs version 1.4.6
13 Dec 2007; Stefaan De Roeck <stefaan@gentoo.org>
-files/openafs-ppc64.patch, -openafs-1.4.4_p20070724-r1.ebuild:
diff --git a/net-fs/openafs/files/digest-openafs-1.4.6 b/net-fs/openafs/files/digest-openafs-1.4.6
new file mode 100644
index 000000000000..b849581c820b
--- /dev/null
+++ b/net-fs/openafs/files/digest-openafs-1.4.6
@@ -0,0 +1,9 @@
+MD5 e7105b285cced68342a2d2b83508f850 openafs-1.4.6-doc.tar.bz2 3217027
+RMD160 abfb25ed194b1c7a1fe23d9d05336c5ab9ba99d3 openafs-1.4.6-doc.tar.bz2 3217027
+SHA256 fe463510c0cfc773461c7ba16d77ee09d7b3ade2481f8cc58cf233a02aa1f6cc openafs-1.4.6-doc.tar.bz2 3217027
+MD5 a0b5915c42c7404d6c221e1b9f34a872 openafs-1.4.6-src.tar.bz2 12485179
+RMD160 856fa915c7847c25dab77b450bc8b0c6f6aeb308 openafs-1.4.6-src.tar.bz2 12485179
+SHA256 996c6b53d81bd87f754e9596e24e11e65e6402b6ddab727634e05d73f3bb0ea1 openafs-1.4.6-src.tar.bz2 12485179
+MD5 ba74f1663bc740bda8f993f54eef801f openafs-gentoo-0.14.tar.bz2 18293
+RMD160 2a7ed8a40395d402de2f972fe0f96154d811e2b6 openafs-gentoo-0.14.tar.bz2 18293
+SHA256 e27918d395d656659b6f0d288d8a4d2501bd4ca6582824b8f3bbd420b06e6f6c openafs-gentoo-0.14.tar.bz2 18293
diff --git a/net-fs/openafs/openafs-1.4.6.ebuild b/net-fs/openafs/openafs-1.4.6.ebuild
new file mode 100644
index 000000000000..6d5d3004f083
--- /dev/null
+++ b/net-fs/openafs/openafs-1.4.6.ebuild
@@ -0,0 +1,142 @@
+# 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.6.ebuild,v 1.1 2007/12/28 15:22:07 stefaan Exp $
+
+inherit flag-o-matic eutils toolchain-funcs versionator pam
+
+PATCHVER=0.14
+DESCRIPTION="The OpenAFS distributed file system"
+HOMEPAGE="http://www.openafs.org/"
+SRC_URI="http://openafs.org/dl/${PV}/${P}-src.tar.bz2
+ doc? ( http://openafs.org/dl/${PV}/${P}-doc.tar.bz2 )
+ mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2"
+
+LICENSE="IBM openafs-krb5 openafs-krb5-a APSL-2 sun-rpc"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug kerberos pam doc"
+
+RDEPEND="~net-fs/openafs-kernel-${PV}
+ pam? ( sys-libs/pam )
+ kerberos? ( virtual/krb5 )"
+
+PATCHDIR=${WORKDIR}/gentoo/patches/$(get_version_component_range 1-2)
+CONFDIR=${WORKDIR}/gentoo/configs
+SCRIPTDIR=${WORKDIR}/gentoo/scripts
+
+src_unpack() {
+ unpack ${A}; cd "${S}"
+
+ # Apply patches to apply chosen compiler settings, fix the hardcoded paths
+ # to be more FHS friendly, and the fix the incorrect typecasts for va_arg
+ EPATCH_SUFFIX="patch" epatch ${PATCHDIR}
+
+ epatch "${FILESDIR}"/openafs-alpha-ucontext.patch
+
+ sed -i 's/^[ \t]*XCFLAGS.*//' src/cf/osconf.m4
+
+ ./regen.sh || die "Failed: regenerating configure script"
+}
+
+src_compile() {
+ # cannot use "use_with" macro, as --without-krb5-config crashes the econf
+ local myconf=""
+ if use kerberos; then
+ myconf="--with-krb5-conf=$(type -p krb5-config)"
+ fi
+
+ # fix linux version at 2.6
+ AFS_SYSKVERS=26 \
+ XCFLAGS="${CFLAGS}" \
+ econf \
+ $(use_enable pam) \
+ $(use_enable debug) \
+ --enable-largefile-fileserver \
+ --enable-supergroups \
+ --disable-kernel-module \
+ ${myconf} || die econf
+
+ emake -j1 all_nolibafs || die "Build failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install_nolibafs || die "Installing failed"
+
+ # pam_afs and pam_afs.krb have been installed in irregular locations, fix
+ if use pam; then
+ dopammod "${D}"/usr/$(get_libdir)/pam_afs*
+ rm -f "${D}"/usr/$(get_libdir)/pam_afs*
+ fi
+
+ # compile_et collides with com_err. Remove it from this package.
+ rm "${D}"/usr/bin/compile_et
+
+ # avoid collision with mit_krb5's version of kpasswd
+ (cd "${D}"/usr/bin; mv kpasswd kpasswd_afs)
+ use doc && (cd "${D}"/usr/share/man/man1; mv kpasswd.1 kpasswd_afs.1)
+
+ # minimal documentation
+ dodoc ${CONFDIR}/README ${CONFDIR}/CellServDB
+
+ # documentation package
+ if use doc; then
+ use pam && doman src/pam/pam_afs.5
+
+ cp -pPR doc/* "${D}"/usr/share/doc/${PF}
+ fi
+
+ # Gentoo related scripts
+ newconfd ${CONFDIR}/openafs-client openafs-client
+ newconfd ${CONFDIR}/openafs-server openafs-server
+ newinitd ${SCRIPTDIR}/openafs-client openafs-client
+ newinitd ${SCRIPTDIR}/openafs-server openafs-server
+
+ # used directories: client
+ keepdir /etc/openafs
+ keepdir /var/cache/openafs
+
+ # used directories: server
+ keepdir /etc/openafs/server
+ diropts -m0700
+ keepdir /var/lib/openafs
+ keepdir /var/lib/openafs/db
+ diropts -m0755
+ keepdir /var/lib/openafs/logs
+
+ # link logfiles to /var/log
+ dosym ../lib/openafs/logs /var/log/openafs
+}
+
+pkg_preinst() {
+ ## Somewhat intelligently install default configuration files
+ ## (when they are not present)
+ # CellServDB
+ if [ ! -e "${ROOT}"etc/openafs/CellServDB ] \
+ || grep "GCO Public CellServDB" "${ROOT}"etc/openafs/CellServDB &> /dev/null
+ then
+ cp ${CONFDIR}/CellServDB "${D}"etc/openafs
+ fi
+ # cacheinfo: use a default location cache, 200 megabyte in size
+ # (should be safe for about any root partition, the user can increase
+ # the size as required)
+ if [ ! -e "${ROOT}"etc/openafs/cacheinfo ]; then
+ echo "/afs:/var/cache/openafs:200000" > "${D}"etc/openafs/cacheinfo
+ fi
+ # ThisCell: default to "openafs.org"
+ if [ ! -e "${ROOT}"etc/openafs/ThisCell ]; then
+ echo "openafs.org" > "${D}"etc/openafs/ThisCell
+ fi
+}
+
+pkg_postinst() {
+ elog
+ elog "This installation should work out of the box (at least the"
+ elog "client part doing global afs-cell browsing, unless you had"
+ elog "a previous and different configuration). If you want to"
+ elog "set up your own cell or modify the standard config,"
+ elog "please have a look at the Gentoo OpenAFS documentation"
+ elog "(warning: it is not yet up to date wrt the new file locations)"
+ elog
+ elog "The documentation can be found at:"
+ elog " http://www.gentoo.org/doc/en/openafs.xml"
+}