parent
123e2e4130
commit
3bd6542972
@ -0,0 +1,563 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils alternatives flag-o-matic toolchain-funcs multilib multiprocessing
|
||||
|
||||
PATCH_VER=3
|
||||
CROSS_VER=1.1.4
|
||||
|
||||
PERL_OLDVERSEN="5.24.0"
|
||||
MODULE_AUTHOR=SHAY
|
||||
|
||||
SHORT_PV="${PV%.*}"
|
||||
MY_P="perl-${PV/_rc/-RC}"
|
||||
MY_PV="${PV%_rc*}"
|
||||
|
||||
DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
|
||||
|
||||
SRC_URI="
|
||||
mirror://cpan/src/5.0/${MY_P}.tar.xz
|
||||
mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.xz
|
||||
https://github.com/gentoo-perl/perl-patchset/releases/download/${MY_P}-patches-${PATCH_VER}/${MY_P}-patches-${PATCH_VER}.tar.xz
|
||||
mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.xz
|
||||
https://dev.gentoo.org/~kentnl/distfiles/${MY_P}-patches-${PATCH_VER}.tar.xz
|
||||
https://github.com/arsv/perl-cross/releases/download/${CROSS_VER}/perl-cross-${CROSS_VER}.tar.gz
|
||||
"
|
||||
HOMEPAGE="http://www.perl.org/"
|
||||
|
||||
LICENSE="|| ( Artistic GPL-1+ )"
|
||||
SLOT="0/${SHORT_PV}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="berkdb debug doc gdbm ithreads"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db:= )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.3 )
|
||||
app-arch/bzip2
|
||||
sys-libs/zlib
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
!prefix? ( elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) )
|
||||
"
|
||||
PDEPEND="
|
||||
>=app-admin/perl-cleaner-2.5
|
||||
>=virtual/perl-File-Path-2.130.0
|
||||
>=virtual/perl-File-Temp-0.230.400-r2
|
||||
>=virtual/perl-Data-Dumper-2.154.0
|
||||
virtual/perl-Test-Harness
|
||||
"
|
||||
# bug 390719, bug 523624, bug 620304
|
||||
# virtual/perl-Test-Harness is here for the bundled ExtUtils::MakeMaker
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
dual_scripts() {
|
||||
src_remove_dual perl-core/Archive-Tar 2.40.100_rc ptar ptardiff ptargrep
|
||||
src_remove_dual perl-core/CPAN 2.110.100_rc cpan
|
||||
src_remove_dual perl-core/Digest-SHA 5.950.100_rc shasum
|
||||
src_remove_dual perl-core/Encode 2.800.100_rc enc2xs piconv
|
||||
src_remove_dual perl-core/ExtUtils-MakeMaker 7.100.200_rc instmodsh
|
||||
src_remove_dual perl-core/ExtUtils-ParseXS 3.310.0 xsubpp
|
||||
src_remove_dual perl-core/IO-Compress 2.69.1_rc zipdetails
|
||||
src_remove_dual perl-core/JSON-PP 2.273.0.100_rc json_pp
|
||||
src_remove_dual perl-core/Module-CoreList 5.201.701.142.400_rc corelist
|
||||
src_remove_dual perl-core/Pod-Parser 1.630.0 pod2usage podchecker podselect
|
||||
src_remove_dual perl-core/Pod-Perldoc 3.250.300_rc perldoc
|
||||
src_remove_dual perl-core/Test-Harness 3.360.100_rc prove
|
||||
src_remove_dual perl-core/podlators 4.70.0 pod2man pod2text
|
||||
src_remove_dual_man perl-core/podlators 4.70.0 /usr/share/man/man1/perlpodstyle.1
|
||||
}
|
||||
|
||||
check_rebuild() {
|
||||
# Fresh install
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
return 0;
|
||||
# Major Upgrade
|
||||
# doesn't matter if there's multiple copies, it still needs a rebuild
|
||||
# if the string is anything other than "5.CURRENTMAJOR"
|
||||
elif [[ "${REPLACING_VERSIONS%.*}" != "${PV%.*}" ]]; then
|
||||
echo ""
|
||||
ewarn "UPDATE THE PERL MODULES:"
|
||||
ewarn "After updating dev-lang/perl the installed Perl modules"
|
||||
ewarn "have to be re-installed. In most cases, this is done automatically"
|
||||
ewarn "by the package manager, but subsequent steps are still recommended"
|
||||
ewarn "to ensure system consistency."
|
||||
ewarn
|
||||
ewarn "You should start with a depclean to remove any unused perl dependencies"
|
||||
ewarn "that may confuse portage in future. Regular depcleans are also encouraged"
|
||||
ewarn "as part of your regular update cycle, as that will keep perl upgrades working."
|
||||
ewarn "Recommended: emerge --depclean -va"
|
||||
ewarn
|
||||
ewarn "You should then call perl-cleaner to clean up any old files and trigger any"
|
||||
ewarn "remaining rebuilds portage may have missed."
|
||||
ewarn "Use: perl-cleaner --all"
|
||||
return 0;
|
||||
|
||||
# Reinstall w/ USE Change
|
||||
elif ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
|
||||
( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
|
||||
( use debug && ! has_version dev-lang/perl[debug] ) || \
|
||||
( ! use debug && has_version dev-lang/perl[debug] ) ; then
|
||||
echo ""
|
||||
ewarn "TOGGLED USE-FLAGS WARNING:"
|
||||
ewarn "You changed one of the use-flags ithreads or debug."
|
||||
ewarn "You must rebuild all perl-modules installed."
|
||||
ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
case ${CHOST} in
|
||||
*-freebsd*) osname="freebsd" ;;
|
||||
*-dragonfly*) osname="dragonfly" ;;
|
||||
*-netbsd*) osname="netbsd" ;;
|
||||
*-openbsd*) osname="openbsd" ;;
|
||||
*-darwin*) osname="darwin" ;;
|
||||
*-interix*) osname="interix" ;;
|
||||
*-aix*) osname="aix" ;;
|
||||
*-cygwin*) osname="cygwin" ;;
|
||||
*) osname="linux" ;;
|
||||
esac
|
||||
|
||||
myarch="${CHOST%%-*}-${osname}"
|
||||
if use debug ; then
|
||||
myarch+="-debug"
|
||||
fi
|
||||
if use ithreads ; then
|
||||
mythreading="-multi"
|
||||
myarch+="-thread"
|
||||
fi
|
||||
|
||||
LIBPERL="libperl$(get_libname ${MY_PV} )"
|
||||
PRIV_LIB="/usr/$(get_libdir)/perl5/${MY_PV}"
|
||||
ARCH_LIB="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
|
||||
SITE_LIB="/usr/local/$(get_libdir)/perl5/${MY_PV}"
|
||||
SITE_ARCH="/usr/local/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
|
||||
VENDOR_LIB="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}"
|
||||
VENDOR_ARCH="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}"
|
||||
|
||||
dual_scripts
|
||||
}
|
||||
|
||||
src_remove_dual_file() {
|
||||
local i pkg ver
|
||||
pkg="$1"
|
||||
ver="$2"
|
||||
shift 2
|
||||
case "${EBUILD_PHASE:-none}" in
|
||||
postinst|postrm)
|
||||
for i in "$@" ; do
|
||||
alternatives_auto_makesym "${i}" "${i}-[0-9]*"
|
||||
done
|
||||
;;
|
||||
setup)
|
||||
for i in "$@" ; do
|
||||
if [[ -f ${EROOT}${i} && ! -h ${EROOT}${i} ]] ; then
|
||||
has_version ${pkg} && ewarn "You must reinstall ${pkg} !"
|
||||
break
|
||||
fi
|
||||
done
|
||||
;;
|
||||
install)
|
||||
for i in "$@" ; do
|
||||
if ! [[ -f "${ED}"${i} ]] ; then
|
||||
ewarn "${i} does not exist!"
|
||||
continue
|
||||
fi
|
||||
mv "${ED}"${i}{,-${ver}-${P}} || die
|
||||
done
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_remove_dual_man() {
|
||||
local i pkg ver ff
|
||||
pkg="$1"
|
||||
ver="$2"
|
||||
shift 2
|
||||
case "${EBUILD_PHASE:-none}" in
|
||||
postinst|postrm)
|
||||
for i in "$@" ; do
|
||||
ff=`echo "${EROOT}${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}}"*`
|
||||
ff=${ff##*${i#${i%.[0-9]}}}
|
||||
alternatives_auto_makesym "${i}${ff}" "${i%.[0-9]}-[0-9]*"
|
||||
done
|
||||
;;
|
||||
install)
|
||||
for i in "$@" ; do
|
||||
if ! [[ -f "${ED}"${i} ]] ; then
|
||||
ewarn "${i} does not exist!"
|
||||
continue
|
||||
fi
|
||||
mv "${ED}"${i} "${ED}"${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}} || die
|
||||
done
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_remove_dual() {
|
||||
local i pkg ver
|
||||
pkg="$1"
|
||||
ver="$2"
|
||||
shift 2
|
||||
for i in "$@" ; do
|
||||
src_remove_dual_file "${pkg}" "${ver}" "/usr/bin/${i}"
|
||||
src_remove_dual_man "${pkg}" "${ver}" "/usr/share/man/man1/${i}.1"
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare_update_patchlevel_h() {
|
||||
# Copied and modified from debian:
|
||||
# Copyright 2011 Niko Tyni
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the same terms as Perl itself.
|
||||
local patchdir="${WORKDIR}/patches"
|
||||
local prefix
|
||||
local patchoutput="patchlevel-gentoo.h"
|
||||
|
||||
[[ -f ${patchdir}/series ]] || return 0
|
||||
|
||||
while read patch
|
||||
do
|
||||
patchname=$(echo $patch | sed 's/\.diff$//')
|
||||
< $patchdir/$patch sed -e '/^Subject:/ { N; s/\n / / }' | sed -n -e '
|
||||
|
||||
# massage the patch headers
|
||||
s|^Bug: .*https\?://rt\.perl\.org/.*id=\(.*\).*|[perl #\1]|; tprepend;
|
||||
s|^Bug: .*https\?://rt\.cpan\.org/.*id=\(.*\).*|[rt.cpan.org #\1]|; tprepend;
|
||||
s|^Bug-Gentoo: ||; tprepend;
|
||||
s/^\(Subject\|Description\): //; tappend;
|
||||
s|^Origin: .*http://perl5\.git\.perl\.org/perl\.git/commit\(diff\)\?/\(.......\).*|[\2]|; tprepend;
|
||||
|
||||
# post-process at the end of input
|
||||
$ { x;
|
||||
# include the version number in the patchlevel.h description (if available)
|
||||
s/List packaged patches/&'" for ${PF}(#${PATCH_VER})"'/;
|
||||
|
||||
# escape any backslashes and double quotes
|
||||
s|\\|\\\\|g; s|"|\\"|g;
|
||||
|
||||
# add a prefix
|
||||
s|^|\t,"'"$prefix$patchname"' - |;
|
||||
# newlines away
|
||||
s/\n/ /g; s/ */ /g;
|
||||
# add a suffix
|
||||
s/ *$/"/; p
|
||||
};
|
||||
# stop all processing
|
||||
d;
|
||||
# label: append to the hold space
|
||||
:append H; d;
|
||||
# label: prepend to the hold space
|
||||
:prepend x; H; d;
|
||||
'
|
||||
done < "${WORKDIR}"/patches/series > "${S}/${patchoutput}"
|
||||
echo "${patchoutput}" >> "${S}/MANIFEST"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
EPATCH_OPTS+=" -p1"
|
||||
einfo "Applying patches from ${MY_P}-${PATCH_VER} ..."
|
||||
while read patch ; do
|
||||
EPATCH_SINGLE_MSG=" ${patch} ..."
|
||||
epatch "${WORKDIR}"/patches/${patch}
|
||||
done < "${WORKDIR}"/patches/series
|
||||
|
||||
src_prepare_update_patchlevel_h
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
cp -a ../perl-cross-${CROSS_VER}/* . || die
|
||||
|
||||
sed -i \
|
||||
-e 's/(15 + $CLEANUP)/(13 + $CLEANUP)/' \
|
||||
cnf/diffs/perl5-${PV}/makemaker-test.patch || die
|
||||
|
||||
sed -i \
|
||||
-e 's/MakeMaker\.pm .*/MakeMaker.pm bf9174c70a0e50ff2fee4552c7df89b37d292da1/' \
|
||||
-e 's/MM_Unix\.pm .*/MM_Unix.pm b0ec308fe2d7dcfcef5732880db0fae1f4ea80fa/' \
|
||||
cnf/diffs/perl5-${PV}/customized.patch || die
|
||||
|
||||
sed -i \
|
||||
-e 's|^lib/unicore/CombiningClass.pl pod/perluniprops.pod:|lib/unicore/CombiningClass.pl pod/perluniprops.pod: $(CONFIGPM)|' \
|
||||
Makefile || die
|
||||
|
||||
# bug 604072
|
||||
MAKEOPTS+=" -j1"
|
||||
export MAKEOPTS
|
||||
fi
|
||||
|
||||
if ! tc-is-static-only ; then
|
||||
ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV}) || die
|
||||
ln -s ${LIBPERL} libperl$(get_libname ) || die
|
||||
fi
|
||||
|
||||
if use gdbm; then
|
||||
sed -i "s:INC => .*:INC => \"-I${EROOT}usr/include/gdbm\":g" \
|
||||
ext/NDBM_File/Makefile.PL || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
myconf() {
|
||||
# the myconf array is declared in src_configure
|
||||
myconf=( "${myconf[@]}" "$@" )
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
declare -a myconf
|
||||
|
||||
export LC_ALL="C"
|
||||
[[ ${COLUMNS:-1} -ge 1 ]] || unset COLUMNS # bug #394091
|
||||
|
||||
# some arches and -O do not mix :)
|
||||
use ppc && replace-flags -O? -O1
|
||||
|
||||
# Perl has problems compiling with -Os in your flags with glibc
|
||||
use elibc_uclibc || replace-flags "-Os" "-O2"
|
||||
|
||||
# This flag makes compiling crash in interesting ways
|
||||
filter-flags "-malign-double"
|
||||
|
||||
# Fixes bug #97645
|
||||
use ppc && filter-flags "-mpowerpc-gpopt"
|
||||
|
||||
# Fixes bug #143895 on gcc-4.1.1
|
||||
filter-flags "-fsched2-use-superblocks"
|
||||
|
||||
use sparc && myconf -Ud_longdbl
|
||||
|
||||
export BUILD_BZIP2=0
|
||||
export BZIP2_INCLUDE=${EROOT}/usr/include
|
||||
export BZIP2_LIB=${EROOT}/usr/$(get_libdir)
|
||||
|
||||
export BUILD_ZLIB=False
|
||||
export ZLIB_INCLUDE=${EROOT}/usr/include
|
||||
export ZLIB_LIB=${EROOT}/usr/$(get_libdir)
|
||||
|
||||
# allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
|
||||
myndbm='U'
|
||||
mygdbm='U'
|
||||
mydb='U'
|
||||
if use gdbm ; then
|
||||
mygdbm='D'
|
||||
if use berkdb ; then
|
||||
myndbm='D'
|
||||
fi
|
||||
fi
|
||||
if use berkdb ; then
|
||||
mydb='D'
|
||||
has_version '=sys-libs/db-1*' && myndbm='D'
|
||||
fi
|
||||
|
||||
myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
|
||||
|
||||
if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
|
||||
ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
|
||||
myconf -Ui_db -Ui_ndbm
|
||||
fi
|
||||
|
||||
use ithreads && myconf -Dusethreads
|
||||
|
||||
if use debug ; then
|
||||
append-cflags "-g"
|
||||
myconf -DDEBUGGING
|
||||
elif [[ ${CFLAGS} == *-g* ]] ; then
|
||||
myconf -DDEBUGGING=-g
|
||||
else
|
||||
myconf -DDEBUGGING=none
|
||||
fi
|
||||
|
||||
if [[ -n ${PERL_OLDVERSEN} ]] ; then
|
||||
local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v}/${myarch}${mythreading} ${v} "; done )
|
||||
myconf -Dinc_version_list="${inclist}"
|
||||
fi
|
||||
|
||||
[[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
|
||||
|
||||
# Make sure we can do the final link #523730, need to set deployment
|
||||
# target to override hardcoded 10.3 which breaks on modern OSX
|
||||
[[ ${CHOST} == *-darwin* ]] && \
|
||||
myconf "-Dld=env MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} $(tc-getCC)"
|
||||
|
||||
# Prefix: the host system needs not to follow Gentoo multilib stuff, and in
|
||||
# Prefix itself we don't do multilib either, so make sure perl can find
|
||||
# something compatible.
|
||||
if use prefix ; then
|
||||
# Set a hook to check for each detected library whether it actually works.
|
||||
export libscheck="
|
||||
( echo 'main(){}' > '${T}'/conftest.c &&
|
||||
$(tc-getCC) -o '${T}'/conftest '${T}'/conftest.c -l\$thislib >/dev/null 2>/dev/null
|
||||
) || xxx=/dev/null"
|
||||
|
||||
# Use all host paths that might contain useful stuff, the hook above will filter out bad choices.
|
||||
local paths="/lib/*-linux-gnu /usr/lib/*-linux-gnu /lib64 /lib/64 /usr/lib64 /usr/lib/64 /lib32 /usr/lib32 /lib /usr/lib"
|
||||
myconf "-Dlibpth=${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir) ${paths}"
|
||||
elif [[ $(get_libdir) != "lib" ]] ; then
|
||||
# We need to use " and not ', as the written config.sh use ' ...
|
||||
myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
|
||||
fi
|
||||
|
||||
# don't try building ODBM, bug #354453
|
||||
disabled_extensions="ODBM_File"
|
||||
|
||||
if ! use gdbm ; then
|
||||
# workaround for bug #157774: don't try building GDBM related stuff with USE="-gdbm"
|
||||
disabled_extensions="${disabled_extensions} GDBM_File NDBM_File"
|
||||
fi
|
||||
|
||||
myconf -Dnoextensions="${disabled_extensions}"
|
||||
|
||||
[[ -n "${EXTRA_ECONF}" ]] && ewarn During Perl build, EXTRA_ECONF=${EXTRA_ECONF}
|
||||
# allow fiddling via EXTRA_ECONF, bug 558070
|
||||
eval "local -a EXTRA_ECONF=(${EXTRA_ECONF})"
|
||||
|
||||
myconf \
|
||||
-Duseshrplib \
|
||||
-Darchname="${myarch}" \
|
||||
-Dcc="$(tc-getCC)" \
|
||||
-Doptimize="${CFLAGS}" \
|
||||
-Dldflags="${LDFLAGS}" \
|
||||
-Dprefix="${EPREFIX}"'/usr' \
|
||||
-Dsiteprefix="${EPREFIX}"'/usr/local' \
|
||||
-Dvendorprefix="${EPREFIX}"'/usr' \
|
||||
-Dscriptdir="${EPREFIX}"'/usr/bin' \
|
||||
-Dprivlib="${EPREFIX}${PRIV_LIB}" \
|
||||
-Darchlib="${EPREFIX}${ARCH_LIB}" \
|
||||
-Dsitelib="${EPREFIX}${SITE_LIB}" \
|
||||
-Dsitearch="${EPREFIX}${SITE_ARCH}" \
|
||||
-Dvendorlib="${EPREFIX}${VENDOR_LIB}" \
|
||||
-Dvendorarch="${EPREFIX}${VENDOR_ARCH}" \
|
||||
-Dman1dir="${EPREFIX}"/usr/share/man/man1 \
|
||||
-Dman3dir="${EPREFIX}"/usr/share/man/man3 \
|
||||
-Dsiteman1dir="${EPREFIX}"/usr/local/man/man1 \
|
||||
-Dsiteman3dir="${EPREFIX}"/usr/local/man/man3 \
|
||||
-Dvendorman1dir="${EPREFIX}"/usr/share/man/man1 \
|
||||
-Dvendorman3dir="${EPREFIX}"/usr/share/man/man3 \
|
||||
-Dman1ext='1' \
|
||||
-Dman3ext='3pm' \
|
||||
-Dlibperl="${LIBPERL}" \
|
||||
-Dlocincpth="${EPREFIX}"'/usr/include ' \
|
||||
-Dglibpth="${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir)"' ' \
|
||||
-Duselargefiles \
|
||||
-Dd_semctl_semun \
|
||||
-Dcf_by='Gentoo' \
|
||||
-Dmyhostname='localhost' \
|
||||
-Dperladmin='root@localhost' \
|
||||
-Ud_csh \
|
||||
-Dsh="${EPREFIX}"/bin/sh \
|
||||
-Dtargetsh="${EPREFIX}"/bin/sh \
|
||||
-Uusenm \
|
||||
"${myconf[@]}" \
|
||||
"${EXTRA_ECONF[@]}"
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
./configure \
|
||||
--target="${CHOST}" \
|
||||
--build="${CBUILD}" \
|
||||
-Dinstallprefix='' \
|
||||
-Dinstallusrbinperl='undef' \
|
||||
-Dusevendorprefix='define' \
|
||||
"${myconf[@]}" \
|
||||
|| die "Unable to configure"
|
||||
else
|
||||
sh Configure \
|
||||
-des \
|
||||
-Dinstallprefix="${EPREFIX}"'/usr' \
|
||||
-Dinstallusrbinperl='n' \
|
||||
"${myconf[@]}" \
|
||||
|| die "Unable to configure"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export NO_GENTOO_NETWORK_TESTS=1;
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
ewarn "Test fails with a sandbox error (#328793) if run as root. Skipping tests..."
|
||||
return 0
|
||||
fi
|
||||
use elibc_uclibc && export MAKEOPTS+=" -j1"
|
||||
TEST_JOBS="$(makeopts_jobs)" make test_harness || die "test failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
local coredir="${ARCH_LIB}/CORE"
|
||||
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
rm -f "${ED}/usr/bin/perl${MY_PV}"
|
||||
ln -s perl "${ED}"/usr/bin/perl${MY_PV} || die
|
||||
|
||||
if ! tc-is-static-only ; then
|
||||
dolib.so "${ED}"${coredir}/${LIBPERL}
|
||||
rm -f "${ED}"${coredir}/${LIBPERL}
|
||||
ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
|
||||
ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname) || die
|
||||
ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/${LIBPERL} || die
|
||||
ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname ${SHORT_PV}) || die
|
||||
ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname) || die
|
||||
fi
|
||||
|
||||
rm -rf "${ED}"/usr/share/man/man3 || die "Unable to remove module man pages"
|
||||
|
||||
# This removes ${D} from Config.pm
|
||||
for i in $(find "${D}" -iname "Config.pm" ) ; do
|
||||
einfo "Removing ${D} from ${i}..."
|
||||
sed -i -e "s:${D}::" "${i}" || die "Sed failed"
|
||||
done
|
||||
|
||||
dodoc Changes* README AUTHORS
|
||||
|
||||
if use doc ; then
|
||||
# HTML Documentation
|
||||
# We expect errors, warnings, and such with the following.
|
||||
|
||||
dodir /usr/share/doc/${PF}/html
|
||||
LD_LIBRARY_PATH=. ./perl installhtml \
|
||||
--podroot='.' \
|
||||
--podpath='lib:ext:pod:vms' \
|
||||
--recurse \
|
||||
--htmldir="${ED}/usr/share/doc/${PF}/html"
|
||||
fi
|
||||
|
||||
[[ -d ${ED}/usr/local ]] && rm -r "${ED}"/usr/local
|
||||
|
||||
dual_scripts
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
check_rebuild
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
dual_scripts
|
||||
|
||||
if [[ "${ROOT}" = "/" ]] ; then
|
||||
local INC DIR file
|
||||
INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${SHORT_PV}'|etc|local|perl$/; print "$line\n" }')
|
||||
einfo "Removing old .ph files"
|
||||
for DIR in ${INC} ; do
|
||||
if [[ -d "${DIR}" ]] ; then
|
||||
for file in $(find "${DIR}" -name "*.ph" -type f ) ; do
|
||||
rm -f "${file}"
|
||||
einfo "<< ${file}"
|
||||
done
|
||||
fi
|
||||
done
|
||||
# Silently remove the now empty dirs
|
||||
for DIR in ${INC} ; do
|
||||
if [[ -d "${DIR}" ]] ; then
|
||||
find "${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
|
||||
fi
|
||||
done
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm(){
|
||||
dual_scripts
|
||||
}
|
@ -1,7 +1,9 @@
|
||||
DIST librelp-1.2.12.tar.gz 437945 SHA256 0355730524f7b20bed1b85697296b6ce57ac593ddc8dddcdca263da71dee7bd7 SHA512 bfc38882404e06c047bdabd203d71beba67bc5a717d2d6733863f15f0a3a09b4a792a628a1653c102c828fde7ff67cc8ade637de785399ab48a68605b23a72ed WHIRLPOOL 0d3193b3f0f21e940793df0f2c53bb46944c1fbfe4f7aee8b0ecbaead3053185f981a695eaae65d6ea1581ea4a8011e83e2ffff0436ab15bdd4f82b9a012f9a3
|
||||
DIST librelp-1.2.13.tar.gz 437877 SHA256 38df3ca7feba55850602bbefe3ac3c035e7666691d46b8bfbff1f1a4c774c0c7 SHA512 62d22998711ed82f30a1fce7c6b25dca514717c513d5833ce9ea6951d20f6922787213285be710c30fd28fd80d07ee9313f92cc7e09531ca8ac5e12627dbc868 WHIRLPOOL e420c237d1307b1e507385e005bcfde51183efe80bdcedaedfc6da22fcb55407dd47b696e602daa2f706418a9d49087dfa3628daf19147fbd5402ef7b37d8d72
|
||||
DIST librelp-1.2.14.tar.gz 437975 SHA256 11f6241a4336358a33bfdadd43ef299e8258db0a5243d0c164499c6b85ae5955 SHA512 b9a947edb7f23ba533f358d3271a61e80fcca7db8be0c20b39ec61ce4d913efed25173330a0604faebfbbdf33a051ed43234b2b41be2480dc3459c35b91acaae WHIRLPOOL e6c4cfb104f062fcb11a4beeff6ed0fbf8b38804838f365990735d2d7b52a1ce9750dc890d35ef300c951d54d30eb31b059c465f7a88b2df4cc31f9cfd377f5f
|
||||
EBUILD librelp-1.2.12.ebuild 978 SHA256 5bbc24d190303f98a77ca3622c9385cfd59b4d58caa33310e450722a76d54f79 SHA512 935b4372194efd5f60d696b778c956ce42d5468919c050533fa98f9b9fc75f452fd16e77e569bec1639dd8d12a9edcd0f9a02c57df638af4c4594d7973111f7f WHIRLPOOL abbed22ff89491ae803d6209fb61bc0ef8623ce3b0501eb60e76b8f055bdb54abbbdabfe6dfa6e2da9b8bad0e5b60172fbea1fc486144f12a1b82527d49e87b7
|
||||
EBUILD librelp-1.2.13.ebuild 985 SHA256 947f126e8a78530ed8f9d2ebc34af4215aa69000a02fb20378bbec05224382c9 SHA512 3fe55049cf43b4d398758f831c7348f98e39619d5343104c4b0d42cfca08e373863c3ed7c521a6dbf6216d3ece7620eb334914a7c60d6f36ff69709a9fa49be8 WHIRLPOOL 7e1d920e4ba2043e460ceecba0869b96d8098f5e8d75a48925b0dff1e2365ad71d71c646995d21470f046015356900ca3f21e4d62a6c1cb50d11fc4a394920c2
|
||||
EBUILD librelp-1.2.14.ebuild 985 SHA256 dd9b55a4fb5ecfa5430d6080becbe981fb3b1cc94996d814561d493b8f28cd06 SHA512 61d26e3075b62a157763cad46b5c635bc8009c2955d3a8ec9fdb44e880c8fa10bcc752c6ae2eaec180b33228ea53c294013a84c77d08b6d31f8ce586d190f567 WHIRLPOOL 83b1219113a8fb6829783b057e1eb9919f091ac33b6383dd46525379e9ffdc46a04d5f56e8dbb9ed2fdaa91711c443eeed3c1d8b3b051b04b619acd9ae641de2
|
||||
MISC ChangeLog 4984 SHA256 27c0e0fc1a11b3e6ef9ba1aa047daa687122bed9066fbb71080cd5d7c069b164 SHA512 787a97fd6b1182c2f5933aed6567f50af789e7f42fdba95e4003bbb3677c3811de774077e260ad1b8b15a196d16f633c541e6cb69518d20fbba6658d4216b9fc WHIRLPOOL 6601ade48f53a161792739a19f22834da1e30e38ae681a9aadd0a8966d63095f680fa7a4e29c843ffa4c2d247a85798299264ce3cba3224918d511d91b9ff952
|
||||
MISC ChangeLog-2015 4438 SHA256 016753b968f87df0427042a7ccad54bb194d03b2bce76d5f128ae1b5608630c8 SHA512 8ec2e42f180d0dd235270a9563d85d674dcf9229f9caad225b36c33b48174dbaa072a922b96e7fb8e64534e7e7fb7994e7cebb9f8f9cb5bfdf82991788a9703c WHIRLPOOL 6fc5bca3b586bc6baff83568761c88fcfffe38cf8438b7f0919e6c11a47b13242df87499cf7966dd4f1b1fc3eb5bd6e9d675b4046b5fc9ea4223c4566e80a496
|
||||
MISC metadata.xml 358 SHA256 a12a6df3a6be69b889d12fb36c83dcf99a18c3de76d66a4f945458ce0ea647f0 SHA512 8b0638c9c4d4c385dc14d8b3e0300791d181bd08c9476dfe5d881281b8b6d4e7bbd8501c06159602d38db4b037b24ad45615b29377cf5a8989ae850fff8f362d WHIRLPOOL 536188045f565e1c61038bcd1d13f405ff20d477a98865cb95d0f596f5b194daac5debda824bf73583c50de7cda63368093895d581cca1638d22755e85525c76
|
||||
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="An easy to use library for the RELP protocol"
|
||||
HOMEPAGE="http://www.librelp.com/"
|
||||
SRC_URI="http://download.rsyslog.com/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+ doc? ( FDL-1.3 )"
|
||||
|
||||
# subslot = soname version
|
||||
SLOT="0/0.3.0"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~sparc ~x86"
|
||||
IUSE="debug doc +ssl static-libs"
|
||||
|
||||
RDEPEND="
|
||||
ssl? ( >=net-libs/gnutls-3.3.17.1:0= )
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
ssl? ( >=net-libs/gnutls-3.3.17.1:0= )
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e 's/ -g"/"/g' \
|
||||
configure.ac || die "sed failed"
|
||||
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable debug)
|
||||
$(use_enable ssl tls)
|
||||
$(use_enable static-libs static)
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( ChangeLog )
|
||||
use doc && local HTML_DOCS=( doc/relp.html )
|
||||
default
|
||||
|
||||
find "${ED}"usr/lib* -name '*.la' -delete || die
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST click-plugins-1.0.3.tar.gz 7950 SHA256 7acc5e7eedd2dfd719714e8d53ae99030b5357aed661d0b06dacd6c2d583d7c5 SHA512 1eac03d57931bdf8e2f387164490436b3b921738936ee6cd9a58246e05e84133e77c47dd606a00d1b3e238a806bf83ffe7dc7c758a92d789cc229a94ed26e17f WHIRLPOOL c06f7a943af5074db94b45d77b0ceb85b3601616c64b46c3495b8729005f8d691795efba39e773c247f26d9a658ce48f4cb1fcadc10394dd57cfc6de027db569
|
||||
EBUILD click-plugins-1.0.3.ebuild 506 SHA256 53733d738c4e9454cc45d0022a2d31750d991878db10ef1bfe3e3dc6eb444a37 SHA512 354fca0161f7ee23f6b95921589daae6de7c53ca9fd6acf87785abd5ef46652ae90e1a5251cde77f8f190e384ccef6c6c3a4216fb96c8c4331660b95469beac7 WHIRLPOOL f5f3c7cb6f233d7b59f052861da370a59c1edcfebf20d4440e06ebe625a38e13ead1afc5fb2f6cebd5fb3a74d0edba9911fb4b19eaa7b7346ccd21f68b287449
|
||||
EBUILD click-plugins-1.0.3.ebuild 514 SHA256 e032af2a1ae5f5f1f4ce2d5d16e9ba794b1dbaee2413d44438d52a8e2cf56569 SHA512 93d68a5939916dd72f7d9159074c55cfaf9bb686c375fae2ee71ebc9dd8fd2ef46631fcafbccb29f1d543eb7d8fd89fd9812e72c9a5a3eaa0152a938061f232d WHIRLPOOL 2dcddaaad603fce597e88d827a29f161b102282f670e5aee297ec29bc5f63c0de67d42824ea7ceabf4fe8cde602007bc9654019e2ad0a1e48204c18ddd07216b
|
||||
MISC metadata.xml 299 SHA256 8b7e28829cfbff959ca8963fa87c123272117b6ea58849f9cf1eef9090e0dffa SHA512 b37fff24719eed45df0c672912037dff92cd7c820316fd17ac532d8aa3d6b04103c837fa436fb4863b4dcaecde2fab4fb35b0e86e2f7c083364be723dc979e61 WHIRLPOOL 17ab19e8a4785a4e760b9b300fde54e96da0f3feb5a4c9893636296384f815a1dc0f67eb0984b34d724808db656eaa5e074e3a4b01de324a29db9059234ae61a
|
||||
|
@ -1 +1 @@
|
||||
Thu, 01 Jun 2017 10:08:58 +0000
|
||||
Thu, 01 Jun 2017 12:38:59 +0000
|
||||
|
@ -1 +1 @@
|
||||
Thu, 01 Jun 2017 10:08:59 +0000
|
||||
Thu, 01 Jun 2017 12:38:59 +0000
|
||||
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=configure install postinst postrm preinst prepare setup test
|
||||
DEPEND=berkdb? ( sys-libs/db:= ) gdbm? ( >=sys-libs/gdbm-1.8.3 ) app-arch/bzip2 sys-libs/zlib !prefix? ( elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) )
|
||||
DESCRIPTION=Larry Wall's Practical Extraction and Report Language
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.perl.org/
|
||||
IUSE=berkdb debug doc gdbm ithreads
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=|| ( Artistic GPL-1+ )
|
||||
PDEPEND=>=app-admin/perl-cleaner-2.5 >=virtual/perl-File-Path-2.130.0 >=virtual/perl-File-Temp-0.230.400-r2 >=virtual/perl-Data-Dumper-2.154.0 virtual/perl-Test-Harness
|
||||
RDEPEND=berkdb? ( sys-libs/db:= ) gdbm? ( >=sys-libs/gdbm-1.8.3 ) app-arch/bzip2 sys-libs/zlib
|
||||
SLOT=0/5.24
|
||||
SRC_URI=mirror://cpan/src/5.0/perl-5.24.1.tar.xz mirror://cpan/authors/id/S/SH/SHAY/perl-5.24.1.tar.xz https://github.com/gentoo-perl/perl-patchset/releases/download/perl-5.24.1-patches-3/perl-5.24.1-patches-3.tar.xz mirror://gentoo/perl-5.24.1-patches-3.tar.xz https://dev.gentoo.org/~kentnl/distfiles/perl-5.24.1-patches-3.tar.xz https://github.com/arsv/perl-cross/releases/download/1.1.4/perl-cross-1.1.4.tar.gz
|
||||
_eclasses_=alternatives 6c575717515f030736d1b718d507d2f9 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing 284a473719153462f3e974d86c8cb81c toolchain-funcs 6eb35f81556258a4bc9182ad3dfd58ee
|
||||
_md5_=111559d22206ad7369df7d5e9d73c2b9
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=configure install prepare
|
||||
DEPEND=ssl? ( >=net-libs/gnutls-3.3.17.1:0= ) virtual/pkgconfig >=app-portage/elt-patches-20170317 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=An easy to use library for the RELP protocol
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.librelp.com/
|
||||
IUSE=debug doc +ssl static-libs
|
||||
KEYWORDS=~amd64 ~arm ~arm64 ~hppa ~sparc ~x86
|
||||
LICENSE=GPL-3+ doc? ( FDL-1.3 )
|
||||
RDEPEND=ssl? ( >=net-libs/gnutls-3.3.17.1:0= )
|
||||
SLOT=0/0.3.0
|
||||
SRC_URI=http://download.rsyslog.com/librelp/librelp-1.2.14.tar.gz
|
||||
_eclasses_=autotools 7027963e8e8cc12c91117bdb9225dc26 libtool e32ea84bf82cf8987965b574672dba93 multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 6eb35f81556258a4bc9182ad3dfd58ee
|
||||
_md5_=12772a8e39a12717dfc3fe65228fc516
|
@ -1,14 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=dev-python/setuptools[python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python3_4(-),-python_single_target_python3_5(-)] python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python3_4(-),-python_single_target_python3_5(-)]
|
||||
DEPEND=dev-python/setuptools[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)] python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) python_targets_python3_6? ( dev-lang/python:3.6 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)]
|
||||
DESCRIPTION=Module for click to enable registering CLI commands via setuptools entry-points
|
||||
EAPI=6
|
||||
HOMEPAGE=https://pypi.python.org/pypi/click-plugins
|
||||
IUSE=python_targets_python3_4 python_targets_python3_5
|
||||
IUSE=python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 python_targets_python3_6
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=BSD
|
||||
RDEPEND=python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python3_4(-),-python_single_target_python3_5(-)]
|
||||
REQUIRED_USE=|| ( python_targets_python3_4 python_targets_python3_5 )
|
||||
RDEPEND=python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) python_targets_python3_6? ( dev-lang/python:3.6 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-)]
|
||||
REQUIRED_USE=|| ( python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 python_targets_python3_6 )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://pypi/c/click-plugins/click-plugins-1.0.3.tar.gz
|
||||
_eclasses_=distutils-r1 372bbe39047c0a2550319a3a82f3e063 multibuild 72647e255187a1fadc81097b3657e5c3 multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing 284a473719153462f3e974d86c8cb81c python-r1 e9350ec46bb5c9f3504b4fbe8b8d8987 python-utils-r1 c9de01becf9df3f8c10aeec3dc693f5d toolchain-funcs 6eb35f81556258a4bc9182ad3dfd58ee xdg-utils b9389dfad0ee8f8e0b2a41b79fcf7120
|
||||
_md5_=4186dbc1aca1d3395a554aa250832a86
|
||||
_md5_=4988cd8973aab4e802903f27591d3c5d
|
||||
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile config configure install postinst preinst prepare
|
||||
DEPEND=virtual/libintl fuse? ( sys-fs/fuse ) kerberos? ( virtual/krb5 ) ncurses? ( sys-libs/ncurses:0= ) pam? ( virtual/pam ) virtual/yacc doc? ( app-text/docbook-xsl-stylesheets dev-libs/libxslt ) >=app-portage/elt-patches-20170317 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig
|
||||
DESCRIPTION=The OpenAFS distributed file system
|
||||
EAPI=6
|
||||
HOMEPAGE=https://www.openafs.org/
|
||||
IUSE=bitmap-later debug doc fuse kerberos +modules ncurses pam pthreaded-ubik +supergroups
|
||||
KEYWORDS=~amd64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux
|
||||
LICENSE=IBM BSD openafs-krb5-a APSL-2
|
||||
RDEPEND=virtual/libintl fuse? ( sys-fs/fuse ) kerberos? ( virtual/krb5 ) ncurses? ( sys-libs/ncurses:0= ) pam? ( virtual/pam ) modules? ( ~net-fs/openafs-kernel-1.6.20.2 )
|
||||
SLOT=0
|
||||
SRC_URI=https://openafs.org/dl/openafs/1.6.20.2/openafs-1.6.20.2-src.tar.bz2 https://openafs.org/dl/openafs/1.6.20.2/openafs-1.6.20.2-doc.tar.bz2 https://dev.gentoo.org/~bircoph/afs/openafs-patches-20170212.tar.xz
|
||||
_eclasses_=autotools 7027963e8e8cc12c91117bdb9225dc26 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea flag-o-matic 61cad4fb5d800b29d484b27cb033f59b libtool e32ea84bf82cf8987965b574672dba93 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e pam 3e788d86170dfcd5b06824d898315e18 systemd ec2e9154031d942186c75c0aabb41900 toolchain-funcs 6eb35f81556258a4bc9182ad3dfd58ee versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=f45767b8390f39829173f4ce6420777b
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install postinst postrm preinst prepare pretend setup
|
||||
DEPEND=>=app-portage/elt-patches-20170317 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 kernel_linux? ( virtual/modutils ) sys-apps/sed kernel_linux? ( virtual/linux-sources )
|
||||
DESCRIPTION=The OpenAFS distributed file system kernel module
|
||||
EAPI=6
|
||||
HOMEPAGE=https://www.openafs.org/
|
||||
IUSE=debug kernel_linux
|
||||
KEYWORDS=~amd64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux
|
||||
LICENSE=IBM BSD openafs-krb5-a APSL-2
|
||||
RDEPEND=kernel_linux? ( virtual/modutils )
|
||||
SLOT=0
|
||||
SRC_URI=https://openafs.org/dl/openafs/1.6.20.2/openafs-1.6.20.2-src.tar.bz2 https://dev.gentoo.org/~bircoph/afs/openafs-patches-20170212.tar.xz
|
||||
_eclasses_=autotools 7027963e8e8cc12c91117bdb9225dc26 epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 9c113d6a64826c40154cad7be15d95ea libtool e32ea84bf82cf8987965b574672dba93 linux-info ca370deef9d44125d829f2eb6ebc83e0 linux-mod e77cdec133261f6bfa67560748277269 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 6eb35f81556258a4bc9182ad3dfd58ee versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=c9373119f2616492d77538e84a71f6fb
|
@ -1 +1 @@
|
||||
Thu, 01 Jun 2017 10:08:59 +0000
|
||||
Thu, 01 Jun 2017 12:38:59 +0000
|
||||
|
@ -1 +1 @@
|
||||
Thu Jun 1 10:08:58 UTC 2017
|
||||
Thu Jun 1 12:38:59 UTC 2017
|
||||
|
@ -1 +1 @@
|
||||
Thu, 01 Jun 2017 10:30:01 +0000
|
||||
Thu, 01 Jun 2017 13:00:01 +0000
|
||||
|
@ -1 +1 @@
|
||||
f6acc3628f56463bd3789c4dc53a6d701b5069cb 1496311381 2017-06-01T10:03:01+00:00
|
||||
ee93caf69b9de7b11d4fa03a904a272c557a0b76 1496319099 2017-06-01T12:11:39+00:00
|
||||
|
@ -1 +1 @@
|
||||
1496311501 Thu 01 Jun 2017 10:05:01 AM UTC
|
||||
1496320501 Thu 01 Jun 2017 12:35:01 PM UTC
|
||||
|
@ -1 +1 @@
|
||||
Thu, 01 Jun 2017 10:08:58 +0000
|
||||
Thu, 01 Jun 2017 12:38:59 +0000
|
||||
|
@ -1,6 +1,8 @@
|
||||
DIST openafs-1.6.20.1-src.tar.bz2 14672548 SHA256 dc869eecf6c81949d3dd2021eaf87118ef9b90ec5012a35f64836a02a58a8826 SHA512 cd6a0cd5d48fffaf37d143a9f8f7cd84c78ada6a645ac1a6cd3cf5b4a8a5af602e84133506c797e62ef2e61180a1c89915ea8657ac95bb872ada018b1baf0d59 WHIRLPOOL e289125306024b5a4d651017f35c0b2a91cadfeecf5820298e5ecccebf8c94a8126f7b70c120a687c5edfc4ad769ecfe72f9597173c34fb0dec6e13a7619cf4c
|
||||
DIST openafs-1.6.20.2-src.tar.bz2 14676861 SHA256 50234820c3da9752d2ca05fb7e83b7dc5c96a0e96a0b875ebc7ae3c835607614 SHA512 74c50fa71a98e7ad8bfed0610ab1dbf5c6669cdbd1e240c7b155f345fc511d9e51b4d9caa8d235223ad929b711577a192ca0841c92279bf16991cace8f19a575 WHIRLPOOL af213b7bb94962dcf76d22cf2078c8cc02d435a22a26f14ca7113d3eafb4304823b9806ff4121e5c0ab4f9f4f665eed0910c08dd41f3f2de136e8818f7ed2b1e
|
||||
DIST openafs-patches-20170212.tar.xz 11008 SHA256 9e20ca0ce0af6178ba39e459e88ecf3da8e6d97947a8b77a65f3cb0e523f6b47 SHA512 13e525a3f612b43318ad2fefaa3edf15ad572153494e94826815400f90a253678d2ade44d6adae08b1cb0dc8f311f5407f5aa540ed0df7a2d2d6024695bd917f WHIRLPOOL 4f81b94ad5ae7aab8ab954a333aa5cf72692cf91784b441b16e55fd023e58b7fe575b0228073fbacb9036cd4a7bfccd7553795457872973d15bbe48b95ac4484
|
||||
EBUILD openafs-kernel-1.6.20.1.ebuild 3835 SHA256 d39aad0bead960b822e42f31c1789dc7f38683ad4ee3a2714c34cdfbbf9c4761 SHA512 490887d5f94f3f536efab45acfe12b62c7484f7dbb3a35b6a051fa777da1e9e671136f677ccadfe85a75a907a5c77db9fecb439182f214d2b717379f010fd0fc WHIRLPOOL 7950deaa737d28c2836b66b879946a666377a17dff556b0244913a5e7e9280a057a8bd2bed775dc6ebab965c199f9383bf28fc720b261fb44c446c662e4162db
|
||||
EBUILD openafs-kernel-1.6.20.2.ebuild 3838 SHA256 d9f2abfe6f2a8584d9295e5964cceff0f58dac7cba7016a4fe324d4b2e03f69f SHA512 b2e01476275824337ba5e36abb0840a2005b193d86a9b4d25452e048d506dee60bada1fad5c3d225b53632799d23fde92b574a2f02132f4a290366d640019c44 WHIRLPOOL ad1b46ea7cea91a3f360e7a25cda3685fbdcb1a07fb49837390d0f09743340333903c7d1f86a77f9b1f91df331e6b7a15dd8534c7b41a565ddf07338bb432ee1
|
||||
MISC ChangeLog 9463 SHA256 a36d3ae0e209ccf27249c656adfe28b486076491688e928c12c53f308dbc1437 SHA512 fefd6b64fca313b9cc0f8ed9890d6c0e49a9777c05541213a470c692593be0e135675345c78e0a1295305d54b72a68e4a0369e7d9bbc7a6c873092feccfc21c9 WHIRLPOOL 5857ff37713a457fb377435e7d6478072230fe535f99326159de5ebcc95f17ab9e4d97f821c3d5a0f80e36c107c8fc84ab723f62209f4392a4b2058bd552cd2a
|
||||
MISC ChangeLog-2015 29123 SHA256 4c95ef686475550fea49c59d4152cb2ba69cae32e2a673ff1fdc8c7097d54552 SHA512 0607f7e09958af3974b853cbd7c5fd970d5a3907d94748842cd1c9489bfcc63f51c834756c46c276d7cb1dc2dccfb36fac7ddde8ae7f974b8132b8e897d22b24 WHIRLPOOL 66b7476c37147f79d75eff1f4737dc9c254bf97d25cb97fc54b6ce5a2d2ff24b601a43528c09dce51d85fe0a89509f19065efc176b78dfdfcf2bc820447974bc
|
||||
MISC metadata.xml 421 SHA256 90586e9016d105142026e51835747c1c69ecde000f17af953fd8671eab8c39bb SHA512 66972c2fff54dc80eae78500b81957e2a2ca1516feb747172055cc44c288e6d0ecd25a3b0a9b179e84c4da68f857094d4936b0a9b836b5b9fafdca5489edb864 WHIRLPOOL 8d654a6ffbc4fb7bd73b0d3d7e81fe66c6813401a26686cbe356f178d9b5e06968da9ba7973780d71bf0388a9cdc651deeec9a8b9554a3b770bd0dea356f2694
|
||||
|
@ -0,0 +1,134 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools linux-mod multilib toolchain-funcs versionator
|
||||
|
||||
MY_PV=$(delete_version_separator '_')
|
||||
MY_PN="${PN/-kernel}"
|
||||
MY_P="${MY_PN}-${MY_PV}"
|
||||
PVER="20170212"
|
||||
|
||||
DESCRIPTION="The OpenAFS distributed file system kernel module"
|
||||
HOMEPAGE="https://www.openafs.org/"
|
||||
# We always d/l the doc tarball as man pages are not USE=doc material
|
||||
[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
|
||||
SRC_URI="
|
||||
https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
|
||||
https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz
|
||||
"
|
||||
|
||||
LICENSE="IBM BSD openafs-krb5-a APSL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="debug"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
CONFIG_CHECK="~!AFS_FS KEYS"
|
||||
ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
|
||||
ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
|
||||
|
||||
QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
|
||||
QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
|
||||
|
||||
PATCHES=( "${WORKDIR}/gentoo/patches" )
|
||||
|
||||
pkg_pretend() {
|
||||
if use kernel_linux && kernel_is ge 4 12 ; then
|
||||
ewarn "Gentoo supports kernels which are supported by OpenAFS"
|
||||
ewarn "which are limited to the kernel versions: < 4.12"
|
||||
ewarn ""
|
||||
ewarn "You are free to utilize epatch_user to provide whatever"
|
||||
ewarn "support you feel is appropriate, but will not receive"
|
||||
ewarn "support as a result of those changes."
|
||||
ewarn ""
|
||||
ewarn "Please do not file a bug report about this."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use kernel_linux; then
|
||||
linux-mod_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# packaging is f-ed up, so we can't run eautoreconf
|
||||
# run autotools commands based on what is listed in regen.sh
|
||||
eaclocal -I src/cf
|
||||
eautoconf
|
||||
eautoconf -o configure-libafs configure-libafs.ac
|
||||
eautoheader
|
||||
einfo "Deleting autom4te.cache directory"
|
||||
rm -rf autom4te.cache
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
# OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
|
||||
if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
|
||||
myconf="--enable-linux-d_splice_alias-extra-iput"
|
||||
fi
|
||||
|
||||
local ARCH="$(tc-arch-kernel)"
|
||||
local MY_ARCH="$(tc-arch)"
|
||||
local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC"
|
||||
|
||||
if use kernel_linux; then
|
||||
myconf+=( --with-linux-kernel-headers="${KV_DIR}" \
|
||||
--with-linux-kernel-build="${KV_OUT_DIR}"
|
||||
)
|
||||
elif use kernel_FreeBSD; then
|
||||
myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" )
|
||||
fi
|
||||
econf \
|
||||
$(use_enable debug debug-kernel) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use kernel_linux; then
|
||||
local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
|
||||
[[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
|
||||
|
||||
MODULE_NAMES="libafs(fs/openafs:${srcdir})"
|
||||
|
||||
linux-mod_src_install
|
||||
elif use kernel_FreeBSD; then
|
||||
insinto /boot/modules
|
||||
doins "${S}"/src/libafs/MODLOAD/libafs.ko
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Update linker.hints file
|
||||
use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
|
||||
use kernel_linux && linux-mod_pkg_postinst
|
||||
|
||||
if use kernel_linux; then
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ! version_is_at_least 1.6.18.2 ${v}; then
|
||||
ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires"
|
||||
ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config."
|
||||
ewarn "If you only turned this option off for OpenAFS, please re-enable"
|
||||
ewarn "it, as keeping it turned off is a security risk."
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Update linker.hints file
|
||||
use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
|
||||
use kernel_linux && linux-mod_pkg_postrm
|
||||
}
|
@ -1,7 +1,10 @@
|
||||
DIST openafs-1.6.20.1-doc.tar.bz2 3533007 SHA256 2c4bf6f53030e8a9cf3460d9c9292bcdbfea356930ed1d436506e8dc60db0f1c SHA512 53d36ae28ce303fd397635f888ba5e7b1a74967072919bab44dc68858881e6b0586b1e2339dcfdfe1de3bf69591077e4c09ad0c0444eb1a1557a71b39b793da4 WHIRLPOOL 39e50d9af1acda7be5f508392eceac2caf6b13d03e825719d09de539d9080386ff82b3a0f5e8c489f3e0c2e9051a08623baa3176be61816a154ad734dcd03644
|
||||
DIST openafs-1.6.20.1-src.tar.bz2 14672548 SHA256 dc869eecf6c81949d3dd2021eaf87118ef9b90ec5012a35f64836a02a58a8826 SHA512 cd6a0cd5d48fffaf37d143a9f8f7cd84c78ada6a645ac1a6cd3cf5b4a8a5af602e84133506c797e62ef2e61180a1c89915ea8657ac95bb872ada018b1baf0d59 WHIRLPOOL e289125306024b5a4d651017f35c0b2a91cadfeecf5820298e5ecccebf8c94a8126f7b70c120a687c5edfc4ad769ecfe72f9597173c34fb0dec6e13a7619cf4c
|
||||
DIST openafs-1.6.20.2-doc.tar.bz2 3531309 SHA256 ec19f00594d8dd0b201aa8a2799ccab54994d8ca4ce621f843d8c4c2283f4259 SHA512 ff22960ce35e459acb04ca22a247d8199f81061498e0c4c3b83090200561199e1ae80152ab5c6b148983978ffed730c9efad8346bce289a6c5128d17510db772 WHIRLPOOL b3b3bfc23342fadb1f5baf72df0f716f0ec498f6521eb8e37f9a113dc14c6d3cf74c95c0f07141396eeb3e26f539d6aa7efe5fa2b609739cbabbd1152a618a53
|
||||
DIST openafs-1.6.20.2-src.tar.bz2 14676861 SHA256 50234820c3da9752d2ca05fb7e83b7dc5c96a0e96a0b875ebc7ae3c835607614 SHA512 74c50fa71a98e7ad8bfed0610ab1dbf5c6669cdbd1e240c7b155f345fc511d9e51b4d9caa8d235223ad929b711577a192ca0841c92279bf16991cace8f19a575 WHIRLPOOL af213b7bb94962dcf76d22cf2078c8cc02d435a22a26f14ca7113d3eafb4304823b9806ff4121e5c0ab4f9f4f665eed0910c08dd41f3f2de136e8818f7ed2b1e
|
||||
DIST openafs-patches-20170212.tar.xz 11008 SHA256 9e20ca0ce0af6178ba39e459e88ecf3da8e6d97947a8b77a65f3cb0e523f6b47 SHA512 13e525a3f612b43318ad2fefaa3edf15ad572153494e94826815400f90a253678d2ade44d6adae08b1cb0dc8f311f5407f5aa540ed0df7a2d2d6024695bd917f WHIRLPOOL 4f81b94ad5ae7aab8ab954a333aa5cf72692cf91784b441b16e55fd023e58b7fe575b0228073fbacb9036cd4a7bfccd7553795457872973d15bbe48b95ac4484
|
||||
EBUILD openafs-1.6.20.1.ebuild 7024 SHA256 a08327b1a4f4f3bce68cff9ea0df39ba46d8c7b13f560f98185ac03a02d7845e SHA512 32b95ec66b6eaf1e5c796e1f9d2b37822abfb760842f6d8d5ce44478f1938cd47c51ec190eaadab4d65025bafba35da63366935f8def30de23d35bc356e77d2e WHIRLPOOL ae547976f7eefa64ab61bcf8b489c955e21c4700adfbc1808a1c7a7f0eb60ff36ed6cef2c8b9e34f20de7dced1c8de48eaeee3cc379dffd536967f3e68ed872e
|
||||
EBUILD openafs-1.6.20.2.ebuild 7027 SHA256 fe810581b050280f7b13697ada3ba01648bfebc05c66a3eb1dabe3799cdccc58 SHA512 18b6987b56d973294fa4a0bd7c4474c4c8a6845564b862e8b2e1875345c705929989eccce0786f77801129206e8d97f46c425033db01e978219792b645125b14 WHIRLPOOL a4b23a552834f6d13618025852cb2d0f24162e24f8ba3085542ec8a7bf76438a53044a90abb384e43415bc3b8f0c2df114321f697e17a4ed52a685acbf3806a6
|
||||
MISC ChangeLog 9965 SHA256 33525babae1c3e7bce50868fc94442bb1d58d2e3032a8824626bca8645010e2a SHA512 a67aef521490207fad6daec3d80082108198757fc2602c73451a66dd7429bf253cbe9060b1a67ea50a6a12697a42cc369ab05f87b6586c069c02f320f2c121fc WHIRLPOOL dc0dd5452e5bf6ddff75c954d67720f1c881ef4f81f844b607924971a427f415d6eb3cab72a0d5755b219ed110b4b88a076e64f79d226983b4cb442324e20668
|
||||
MISC ChangeLog-2015 33669 SHA256 3539de64902e3aac237f7fe68420761eaf5d75c6461ed517e8c00542f2b0ec5c SHA512 17a9562f2503cc0aded229cd52fd5d398516fd42e25c891c350356211862fa2bf05f8650617d46688578b6ba9f468b76a7e30e54565c6f804586404703aa7d7a WHIRLPOOL 32eebb47cbfa97526c3a1b2197c492476d83e1f366b8ff799460a865eddbe180cf69d896cfd5cbef567c2e8e8520a8e5491a73ec713ba4b2daa901e6f7fe4890
|
||||
MISC metadata.xml 895 SHA256 d28acb20b11582bf152c2abe2464fa8e2defca8b7dd5ce433c7fcb6660685fea SHA512 5117449a47343db76f8d88a91beb18a2aade828fcbef6133f2307225b8160418fa407faaa550728d8916a5ff06e610198ccdb6fec1f975e7cc892a38fc590534 WHIRLPOOL cc9459daf0be99c19abac29d369974ab891437f4992d5e6212102d3bbae1870090cd71a141ace06e65e657e3cbc0c7397079063670bbc0142670e39f5d460941
|
||||
|
@ -0,0 +1,222 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pam systemd toolchain-funcs versionator
|
||||
|
||||
MY_PV=$(delete_version_separator '_')
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
PVER="20170212"
|
||||
|
||||
DESCRIPTION="The OpenAFS distributed file system"
|
||||
HOMEPAGE="https://www.openafs.org/"
|
||||
# We always d/l the doc tarball as man pages are not USE=doc material
|
||||
[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
|
||||
SRC_URI="
|
||||
https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
|
||||
https://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-doc.tar.bz2
|
||||
https://dev.gentoo.org/~bircoph/afs/${PN}-patches-${PVER}.tar.xz
|
||||
"
|
||||
|
||||
LICENSE="IBM BSD openafs-krb5-a APSL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE="bitmap-later debug doc fuse kerberos +modules ncurses pam pthreaded-ubik +supergroups"
|
||||
|
||||
CDEPEND="
|
||||
virtual/libintl
|
||||
fuse? ( sys-fs/fuse )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
pam? ( virtual/pam )"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/yacc
|
||||
doc? (
|
||||
app-text/docbook-xsl-stylesheets
|
||||
dev-libs/libxslt
|
||||
)"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
modules? ( ~net-fs/openafs-kernel-${PV} )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=( "${WORKDIR}/gentoo/patches" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# fixing 2-nd level makefiles to honor flags
|
||||
sed -i -r 's/\<CFLAGS[[:space:]]*=/CFLAGS+=/; s/\<LDFLAGS[[:space:]]*=/LDFLAGS+=/' \
|
||||
src/*/Makefile.in || die '*/Makefile.in sed failed'
|
||||
|
||||
# packaging is f-ed up, so we can't run eautoreconf
|
||||
# run autotools commands based on what is listed in regen.sh
|
||||
eaclocal -I src/cf
|
||||
eautoconf
|
||||
eautoconf -o configure-libafs configure-libafs.ac
|
||||
eautoheader
|
||||
einfo "Deleting autom4te.cache directory"
|
||||
rm -rf autom4te.cache
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
use debug && use pam && myconf="--enable-debug-pam"
|
||||
|
||||
AFS_SYSKVERS=26 \
|
||||
econf \
|
||||
--disable-kernel-module \
|
||||
--disable-strip-binaries \
|
||||
$(use_enable bitmap-later) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable debug debug-lwp) \
|
||||
$(use_enable fuse fuse-client) \
|
||||
$(use_enable ncurses gtx) \
|
||||
$(use_enable pam) \
|
||||
$(use_enable pthreaded-ubik) \
|
||||
$(use_enable supergroups) \
|
||||
$(use_with doc html-xsl /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl) \
|
||||
$(use_with kerberos krb5) \
|
||||
"${myconf}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake all_nolibafs
|
||||
local d
|
||||
if use doc; then
|
||||
for d in doc/xml/{AdminGuide,QuickStartUnix,UserGuide}; do
|
||||
emake -C "${d}" html;
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local OPENRCDIR="${WORKDIR}/gentoo/openrc"
|
||||
local SYSTEMDDIR="${WORKDIR}/gentoo/systemd"
|
||||
|
||||
emake DESTDIR="${ED}" install_nolibafs
|
||||
|
||||
insinto /etc/openafs
|
||||
doins src/afsd/CellServDB
|
||||
echo "/afs:/var/cache/openafs:200000" > "${ED}"/etc/openafs/cacheinfo
|
||||
echo "openafs.org" > "${ED}"/etc/openafs/ThisCell
|
||||
|
||||
# pam_afs and pam_afs.krb have been installed in irregular locations, fix
|
||||
if use pam ; then
|
||||
dopammod "${ED}"/usr/$(get_libdir)/pam_afs*
|
||||
fi
|
||||
rm -f "${ED}"/usr/$(get_libdir)/pam_afs* || die
|
||||
|
||||
# remove kdump stuff provided by kexec-tools #222455
|
||||
rm -rf "${ED}"/usr/sbin/kdump*
|
||||
|
||||
# avoid collision with mit_krb5's version of kpasswd
|
||||
mv "${ED}"/usr/bin/kpasswd{,_afs} || die
|
||||
mv "${ED}"/usr/share/man/man1/kpasswd{,_afs}.1 || die
|
||||
|
||||
# move lwp stuff around #200674 #330061
|
||||
mv "${ED}"/usr/include/{lwp,lock,timer}.h "${ED}"/usr/include/afs/ || die
|
||||
mv "${ED}"/usr/$(get_libdir)/liblwp* "${ED}"/usr/$(get_libdir)/afs/ || die
|
||||
# update paths to the relocated lwp headers
|
||||
sed -ri \
|
||||
-e '/^#include <(lwp|lock|timer).h>/s:<([^>]*)>:<afs/\1>:' \
|
||||
"${ED}"/usr/include/*.h \
|
||||
"${ED}"/usr/include/*/*.h \
|
||||
|| die
|
||||
|
||||
# minimal documentation
|
||||
use pam && doman src/pam/pam_afs.5
|
||||
DOCS=( "${WORKDIR}/gentoo/README.Gentoo"
|
||||
src/afsd/CellServDB NEWS README )
|
||||
|
||||
# documentation package
|
||||
if use doc ; then
|
||||
DOCS+=( doc/{arch,examples,pdf,protocol,txt} )
|
||||
dohtml -r doc/xml/
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
|
||||
# Gentoo related scripts
|
||||
newinitd "${OPENRCDIR}"/openafs-client.initd openafs-client
|
||||
newconfd "${OPENRCDIR}"/openafs-client.confd openafs-client
|
||||
newinitd "${OPENRCDIR}"/openafs-server.initd openafs-server
|
||||
newconfd "${OPENRCDIR}"/openafs-server.confd openafs-server
|
||||
systemd_dotmpfilesd "${SYSTEMDDIR}"/tmpfiles.d/openafs-client.conf
|
||||
systemd_dounit "${SYSTEMDDIR}"/openafs-client.service
|
||||
systemd_dounit "${SYSTEMDDIR}"/openafs-server.service
|
||||
systemd_install_serviced "${SYSTEMDDIR}"/openafs-client.service.conf
|
||||
systemd_install_serviced "${SYSTEMDDIR}"/openafs-server.service.conf
|
||||
|
||||
# used directories: client
|
||||
keepdir /etc/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)
|
||||
local x
|
||||
for x in cacheinfo CellServDB ThisCell ; do
|
||||
if [ -e "${EROOT}"/etc/openafs/${x} ] ; then
|
||||
cp "${EROOT}"/etc/openafs/${x} "${ED}"/etc/openafs/
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
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 " https://wiki.gentoo.org/wiki/OpenAFS"
|
||||
elog
|
||||
elog "Systemd users should run emerge --config ${CATEGORY}/${PN} before"
|
||||
elog "first use and whenever ${EROOT}/etc/openafs/cacheinfo is edited."
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
elog "Setting cache options for systemd."
|
||||
|
||||
SERVICED_FILE="${EROOT}"/etc/systemd/system/openafs-client.service.d/00gentoo.conf
|
||||
[ ! -e "${SERVICED_FILE}" ] && die "Systemd service.d file ${SERVICED_FILE} not found."
|
||||
|
||||
CACHESIZE=$(cut -d ':' -f 3 "${EROOT}"/etc/openafs/cacheinfo)
|
||||
[ -z ${CACHESIZE} ] && die "Failed to parse ${EROOT}/etc/openafs/cacheinfo."
|
||||
|
||||
if [ ${CACHESIZE} -lt 131070 ]; then
|
||||
AFSD_CACHE_ARGS="-stat 300 -dcache 100 -daemons 2 -volumes 50"
|
||||
elif [ ${CACHESIZE} -lt 524288 ]; then
|
||||
AFSD_CACHE_ARGS="-stat 2000 -dcache 800 -daemons 3 -volumes 70"
|
||||
elif [ ${CACHESIZE} -lt 1048576 ]; then
|
||||
AFSD_CACHE_ARGS="-stat 2800 -dcache 2400 -daemons 5 -volumes 128"
|
||||
elif [ ${CACHESIZE} -lt 2209715 ]; then
|
||||
AFSD_CACHE_ARGS="-stat 3600 -dcache 3600 -daemons 5 -volumes 196 -files 50000"
|
||||
else
|
||||
AFSD_CACHE_ARGS="-stat 4000 -dcache 4000 -daemons 6 -volumes 256 -files 50000"
|
||||
fi
|
||||
|
||||
# Replace existing env var if exists, else append line
|
||||
grep -q "^Environment=\"AFSD_CACHE_ARGS=" "${SERVICED_FILE}" && \
|
||||
sed -i "s/^Environment=\"AFSD_CACHE_ARGS=.*/Environment=\"AFSD_CACHE_ARGS=${AFSD_CACHE_ARGS}\"/" "${SERVICED_FILE}" || \
|
||||
sed -i "$ a\Environment=\"AFSD_CACHE_ARGS=${AFSD_CACHE_ARGS}\"" "${SERVICED_FILE}" || \
|
||||
die "Updating ${SERVICED_FILE} failed."
|
||||
}
|
Loading…
Reference in new issue