diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-06-21 22:54:01 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-06-21 22:54:01 +0000 |
commit | 074a764ce4fc4b6735ee4b32e66ca1339b0165c2 (patch) | |
tree | 51093010fd31d1d0d50363bf1a75b51b2931893b /net-fs/openafs | |
parent | Add Hardened support #318171 (diff) | |
download | historical-074a764ce4fc4b6735ee4b32e66ca1339b0165c2.tar.gz historical-074a764ce4fc4b6735ee4b32e66ca1339b0165c2.tar.bz2 historical-074a764ce4fc4b6735ee4b32e66ca1339b0165c2.zip |
old
Diffstat (limited to 'net-fs/openafs')
-rw-r--r-- | net-fs/openafs/files/openafs-1.4.5-shared-libs.patch | 27 | ||||
-rw-r--r-- | net-fs/openafs/files/openafs-1.4.7-uname.patch | 21 | ||||
-rw-r--r-- | net-fs/openafs/openafs-1.4.6.ebuild | 140 | ||||
-rw-r--r-- | net-fs/openafs/openafs-1.4.6_p20080222.ebuild | 154 | ||||
-rw-r--r-- | net-fs/openafs/openafs-1.4.7.ebuild | 152 | ||||
-rw-r--r-- | net-fs/openafs/openafs-1.4.8-r1.ebuild | 149 | ||||
-rw-r--r-- | net-fs/openafs/openafs-1.4.8.ebuild | 148 | ||||
-rw-r--r-- | net-fs/openafs/openafs-1.4.8_pre3.ebuild | 151 |
8 files changed, 0 insertions, 942 deletions
diff --git a/net-fs/openafs/files/openafs-1.4.5-shared-libs.patch b/net-fs/openafs/files/openafs-1.4.5-shared-libs.patch deleted file mode 100644 index fa109cf557d2..000000000000 --- a/net-fs/openafs/files/openafs-1.4.5-shared-libs.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -Naur openafs-1.4.5/src/shlibafsauthent/Makefile.in openafs-1.4.5.new/src/shlibafsauthent/Makefile.in ---- openafs-1.4.5/src/shlibafsauthent/Makefile.in 2006-08-20 15:17:25.000000000 -0500 -+++ openafs-1.4.5.new/src/shlibafsauthent/Makefile.in 2007-12-16 08:29:31.000000000 -0500 -@@ -115,7 +115,7 @@ - sun*_5*) \ - ${SHLIB_LINKER} -h libafsauthent.${SHLIB_SUFFIX}.${LIBAFSAUTHENTMAJOR} -o ${LIBAFSAUTHENT} ${LIBOBJS} -L${TOP_LIBDIR} -lafsrpc ${MT_LIBS};; \ - *_linux*) \ -- ${SHLIB_LINKER} -Wl,-h,libafsauthent.${SHLIB_SUFFIX}.${LIBAFSAUTHENTMAJOR} -Wl,--version-script=${srcdir}/mapfile -o ${LIBAFSAUTHENT} ${LIBOBJS} -L${TOP_LIBDIR} -lafsrpc ${MT_LIBS};; \ -+ ${SHLIB_LINKER} -Wl,-h,libafsauthent.${SHLIB_SUFFIX}.${LIBAFSAUTHENTMAJOR} -o ${LIBAFSAUTHENT} ${LIBOBJS} -L${TOP_LIBDIR} -lafsrpc ${MT_LIBS};; \ - *) \ - ${SHLIB_LINKER} -o ${LIBAFSAUTHENT} ${LIBOBJS} -L${TOP_LIBDIR} -lafsrpc ${MT_LIBS};; \ - esac -diff -Naur openafs-1.4.5/src/shlibafsrpc/Makefile.in openafs-1.4.5.new/src/shlibafsrpc/Makefile.in ---- openafs-1.4.5/src/shlibafsrpc/Makefile.in 2006-08-20 17:24:10.000000000 -0500 -+++ openafs-1.4.5.new/src/shlibafsrpc/Makefile.in 2007-12-16 06:55:18.000000000 -0500 -@@ -150,9 +150,9 @@ - sun*_5*) \ - ${SHLIB_LINKER} -h libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR} -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \ - amd64_linux*) \ -- ${SHLIB_LINKER} -Wl,-h,libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR} -Wl,--version-script=${srcdir}/mapfile.afs_xdr -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \ -+ ${SHLIB_LINKER} -Wl,-h,libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR} -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \ - *_linux*) \ -- ${SHLIB_LINKER} -Wl,-h,libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR} -Wl,--version-script=${srcdir}/mapfile -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \ -+ ${SHLIB_LINKER} -Wl,-h,libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR} -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \ - *) \ - ${SHLIB_LINKER} -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \ - esac diff --git a/net-fs/openafs/files/openafs-1.4.7-uname.patch b/net-fs/openafs/files/openafs-1.4.7-uname.patch deleted file mode 100644 index 7cedd843d77e..000000000000 --- a/net-fs/openafs/files/openafs-1.4.7-uname.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- acinclude.m4~ 2007-10-31 22:05:57.000000000 +0200 -+++ acinclude.m4 2007-10-31 22:06:30.000000000 +0200 -@@ -473,7 +473,7 @@ - AFS_SYSNAME="ia64_linuxXX" - ;; - powerpc-*-linux*) -- AFS_SYSNAME="`/bin/arch`_linuxXX" -+ AFS_SYSNAME="`uname -m`_linuxXX" - ;; - powerpc64-*-linux*) - AFS_SYSNAME="ppc64_linuxXX" -@@ -488,7 +488,7 @@ - AFS_SYSNAME="s390x_linuxXX" - ;; - sparc-*-linux*) -- AFS_SYSNAME="`/bin/arch`_linuxXX" -+ AFS_SYSNAME="`uname -m`_linuxXX" - ;; - sparc64-*-linux*) - AFS_SYSNAME="sparc64_linuxXX" - diff --git a/net-fs/openafs/openafs-1.4.6.ebuild b/net-fs/openafs/openafs-1.4.6.ebuild deleted file mode 100644 index a1e14e41c4dd..000000000000 --- a/net-fs/openafs/openafs-1.4.6.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 1999-2010 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.7 2010/02/06 10:50:02 ulm 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 BSD openafs-krb5-a APSL-2 sun-rpc" -SLOT="0" -KEYWORDS="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 "${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.6_p20080222.ebuild b/net-fs/openafs/openafs-1.4.6_p20080222.ebuild deleted file mode 100644 index 066b67c88325..000000000000 --- a/net-fs/openafs/openafs-1.4.6_p20080222.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2010 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_p20080222.ebuild,v 1.6 2010/02/06 10:50:02 ulm Exp $ - -inherit flag-o-matic eutils toolchain-funcs versionator pam - -PATCHVER=0.14 -MY_PV_DATE=${PV#*_p} -MY_PV=${PV%_p*} -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}/${MY_PV}/${MY_P}-src.tar.bz2 - doc? ( http://openafs.org/dl/${PN}/${MY_PV}/${MY_P}-doc.tar.bz2 ) - mirror://gentoo/${PN}-gentoo-${PATCHVER}.tar.bz2 - mirror://gentoo/${PN}-${MY_PV}-cvs${MY_PV_DATE}.patch.bz2" - -LICENSE="IBM BSD openafs-krb5-a APSL-2 sun-rpc" -SLOT="0" -KEYWORDS="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} - - # patch up to the specified cvs version - epatch "${DISTDIR}"/${MY_P}-cvs${MY_PV_DATE}.patch.bz2 - - # 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.4.7.ebuild b/net-fs/openafs/openafs-1.4.7.ebuild deleted file mode 100644 index 07c5495edfa3..000000000000 --- a/net-fs/openafs/openafs-1.4.7.ebuild +++ /dev/null @@ -1,152 +0,0 @@ -# Copyright 1999-2010 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.ebuild,v 1.4 2010/02/06 10:50:02 ulm 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 BSD openafs-krb5-a APSL-2 sun-rpc" -SLOT="0" -KEYWORDS="~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_EXCLUDE="006_all_ppc64.patch" \ - EPATCH_SUFFIX="patch" epatch ${PATCHDIR} - - # don't use mapfiles to strip symbols (bug #202489) - epatch "${FILESDIR}"/openafs-1.4.5-shared-libs.patch - # use uname i.o. arch (bug #211378) - epatch "${FILESDIR}"/openafs-1.4.7-uname.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 - - # fix autoconf cludge (bug #218234) - sed -i 's/^AC_\(AIX\|MINIX\)$//' acinclude.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 - - # AFS_SYSKVERS: 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.8-r1.ebuild b/net-fs/openafs/openafs-1.4.8-r1.ebuild deleted file mode 100644 index 7b74274d034c..000000000000 --- a/net-fs/openafs/openafs-1.4.8-r1.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.8-r1.ebuild,v 1.2 2010/02/06 10:50:02 ulm Exp $ - -inherit flag-o-matic eutils toolchain-funcs versionator pam - -PATCHVER=0.15 -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 BSD openafs-krb5-a APSL-2 sun-rpc" -SLOT="0" -KEYWORDS="~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_EXCLUDE="012_all_kbuild.patch" \ - epatch ${PATCHDIR} - - # 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 - - # fix autoconf cludge (bug #218234) - sed -i 's/^AC_\(AIX\|MINIX\)$//' acinclude.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 - - # AFS_SYSKVERS: 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 \ - --disable-strip-binaries \ - ${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.8.ebuild b/net-fs/openafs/openafs-1.4.8.ebuild deleted file mode 100644 index 9013ee21b83f..000000000000 --- a/net-fs/openafs/openafs-1.4.8.ebuild +++ /dev/null @@ -1,148 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.8.ebuild,v 1.5 2010/02/06 10:50:02 ulm Exp $ - -inherit flag-o-matic eutils toolchain-funcs versionator pam - -PATCHVER=0.15 -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 BSD openafs-krb5-a APSL-2 sun-rpc" -SLOT="0" -KEYWORDS="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_EXCLUDE="012_all_kbuild.patch" \ - epatch ${PATCHDIR} - - # 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 - - # fix autoconf cludge (bug #218234) - sed -i 's/^AC_\(AIX\|MINIX\)$//' acinclude.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 - - # AFS_SYSKVERS: 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.8_pre3.ebuild b/net-fs/openafs/openafs-1.4.8_pre3.ebuild deleted file mode 100644 index e2d1a8db3f7f..000000000000 --- a/net-fs/openafs/openafs-1.4.8_pre3.ebuild +++ /dev/null @@ -1,151 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.4.8_pre3.ebuild,v 1.3 2010/02/06 10:50:02 ulm Exp $ - -inherit flag-o-matic eutils toolchain-funcs versionator pam - -PATCHVER=0.15 -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 BSD openafs-krb5-a APSL-2 sun-rpc" -SLOT="0" -KEYWORDS="~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_EXCLUDE="012_all_kbuild.patch" \ - epatch ${PATCHDIR} - - # 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 - - # fix autoconf cludge (bug #218234) - sed -i 's/^AC_\(AIX\|MINIX\)$//' acinclude.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 - - # AFS_SYSKVERS: 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" -} |