clean(portage-stable): Prune old ebuilds to fix Manifest files

Many updates from upstream have added files without pruning the old.
This leaves the Manifest file incomplete because it only includes the
new files that were copied with it. This causes errors when building a
distfiles mirror because the tool cannot validate those old files.

No need to keep these old ebuilds around so just delete them.
This commit is contained in:
Michael Marineau 2013-06-23 22:21:51 -04:00
parent 9c6a7602d8
commit 0f3a85f2e4
51 changed files with 3 additions and 6444 deletions

View File

@ -1,2 +1,3 @@
DIST rsyslog-3.22.1.tar.gz 1358598 RMD160 979dc146d40a5373ec7d210c424e925b5e091c15 SHA1 d5c8828db3edef35e48a1eec418e800fafc6d6a3 SHA256 5d3bb28dc87b3abb7053ccae8316f032ddd0486681683b116a25f66fc0942abb
DIST rsyslog-5.8.11.tar.gz 2393222 RMD160 be13514e02f121ae7b78e0177063ce8cd8a9d859 SHA1 eabba672b9cace696207028da703cf073956d505 SHA256 f75b39cf22506f7a28d986d0a446a09a0806f253dba661f125a241a1b47d6285
DIST rsyslog-3.22.1.tar.gz 1358598 SHA256 5d3bb28dc87b3abb7053ccae8316f032ddd0486681683b116a25f66fc0942abb SHA512 a80582230aa5888bfc25ca2e0717c3ac699b78e2746b178f1dc3b9e72eae777ff603973d76eb78d8277b6f4c3fc5fc270117a3842335ec6f0b4b352ee29a3c5e WHIRLPOOL c23bad47a22c66171359bece4c0843f6ba162977593ff9c280e3edf1bff0e92d7f97b055f689b3b7dfbbb205baa7900c9d04490ad7164b641cb2742658f57d4b
DIST rsyslog-5.8.11.tar.gz 2393222 SHA256 f75b39cf22506f7a28d986d0a446a09a0806f253dba661f125a241a1b47d6285 SHA512 545db333efd136c2ae26131ad400e69f41aaa4fa458a5d586c73e9063f0acb044dbcfe3a13e48b3db77a72f471e87b3b8f9ab2bff008b1166b836dbdddb7974a WHIRLPOOL 2ab8ae35179dcade3953c612cb8bdbd48e7bce6c0cca54278d2949ff3c7c29311341855778511acc38328db4ebeca5599e632c94def038f7134cdd2df78e53e8
DIST rsyslog-zeromq.tar.gz 22223 SHA256 3cca6ce8722ec5035744a9b88e65b89b35f6b2e6bbdbc9c9bba89d22addd2753 SHA512 d0fd6705d1fbbfd8c2932df281ef30ebfcc83085a62026ffd192bdfefaca5abef415183f958eee4f7421804ca59d8c20d8cf7fbc5b4105f86c297c6fbbcdd760 WHIRLPOOL 17d189dfe12ef5525f103d6ee202cfafe019bca11856da9d206004a9377b682b09d76816e2e2d1ca5aff2394b8cc8baec13f4961d32c74a377a9b6041ff398b1

View File

@ -1,178 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.8.3_p2.ebuild,v 1.9 2012/03/03 14:37:03 ranger Exp $
EAPI="4"
inherit eutils pam multilib libtool
MY_P=${P/_/}
MY_P=${MY_P/beta/b}
uri_prefix=
case ${P} in
*_beta*|*_rc*) uri_prefix=beta/ ;;
esac
DESCRIPTION="Allows users or groups to run commands as other users"
HOMEPAGE="http://www.sudo.ws/"
SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
# Basic license is ISC-style as-is, some files are released under
# 3-clause BSD license
LICENSE="as-is BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="ldap nls pam offensive selinux skey"
DEPEND="pam? ( virtual/pam )
skey? ( >=sys-auth/skey-1.1.5-r1 )
ldap? (
>=net-nds/openldap-2.1.30-r1
dev-libs/cyrus-sasl
)
sys-libs/zlib"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-sudo )
ldap? ( dev-lang/perl )
pam? ( sys-auth/pambase )
>=app-misc/editor-wrapper-3
virtual/editor
virtual/mta"
DEPEND="${DEPEND}
sys-devel/bison"
S=${WORKDIR}/${MY_P}
REQUIRED_USE="pam? ( !skey ) skey? ( !pam )"
MAKEOPTS+=" SAMPLES="
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.8.3_p1-linguas.patch
elibtoolize
}
set_rootpath() {
# FIXME: secure_path is a compile time setting. using ROOTPATH
# is not perfect, env-update may invalidate this, but until it
# is available as a sudoers setting this will have to do.
einfo "Setting secure_path ..."
# first extract the default ROOTPATH from build env
ROOTPATH=$(unset ROOTPATH; . /etc/profile.env; echo "${ROOTPATH}")
if [[ -z ${ROOTPATH} ]] ; then
ewarn " Failed to find ROOTPATH, please report this"
fi
# then remove duplicate path entries
cleanpath() {
local newpath thisp IFS=:
for thisp in $1 ; do
if [[ :${newpath}: != *:${thisp}:* ]] ; then
newpath+=:$thisp
else
einfo " Duplicate entry ${thisp} removed..."
fi
done
ROOTPATH=${newpath#:}
}
cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}}
# finally, strip gcc paths #136027
rmpath() {
local e newpath thisp IFS=:
for thisp in ${ROOTPATH} ; do
for e ; do [[ $thisp == $e ]] && continue 2 ; done
newpath+=:$thisp
done
ROOTPATH=${newpath#:}
}
rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
einfo "... done"
}
src_configure() {
local ROOTPATH
set_rootpath
# audit: somebody got to explain me how I can test this before I
# enable it.. - Diego
# plugindir: autoconf code is crappy and does not delay evaluation
# until `make` time, so we have to use a full path here rather than
# basing off other values.
econf \
--enable-zlib=system \
--with-secure-path="${ROOTPATH}" \
--with-editor=/usr/libexec/editor \
--with-env-editor \
$(use_with offensive insults) \
$(use_with offensive all-insults) \
$(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \
$(use_with ldap) \
$(use_enable nls) \
$(use_with pam) \
$(use_with skey) \
$(use_with selinux) \
--without-opie \
--without-linux-audit \
--with-timedir=/var/db/sudo \
--with-plugindir=/usr/$(get_libdir)/sudo \
--docdir=/usr/share/doc/${PF}
}
src_install() {
emake DESTDIR="${D}" install || die
if use ldap ; then
dodoc README.LDAP doc/schema.OpenLDAP
dosbin plugins/sudoers/sudoers2ldif
cat <<-EOF > "${T}"/ldap.conf.sudo
# See ldap.conf(5) and README.LDAP for details
# This file should only be readable by root
# supported directives: host, port, ssl, ldap_version
# uri, binddn, bindpw, sudoers_base, sudoers_debug
# tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key
EOF
insinto /etc
doins "${T}"/ldap.conf.sudo
fperms 0440 /etc/ldap.conf.sudo
fi
pamd_mimic system-auth sudo auth account session
keepdir /var/db/sudo
fperms 0700 /var/db/sudo
}
pkg_postinst() {
if use ldap ; then
ewarn
ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
ewarn
if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
ewarn "configured in /etc/nsswitch.conf."
ewarn
ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
ewarn " sudoers: ldap files"
ewarn
fi
fi
elog "To use the -A (askpass) option, you need to install a compatible"
elog "password program from the following list. Starred packages will"
elog "automatically register for the use with sudo (but will not force"
elog "the -A option):"
elog ""
elog " [*] net-misc/ssh-askpass-fullscreen"
elog " net-misc/x11-ssh-askpass"
elog ""
elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
elog "variable to the program you want to use."
}

View File

@ -1,47 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/gentoo-syntax/gentoo-syntax-20101212.ebuild,v 1.3 2011/05/03 09:34:13 grobian Exp $
inherit eutils vim-plugin
DESCRIPTION="vim plugin: Gentoo Ebuild, Eclass, GLEP, ChangeLog and Portage Files syntax highlighting, filetype and indent settings"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="vim"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="ignore-glep31"
VIM_PLUGIN_HELPFILES="gentoo-syntax"
VIM_PLUGIN_MESSAGES="filetype"
src_unpack() {
unpack ${A}
cd "${S}"
if use ignore-glep31 ; then
for f in ftplugin/*.vim ; do
ebegin "Removing UTF-8 rules from ${f} ..."
sed -i -e 's~\(setlocal fileencoding=utf-8\)~" \1~' ${f} \
|| die "waah! bad sed voodoo. need more goats."
eend $?
done
fi
}
pkg_postinst() {
vim-plugin_pkg_postinst
if use ignore-glep31 1>/dev/null ; then
ewarn "You have chosen to disable the rules which ensure GLEP 31"
ewarn "compliance. When editing ebuilds, please make sure you get"
ewarn "the character set correct."
else
elog "Note for developers and anyone else who edits ebuilds:"
elog " This release of gentoo-syntax now contains filetype rules to set"
elog " fileencoding for ebuilds and ChangeLogs to utf-8 as per GLEP 31."
elog " If you find this feature breaks things, please submit a bug and"
elog " assign it to vim@gentoo.org. You can use the 'ignore-glep31' USE"
elog " flag to remove these rules."
fi
echo
}

View File

@ -1 +0,0 @@
gtest-1.4.0.ebuild

View File

@ -1,44 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gtest/gtest-1.4.0.ebuild,v 1.2 2012/04/20 18:18:06 vapier Exp $
EAPI="2"
inherit autotools eutils
DESCRIPTION="Google C++ Testing Framework"
HOMEPAGE="http://code.google.com/p/googletest/"
SRC_URI="http://googletest.googlecode.com/files/${P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="examples static-libs"
DEPEND="dev-lang/python"
RDEPEND=""
src_prepare() {
sed -i -e "s|/tmp|${T}|g" test/gtest-filepath_test.cc || die "sed failed"
epatch "${FILESDIR}"/${P}-asneeded.patch
epatch "${FILESDIR}"/${P}-gcc-4.7.patch
eautoreconf
}
src_configure() {
econf \
$(use_enable static-libs static)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGES CONTRIBUTORS README
use static-libs || rm "${D}"/usr/lib*/*.la
if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins samples/*.{cc,h}
fi
}

View File

@ -1,30 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/m17n-db/m17n-db-1.5.5.ebuild,v 1.1 2010/01/26 15:26:00 matsuu Exp $
EAPI="2"
inherit eutils
DESCRIPTION="Database for the m17n library"
HOMEPAGE="http://www.m17n.org/m17n-lib/"
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86"
IUSE=""
DEPEND="sys-devel/gettext"
RDEPEND="virtual/libintl"
src_prepare() {
epatch "${FILESDIR}/do-not-commit-extra-space.patch"
}
src_install() {
emake DESTDIR="${D}" install || die
rm -rf "${D}/usr/share/m17n/icons" || die
dodoc AUTHORS ChangeLog NEWS README || die
docinto FORMATS; dodoc FORMATS/* || die
docinto UNIDATA; dodoc UNIDATA/* || die
}

View File

@ -1,138 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-3.6.22-r2.ebuild,v 1.5 2010/03/09 21:42:17 josejx Exp $
EAPI="2"
inherit eutils flag-o-matic multilib versionator autotools
DESCRIPTION="A SQL Database Engine in a C Library"
HOMEPAGE="http://www.sqlite.org/"
DOC_BASE="$(get_version_component_range 1-3)"
DOC_PV="$(replace_all_version_separators _ ${DOC_BASE})"
SRC_URI="
tcl? ( http://www.sqlite.org/${P}.tar.gz )
!tcl? (
test? ( http://www.sqlite.org/${P}.tar.gz )
!test? ( http://www.sqlite.org/${PN}-amalgamation-${PV}.tar.gz )
)
doc? ( http://www.sqlite.org/${PN}_docs_${DOC_PV}.zip )"
LICENSE="as-is"
SLOT="3"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="debug doc extensions +fts3 icu +readline secure-delete soundex tcl +threadsafe test"
RDEPEND="icu? ( dev-libs/icu )
readline? ( sys-libs/readline )
tcl? ( dev-lang/tcl )"
DEPEND="${RDEPEND}
test? ( dev-lang/tcl )
doc? ( app-arch/unzip )"
src_prepare() {
if use icu; then
rm -f test/like.test
fi
if use tcl || use test; then
epatch "${FILESDIR}"/${P}-interix-fixes.patch
epatch "${FILESDIR}"/${P}-dlopen.patch # bug 300836
eautoreconf # dlopen.patch patches configure.ac
else
epatch "${FILESDIR}"/${P}-interix-fixes-amalgamation.patch
fi
eautoreconf # for MiNT and interix
epunt_cxx
}
src_configure() {
# Support column metadata, bug #266651
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
# Support R-trees, bug #257646
append-cppflags -DSQLITE_ENABLE_RTREE
if use icu; then
append-cppflags -DSQLITE_ENABLE_ICU
if use tcl || use test; then
# Normal tarball.
sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
else
# Amalgamation tarball.
sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
fi
fi
# Support soundex, bug #143794
if use soundex; then
append-cppflags -DSQLITE_SOUNDEX
fi
# Support FTS3, bug #207701
if use fts3; then
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS
fi
# We need to use secure-delete for firefox/thunderbird/xulrunner
if use secure-delete; then
append-cppflags -DSQLITE_SECURE_DELETE=1 -DSQLITE_CHECK_PAGES=1 -DSQLITE_CORE=1
fi
# The amalgamation source doesn't have these via Makefile
if use debug; then
append-cppflags -DSQLITE_DEBUG=1
else
append-cppflags -DNDEBUG
fi
local extensions_option
if use tcl || use test; then
extensions_option="load-extension"
else
extensions_option="dynamic-extensions"
fi
# `configure` from amalgamation tarball doesn't support
# --with-readline-inc and --(enable|disable)-tcl options.
econf \
$(use_enable extensions ${extensions_option}) \
$(use_enable readline) \
$({ use tcl || use test; } && echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \
$(use_enable threadsafe) \
$(use tcl && echo --enable-tcl) \
$(use !tcl && use test && echo --enable-tcl)
}
src_compile() {
emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" || die "emake failed"
}
src_test() {
if [[ "${EUID}" -ne "0" ]]; then
local test="test"
use debug && test="fulltest"
emake ${test} || die "Some test(s) failed"
else
ewarn "The userpriv feature must be enabled to run tests."
eerror "Testsuite will not be run."
fi
}
src_install() {
emake \
DESTDIR="${D}" \
TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" \
install \
|| die "emake install failed"
doman sqlite3.1 || die "doman sqlite3.1 failed"
if use doc; then
# Naming scheme changes randomly between - and _ in releases
# http://www.sqlite.org/cvstrac/tktview?tn=3523
dohtml -r "${WORKDIR}"/${PN}-${DOC_PV}-docs/* || die "dohtml failed"
fi
}

View File

@ -1,42 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/u-boot-tools/u-boot-tools-2011.06.ebuild,v 1.2 2011/10/14 22:29:10 vapier Exp $
EAPI=4
inherit toolchain-funcs
MY_P="u-boot-${PV/_/-}"
DESCRIPTION="utilities for working with Das U-Boot"
HOMEPAGE="http://www.denx.de/wiki/U-Boot/WebHome"
SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE=""
S=${WORKDIR}/${MY_P}
src_prepare() {
sed -i -e "s:-g ::" tools/Makefile || die
}
src_compile() {
emake \
HOSTSTRIP=echo \
HOSTCC="$(tc-getCC)" \
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
HOSTLDFLAGS="${LDFLAGS}" \
tools-all
}
src_install() {
cd tools
dobin bmp_logo gen_eth_addr img2srec mkimage
dobin easylogo/easylogo
dobin env/fw_printenv
dosym fw_printenv /usr/bin/fw_setenv
insinto /etc
doins env/fw_env.config
}

View File

@ -1,139 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/go-1.0.2.ebuild,v 1.4 2012/09/14 18:29:06 maekke Exp $
EAPI=4
export CTARGET=${CTARGET:-${CHOST}}
if [[ ${PV} = 9999 ]]; then
EHG_REPO_URI="https://go.googlecode.com/hg"
inherit mercurial
fi
inherit bash-completion-r1 elisp-common eutils
if [[ ${PV} != 9999 ]]; then
SRC_URI="http://go.googlecode.com/files/go${PV}.src.tar.gz"
# Upstream only supports go on amd64, arm and x86 architectures.
KEYWORDS="-* ~amd64 ~arm ~x86"
fi
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
HOMEPAGE="http://www.golang.org"
LICENSE="BSD"
SLOT="0"
IUSE="bash-completion emacs vim-syntax zsh-completion"
DEPEND="sys-apps/ed
${COMMON_DEPEND}"
RDEPEND="bash-completion? ( app-shells/bash-completion )
emacs? ( virtual/emacs )
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
zsh-completion? ( app-shells/zsh-completion )
${COMMON_DEPEND}"
# The go language stores binary data for packages in *.a files.
# These are _NOT_ libraries, and should not be stripped.
STRIP_MASK="/usr/lib/go/pkg/linux*/*.a"
if [[ ${PV} != 9999 ]]; then
S="${WORKDIR}"/go
fi
src_prepare()
{
if [[ ${PV} != 9999 ]]; then
epatch "${FILESDIR}"/${P}-hardened.patch
fi
epatch_user
}
src_compile()
{
export GOROOT_FINAL=/usr/lib/go
export GOROOT="$(pwd)"
export GOBIN="${GOROOT}/bin"
if [[ $CTARGET = armv5* ]]
then
export GOARM=5
fi
cd src
./make.bash || die "build failed"
cd ..
if use emacs; then
elisp-compile misc/emacs/*.el
fi
}
src_test()
{
cd src
PATH="${GOBIN}:${PATH}" \
./run.bash --no-rebuild --banner || die "tests failed"
}
src_install()
{
dobin bin/*
dodoc AUTHORS CONTRIBUTORS PATENTS README
dodir /usr/lib/go
insinto /usr/lib/go
# There is a known issue which requires the source tree to be installed [1].
# Once this is fixed, we can consider using the doc use flag to control
# installing the doc and src directories.
# [1] http://code.google.com/p/go/issues/detail?id=2775
doins -r doc lib pkg src
if use bash-completion; then
dobashcomp misc/bash/go
fi
if use emacs; then
elisp-install ${PN} misc/emacs/*.el misc/emacs/*.elc
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles
doins -r misc/vim/ftdetect
doins -r misc/vim/ftplugin
doins -r misc/vim/syntax
doins -r misc/vim/plugin
doins -r misc/vim/indent
fi
if use zsh-completion; then
insinto /usr/share/zsh/site-functions
doins misc/zsh/go
fi
fperms -R +x /usr/lib/go/pkg/tool
}
pkg_postinst()
{
if use emacs; then
elisp-site-regen
fi
# If the go tool sees a package file timestamped older than a dependancy it
# will rebuild that file. So, in order to stop go from rebuilding lots of
# packages for every build we need to fix the timestamps. The compiler and
# linker are also checked - so we need to fix them too.
ebegin "fixing timestamps to avoid unnecessary rebuilds"
tref="usr/lib/go/pkg/*/runtime.a"
find "${ROOT}"usr/lib/go/pkg -type f \
-exec touch -r "${ROOT}"${tref} {} \;
eend $?
}
pkg_postrm()
{
if use emacs; then
elisp-site-regen
fi
}

View File

@ -1,140 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/go-1.0.3.ebuild,v 1.4 2013/04/16 15:56:38 williamh Exp $
EAPI=4
export CTARGET=${CTARGET:-${CHOST}}
inherit bash-completion-r1 elisp-common eutils
if [[ ${PV} = 9999 ]]; then
EHG_REPO_URI="https://go.googlecode.com/hg"
inherit mercurial
else
SRC_URI="http://go.googlecode.com/files/go${PV}.src.tar.gz"
# Upstream only supports go on amd64, arm and x86 architectures.
KEYWORDS="-* ~amd64 ~arm ~x86"
fi
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
HOMEPAGE="http://www.golang.org"
LICENSE="BSD"
SLOT="0"
IUSE="bash-completion emacs vim-syntax zsh-completion"
DEPEND="sys-apps/ed"
RDEPEND="bash-completion? ( app-shells/bash-completion )
emacs? ( virtual/emacs )
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
zsh-completion? ( app-shells/zsh-completion )"
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/linux*/*"
# The go language stores binary data for packages in *.a files.
# These are _NOT_ libraries, and should not be stripped.
STRIP_MASK="/usr/lib/go/pkg/linux*/*.a"
if [[ ${PV} != 9999 ]]; then
S="${WORKDIR}"/go
fi
src_prepare()
{
if [[ ${PV} != 9999 ]]; then
epatch "${FILESDIR}"/${P}-hardened.patch
epatch "${FILESDIR}"/${P}-no-Werror.patch
fi
epatch_user
}
src_compile()
{
export GOROOT_FINAL=/usr/lib/go
export GOROOT="$(pwd)"
export GOBIN="${GOROOT}/bin"
if [[ $CTARGET = armv5* ]]
then
export GOARM=5
fi
cd src
./make.bash || die "build failed"
cd ..
if use emacs; then
elisp-compile misc/emacs/*.el
fi
}
src_test()
{
cd src
PATH="${GOBIN}:${PATH}" \
./run.bash --no-rebuild --banner || die "tests failed"
}
src_install()
{
dobin bin/*
dodoc AUTHORS CONTRIBUTORS PATENTS README
dodir /usr/lib/go
insinto /usr/lib/go
# There is a known issue which requires the source tree to be installed [1].
# Once this is fixed, we can consider using the doc use flag to control
# installing the doc and src directories.
# [1] http://code.google.com/p/go/issues/detail?id=2775
doins -r doc include lib pkg src
if use bash-completion; then
dobashcomp misc/bash/go
fi
if use emacs; then
elisp-install ${PN} misc/emacs/*.el misc/emacs/*.elc
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles
doins -r misc/vim/ftdetect
doins -r misc/vim/ftplugin
doins -r misc/vim/syntax
doins -r misc/vim/plugin
doins -r misc/vim/indent
fi
if use zsh-completion; then
insinto /usr/share/zsh/site-functions
doins misc/zsh/go
fi
fperms -R +x /usr/lib/go/pkg/tool
}
pkg_postinst()
{
if use emacs; then
elisp-site-regen
fi
# If the go tool sees a package file timestamped older than a dependancy it
# will rebuild that file. So, in order to stop go from rebuilding lots of
# packages for every build we need to fix the timestamps. The compiler and
# linker are also checked - so we need to fix them too.
ebegin "fixing timestamps to avoid unnecessary rebuilds"
tref="usr/lib/go/pkg/*/runtime.a"
find "${ROOT}"usr/lib/go -type f \
-exec touch -r "${ROOT}"${tref} {} \;
eend $?
}
pkg_postrm()
{
if use emacs; then
elisp-site-regen
fi
}

View File

@ -1,92 +0,0 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/apr-util-1.3.9.ebuild,v 1.12 2009/11/04 12:12:05 arfrever Exp $
EAPI="2"
# Usually apr-util has the same PV as apr, but in case of security fixes, this may change.
#APR_PV=${PV}
APR_PV="1.3.8"
inherit autotools db-use eutils libtool multilib
DESCRIPTION="Apache Portable Runtime Utility Library"
HOMEPAGE="http://apr.apache.org/"
SRC_URI="mirror://apache/apr/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="1"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="berkdb doc freetds gdbm ldap mysql odbc postgres sqlite sqlite3"
RESTRICT="test"
RDEPEND="dev-libs/expat
>=dev-libs/apr-${APR_PV}:1
berkdb? ( =sys-libs/db-4* )
freetds? ( dev-db/freetds )
gdbm? ( sys-libs/gdbm )
ldap? ( =net-nds/openldap-2* )
mysql? ( =virtual/mysql-5* )
odbc? ( dev-db/unixODBC )
postgres? ( virtual/postgresql-base )
sqlite? ( dev-db/sqlite:0 )
sqlite3? ( dev-db/sqlite:3 )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
src_prepare() {
epatch "${FILESDIR}/${P}-support_berkeley_db-4.8.patch"
eautoreconf
elibtoolize
}
src_configure() {
local myconf
use ldap && myconf+=" --with-ldap"
if use berkdb; then
local db_version
db_version="$(db_findver sys-libs/db)" || die "Unable to find db version"
db_version="$(db_ver_to_slot "${db_version}")"
db_version="${db_version/\./}"
myconf+=" --with-dbm=db${db_version} --with-berkeley-db=$(db_includedir):/usr/$(get_libdir)"
else
myconf+=" --without-berkeley-db"
fi
econf --datadir=/usr/share/apr-util-1 \
--with-apr=/usr \
--with-expat=/usr \
$(use_with freetds) \
$(use_with gdbm) \
$(use_with mysql) \
$(use_with odbc) \
$(use_with postgres pgsql) \
$(use_with sqlite sqlite2) \
$(use_with sqlite3) \
${myconf}
}
src_compile() {
emake || die "emake failed"
if use doc; then
emake dox || die "emake dox failed"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGES NOTICE README
if use doc; then
dohtml -r docs/dox/html/* || die "dohtml failed"
fi
# This file is only used on AIX systems, which Gentoo is not,
# and causes collisions between the SLOTs, so remove it.
rm -f "${D}usr/$(get_libdir)/aprutil.exp"
}

View File

@ -1,77 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/apr-1.3.9.ebuild,v 1.9 2010/03/07 11:56:25 hollow Exp $
EAPI="2"
inherit autotools eutils libtool multilib
DESCRIPTION="Apache Portable Runtime Library"
HOMEPAGE="http://apr.apache.org/"
SRC_URI="mirror://apache/apr/${P}.tar.bz2"
LICENSE="Apache-2.0"
SLOT="1"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="doc older-kernels-compatibility +urandom"
RESTRICT="test"
DEPEND="doc? ( app-doc/doxygen )"
RDEPEND=""
src_prepare() {
AT_M4DIR="build" eautoreconf
elibtoolize
epatch "${FILESDIR}/config.layout.patch"
}
src_configure() {
local myconf
if use older-kernels-compatibility; then
local apr_cv_accept4 apr_cv_dup3 apr_cv_epoll_create1 apr_cv_sock_cloexec
export apr_cv_accept4="no"
export apr_cv_dup3="no"
export apr_cv_epoll_create1="no"
export apr_cv_sock_cloexec="no"
fi
if use urandom; then
myconf+=" --with-devrandom=/dev/urandom"
else
myconf+=" --with-devrandom=/dev/random"
fi
econf --enable-layout=gentoo \
--enable-nonportable-atomics \
--enable-threads \
${myconf}
# Make sure we use the system libtool.
sed -i 's,$(apr_builddir)/libtool,/usr/bin/libtool,' build/apr_rules.mk
sed -i 's,${installbuilddir}/libtool,/usr/bin/libtool,' apr-1-config
rm -f libtool
}
src_compile() {
emake -j1 || die "emake failed"
if use doc; then
emake -j1 dox || die "emake dox failed"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGES NOTICE
if use doc; then
dohtml -r docs/dox/html/* || die "dohtml failed"
fi
# This file is only used on AIX systems, which Gentoo is not,
# and causes collisions between the SLOTs, so remove it.
rm -f "${D}usr/$(get_libdir)/apr.exp"
}

View File

@ -1,53 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libevent/libevent-1.4.13.ebuild,v 1.10 2010/02/25 21:11:26 grobian Exp $
inherit autotools
MY_P="${P}-stable"
DESCRIPTION="A library to execute a function when a specific event occurs on a file descriptor"
HOMEPAGE="http://monkey.org/~provos/libevent/"
SRC_URI="http://monkey.org/~provos/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
IUSE=""
DEPEND=""
RDEPEND="!dev-libs/9libs"
S=${WORKDIR}/${MY_P}
pkg_setup() {
prevver=$(best_version ${CATEGORY}/${PN})
}
src_unpack() {
unpack ${A}
cd "${S}"
# don't waste time building tests/samples
sed -i \
-e 's|^\(SUBDIRS =.*\)sample test\(.*\)$|\1\2|' \
-e 's/libevent_extra_la_LIBADD =/& libevent.la/' \
Makefile.am || die "sed Makefile.am failed"
eautoreconf
}
src_test() {
einfo "Building tests"
cd test
make test || die "failed to build tests"
einfo "Running tests"
./test.sh > "${T}"/tests
cat "${T}"/tests
grep FAILED "${T}"/tests &>/dev/null && die "1 or more tests failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc README ChangeLog
}

View File

@ -1,237 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.7.8-r4.ebuild,v 1.6 2012/01/16 02:59:51 jer Exp $
EAPI="3"
PYTHON_DEPEND="python? 2"
PYTHON_USE_WITH="-build xml"
PYTHON_USE_WITH_OPT="python"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit libtool flag-o-matic eutils python autotools prefix
DESCRIPTION="Version 2 of the library to manipulate XML files"
HOMEPAGE="http://www.xmlsoft.org/"
LICENSE="MIT"
SLOT="2"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
IUSE="debug doc examples icu ipv6 python readline static-libs test"
XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite"
XSTS_NAME_1="xmlschema2002-01-16"
XSTS_NAME_2="xmlschema2004-01-14"
XSTS_TARBALL_1="xsts-2002-01-16.tar.gz"
XSTS_TARBALL_2="xsts-2004-01-14.tar.gz"
SRC_URI="ftp://xmlsoft.org/${PN}/${P}.tar.gz
test? (
${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1}
${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2} )"
RDEPEND="sys-libs/zlib
icu? ( dev-libs/icu )
readline? ( sys-libs/readline )"
DEPEND="${RDEPEND}
hppa? ( >=sys-devel/binutils-2.15.92.0.2 )"
pkg_setup() {
if use python; then
python_pkg_setup
fi
}
src_unpack() {
# ${A} isn't used to avoid unpacking of test tarballs into $WORKDIR,
# as they are needed as tarballs in ${S}/xstc instead and not unpacked
unpack ${P}.tar.gz
cd "${S}"
if use test; then
cp "${DISTDIR}/${XSTS_TARBALL_1}" \
"${DISTDIR}/${XSTS_TARBALL_2}" \
"${S}"/xstc/ \
|| die "Failed to install test tarballs"
fi
}
src_prepare() {
# Patches needed for prefix support
epatch "${FILESDIR}"/${PN}-2.7.1-catalog_path.patch
epatch "${FILESDIR}"/${PN}-2.7.2-winnt.patch
eprefixify catalog.c xmlcatalog.c runtest.c xmllint.c
epunt_cxx
# Reactivate the shared library versionning script
epatch "${FILESDIR}/${P}-reactivate-script.patch"
# Fix a potential memory access error
epatch "${FILESDIR}/${P}-xpath-memory.patch"
# Fix a potential freeing error in XPath
epatch "${FILESDIR}/${P}-xpath-freeing.patch"
epatch "${FILESDIR}/${P}-xpath-freeing2.patch"
# Fix some potential problems on reallocation failures
epatch "${FILESDIR}/${P}-reallocation-failures.patch"
epatch "${FILESDIR}/${P}-disable_static_modules.patch"
# Hardening of XPath evaluation
epatch "${FILESDIR}/${P}-hardening-xpath.patch"
# Fix missing error status in XPath evaluation
epatch "${FILESDIR}/${P}-error-xpath.patch"
# Heap-based overflow in parsing long entity references
epatch "${FILESDIR}/${P}-allocation-error-copying-entities.patch"
epatch "${FILESDIR}/${P}-stop-parse.patch"
epatch "${FILESDIR}/${P}-utf-8.patch"
# Please do not remove, as else we get references to PORTAGE_TMPDIR
# in /usr/lib/python?.?/site-packages/libxml2mod.la among things.
# We now need to run eautoreconf at the end to prevent maintainer mode.
# elibtoolize
# Python bindings are built/tested/installed manually.
sed -e "s/@PYTHON_SUBDIR@//" -i Makefile.am || die "sed failed"
eautoreconf
}
src_configure() {
# USE zlib support breaks gnome2
# (libgnomeprint for instance fails to compile with
# fresh install, and existing) - <azarah@gentoo.org> (22 Dec 2002).
# The meaning of the 'debug' USE flag does not apply to the --with-debug
# switch (enabling the libxml2 debug module). See bug #100898.
# --with-mem-debug causes unusual segmentation faults (bug #105120).
local myconf="--with-html-subdir=${PF}/html
--docdir=${EPREFIX}/usr/share/doc/${PF}
$(use_with debug run-debug)
$(use_with icu)
$(use_with python)
$(use_with readline)
$(use_with readline history)
$(use_enable ipv6)
$(use_enable static-libs static)"
# filter seemingly problematic CFLAGS (#26320)
filter-flags -fprefetch-loop-arrays -funroll-loops
econf ${myconf}
}
src_compile() {
default
if use python; then
python_copy_sources python
building() {
emake PYTHON_INCLUDES="${EPREFIX}$(python_get_includedir)" \
PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)"
}
python_execute_function -s --source-dir python building
fi
}
src_test() {
default
if use python; then
testing() {
emake test
}
python_execute_function -s --source-dir python testing
fi
}
src_install() {
emake DESTDIR="${D}" \
EXAMPLES_DIR="${EPREFIX}"/usr/share/doc/${PF}/examples \
install || die "Installation failed"
# on windows, xmllint is installed by interix libxml2 in parent prefix.
# this is the version to use. the native winnt version does not support
# symlinks, which makes repoman fail if the portage tree is linked in
# from another location (which is my default). -- mduft
if [[ ${CHOST} == *-winnt* ]]; then
rm -rf "${ED}"/usr/bin/xmllint
rm -rf "${ED}"/usr/bin/xmlcatalog
fi
if use python; then
installation() {
emake DESTDIR="${D}" \
PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" \
docsdir="${EPREFIX}"/usr/share/doc/${PF}/python \
exampledir="${EPREFIX}"/usr/share/doc/${PF}/python/examples \
install
}
python_execute_function -s --source-dir python installation
python_clean_installation_image
fi
rm -rf "${ED}"/usr/share/doc/${P}
dodoc AUTHORS ChangeLog Copyright NEWS README* TODO* || die "dodoc failed"
if ! use python; then
rm -rf "${ED}"/usr/share/doc/${PF}/python
rm -rf "${ED}"/usr/share/doc/${PN}-python-${PV}
fi
if ! use doc; then
rm -rf "${ED}"/usr/share/gtk-doc
rm -rf "${ED}"/usr/share/doc/${PF}/html
fi
if ! use examples; then
rm -rf "${ED}/usr/share/doc/${PF}/examples"
rm -rf "${ED}/usr/share/doc/${PF}/python/examples"
fi
if ! use static-libs; then
# Remove useless .la files
find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
fi
}
pkg_postinst() {
if use python; then
python_mod_optimize drv_libxml2.py libxml2.py
fi
# We don't want to do the xmlcatalog during stage1, as xmlcatalog will not
# be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug #208887.
if [ "${ROOT}" != "/" ]
then
elog "Skipping XML catalog creation for stage building (bug #208887)."
else
# need an XML catalog, so no-one writes to a non-existent one
CATALOG="${EROOT}etc/xml/catalog"
# we dont want to clobber an existing catalog though,
# only ensure that one is there
# <obz@gentoo.org>
if [ ! -e ${CATALOG} ]; then
[ -d "${EROOT}etc/xml" ] || mkdir -p "${EROOT}etc/xml"
"${EPREFIX}"/usr/bin/xmlcatalog --create > ${CATALOG}
einfo "Created XML catalog in ${CATALOG}"
fi
fi
}
pkg_postrm() {
if use python; then
python_mod_cleanup drv_libxml2.py libxml2.py
fi
}

View File

@ -1,216 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.7.8.ebuild,v 1.9 2011/02/26 17:17:33 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="python? 2"
PYTHON_USE_WITH="-build xml"
PYTHON_USE_WITH_OPT="python"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit libtool flag-o-matic eutils python autotools prefix
DESCRIPTION="Version 2 of the library to manipulate XML files"
HOMEPAGE="http://www.xmlsoft.org/"
LICENSE="MIT"
SLOT="2"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
IUSE="debug doc examples icu ipv6 python readline test"
XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite"
XSTS_NAME_1="xmlschema2002-01-16"
XSTS_NAME_2="xmlschema2004-01-14"
XSTS_TARBALL_1="xsts-2002-01-16.tar.gz"
XSTS_TARBALL_2="xsts-2004-01-14.tar.gz"
SRC_URI="ftp://xmlsoft.org/${PN}/${P}.tar.gz
test? (
${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1}
${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2} )"
RDEPEND="sys-libs/zlib
icu? ( dev-libs/icu )
readline? ( sys-libs/readline )"
DEPEND="${RDEPEND}
hppa? ( >=sys-devel/binutils-2.15.92.0.2 )"
pkg_setup() {
if use python; then
python_pkg_setup
fi
}
src_unpack() {
# ${A} isn't used to avoid unpacking of test tarballs into $WORKDIR,
# as they are needed as tarballs in ${S}/xstc instead and not unpacked
unpack ${P}.tar.gz
cd "${S}"
if use test; then
cp "${DISTDIR}/${XSTS_TARBALL_1}" \
"${DISTDIR}/${XSTS_TARBALL_2}" \
"${S}"/xstc/ \
|| die "Failed to install test tarballs"
fi
}
src_prepare() {
# Patches needed for prefix support
epatch "${FILESDIR}"/${PN}-2.7.1-catalog_path.patch
epatch "${FILESDIR}"/${PN}-2.7.2-winnt.patch
eprefixify catalog.c xmlcatalog.c runtest.c xmllint.c
epunt_cxx
# Reactivate the shared library versionning script
epatch "${FILESDIR}/${P}-reactivate-script.patch"
# Fix a potential memory access error
epatch "${FILESDIR}/${P}-xpath-memory.patch"
# Fix a potential freeing error in XPath
epatch "${FILESDIR}/${P}-xpath-freeing.patch"
epatch "${FILESDIR}/${P}-xpath-freeing2.patch"
epatch "${FILESDIR}/${P}-disable_static_modules.patch"
# Please do not remove, as else we get references to PORTAGE_TMPDIR
# in /usr/lib/python?.?/site-packages/libxml2mod.la among things.
# We now need to run eautoreconf at the end to prevent maintainer mode.
# elibtoolize
# Python bindings are built/tested/installed manually.
sed -e "s/@PYTHON_SUBDIR@//" -i Makefile.am || die "sed failed"
eautoreconf
}
src_configure() {
# USE zlib support breaks gnome2
# (libgnomeprint for instance fails to compile with
# fresh install, and existing) - <azarah@gentoo.org> (22 Dec 2002).
# The meaning of the 'debug' USE flag does not apply to the --with-debug
# switch (enabling the libxml2 debug module). See bug #100898.
# --with-mem-debug causes unusual segmentation faults (bug #105120).
local myconf="--with-html-subdir=${PF}/html
--docdir=${EPREFIX}/usr/share/doc/${PF}
$(use_with debug run-debug)
$(use_with icu)
$(use_with python)
$(use_with readline)
$(use_with readline history)
$(use_enable ipv6)"
# filter seemingly problematic CFLAGS (#26320)
filter-flags -fprefetch-loop-arrays -funroll-loops
econf ${myconf}
}
src_compile() {
default
if use python; then
python_copy_sources python
building() {
emake PYTHON_INCLUDES="${EPREFIX}$(python_get_includedir)" \
PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)"
}
python_execute_function -s --source-dir python building
fi
}
src_test() {
default
if use python; then
testing() {
emake test
}
python_execute_function -s --source-dir python testing
fi
}
src_install() {
emake DESTDIR="${D}" \
EXAMPLES_DIR="${EPREFIX}"/usr/share/doc/${PF}/examples \
install || die "Installation failed"
# on windows, xmllint is installed by interix libxml2 in parent prefix.
# this is the version to use. the native winnt version does not support
# symlinks, which makes repoman fail if the portage tree is linked in
# from another location (which is my default). -- mduft
if [[ ${CHOST} == *-winnt* ]]; then
rm -rf "${ED}"/usr/bin/xmllint
rm -rf "${ED}"/usr/bin/xmlcatalog
fi
if use python; then
installation() {
emake DESTDIR="${D}" \
PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" \
docsdir="${EPREFIX}"/usr/share/doc/${PF}/python \
exampledir="${EPREFIX}"/usr/share/doc/${PF}/python/examples \
install
}
python_execute_function -s --source-dir python installation
python_clean_installation_image
fi
rm -rf "${ED}"/usr/share/doc/${P}
dodoc AUTHORS ChangeLog Copyright NEWS README* TODO* || die "dodoc failed"
if ! use python; then
rm -rf "${ED}"/usr/share/doc/${PF}/python
rm -rf "${ED}"/usr/share/doc/${PN}-python-${PV}
fi
if ! use doc; then
rm -rf "${ED}"/usr/share/gtk-doc
rm -rf "${ED}"/usr/share/doc/${PF}/html
fi
if ! use examples; then
rm -rf "${ED}/usr/share/doc/${PF}/examples"
rm -rf "${ED}/usr/share/doc/${PF}/python/examples"
fi
}
pkg_postinst() {
if use python; then
python_mod_optimize drv_libxml2.py libxml2.py
fi
# We don't want to do the xmlcatalog during stage1, as xmlcatalog will not
# be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug #208887.
if [ "${ROOT}" != "/" ]
then
elog "Skipping XML catalog creation for stage building (bug #208887)."
else
# need an XML catalog, so no-one writes to a non-existent one
CATALOG="${EROOT}etc/xml/catalog"
# we dont want to clobber an existing catalog though,
# only ensure that one is there
# <obz@gentoo.org>
if [ ! -e ${CATALOG} ]; then
[ -d "${EROOT}etc/xml" ] || mkdir -p "${EROOT}etc/xml"
"${EPREFIX}"/usr/bin/xmlcatalog --create > ${CATALOG}
einfo "Created XML catalog in ${CATALOG}"
fi
fi
}
pkg_postrm() {
if use python; then
python_mod_cleanup drv_libxml2.py libxml2.py
fi
}

View File

@ -1,118 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxslt/libxslt-1.1.26-r1.ebuild,v 1.7 2011/03/18 17:30:53 armin76 Exp $
EAPI="3"
PYTHON_DEPEND="python? 2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit autotools eutils python toolchain-funcs
DESCRIPTION="XSLT libraries and tools"
HOMEPAGE="http://www.xmlsoft.org/"
SRC_URI="ftp://xmlsoft.org/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="crypt debug python"
DEPEND=">=dev-libs/libxml2-2.6.27:2
crypt? ( >=dev-libs/libgcrypt-1.1.42 )"
RDEPEND="${DEPEND}"
pkg_setup() {
if use python; then
python_pkg_setup
fi
}
src_prepare() {
epatch "${FILESDIR}"/libxslt.m4-${P}.patch \
"${FILESDIR}"/${PN}-1.1.23-parallel-install.patch \
"${FILESDIR}"/${P}-undefined.patch \
"${FILESDIR}"/${P}-disable_static_modules.patch
# Python bindings are built/tested/installed manually.
sed -e "s/@PYTHON_SUBDIR@//" -i Makefile.am || die "sed failed"
# Fix generate-id() to not expose object addresses, bug #358615
epatch "${FILESDIR}/${P}-id-generation.patch"
eautoreconf
epunt_cxx
}
src_configure() {
# libgcrypt is missing pkg-config file, so fixing cross-compile
# here. see bug 267503.
if tc-is-cross-compiler; then
export LIBGCRYPT_CONFIG="${SYSROOT}/usr/bin/libgcrypt-config"
fi
econf \
--disable-dependency-tracking \
--with-html-dir=/usr/share/doc/${PF} \
--with-html-subdir=html \
$(use_with crypt crypto) \
$(use_with python) \
$(use_with debug) \
$(use_with debug mem-debug)
}
src_compile() {
default
if use python; then
python_copy_sources python
building() {
emake PYTHON_INCLUDES="$(python_get_includedir)" \
PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \
PYTHON_VERSION="$(python_get_version)"
}
python_execute_function -s --source-dir python building
fi
}
src_test() {
default
if use python; then
testing() {
emake test
}
python_execute_function -s --source-dir python testing
fi
}
src_install() {
emake DESTDIR="${D}" install || die
if use python; then
installation() {
emake DESTDIR="${D}" \
PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \
install
}
python_execute_function -s --source-dir python installation
python_clean_installation_image
fi
mv -vf "${ED}"/usr/share/doc/${PN}-python-${PV} \
"${ED}"/usr/share/doc/${PF}/python
dodoc AUTHORS ChangeLog FEATURES NEWS README TODO || die
}
pkg_postinst() {
if use python; then
python_mod_optimize libxslt.py
fi
}
pkg_postrm() {
if use python; then
python_mod_cleanup libxslt.py
fi
}

View File

@ -1,79 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/dbus-python/dbus-python-0.84.0.ebuild,v 1.8 2011/11/27 19:07:37 armin76 Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
PYTHON_TESTS_RESTRICTED_ABIS="2.4 2.5"
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
inherit eutils python
DESCRIPTION="Python bindings for the D-Bus messagebus"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/DBusBindings http://dbus.freedesktop.org/doc/dbus-python/"
SRC_URI="http://dbus.freedesktop.org/releases/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ~ppc ~ppc64 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE="doc examples test"
RDEPEND=">=dev-libs/dbus-glib-0.88
>=sys-apps/dbus-1.4.1"
DEPEND="${RDEPEND}
dev-util/pkgconfig
doc? ( =dev-python/epydoc-3* )
test? ( dev-python/pygobject:2 )"
src_prepare() {
# Disable compiling of .pyc files.
mv py-compile py-compile.orig
ln -s $(type -P true) py-compile
# Workaround testsuite issues
epatch "${FILESDIR}/${PN}-0.83.1-workaround-broken-test.patch"
python_src_prepare
}
src_configure() {
configuration() {
econf \
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
$(use_enable doc api-docs)
}
python_execute_function -s configuration
}
src_test() {
unset DBUS_SESSION_BUS_ADDRESS
python_src_test
}
src_install() {
python_src_install
if use doc; then
install_documentation() {
dohtml api/* || return 1
}
python_execute_function -f -q -s install_documentation
fi
if use examples; then
insinto /usr/share/doc/${PF}/
doins -r examples || die
fi
python_clean_installation_image
}
pkg_postinst() {
python_mod_optimize dbus dbus_bindings.py
}
pkg_postrm() {
python_mod_cleanup dbus dbus_bindings.py
}

View File

@ -1,79 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/logilab-common-0.53.0.ebuild,v 1.2 2010/12/24 09:23:22 grobian Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
inherit distutils eutils
DESCRIPTION="Useful miscellaneous modules used by Logilab projects"
HOMEPAGE="http://www.logilab.org/projects/common/ http://pypi.python.org/pypi/logilab-common"
SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE="test"
RDEPEND="dev-python/setuptools"
# Tests using dev-python/psycopg are skipped when dev-python/psycopg isn't installed.
# dev-python/unittest2 is not required with Python >=3.2.
DEPEND="${RDEPEND}
test? (
dev-python/egenix-mx-base
dev-python/unittest2
!dev-python/psycopg[-mxdatetime]
)"
DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
PYTHON_MODNAME="logilab"
src_prepare() {
epatch "${FILESDIR}/${P}-fix_indentation.patch"
distutils_src_prepare
conversion() {
[[ "${PYTHON_ABI}" == 2.* ]] && return
find -name "*.py" ! -name "setup.py" -print | xargs 2to3-${PYTHON_ABI} -nw --no-diffs
# Ignore errors during transformation of data of tests.
:
}
python_execute_function -s conversion
}
src_test() {
testing() {
# Install temporarily.
local tpath="${T}/test-${PYTHON_ABI}"
local spath="${tpath}$(python_get_sitedir)"
"$(PYTHON)" setup.py install --root="${tpath}" || die "Installation for tests failed with $(python_get_implementation) $(python_get_version)"
# pytest uses tests placed relatively to the current directory.
pushd "${spath}" > /dev/null || return 1
if [[ "${PYTHON_ABI}" == 3.* ]]; then
# Support for Python 3 is experimental. Many tests are known to fail.
PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}/usr/bin/pytest" -v
else
PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}/usr/bin/pytest" -v || return 1
fi
popd > /dev/null || return 1
}
python_execute_function -s testing
}
src_install() {
distutils_src_install
python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/pytest"
doman doc/pytest.1 || die "doman failed"
delete_tests() {
rm -fr "${ED}$(python_get_sitedir)/${PN/-//}/test"
}
python_execute_function -q delete_tests
}

View File

@ -1,55 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/setuptools/setuptools-0.6.14.ebuild,v 1.16 2011/11/16 19:06:55 hwoarang Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
DISTUTILS_SRC_TEST="setup.py"
inherit distutils eutils
MY_PN="distribute"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Distribute (fork of Setuptools) is a collection of extensions to Distutils"
HOMEPAGE="http://pypi.python.org/pypi/distribute"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="PSF-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
DEPEND=""
RDEPEND=""
S="${WORKDIR}/${MY_P}"
DOCS="README.txt docs/easy_install.txt docs/pkg_resources.txt docs/setuptools.txt"
PYTHON_MODNAME="easy_install.py pkg_resources.py setuptools site.py"
src_prepare() {
distutils_src_prepare
epatch "${FILESDIR}/${PN}-0.6_rc7-noexe.patch"
epatch "${FILESDIR}/distribute-0.6.12-disable_versioned_easy_install.patch"
epatch "${FILESDIR}/distribute-0.6.12-fix_deprecation_warnings.patch"
# Disable tests requiring network connection.
rm -f setuptools/tests/test_packageindex.py
}
src_test() {
# test_install_site_py fails with disabled byte-compiling in Python 2.7 / >=3.2.
python_enable_pyc
distutils_src_test
python_disable_pyc
find "(" -name "*.pyc" -o -name "*\$py.class" ")" -print0 | xargs -0 rm -f
find -name "__pycache__" -print0 | xargs -0 rmdir
}
src_install() {
DONT_PATCH_SETUPTOOLS="1" distutils_src_install
}

View File

@ -1,43 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/simplejson/simplejson-2.5.0.ebuild,v 1.5 2012/05/29 19:58:34 ranger Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit distutils
DESCRIPTION="Simple, fast, extensible JSON encoder/decoder for Python"
HOMEPAGE="http://undefined.org/python/#simplejson http://pypi.python.org/pypi/simplejson"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm ppc ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""
DEPEND=""
RDEPEND=""
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
src_test() {
testing() {
if [[ "$(python_get_implementation)" != "Jython" ]]; then
ln -fs ../$(ls -d build-${PYTHON_ABI}/lib*)/simplejson/_speedups.so simplejson/_speedups.so || return 1
fi
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" simplejson/tests/__init__.py
}
python_execute_function testing
}
src_install() {
distutils_src_install
delete_tests() {
rm -fr "${ED}$(python_get_sitedir)/simplejson/tests"
}
python_execute_function -q delete_tests
}

View File

@ -1,111 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/boost-build/boost-build-1.42.0.ebuild,v 1.1 2010/03/03 12:32:08 djc Exp $
EAPI="2"
inherit flag-o-matic toolchain-funcs versionator
MY_PV=$(replace_all_version_separators _)
MAJOR_PV="$(replace_all_version_separators _ $(get_version_component_range 1-2))"
DESCRIPTION="A system for large project software construction, which is simple to use and powerful."
HOMEPAGE="http://www.boost.org/doc/tools/build/index.html"
SRC_URI="mirror://sourceforge/boost/boost_${MY_PV}.tar.bz2"
LICENSE="Boost-1.0"
SLOT="$(get_version_component_range 1-2)"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
IUSE="examples python"
DEPEND="!<dev-libs/boost-1.34.0
!<=dev-util/boost-build-1.35.0-r1
python? ( dev-lang/python )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/boost_${MY_PV}/tools"
pkg_setup() {
ewarn "Compilation of boost-build is known to break if {C,LD}FLAGS contain"
ewarn "extra white space (bug 293652)"
}
src_unpack() {
tar xjpf "${DISTDIR}/${A}" boost_${MY_PV}/tools/{jam,build/v2} || die
}
src_prepare() {
epatch "${FILESDIR}/boost-1.42-fix-mpich2-detection.patch"
# Remove stripping option
cd "${S}/jam/src"
sed -i -e 's|-s\b||' \
build.jam || die "sed failed"
# Force regeneration
rm jambase.c
# This patch allows us to fully control optimization
# and stripping flags when bjam is used as build-system
# We simply extend the optimization and debug-symbols feature
# with empty dummies called 'none'
cd "${S}/build/v2"
sed -i \
-e 's/\(off speed space\)/\1 none/' \
-e 's/\(debug-symbols : on off\)/\1 none/' \
tools/builtin.jam || die "sed failed"
}
src_compile() {
cd jam/src
local toolset
if [[ ${CHOST} == *-darwin* ]] ; then
toolset=darwin
else
# Using boost's generic toolset here, which respects CC and CFLAGS
toolset=cc
fi
append-flags -fno-strict-aliasing
# For slotting
sed -i \
-e "s|/usr/share/boost-build|/usr/share/boost-build-${MAJOR_PV}|" \
Jambase || die "sed failed"
# The build.jam file for building bjam using a bootstrapped jam0 ignores
# the LDFLAGS env var (bug #209794). We have now two options:
# a) change the cc-target definition in build.jam to include separate compile
# and link targets to make it use the LDFLAGS var, or
# b) a simple dirty workaround by injecting the LDFLAGS in the LIBS env var
# (which should not be set by us).
if [[ -z "${LDFLAGS}" ]] ; then
CC=$(tc-getCC) ./build.sh ${toolset} $(use_with python) \
|| die "building bjam failed"
else
LIBS=${LDFLAGS} CC=$(tc-getCC) ./build.sh ${toolset} \
$(use_with python) || die "building bjam failed"
fi
}
src_install() {
newbin jam/src/bin.*/bjam bjam-${MAJOR_PV}
cd "${S}/build/v2"
insinto /usr/share/boost-build-${MAJOR_PV}
doins -r boost-build.jam bootstrap.jam build-system.jam site-config.jam user-config.jam \
build kernel options tools util || die
dodoc changes.txt hacking.txt release_procedure.txt \
notes/build_dir_option.txt notes/relative_source_paths.txt
if use examples ; then
insinto /usr/share/doc/${PF}
doins -r example
fi
}
src_test() {
cd jam/test
./test.sh || die "tests failed"
}

View File

@ -1,178 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.8.6-r4.ebuild,v 1.5 2011/12/14 00:20:03 ago Exp $
EAPI=4
CMAKE_REMOVE_MODULES="no"
inherit elisp-common toolchain-funcs eutils versionator flag-o-matic base cmake-utils virtualx
MY_P="${PN}-$(replace_version_separator 3 - ${MY_PV})"
DESCRIPTION="Cross platform Make"
HOMEPAGE="http://www.cmake.org/"
SRC_URI="http://www.cmake.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz"
LICENSE="CMake"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
SLOT="0"
IUSE="emacs ncurses qt4 vim-syntax"
DEPEND="
>=app-arch/libarchive-2.8.0
>=net-misc/curl-7.20.0-r1[ssl]
>=dev-libs/expat-2.0.1
dev-util/pkgconfig
sys-libs/zlib
ncurses? ( sys-libs/ncurses )
qt4? ( x11-libs/qt-gui:4 )
"
RDEPEND="${DEPEND}
emacs? ( virtual/emacs )
vim-syntax? (
|| (
app-editors/vim
app-editors/gvim
)
)
"
SITEFILE="50${PN}-gentoo.el"
VIMFILE="${PN}.vim"
S="${WORKDIR}/${MY_P}"
CMAKE_BINARY="${S}/Bootstrap.cmk/cmake"
# Fixme:
# Boost patchset is foobared and should respect eselect / slotting
PATCHES=(
"${FILESDIR}"/${PN}-2.6.3-darwin-bundle.patch
"${FILESDIR}"/${PN}-2.6.3-no-duplicates-in-rpath.patch
"${FILESDIR}"/${PN}-2.6.3-fix_broken_lfs_on_aix.patch
"${FILESDIR}"/${PN}-2.8.0-darwin-default-install_name.patch
"${FILESDIR}"/${PN}-2.8.1-libform.patch
"${FILESDIR}"/${PN}-2.8.4-FindPythonLibs.patch
"${FILESDIR}"/${PN}-2.8.3-more-no_host_paths.patch
"${FILESDIR}"/${PN}-2.8.3-ruby_libname.patch
"${FILESDIR}"/${PN}-2.8.4-FindBoost.patch
"${FILESDIR}"/${PN}-2.8.6-FindBLAS-2.patch
"${FILESDIR}"/${PN}-2.8.6-FindLAPACK-2.patch
"${FILESDIR}"/${PN}-2.8.6-CodeBlocks.patch
"${FILESDIR}"/${PN}-2.8.6-testsvn17.patch
)
cmake_src_bootstrap() {
# Cleanup args to extract only JOBS.
# Because bootstrap does not know anything else.
echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null
if [ $? -eq 0 ]; then
par_arg=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | egrep -o '[[:digit:]]+')
par_arg="--parallel=${par_arg}"
else
par_arg="--parallel=1"
fi
tc-export CC CXX LD
./bootstrap \
--prefix="${T}/cmakestrap/" \
${par_arg} \
|| die "Bootstrap failed"
}
cmake_src_test() {
# fix OutDir test
# this is altered thanks to our eclass
sed -i -e 's:#IGNORE ::g' "${S}"/Tests/OutDir/CMakeLists.txt || die
pushd "${CMAKE_BUILD_DIR}" > /dev/null
local ctestargs
[[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
# Excluded tests:
# BootstrapTest: we actualy bootstrap it every time so why test it.
# SimpleCOnly_sdcc: sdcc choke on global cflags so just skip the test
# as it was never intended to be used this way.
"${CMAKE_BUILD_DIR}"/bin/ctest ${ctestargs} \
-E BootstrapTest SimpleCOnly_sdcc \
|| die "Tests failed"
popd > /dev/null
}
pkg_setup() {
einfo "Fixing java access violations ..."
# bug 387227
addpredict /proc/self/coredump_filter
}
src_prepare() {
base_src_prepare
# disable running of cmake in boostrap command
sed -i \
-e '/"${cmake_bootstrap_dir}\/cmake"/s/^/#DONOTRUN /' \
bootstrap || die "sed failed"
# Add gcc libs to the default link paths
sed -i \
-e "s|@GENTOO_PORTAGE_GCCLIBDIR@|${EPREFIX}/usr/${CHOST}/lib/|g" \
-e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}/|g" \
Modules/Platform/{UnixPaths,Darwin}.cmake || die "sed failed"
cmake_src_bootstrap
}
src_configure() {
# make things work with gentoo java setup
# in case java-config cannot be run, the variable just becomes unset
# per bug #315229
export JAVA_HOME=$(java-config -g JAVA_HOME 2> /dev/null)
local mycmakeargs=(
-DCMAKE_USE_SYSTEM_LIBRARIES=ON
-DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr
-DCMAKE_DOC_DIR=/share/doc/${PF}
-DCMAKE_MAN_DIR=/share/man
-DCMAKE_DATA_DIR=/share/${PN}
$(cmake-utils_use_build ncurses CursesDialog)
$(cmake-utils_use_build qt4 QtDialog)
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
use emacs && elisp-compile Docs/cmake-mode.el
}
src_test() {
VIRTUALX_COMMAND="cmake_src_test" virtualmake
}
src_install() {
cmake-utils_src_install
if use emacs; then
elisp-install ${PN} Docs/cmake-mode.el Docs/cmake-mode.elc
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins Docs/cmake-syntax.vim
insinto /usr/share/vim/vimfiles/indent
doins Docs/cmake-indent.vim
insinto /usr/share/vim/vimfiles/ftdetect
doins "${FILESDIR}/${VIMFILE}"
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}

View File

@ -1,22 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/intltool/intltool-0.41.0.ebuild,v 1.1 2010/02/17 21:13:01 ssuominen Exp $
EAPI=2
DESCRIPTION="Internationalization Tool Collection"
HOMEPAGE="http://edge.launchpad.net/intltool/"
SRC_URI="http://edge.launchpad.net/intltool/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
DEPEND=">=dev-lang/perl-5.8.1
dev-perl/XML-Parser"
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS README TODO doc/I18N-HOWTO || die
}

View File

@ -1,44 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig/pkgconfig-0.26.ebuild,v 1.7 2011/07/31 19:27:35 jer Exp $
EAPI=4
inherit flag-o-matic multilib
MY_P=pkg-config-${PV}
DESCRIPTION="Package config system that manages compile/link flags"
HOMEPAGE="http://pkgconfig.freedesktop.org/wiki/"
SRC_URI="http://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="elibc_FreeBSD hardened"
RDEPEND="dev-libs/glib:2
>=dev-libs/popt-1.15"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${MY_P}
DOCS=( AUTHORS NEWS README )
src_configure() {
if ! has_version dev-util/pkgconfig; then
export GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/$(get_libdir)/glib-2.0/include"
export GLIB_LIBS="-lglib-2.0"
fi
use ppc64 && use hardened && replace-flags -O[2-3] -O1
# Force using all the requirements when linking, so that needed -pthread
# lines are inherited between libraries
local myconf
use elibc_FreeBSD && myconf="--enable-indirect-deps"
econf \
--docdir=/usr/share/doc/${PF}/html \
--with-installed-popt \
${myconf}
}

View File

@ -1,139 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-2.1.1.ebuild,v 1.8 2012/06/17 17:32:15 armin76 Exp $
EAPI=3
PYTHON_DEPEND="2"
PYTHON_USE_WITH="threads"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
inherit bash-completion-r1 elisp-common eutils distutils
DESCRIPTION="Scalable distributed SCM"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x64-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="bugzilla emacs gpg test tk zsh-completion"
RDEPEND="bugzilla? ( dev-python/mysql-python )
gpg? ( app-crypt/gnupg )
tk? ( dev-lang/tk )
zsh-completion? ( app-shells/zsh )"
DEPEND="emacs? ( virtual/emacs )
test? ( app-arch/unzip
dev-python/pygments )"
PYTHON_CFLAGS=(
"2.* + -fno-strict-aliasing"
"* - -ftracer -ftree-vectorize"
)
PYTHON_MODNAME="${PN} hgext"
SITEFILE="70${PN}-gentoo.el"
src_prepare() {
distutils_src_prepare
# fix up logic that won't work in Gentoo Prefix (also won't outside in
# certain cases), bug #362891
sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
}
src_compile() {
distutils_src_compile
if use emacs; then
cd "${S}"/contrib || die
elisp-compile mercurial.el || die "elisp-compile failed!"
fi
rm -rf contrib/{win32,macosx} || die
}
src_install() {
distutils_src_install
newbashcomp contrib/bash_completion ${PN} || die
if use zsh-completion ; then
insinto /usr/share/zsh/site-functions
newins contrib/zsh_completion _hg || die
fi
rm -f doc/*.?.txt || die
dodoc CONTRIBUTORS PKG-INFO README doc/*.txt || die
cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
dobin hgeditor || die
dobin contrib/hgk || die
dobin contrib/hg-ssh || die
rm -f contrib/hgk contrib/hg-ssh || die
rm -f contrib/bash_completion || die
cp -r contrib "${ED}"/usr/share/doc/${PF}/ || die
doman doc/*.? || die
cat > "${T}/80mercurial" <<-EOF
HG="${EPREFIX}/usr/bin/hg"
EOF
doenvd "${T}/80mercurial" || die
if use emacs; then
elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
fi
}
src_test() {
cd "${S}/tests/" || die
rm -rf *svn* || die # Subversion tests fail with 1.5
rm -f test-archive || die # Fails due to verbose tar output changes
rm -f test-convert-baz* || die # GNU Arch baz
rm -f test-convert-cvs* || die # CVS
rm -f test-convert-darcs* || die # Darcs
rm -f test-convert-git* || die # git
rm -f test-convert-mtn* || die # monotone
rm -f test-convert-tla* || die # GNU Arch tla
rm -f test-doctest* || die # doctest always fails with python 2.5.x
if [[ ${EUID} -eq 0 ]]; then
einfo "Removing tests which require user privileges to succeed"
rm -f test-command-template || die # Test is broken when run as root
rm -f test-convert || die # Test is broken when run as root
rm -f test-lock-badness || die # Test is broken when run as root
rm -f test-permissions || die # Test is broken when run as root
rm -f test-pull-permission || die # Test is broken when run as root
rm -f test-clone-failure || die
rm -f test-journal-exists || die
rm -f test-repair-strip || die
fi
testing() {
local testdir="${T}/tests-${PYTHON_ABI}"
rm -rf "${testdir}" || die
"$(PYTHON)" run-tests.py --tmpdir="${testdir}"
}
python_execute_function testing
}
pkg_postinst() {
distutils_pkg_postinst
use emacs && elisp-site-regen
elog "If you want to convert repositories from other tools using convert"
elog "extension please install correct tool:"
elog " dev-vcs/cvs"
elog " dev-vcs/darcs"
elog " dev-vcs/git"
elog " dev-vcs/monotone"
elog " dev-vcs/subversion"
}
pkg_postrm() {
distutils_pkg_postrm
use emacs && elisp-site-regen
}

View File

@ -1,142 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-2.5.1.ebuild,v 1.2 2013/02/21 03:19:14 zmedico Exp $
EAPI=3
PYTHON_DEPEND="2"
PYTHON_USE_WITH="threads"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
inherit bash-completion-r1 elisp-common eutils distutils
DESCRIPTION="Scalable distributed SCM"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="bugzilla emacs gpg test tk zsh-completion"
RDEPEND="bugzilla? ( dev-python/mysql-python )
gpg? ( app-crypt/gnupg )
tk? ( dev-lang/tk )
zsh-completion? ( app-shells/zsh )
app-misc/ca-certificates"
DEPEND="emacs? ( virtual/emacs )
test? ( app-arch/unzip
dev-python/pygments )"
PYTHON_CFLAGS=(
"2.* + -fno-strict-aliasing"
"* - -ftracer -ftree-vectorize"
)
PYTHON_MODNAME="${PN} hgext"
SITEFILE="70${PN}-gentoo.el"
src_prepare() {
distutils_src_prepare
# fix up logic that won't work in Gentoo Prefix (also won't outside in
# certain cases), bug #362891
sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
}
src_compile() {
distutils_src_compile
if use emacs; then
cd "${S}"/contrib || die
elisp-compile mercurial.el || die "elisp-compile failed!"
fi
rm -rf contrib/{win32,macosx} || die
}
src_install() {
distutils_src_install
python_convert_shebangs 2 contrib/hg-ssh
newbashcomp contrib/bash_completion ${PN} || die
if use zsh-completion ; then
insinto /usr/share/zsh/site-functions
newins contrib/zsh_completion _hg || die
fi
rm -f doc/*.?.txt || die
dodoc CONTRIBUTORS README doc/*.txt || die
cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
dobin hgeditor || die
dobin contrib/hgk || die
dobin contrib/hg-ssh || die
rm -f contrib/hgk contrib/hg-ssh || die
rm -f contrib/bash_completion || die
cp -r contrib "${ED}"/usr/share/doc/${PF}/ || die
doman doc/*.? || die
cat > "${T}/80mercurial" <<-EOF
HG="${EPREFIX}/usr/bin/hg"
EOF
doenvd "${T}/80mercurial" || die
if use emacs; then
elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
fi
insinto /etc/mercurial/hgrc.d
doins "${FILESDIR}/cacerts.rc"
}
src_test() {
cd "${S}/tests/" || die
rm -rf *svn* || die # Subversion tests fail with 1.5
rm -f test-archive* || die # Fails due to verbose tar output changes
rm -f test-convert-baz* || die # GNU Arch baz
rm -f test-convert-cvs* || die # CVS
rm -f test-convert-darcs* || die # Darcs
rm -f test-convert-git* || die # git
rm -f test-convert-mtn* || die # monotone
rm -f test-convert-tla* || die # GNU Arch tla
rm -f test-doctest* || die # doctest always fails with python 2.5.x
rm -f test-largefiles* || die # tends to time out
if [[ ${EUID} -eq 0 ]]; then
einfo "Removing tests which require user privileges to succeed"
rm -f test-command-template* || die # Test is broken when run as root
rm -f test-convert* || die # Test is broken when run as root
rm -f test-lock-badness* || die # Test is broken when run as root
rm -f test-permissions* || die # Test is broken when run as root
rm -f test-pull-permission* || die # Test is broken when run as root
rm -f test-clone-failure* || die
rm -f test-journal-exists* || die
rm -f test-repair-strip* || die
fi
testing() {
local testdir="${T}/tests-${PYTHON_ABI}"
rm -rf "${testdir}" || die
"$(PYTHON)" run-tests.py --tmpdir="${testdir}"
}
python_execute_function testing
}
pkg_postinst() {
distutils_pkg_postinst
use emacs && elisp-site-regen
elog "If you want to convert repositories from other tools using convert"
elog "extension please install correct tool:"
elog " dev-vcs/cvs"
elog " dev-vcs/darcs"
elog " dev-vcs/git"
elog " dev-vcs/monotone"
elog " dev-vcs/subversion"
}
pkg_postrm() {
distutils_pkg_postrm
use emacs && elisp-site-regen
}

View File

@ -1,149 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-2.5.2.ebuild,v 1.3 2013/03/09 12:55:52 mgorny Exp $
EAPI=5
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
PYTHON_REQ_USE="threads"
inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic
DESCRIPTION="Scalable distributed SCM"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="bugzilla emacs gpg test tk zsh-completion"
RDEPEND="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
gpg? ( app-crypt/gnupg )
tk? ( dev-lang/tk )
zsh-completion? ( app-shells/zsh )
app-misc/ca-certificates"
DEPEND="emacs? ( virtual/emacs )
test? ( app-arch/unzip
dev-python/pygments[${PYTHON_USEDEP}] )"
SITEFILE="70${PN}-gentoo.el"
python_prepare_all() {
# fix up logic that won't work in Gentoo Prefix (also won't outside in
# certain cases), bug #362891
sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
distutils-r1_python_prepare_all
}
python_configure_all() {
strip-flags -ftracer -ftree-vectorize
# Note: make it impl-conditional if py3 is supported
append-flags -fno-strict-aliasing
"${PYTHON}" setup.py build_mo || die
}
python_compile_all() {
rm -r contrib/{win32,macosx} || die
if use emacs; then
cd contrib || die
elisp-compile mercurial.el || die "elisp-compile failed!"
fi
}
python_install_all() {
distutils-r1_python_install_all
newbashcomp contrib/bash_completion ${PN}
if use zsh-completion ; then
insinto /usr/share/zsh/site-functions
newins contrib/zsh_completion _hg
fi
rm -f doc/*.?.txt || die
dodoc CONTRIBUTORS doc/*.txt
cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
dobin hgeditor
dobin contrib/hgk
python_foreach_impl python_doscript contrib/hg-ssh
rm -f contrib/hgk contrib/hg-ssh || die
rm -f contrib/bash_completion || die
dodoc -r contrib
docompress -x /usr/share/doc/${PF}/contrib
doman doc/*.?
cat > "${T}/80mercurial" <<-EOF
HG="${EPREFIX}/usr/bin/hg"
EOF
doenvd "${T}/80mercurial"
if use emacs; then
elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
fi
insinto /etc/mercurial/hgrc.d
doins "${FILESDIR}/cacerts.rc"
}
src_test() {
cd tests || die
rm -rf *svn* || die # Subversion tests fail with 1.5
rm -f test-archive* || die # Fails due to verbose tar output changes
rm -f test-convert-baz* || die # GNU Arch baz
rm -f test-convert-cvs* || die # CVS
rm -f test-convert-darcs* || die # Darcs
rm -f test-convert-git* || die # git
rm -f test-convert-mtn* || die # monotone
rm -f test-convert-tla* || die # GNU Arch tla
rm -f test-doctest* || die # doctest always fails with python 2.5.x
rm -f test-largefiles* || die # tends to time out
if [[ ${EUID} -eq 0 ]]; then
einfo "Removing tests which require user privileges to succeed"
rm -f test-command-template* || die # Test is broken when run as root
rm -f test-convert* || die # Test is broken when run as root
rm -f test-lock-badness* || die # Test is broken when run as root
rm -f test-permissions* || die # Test is broken when run as root
rm -f test-pull-permission* || die # Test is broken when run as root
rm -f test-clone-failure* || die
rm -f test-journal-exists* || die
rm -f test-repair-strip* || die
fi
cd .. || die
distutils-r1_src_test
}
python_test() {
local TEST_DIR
rm -rf "${TMPDIR}"/test
distutils_install_for_testing
cd tests || die
"${PYTHON}" run-tests.py --verbose \
--tmpdir="${TMPDIR}"/test \
--with-hg="${TEST_DIR}"/scripts/hg \
|| die "Tests fail with ${EPYTHON}"
}
pkg_postinst() {
use emacs && elisp-site-regen
elog "If you want to convert repositories from other tools using convert"
elog "extension please install correct tool:"
elog " dev-vcs/cvs"
elog " dev-vcs/darcs"
elog " dev-vcs/git"
elog " dev-vcs/monotone"
elog " dev-vcs/subversion"
}
pkg_postrm() {
use emacs && elisp-site-regen
}

View File

@ -1,142 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-2.5.ebuild,v 1.2 2013/02/03 14:41:06 djc Exp $
EAPI=3
PYTHON_DEPEND="2"
PYTHON_USE_WITH="threads"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
inherit bash-completion-r1 elisp-common eutils distutils
DESCRIPTION="Scalable distributed SCM"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="bugzilla emacs gpg test tk zsh-completion"
RDEPEND="bugzilla? ( dev-python/mysql-python )
gpg? ( app-crypt/gnupg )
tk? ( dev-lang/tk )
zsh-completion? ( app-shells/zsh )
app-misc/ca-certificates"
DEPEND="emacs? ( virtual/emacs )
test? ( app-arch/unzip
dev-python/pygments )"
PYTHON_CFLAGS=(
"2.* + -fno-strict-aliasing"
"* - -ftracer -ftree-vectorize"
)
PYTHON_MODNAME="${PN} hgext"
SITEFILE="70${PN}-gentoo.el"
src_prepare() {
distutils_src_prepare
# fix up logic that won't work in Gentoo Prefix (also won't outside in
# certain cases), bug #362891
sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
}
src_compile() {
distutils_src_compile
if use emacs; then
cd "${S}"/contrib || die
elisp-compile mercurial.el || die "elisp-compile failed!"
fi
rm -rf contrib/{win32,macosx} || die
}
src_install() {
distutils_src_install
python_convert_shebangs 2 contrib/hg-ssh
newbashcomp contrib/bash_completion ${PN} || die
if use zsh-completion ; then
insinto /usr/share/zsh/site-functions
newins contrib/zsh_completion _hg || die
fi
rm -f doc/*.?.txt || die
dodoc CONTRIBUTORS README doc/*.txt || die
cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
dobin hgeditor || die
dobin contrib/hgk || die
dobin contrib/hg-ssh || die
rm -f contrib/hgk contrib/hg-ssh || die
rm -f contrib/bash_completion || die
cp -r contrib "${ED}"/usr/share/doc/${PF}/ || die
doman doc/*.? || die
cat > "${T}/80mercurial" <<-EOF
HG="${EPREFIX}/usr/bin/hg"
EOF
doenvd "${T}/80mercurial" || die
if use emacs; then
elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
fi
insinto /etc/mercurial/hgrc.d
doins "${FILESDIR}/cacerts.rc"
}
src_test() {
cd "${S}/tests/" || die
rm -rf *svn* || die # Subversion tests fail with 1.5
rm -f test-archive* || die # Fails due to verbose tar output changes
rm -f test-convert-baz* || die # GNU Arch baz
rm -f test-convert-cvs* || die # CVS
rm -f test-convert-darcs* || die # Darcs
rm -f test-convert-git* || die # git
rm -f test-convert-mtn* || die # monotone
rm -f test-convert-tla* || die # GNU Arch tla
rm -f test-doctest* || die # doctest always fails with python 2.5.x
rm -f test-largefiles* || die # tends to time out
if [[ ${EUID} -eq 0 ]]; then
einfo "Removing tests which require user privileges to succeed"
rm -f test-command-template* || die # Test is broken when run as root
rm -f test-convert* || die # Test is broken when run as root
rm -f test-lock-badness* || die # Test is broken when run as root
rm -f test-permissions* || die # Test is broken when run as root
rm -f test-pull-permission* || die # Test is broken when run as root
rm -f test-clone-failure* || die
rm -f test-journal-exists* || die
rm -f test-repair-strip* || die
fi
testing() {
local testdir="${T}/tests-${PYTHON_ABI}"
rm -rf "${testdir}" || die
"$(PYTHON)" run-tests.py --tmpdir="${testdir}"
}
python_execute_function testing
}
pkg_postinst() {
distutils_pkg_postinst
use emacs && elisp-site-regen
elog "If you want to convert repositories from other tools using convert"
elog "extension please install correct tool:"
elog " dev-vcs/cvs"
elog " dev-vcs/darcs"
elog " dev-vcs/git"
elog " dev-vcs/monotone"
elog " dev-vcs/subversion"
}
pkg_postrm() {
distutils_pkg_postrm
use emacs && elisp-site-regen
}

View File

@ -1,111 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libjpeg-turbo/libjpeg-turbo-1.2.0-r1.ebuild,v 1.8 2012/03/25 15:36:48 maekke Exp $
# http://libjpeg-turbo.svn.sourceforge.net/viewvc/libjpeg-turbo/branches/1.2.x/?view=tar
EAPI=4
unset _inherits
JPEG_ABI=8
if [[ ${PV} == *_p20* ]]; then
SRC_URI="http://dev.gentoo.org/~ssuominen/${P}.tar.xz"
_inherits=autotools
else
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
fi
inherit ${_inherits} java-pkg-opt-2 libtool toolchain-funcs
DESCRIPTION="MMX, SSE, and SSE2 SIMD accelerated JPEG library"
HOMEPAGE="http://libjpeg-turbo.virtualgl.org/ http://sourceforge.net/projects/libjpeg-turbo/"
SRC_URI="${SRC_URI}
mirror://debian/pool/main/libj/libjpeg${JPEG_ABI}/libjpeg${JPEG_ABI}_${JPEG_ABI}d-1.debian.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm hppa ~mips ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE="java static-libs"
ASM_DEPEND="|| ( dev-lang/nasm dev-lang/yasm )"
COMMON_DEPEND="!media-libs/jpeg:0"
RDEPEND="${COMMON_DEPEND}
java? ( >=virtual/jre-1.5 )"
DEPEND="${COMMON_DEPEND}
amd64? ( ${ASM_DEPEND} )
x86? ( ${ASM_DEPEND} )
amd64-linux? ( ${ASM_DEPEND} )
x86-linux? ( ${ASM_DEPEND} )
java? ( >=virtual/jdk-1.5 )"
src_prepare() {
if [[ -x ./configure ]]; then
elibtoolize
else
eautoreconf
fi
java-pkg-opt-2_src_prepare
}
src_configure() {
if use java; then
export JAVACFLAGS="$(java-pkg_javac-args)"
export JNI_CFLAGS="$(java-pkg_get-jni-cflags)"
fi
econf \
$(use_enable static-libs static) \
--with-jpeg${JPEG_ABI} \
$(use_with java)
}
src_compile() {
local _java_makeopts
use java && _java_makeopts="-j1"
emake ${_java_makeopts}
ebegin "Building exifautotran and jpegexiforient extra tools"
pushd ../debian/extra >/dev/null
emake CC="$(tc-getCC)" CFLAGS="${LDFLAGS} ${CFLAGS}"
popd >/dev/null
eend $?
}
src_test() {
emake test
}
src_install() {
emake \
DESTDIR="${D}" \
docdir="${EPREFIX}"/usr/share/doc/${PF} \
exampledir="${EPREFIX}"/usr/share/doc/${PF} \
install
find "${ED}"usr -name '*.la' -exec rm -f {} +
insinto /usr/share/doc/${PF}/html
doins -r doc/html/*
if use java; then
insinto /usr/share/doc/${PF}/html/java
doins -r java/doc/*
newdoc java/README README.java
rm -rf "${ED}"usr/classes
java-pkg_dojar java/turbojpeg.jar
fi
ebegin "Installing exifautotran and jpegexiforient extra tools"
pushd ../debian/extra >/dev/null
newdoc ../changelog changelog.debian
emake \
DESTDIR="${D}" prefix="${EPREFIX}"/usr \
INSTALL="install -m755" INSTALLDIR="install -d -m755" \
install
popd >/dev/null
eend $?
}

View File

@ -1,63 +0,0 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netperf/netperf-2.4.4.ebuild,v 1.8 2009/08/26 00:49:05 jer Exp $
inherit eutils flag-o-matic autotools
MY_P=${P/_rc/-rc}
DESCRIPTION="Network performance benchmark including tests for TCP, UDP, sockets, ATM and more."
#SRC_URI="ftp://ftp.netperf.org/netperf/experimental/${MY_P}.tar.gz"
SRC_URI="ftp://ftp.netperf.org/netperf/${MY_P}.tar.gz
mirror://gentoo/netperf-2.4.4-svn_trunk_20071205.patch.bz2"
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
HOMEPAGE="http://www.netperf.org/"
LICENSE="netperf"
SLOT="0"
IUSE=""
RDEPEND="!sci-mathematics/snns"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
sed -i 's:^\(#define DEBUG_LOG_FILE "\)/tmp/netperf.debug:\1/var/log/netperf.debug:' src/netserver.c
epatch "${WORKDIR}"/${P}-svn_trunk_20071205.patch
epatch "${FILESDIR}"/${PN}-2.4.0-gcc41.patch
epatch "${FILESDIR}"/${PN}-CVE-2007-1444.patch
epatch "${FILESDIR}"/${PN}-fix-scripts.patch
# Fixing paths in scripts
sed -i -e 's:^\(NETHOME=\).*:\1"/usr/bin":' \
doc/examples/sctp_stream_script \
doc/examples/tcp_range_script \
doc/examples/tcp_rr_script \
doc/examples/tcp_stream_script \
doc/examples/udp_rr_script \
doc/examples/udp_stream_script
eautoconf
}
src_install () {
einstall || die
# move netserver into sbin as we had it before 2.4 was released with its
# autoconf goodness
dodir /usr/sbin
mv "${D}"/usr/{bin,sbin}/netserver || die
# init.d / conf.d
newinitd "${FILESDIR}"/${PN}-2.2-init netperf
newconfd "${FILESDIR}"/${PN}-2.2-conf netperf
# documentation and example scripts
dodoc AUTHORS ChangeLog NEWS README Release_Notes
dodir /usr/share/doc/${PF}/examples
#Scripts no longer get installed by einstall
cp doc/examples/*_script "${D}"/usr/share/doc/${PF}/examples
}

View File

@ -1,74 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-20100418-r1.ebuild,v 1.1 2010/09/14 01:58:24 vapier Exp $
inherit flag-o-matic eutils toolchain-funcs
DESCRIPTION="Network monitoring tools including ping and ping6"
HOMEPAGE="http://www.linux-foundation.org/en/Net:Iputils"
SRC_URI="http://www.skbuff.net/iputils/iputils-s${PV}.tar.bz2
mirror://gentoo/iputils-s${PV}-manpages.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-linux ~x86-linux"
IUSE="doc extras idn ipv6 SECURITY_HAZARD ssl static"
RDEPEND="extras? ( !net-misc/rarpd )
ssl? ( dev-libs/openssl )
idn? ( net-dns/libidn )"
DEPEND="${RDEPEND}
virtual/os-headers"
S=${WORKDIR}/${PN}-s${PV}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/021109-uclibc-no-ether_ntohost.patch
epatch "${FILESDIR}"/${PN}-20100418-arping-broadcast.patch #337049
epatch "${FILESDIR}"/${PN}-20100418-openssl.patch #335436
epatch "${FILESDIR}"/${PN}-20100418-so_mark.patch #335347
epatch "${FILESDIR}"/${PN}-20100418-makefile.patch
epatch "${FILESDIR}"/${PN}-20100418-proper-libs.patch #332703
epatch "${FILESDIR}"/${PN}-20100418-printf-size.patch
epatch "${FILESDIR}"/${PN}-20100418-aliasing.patch
epatch "${FILESDIR}"/${PN}-20071127-kernel-ifaddr.patch
epatch "${FILESDIR}"/${PN}-20070202-idn.patch #218638
epatch "${FILESDIR}"/${PN}-20100418-ping-CVE-2010-2529.patch #332527
epatch "${FILESDIR}"/${PN}-20071127-infiniband.patch #377687
use SECURITY_HAZARD && epatch "${FILESDIR}"/${PN}-20071127-nonroot-floodping.patch
use static && append-ldflags -static
use ssl && append-cppflags -DHAVE_OPENSSL
use ipv6 || sed -i -e 's:IPV6_TARGETS=:#IPV6_TARGETS=:' Makefile
export IDN=$(use idn && echo yes)
}
src_compile() {
tc-export CC
emake || die "make main failed"
}
src_install() {
into /
dobin ping || die "ping"
use ipv6 && dobin ping6
dosbin arping || die "arping"
into /usr
dosbin tracepath || die "tracepath"
use ipv6 && dosbin trace{path,route}6
use extras && \
{ dosbin clockdiff rarpd rdisc ipg tftpd || die "misc sbin"; }
fperms 4711 /bin/ping
use ipv6 && fperms 4711 /bin/ping6 /usr/sbin/traceroute6
dodoc INSTALL RELNOTES
use ipv6 \
&& dosym ping.8 /usr/share/man/man8/ping6.8 \
|| rm -f doc/*6.8
rm -f doc/setkey.8
doman doc/*.8
use doc && dohtml doc/*.html
}

View File

@ -1,25 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-hcidump/bluez-hcidump-2.0.ebuild,v 1.5 2011/10/26 11:37:48 xarthisius Exp $
EAPI=4
inherit eutils
DESCRIPTION="Bluetooth HCI packet analyzer"
HOMEPAGE="http://bluez.sourceforge.net/"
SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 hppa ppc x86"
IUSE=""
RDEPEND=">=net-wireless/bluez-4.90"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
DOCS=( AUTHORS ChangeLog README )
src_prepare() {
epatch "${FILESDIR}"/${P}-bluez-4.9x.patch
}

View File

@ -1,20 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-hcidump/bluez-hcidump-2.1.ebuild,v 1.1 2011/11/04 20:43:01 ssuominen Exp $
EAPI=4
DESCRIPTION="Bluetooth HCI packet analyzer"
HOMEPAGE="http://www.bluez.org/"
SRC_URI="mirror://debian/pool/main/b/${PN}/${PN}_${PV}.orig.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
IUSE=""
RDEPEND=">=net-wireless/bluez-4.96"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
DOCS=( AUTHORS ChangeLog README )

View File

@ -1,45 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/debianutils/debianutils-3.4.4.ebuild,v 1.6 2011/05/01 12:20:13 xarthisius Exp $
inherit eutils flag-o-matic
DESCRIPTION="A selection of tools from Debian"
HOMEPAGE="http://packages.qa.debian.org/d/debianutils.html"
SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz"
LICENSE="BSD GPL-2 SMAIL"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="kernel_linux static"
PDEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-3.4.2-no-bs-namespace.patch
}
src_compile() {
use static && append-ldflags -static
econf || die
emake || die
}
src_install() {
into /
dobin tempfile run-parts || die
if use kernel_linux ; then
dosbin installkernel || die "installkernel failed"
fi
into /usr
dosbin savelog || die "savelog failed"
doman tempfile.1 run-parts.8 savelog.8
use kernel_linux && doman installkernel.8
cd debian
dodoc changelog control
keepdir /etc/kernel/postinst.d
}

View File

@ -1,40 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/help2man/help2man-1.36.4-r1.ebuild,v 1.9 2010/01/11 04:23:03 vapier Exp $
inherit eutils
DESCRIPTION="GNU utility to convert program --help output to a man page"
HOMEPAGE="http://www.gnu.org/software/help2man"
SRC_URI="mirror://gnu/help2man/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="nls elibc_glibc"
RDEPEND="dev-lang/perl"
DEPEND="${RDEPEND}
elibc_glibc? ( nls? ( dev-perl/Locale-gettext
>=sys-devel/gettext-0.12.1-r1 ) )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-respect-LDFLAGS.patch"
}
src_compile() {
local myconf
use elibc_glibc && myconf="${myconf} $(use_enable nls)" \
|| myconf="${myconf} --disable-nls"
econf ${myconf} || die
emake || die "emake failed"
}
src_install() {
emake -j1 DESTDIR="${D}" install || die "make install failed"
dodoc ChangeLog NEWS README THANKS
}

View File

@ -1,37 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-20120922.ebuild,v 1.4 2012/10/02 12:53:52 blueness Exp $
EAPI="4"
DESCRIPTION="Hardware (PCI, USB) IDs databases"
HOMEPAGE="https://github.com/gentoo/hwids"
SRC_URI="https://github.com/gentoo/hwids/tarball/${P} -> ${P}.tar.gz"
LICENSE="|| ( GPL-2 BSD )"
SLOT="0"
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE=""
DEPEND=""
RDEPEND="!<sys-apps/pciutils-3.1.9-r2
!<sys-apps/usbutils-005-r1"
S="${WORKDIR}"
src_compile() {
cd "${S}"/gentoo-hwids-*
for file in {usb,pci}.ids; do
gzip -c ${file} > ${file}.gz || die
done
}
src_install() {
cd "${S}"/gentoo-hwids-*
insinto /usr/share/misc
doins {usb,pci}.ids{,.gz}
dodoc README.md
}

View File

@ -1,45 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-20130114.ebuild,v 1.9 2013/01/26 21:14:15 ssuominen Exp $
EAPI=5
inherit udev eutils
DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases"
HOMEPAGE="https://github.com/gentoo/hwids"
SRC_URI="https://github.com/gentoo/hwids/archive/${P}.tar.gz"
LICENSE="|| ( GPL-2 BSD ) public-domain"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux"
IUSE="+udev"
DEPEND="udev? ( dev-lang/perl !=sys-fs/udev-196 )"
RDEPEND="!<sys-apps/pciutils-3.1.9-r2
!<sys-apps/usbutils-005-r1"
S=${WORKDIR}/hwids-${P}
src_compile() {
emake UDEV=$(usex udev)
}
src_install() {
emake UDEV=$(usex udev) install \
DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
MISCDIR="${EPREFIX}/usr/share/misc" \
HWDBDIR="${EPREFIX}$(udev_get_udevdir)/hwdb.d" \
DESTDIR="${D}"
}
pkg_postinst() {
# until udev introduces a way to compile the database at a given
# location, rather than just /, we can't do much on offset root.
if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
return 0
fi
if use udev && [[ $(udevadm --help 2>&1) == *hwdb* ]]; then
udevadm hwdb --update
fi
}

View File

@ -1,45 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-20130131.ebuild,v 1.1 2013/01/31 16:04:01 flameeyes Exp $
EAPI=4
inherit udev eutils
DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases"
HOMEPAGE="https://github.com/gentoo/hwids"
SRC_URI="https://github.com/gentoo/hwids/archive/${P}.tar.gz"
LICENSE="|| ( GPL-2 BSD ) public-domain"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd x86-fbsd ~x64-freebsd ~amd64-linux x86-linux"
IUSE="+udev"
DEPEND="udev? ( dev-lang/perl !=sys-fs/udev-196 )"
RDEPEND="!<sys-apps/pciutils-3.1.9-r2
!<sys-apps/usbutils-005-r1"
S=${WORKDIR}/hwids-${P}
src_compile() {
emake UDEV=$(usex udev)
}
src_install() {
emake UDEV=$(usex udev) install \
DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
MISCDIR="${EPREFIX}/usr/share/misc" \
HWDBDIR="${EPREFIX}$(udev_get_udevdir)/hwdb.d" \
DESTDIR="${D}"
}
pkg_postinst() {
# until udev introduces a way to compile the database at a given
# location, rather than just /, we can't do much on offset root.
if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
return 0
fi
if use udev && [[ $(udevadm --help 2>&1) == *hwdb* ]]; then
udevadm hwdb --update
fi
}

View File

@ -1,47 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd-ui/systemd-ui-1.ebuild,v 1.1 2012/03/31 11:52:03 mgorny Exp $
EAPI=4
inherit autotools-utils
DESCRIPTION="System and service manager for Linux"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
VALASLOT="0.14"
RDEPEND="!sys-apps/systemd[gtk]
>=dev-libs/glib-2.26
dev-libs/libgee:0
sys-apps/dbus
x11-libs/gtk+:2
>=x11-libs/libnotify-0.7"
DEPEND="${RDEPEND}
app-arch/xz-utils
dev-lang/vala:${VALASLOT}"
# Due to vala being broken.
AUTOTOOLS_IN_SOURCE_BUILD=1
src_prepare() {
# Force the rebuild of .vala sources
touch src/*.vala || die
# Fix hardcoded path in .vala.
sed -i -e 's:/lib/systemd:/usr/lib/systemd:g' src/*.vala || die
autotools-utils_src_prepare
}
src_configure() {
export VALAC="$(type -p valac-${VALASLOT})"
autotools-utils_src_configure
}

View File

@ -1,34 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/dosfstools/dosfstools-3.0.9.ebuild,v 1.8 2010/10/12 17:12:56 armin76 Exp $
EAPI="2"
inherit toolchain-funcs flag-o-matic
DESCRIPTION="DOS filesystem tools - provides mkdosfs, mkfs.msdos, mkfs.vfat"
HOMEPAGE="http://www.daniel-baumann.ch/software/dosfstools/"
SRC_URI="http://www.daniel-baumann.ch/software/dosfstools/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE=""
RESTRICT="test" # there is no test target #239071
src_prepare() {
sed -i \
-e '/^PREFIX/s:/local::' \
-e '/^OPTFLAGS/s:=.*:=:' \
Makefile || die "sed Makefile"
append-lfs-flags
tc-export CC
}
src_install() {
emake DESTDIR="${D}" install || die
dodir /sbin
mv "${D}"/usr/sbin/*fsck* "${D}"/sbin/ || die
mv "${D}"/usr/share/doc/{${PN},${PF}} || die
prepalldocs
}

View File

@ -1,85 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-22.ebuild,v 1.6 2013/01/31 23:08:27 ago Exp $
EAPI=4
inherit eutils
if [ "${PV}" = "9999" ]; then
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/udev-gentoo-scripts.git"
inherit git-2
fi
DESCRIPTION="udev startup scripts for openrc"
HOMEPAGE="http://www.gentoo.org"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
if [ "${PV}" != "9999" ]; then
SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~s390 ~sh ~sparc x86"
fi
RESTRICT="test"
DEPEND="virtual/pkgconfig"
RDEPEND=">=virtual/udev-180
sys-apps/openrc
!<sys-fs/udev-186"
src_prepare()
{
epatch_user
}
pkg_postinst()
{
# Add udev and udev-mount to the sysinit runlevel automatically if this is
# the first install of this package.
if [[ -z ${REPLACING_VERSIONS} ]]
then
if [[ -x "${ROOT}"etc/init.d/udev \
&& -d "${ROOT}"etc/runlevels/sysinit ]]
then
ln -s "${ROOT}"etc/init.d/udev "${ROOT}"/etc/runlevels/sysinit/udev
fi
if [[ -x "${ROOT}"etc/init.d/udev-mount \
&& -d "${ROOT}"etc/runlevels/sysinit ]]
then
ln -s "${ROOT}"etc/init.d/udev-mount \
"${ROOT}"etc/runlevels/sysinit/udev-mount
fi
fi
# Warn the user about adding the scripts to their sysinit runlevel
if [[ -e "${ROOT}"etc/runlevels/sysinit ]]
then
if [[ ! -e "${ROOT}"etc/runlevels/sysinit/udev ]]
then
ewarn
ewarn "You need to add udev to the sysinit runlevel."
ewarn "If you do not do this,"
ewarn "your system will not be able to boot!"
ewarn "Run this command:"
ewarn "\trc-update add udev sysinit"
fi
if [[ ! -e "${ROOT}"etc/runlevels/sysinit/udev-mount ]]
then
ewarn
ewarn "You need to add udev-mount to the sysinit runlevel."
ewarn "If you do not do this,"
ewarn "your system will not be able to boot!"
ewarn "Run this command:"
ewarn "\trc-update add udev-mount sysinit"
fi
fi
if [[ -x $(type -P rc-update) ]] && rc-update show | grep udev-postmount | grep -qs 'boot\|default\|sysinit'; then
ewarn "The udev-postmount service has been removed because the reasons for"
ewarn "its existance have been removed upstream."
ewarn "Please remove it from your runlevels."
fi
}

View File

@ -1,593 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-171-r10.ebuild,v 1.4 2013/02/02 16:16:22 grobian Exp $
EAPI=4
KV_min=2.6.31
KV_reliable=2.6.31
PATCHSET=${P}-gentoo-patchset-v2
scriptversion=7.1
scriptname=udev-gentoo-scripts
[[ -n "${scriptversion}" ]] && scriptname="${scriptname}-${scriptversion}"
if [[ ${PV} == "9999" ]]
then
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/hotplug/udev.git"
EGIT_BRANCH="master"
inherit autotools git-2
fi
inherit eutils flag-o-matic multilib toolchain-funcs linux-info systemd libtool
if [[ ${PV} != "9999" ]]
then
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
SRC_URI="mirror://gentoo/${P}.tar.bz2
test? ( mirror://gentoo/${PN}-171-testsys.tar.bz2 )
mirror://gentoo/${PN}-gentoo-legacy-patchset-2.tar.bz2"
if [[ -n "${PATCHSET}" ]]
then
SRC_URI="${SRC_URI} mirror://gentoo/${PATCHSET}.tar.bz2"
fi
fi
SRC_URI="${SRC_URI} mirror://gentoo/${scriptname}.tar.bz2"
DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
LICENSE="GPL-2"
SLOT="0"
IUSE="build selinux test debug +rule_generator hwdb gudev introspection
keymap floppy edd action_modeswitch extras"
COMMON_DEPEND="selinux? ( sys-libs/libselinux )
extras? ( dev-libs/glib:2
dev-libs/gobject-introspection
virtual/libusb:0 )
gudev? ( dev-libs/glib:2 )
introspection? ( dev-libs/gobject-introspection )
action_modeswitch? ( virtual/libusb:0 )
>=sys-apps/util-linux-2.16
!<sys-libs/glibc-2.11"
DEPEND="${COMMON_DEPEND}
keymap? ( dev-util/gperf )
extras? ( dev-util/gperf )
virtual/pkgconfig
virtual/os-headers
!<sys-kernel/linux-headers-2.6.34
test? ( app-text/tree )"
RDEPEND="${COMMON_DEPEND}
hwdb?
(
>=sys-apps/usbutils-0.82
|| (
( sys-apps/hwids >=sys-apps/pciutils-3.1.9-r2 )
>=sys-apps/pciutils-3.1.9-r1[-compress-db]
<sys-apps/pciutils-3.1.9-r1[-zlib]
)
)
extras?
(
>=sys-apps/usbutils-0.82
sys-apps/pciutils
)
!sys-apps/coldplug
!<sys-fs/lvm2-2.02.45
!sys-fs/device-mapper
>=sys-apps/baselayout-2"
if [[ ${PV} == "9999" ]]
then
# for documentation processing with xsltproc
DEPEND="${DEPEND}
app-text/docbook-xsl-stylesheets
app-text/docbook-xml-dtd
dev-util/gtk-doc"
fi
# required kernel options
CONFIG_CHECK="~INOTIFY_USER ~SIGNALFD ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2
~!IDE ~BLK_DEV_BSG"
# Return values:
# 2 - reliable
# 1 - unreliable
# 0 - too old
udev_check_KV() {
local ok=0
if kernel_is -ge ${KV_reliable//./ }
then
ok=2
elif kernel_is -ge ${KV_min//./ }
then
ok=1
fi
return $ok
}
pkg_setup() {
linux-info_pkg_setup
# always print kernel version requirements
ewarn
ewarn "${P} does not support Linux kernel before version ${KV_min}!"
if [[ ${KV_min} != ${KV_reliable} ]]
then
ewarn "For a reliable udev, use at least kernel ${KV_reliable}"
fi
udev_check_KV
case "$?" in
2) einfo "Your kernel version (${KV_FULL}) is new enough to run ${P} reliably." ;;
1) ewarn "Your kernel version (${KV_FULL}) is new enough to run ${P},"
ewarn "but it may be unreliable in some cases."
;;
0) eerror "Your kernel version (${KV_FULL}) is too old to run ${P}"
;;
esac
KV_FULL_SRC=${KV_FULL}
get_running_version
udev_check_KV
if [[ "$?" = "0" ]]
then
eerror
eerror "udev cannot be restarted after emerging,"
eerror "as your running kernel version (${KV_FULL}) is too old."
eerror "You really need to use a newer kernel after a reboot!"
NO_RESTART=1
fi
}
src_unpack() {
unpack ${A}
if [[ ${PV} == "9999" ]]
then
git-2_src_unpack
fi
}
src_prepare() {
if use test && [[ -d "${WORKDIR}"/test/sys ]]
then
mv "${WORKDIR}"/test/sys "${S}"/test/
fi
# patches go here...
epatch "${WORKDIR}"/${P}-path_id-skip-ATA-transport.patch #437418
# backport some patches
if [[ -n "${PATCHSET}" ]]
then
EPATCH_SOURCE="${WORKDIR}/${PATCHSET}" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" epatch
fi
# change rules back to group uucp instead of dialout for now
sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
-i rules/{rules.d,arch}/*.rules \
|| die "failed to change group dialout to uucp"
if [[ ${PV} != 9999 ]]
then
# Make sure there is no sudden changes to upstream rules file
# (more for my own needs than anything else ...)
MD5=$(md5sum < "${S}/rules/rules.d/50-udev-default.rules")
MD5=${MD5/ -/}
if [[ ${MD5} != a9954d57e97aa0ad2e0ed53899d9559a ]]
then
eerror "50-udev-default.rules has been updated, please validate!"
eerror "md5sum: ${MD5}"
die "50-udev-default.rules has been updated, please validate!"
fi
fi
if [[ ${PV} == 9999 ]]
then
gtkdocize --copy || die "gtkdocize failed"
eautoreconf
else
elibtoolize
fi
}
use_extras() { use extras && echo "--enable-${2:-$1}" || use_enable "$@" ; }
src_configure() {
econf \
--prefix="${EPREFIX}/usr" \
--sysconfdir="${EPREFIX}/etc" \
--sbindir="${EPREFIX}/sbin" \
--libdir="${EPREFIX}/usr/$(get_libdir)" \
--with-rootlibdir="${EPREFIX}/$(get_libdir)" \
--libexecdir="${EPREFIX}/lib/udev" \
--enable-logging \
--enable-static \
$(use_with selinux) \
$(use_enable debug) \
$(use_extras rule_generator) \
$(use_extras hwdb) \
--with-pci-ids-path="${EPREFIX}/usr/share/misc/pci.ids" \
--with-usb-ids-path="${EPREFIX}/usr/share/misc/usb.ids" \
--disable-udev_acl \
$(use_extras gudev) \
$(use_extras introspection) \
$(use_extras keymap) \
$(use_extras floppy) \
$(use_extras edd) \
$(use_extras action_modeswitch) \
$(systemd_with_unitdir)
}
src_compile() {
filter-flags -fprefetch-loop-arrays
emake
}
src_install() {
into /
emake DESTDIR="${D}" install
exeinto /lib/udev
keepdir /lib/udev/state
keepdir /lib/udev/devices
# create symlinks for these utilities to /sbin
# where multipath-tools expect them to be (Bug #168588)
dosym "../lib/udev/scsi_id" /sbin/scsi_id
# Add gentoo stuff to udev.conf
echo "# If you need to change mount-options, do it in /etc/fstab" \
>> "${ED}"/etc/udev/udev.conf
# let the dir exist at least
keepdir /etc/udev/rules.d
# Now installing rules
cd "${S}"/rules
insinto /lib/udev/rules.d/
# support older kernels
doins misc/30-kernel-compat.rules
# Adding arch specific rules
if [[ -f arch/40-${ARCH}.rules ]]
then
doins "arch/40-${ARCH}.rules"
fi
cd "${S}"
insinto /etc/modprobe.d
newins "${WORKDIR}"/blacklist-146 blacklist.conf
newins "${WORKDIR}"/pnp-aliases pnp-aliases.conf
# documentation
dodoc ChangeLog README TODO
# keep doc in just one directory, Bug #281137
rm -rf "${ED}/usr/share/doc/${PN}"
if use keymap
then
dodoc extras/keymap/README.keymap.txt
fi
cd "${WORKDIR}/${scriptname}"
sed -i -e 's/2.6.34/2.6.31/' init.d/udev
doconfd conf.d/*
exeinto /lib/udev
doexe helpers/*
doexe "${WORKDIR}"/shell-compat-KV.sh
doinitd init.d/*
insinto /etc/modprobe.d
doins modprobe.d/*
insinto /lib/udev/rules.d
doins rules.d/*
}
src_test() {
local emake_cmd="${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE}"
cd "${S}"
einfo ">>> Test phase [udev:check]: ${CATEGORY}/${PF}"
has userpriv $FEATURES && einfo "Disable FEATURES userpriv to run the udev tests"
if ! $emake_cmd -j1 check
then
has test $FEATURES && die "udev: Make test failed. See above for details."
has test $FEATURES || eerror "udev: Make test failed. See above for details."
fi
}
pkg_preinst() {
# moving old files to support newer modprobe, 12 May 2009
local f dir=${EROOT}/etc/modprobe.d/
for f in pnp-aliases blacklist; do
if [[ -f $dir/$f && ! -f $dir/$f.conf ]]
then
elog "Moving $dir/$f to $f.conf"
mv -f "$dir/$f" "$dir/$f.conf"
fi
done
if [[ -d ${EROOT}/lib/udev-state ]]
then
mv -f "${EROOT}"/lib/udev-state/* "${ED}"/lib/udev/state/
rm -r "${EROOT}"/lib/udev-state
fi
if [[ -f ${EROOT}/etc/udev/udev.config &&
! -f ${EROOT}/etc/udev/udev.rules ]]
then
mv -f "${EROOT}"/etc/udev/udev.config "${EROOT}"/etc/udev/udev.rules
fi
# delete the old udev.hotplug symlink if it is present
if [[ -h ${EROOT}/etc/hotplug.d/default/udev.hotplug ]]
then
rm -f "${EROOT}"/etc/hotplug.d/default/udev.hotplug
fi
# delete the old wait_for_sysfs.hotplug symlink if it is present
if [[ -h ${EROOT}/etc/hotplug.d/default/05-wait_for_sysfs.hotplug ]]
then
rm -f "${EROOT}"/etc/hotplug.d/default/05-wait_for_sysfs.hotplug
fi
# delete the old wait_for_sysfs.hotplug symlink if it is present
if [[ -h ${EROOT}/etc/hotplug.d/default/10-udev.hotplug ]]
then
rm -f "${EROOT}"/etc/hotplug.d/default/10-udev.hotplug
fi
has_version "=${CATEGORY}/${PN}-103-r3"
previous_equal_to_103_r3=$?
has_version "<${CATEGORY}/${PN}-104-r5"
previous_less_than_104_r5=$?
has_version "<${CATEGORY}/${PN}-106-r5"
previous_less_than_106_r5=$?
has_version "<${CATEGORY}/${PN}-113"
previous_less_than_113=$?
}
# 19 Nov 2008
fix_old_persistent_net_rules() {
local rules=${EROOT}/etc/udev/rules.d/70-persistent-net.rules
[[ -f ${rules} ]] || return
elog
elog "Updating persistent-net rules file"
# Change ATTRS to ATTR matches, Bug #246927
sed -i -e 's/ATTRS{/ATTR{/g' "${rules}"
# Add KERNEL matches if missing, Bug #246849
sed -ri \
-e '/KERNEL/ ! { s/NAME="(eth|wlan|ath)([0-9]+)"/KERNEL=="\1*", NAME="\1\2"/}' \
"${rules}"
}
# See Bug #129204 for a discussion about restarting udevd
restart_udevd() {
if [[ ${NO_RESTART} = "1" ]]
then
ewarn "Not restarting udevd, as your kernel is too old!"
return
fi
# need to merge to our system
[[ ${EROOT} = / ]] || return
# check if root of init-process is identical to ours (not in chroot)
[[ -r /proc/1/root && /proc/1/root/ -ef /proc/self/root/ ]] || return
# abort if there is no udevd running
[[ -n $(pidof udevd) ]] || return
# abort if no /dev/.udev exists
[[ -e /dev/.udev ]] || return
elog
elog "restarting udevd now."
killall -15 udevd &>/dev/null
sleep 1
killall -9 udevd &>/dev/null
/sbin/udevd --daemon
sleep 3
if [[ ! -n $(pidof udevd) ]]
then
eerror "FATAL: udev died, please check your kernel is"
eerror "new enough and configured correctly for ${P}."
eerror
eerror "Please have a look at this before rebooting."
eerror "If in doubt, please downgrade udev back to your old version"
fi
}
postinst_init_scripts() {
local enable_postmount=false
# FIXME: inconsistent handling of init-scripts here
# * udev is added to sysinit in openrc-ebuild
# * we add udev-postmount to default in here
#
# If we are building stages, add udev and udev-mount to the sysinit runlevel
# automatically.
if use build
then
if [[ -x "${EROOT}"/etc/init.d/udev \
&& -d "${EROOT}"/etc/runlevels/sysinit ]]
then
ln -s "${EPREFIX}"/etc/init.d/udev "${EROOT}"/etc/runlevels/sysinit/udev
fi
if [[ -x "${ROOT}"/etc/init.d/udev-mount \
&& -d "${ROOT}"/etc/runlevels/sysinit ]]
then
ln -s /etc/init.d/udev-mount \
"${ROOT}"/etc/runlevels/sysinit/udev-mount
fi
enable_postmount=true
fi
# Warn the user about adding the scripts to their sysinit runlevel
if [[ -e "${EROOT}"/etc/runlevels/sysinit ]]
then
if [[ ! -e "${EROOT}"/etc/runlevels/sysinit/udev ]]
then
ewarn
ewarn "You need to add udev to the sysinit runlevel."
ewarn "If you do not do this,"
ewarn "your system will not be able to boot!"
ewarn "Run this command:"
ewarn "\trc-update add udev sysinit"
fi
if [[ ! -e "${EROOT}"/etc/runlevels/sysinit/udev-mount ]]
then
ewarn
ewarn "You need to add udev-mount to the sysinit runlevel."
ewarn "If you do not do this,"
ewarn "your system will not be able to boot!"
ewarn "Run this command:"
ewarn "\trc-update add udev-mount sysinit"
fi
fi
# add udev-postmount to default runlevel instead of that ugly injecting
# like a hotplug event, 2009/10/15
# already enabled?
[[ -e "${EROOT}"/etc/runlevels/default/udev-postmount ]] && return
[[ -e "${EROOT}"/etc/runlevels/sysinit/udev ]] && enable_postmount=true
[[ "${EROOT}" = "/" && -d /dev/.udev/ ]] && enable_postmount=true
if $enable_postmount
then
local initd=udev-postmount
if [[ -e ${EROOT}/etc/init.d/${initd} ]] && \
[[ ! -e ${EROOT}/etc/runlevels/default/${initd} ]]
then
ln -snf "${EPREFIX}"/etc/init.d/${initd} "${EROOT}"/etc/runlevels/default/${initd}
elog "Auto-adding '${initd}' service to your default runlevel"
fi
else
elog "You should add the udev-postmount service to default runlevel."
elog "Run this to add it:"
elog "\trc-update add udev-postmount default"
fi
}
pkg_postinst() {
fix_old_persistent_net_rules
# "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
# So try to remove it here (will only work if empty).
rmdir "${EROOT}"/dev/loop 2>/dev/null
if [[ -d "${EROOT}"/dev/loop ]]
then
ewarn "Please make sure your remove /dev/loop,"
ewarn "else losetup may be confused when looking for unused devices."
fi
restart_udevd
postinst_init_scripts
# people want reminders, I'll give them reminders. Odds are they will
# just ignore them anyway...
# delete 40-scsi-hotplug.rules, it is integrated in 50-udev.rules, 19 Jan 2007
if [[ $previous_equal_to_103_r3 = 0 ]] &&
[[ -e ${EROOT}/etc/udev/rules.d/40-scsi-hotplug.rules ]]
then
ewarn "Deleting stray 40-scsi-hotplug.rules"
ewarn "installed by sys-fs/udev-103-r3"
rm -f "${EROOT}"/etc/udev/rules.d/40-scsi-hotplug.rules
fi
# Removing some device-nodes we thought we need some time ago, 25 Jan 2007
if [[ -d ${EROOT}/lib/udev/devices ]]
then
rm -f "${EROOT}"/lib/udev/devices/{null,zero,console,urandom}
fi
# Removing some old file, 29 Jan 2007
if [[ $previous_less_than_104_r5 = 0 ]]
then
rm -f "${EROOT}"/etc/dev.d/net/hotplug.dev
rmdir --ignore-fail-on-non-empty "${EROOT}"/etc/dev.d/net 2>/dev/null
fi
# 19 Mar 2007
if [[ $previous_less_than_106_r5 = 0 ]] &&
[[ -e ${EROOT}/etc/udev/rules.d/95-net.rules ]]
then
rm -f "${EROOT}"/etc/udev/rules.d/95-net.rules
fi
# Try to remove /etc/dev.d as that is obsolete, 23 Apr 2007
if [[ -d ${EROOT}/etc/dev.d ]]
then
rmdir --ignore-fail-on-non-empty "${EROOT}"/etc/dev.d/default "${EROOT}"/etc/dev.d 2>/dev/null
if [[ -d ${EROOT}/etc/dev.d ]]
then
ewarn "You still have the directory /etc/dev.d on your system."
ewarn "This is no longer used by udev and can be removed."
fi
fi
# 64-device-mapper.rules now gets installed by sys-fs/device-mapper
# remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007
if [[ $previous_less_than_113 = 0 ]] &&
[[ -f ${EROOT}/etc/udev/rules.d/64-device-mapper.rules ]] &&
! has_version sys-fs/device-mapper
then
rm -f "${EROOT}"/etc/udev/rules.d/64-device-mapper.rules
einfo "Removed unneeded file 64-device-mapper.rules"
fi
# requested in Bug #225033:
elog
elog "persistent-net does assigning fixed names to network devices."
elog "If you have problems with the persistent-net rules,"
elog "just delete the rules file"
elog "\trm ${EROOT}etc/udev/rules.d/70-persistent-net.rules"
elog "and then reboot."
elog
elog "This may however number your devices in a different way than they are now."
ewarn
ewarn "If you build an initramfs including udev, then please"
ewarn "make sure that the /sbin/udevadm binary gets included,"
ewarn "and your scripts changed to use it,as it replaces the"
ewarn "old helper apps udevinfo, udevtrigger, ..."
ewarn
ewarn "mount options for directory /dev are no longer"
ewarn "set in /etc/udev/udev.conf, but in /etc/fstab"
ewarn "as for other directories."
ewarn
ewarn "If you use /dev/md/*, /dev/loop/* or /dev/rd/*,"
ewarn "then please migrate over to using the device names"
ewarn "/dev/md*, /dev/loop* and /dev/ram*."
ewarn "The devfs-compat rules have been removed."
ewarn "For reference see Bug #269359."
ewarn
ewarn "Rules for /dev/hd* devices have been removed"
ewarn "Please migrate to libata."
elog
elog "For more information on udev on Gentoo, writing udev rules, and"
elog " fixing known issues visit:"
elog " http://www.gentoo.org/doc/en/udev-guide.xml"
}

View File

@ -1,601 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-171-r2.ebuild,v 1.2 2011/09/18 06:42:42 zmedico Exp $
EAPI=4
KV_min=2.6.32
KV_reliable=2.6.32
PATCHSET=${P}-gentoo-patchset-v1
scriptversion=v4
scriptname=udev-gentoo-scripts-${scriptversion}
if [[ ${PV} == "9999" ]]
then
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/hotplug/udev.git"
EGIT_BRANCH="master"
vcs="git-2 autotools"
fi
inherit ${vcs} eutils flag-o-matic multilib toolchain-funcs linux-info systemd libtool
if [[ ${PV} != "9999" ]]
then
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-linux"
# please update testsys-tarball whenever udev-xxx/test/sys/ is changed
SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2
test? ( mirror://gentoo/${PN}-171-testsys.tar.bz2 )"
if [[ -n "${PATCHSET}" ]]
then
SRC_URI="${SRC_URI} mirror://gentoo/${PATCHSET}.tar.bz2"
fi
fi
SRC_URI="${SRC_URI} mirror://gentoo/${scriptname}.tar.bz2"
DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
LICENSE="GPL-2"
SLOT="0"
IUSE="build selinux test debug +rule_generator hwdb acl gudev introspection
keymap floppy edd action_modeswitch extras"
COMMON_DEPEND="selinux? ( sys-libs/libselinux )
extras? ( sys-apps/acl
dev-libs/glib:2
dev-libs/gobject-introspection
virtual/libusb:0 )
acl? ( sys-apps/acl dev-libs/glib:2 )
gudev? ( dev-libs/glib:2 )
introspection? ( dev-libs/gobject-introspection )
action_modeswitch? ( virtual/libusb:0 )
>=sys-apps/util-linux-2.16
>=sys-libs/glibc-2.10"
DEPEND="${COMMON_DEPEND}
keymap? ( dev-util/gperf )
extras? ( dev-util/gperf )
dev-util/pkgconfig
virtual/os-headers
!<sys-kernel/linux-headers-2.6.34
test? ( app-text/tree )"
RDEPEND="${COMMON_DEPEND}
hwdb?
(
>=sys-apps/usbutils-0.82
sys-apps/pciutils
)
extras?
(
>=sys-apps/usbutils-0.82
sys-apps/pciutils
)
!sys-apps/coldplug
!<sys-fs/lvm2-2.02.45
!sys-fs/device-mapper
>=sys-apps/baselayout-1.12.5"
if [[ ${PV} == "9999" ]]
then
# for documentation processing with xsltproc
DEPEND="${DEPEND}
app-text/docbook-xsl-stylesheets
app-text/docbook-xml-dtd
dev-util/gtk-doc"
fi
# required kernel options
CONFIG_CHECK="~INOTIFY_USER ~SIGNALFD ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2
~!IDE ~BLK_DEV_BSG"
# Return values:
# 2 - reliable
# 1 - unreliable
# 0 - too old
udev_check_KV() {
local ok=0
if kernel_is -ge ${KV_reliable//./ }
then
ok=2
elif kernel_is -ge ${KV_min//./ }
then
ok=1
fi
return $ok
}
pkg_setup() {
linux-info_pkg_setup
# always print kernel version requirements
ewarn
ewarn "${P} does not support Linux kernel before version ${KV_min}!"
if [[ ${KV_min} != ${KV_reliable} ]]
then
ewarn "For a reliable udev, use at least kernel ${KV_reliable}"
fi
udev_check_KV
case "$?" in
2) einfo "Your kernel version (${KV_FULL}) is new enough to run ${P} reliably." ;;
1) ewarn "Your kernel version (${KV_FULL}) is new enough to run ${P},"
ewarn "but it may be unreliable in some cases."
;;
0) eerror "Your kernel version (${KV_FULL}) is too old to run ${P}"
;;
esac
KV_FULL_SRC=${KV_FULL}
get_running_version
udev_check_KV
if [[ "$?" = "0" ]]
then
eerror
eerror "udev cannot be restarted after emerging,"
eerror "as your running kernel version (${KV_FULL}) is too old."
eerror "You really need to use a newer kernel after a reboot!"
NO_RESTART=1
fi
}
src_unpack() {
unpack ${A}
if [[ ${PV} == "9999" ]]
then
git-2_src_unpack
fi
}
src_prepare() {
if use test && [[ -d "${WORKDIR}"/test/sys ]]
then
mv "${WORKDIR}"/test/sys "${S}"/test/
fi
# patches go here...
# backport some patches
if [[ -n "${PATCHSET}" ]]
then
EPATCH_SOURCE="${WORKDIR}/${PATCHSET}" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" epatch
fi
# change rules back to group uucp instead of dialout for now
sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
-i rules/{rules.d,arch}/*.rules \
|| die "failed to change group dialout to uucp"
if [[ ${PV} != 9999 ]]
then
# Make sure there is no sudden changes to upstream rules file
# (more for my own needs than anything else ...)
MD5=$(md5sum < "${S}/rules/rules.d/50-udev-default.rules")
MD5=${MD5/ -/}
if [[ ${MD5} != a9954d57e97aa0ad2e0ed53899d9559a ]]
then
eerror "50-udev-default.rules has been updated, please validate!"
eerror "md5sum: ${MD5}"
die "50-udev-default.rules has been updated, please validate!"
fi
fi
if [[ ${PV} == 9999 ]]
then
gtkdocize --copy || die "gtkdocize failed"
eautoreconf
else
elibtoolize
fi
}
src_configure() {
if ! use extras
then
econf \
--prefix="${EPREFIX}/usr" \
--sysconfdir="${EPREFIX}/etc" \
--sbindir="${EPREFIX}/sbin" \
--libdir="${EPREFIX}/usr/$(get_libdir)" \
--with-rootlibdir="${EPREFIX}/$(get_libdir)" \
--libexecdir="${EPREFIX}/lib/udev" \
--enable-logging \
--enable-static \
$(use_with selinux) \
$(use_enable debug) \
$(use_enable rule_generator) \
$(use_enable hwdb) \
--with-pci-ids-path="${EPREFIX}/usr/share/misc/pci.ids" \
--with-usb-ids-path="${EPREFIX}/usr/share/misc/usb.ids" \
$(use_enable acl udev_acl) \
$(use_enable gudev) \
$(use_enable introspection) \
$(use_enable keymap) \
$(use_enable floppy) \
$(use_enable edd) \
$(use_enable action_modeswitch) \
$(systemd_with_unitdir)
else
econf \
--prefix="${EPREFIX}/usr" \
--sysconfdir="${EPREFIX}/etc" \
--sbindir="${EPREFIX}/sbin" \
--libdir="${EPREFIX}/usr/$(get_libdir)" \
--with-rootlibdir="${EPREFIX}/$(get_libdir)" \
--libexecdir="${EPREFIX}/lib/udev" \
--enable-logging \
--enable-static \
$(use_with selinux) \
$(use_enable debug) \
--enable-rule_generator \
--enable-hwdb \
--with-pci-ids-path="${EPREFIX}/usr/share/misc/pci.ids" \
--with-usb-ids-path="${EPREFIX}/usr/share/misc/usb.ids" \
--enable-udev_acl \
--enable-gudev \
--enable-introspection \
--enable-keymap \
--enable-floppy \
--enable-edd \
--enable-action_modeswitch \
$(systemd_with_unitdir)
fi
}
src_compile() {
filter-flags -fprefetch-loop-arrays
emake
}
src_install() {
emake -C "${WORKDIR}/${scriptname}" \
DESTDIR="${D}" LIBDIR="${EPREFIX}$(get_libdir)" \
LIBUDEV="${EPREFIX}/lib/udev" \
MODPROBE_DIR="${EPREFIX}/etc/modprobe.d" \
INITD="${EPREFIX}/etc/init.d" \
CONFD="${EPREFIX}/etc/conf.d" \
KV_min="${KV_min}" KV_reliable="${KV_reliable}" \
install
into /
emake DESTDIR="${D}" install
exeinto /lib/udev
keepdir /lib/udev/state
keepdir /lib/udev/devices
# create symlinks for these utilities to /sbin
# where multipath-tools expect them to be (Bug #168588)
dosym "../lib/udev/scsi_id" /sbin/scsi_id
# Add gentoo stuff to udev.conf
echo "# If you need to change mount-options, do it in /etc/fstab" \
>> "${ED}"/etc/udev/udev.conf
# let the dir exist at least
keepdir /etc/udev/rules.d
# Now installing rules
cd "${S}"/rules
insinto /lib/udev/rules.d/
# support older kernels
doins misc/30-kernel-compat.rules
# Adding arch specific rules
if [[ -f arch/40-${ARCH}.rules ]]
then
doins "arch/40-${ARCH}.rules"
fi
cd "${S}"
insinto /etc/modprobe.d
newins "${FILESDIR}"/blacklist-146 blacklist.conf
newins "${FILESDIR}"/pnp-aliases pnp-aliases.conf
# documentation
dodoc ChangeLog README TODO
# keep doc in just one directory, Bug #281137
rm -rf "${ED}/usr/share/doc/${PN}"
if use keymap
then
dodoc extras/keymap/README.keymap.txt
fi
}
src_test() {
local emake_cmd="${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE}"
cd "${WORKDIR}/${scriptname}"
vecho ">>> Test phase [scripts:test]: ${CATEGORY}/${PF}"
if ! $emake_cmd -j1 test
then
has test $FEATURES && die "scripts: Make test failed. See above for details."
has test $FEATURES || eerror "scripts: Make test failed. See above for details."
fi
cd "${S}"
vecho ">>> Test phase [udev:check]: ${CATEGORY}/${PF}"
has userpriv $FEATURES && einfo "Disable FEATURES userpriv to run the udev tests"
if ! $emake_cmd -j1 check
then
has test $FEATURES && die "udev: Make test failed. See above for details."
has test $FEATURES || eerror "udev: Make test failed. See above for details."
fi
}
pkg_preinst() {
# moving old files to support newer modprobe, 12 May 2009
local f dir=${EROOT}/etc/modprobe.d/
for f in pnp-aliases blacklist; do
if [[ -f $dir/$f && ! -f $dir/$f.conf ]]
then
elog "Moving $dir/$f to $f.conf"
mv -f "$dir/$f" "$dir/$f.conf"
fi
done
if [[ -d ${EROOT}/lib/udev-state ]]
then
mv -f "${EROOT}"/lib/udev-state/* "${ED}"/lib/udev/state/
rm -r "${EROOT}"/lib/udev-state
fi
if [[ -f ${EROOT}/etc/udev/udev.config &&
! -f ${EROOT}/etc/udev/udev.rules ]]
then
mv -f "${EROOT}"/etc/udev/udev.config "${EROOT}"/etc/udev/udev.rules
fi
# delete the old udev.hotplug symlink if it is present
if [[ -h ${EROOT}/etc/hotplug.d/default/udev.hotplug ]]
then
rm -f "${EROOT}"/etc/hotplug.d/default/udev.hotplug
fi
# delete the old wait_for_sysfs.hotplug symlink if it is present
if [[ -h ${EROOT}/etc/hotplug.d/default/05-wait_for_sysfs.hotplug ]]
then
rm -f "${EROOT}"/etc/hotplug.d/default/05-wait_for_sysfs.hotplug
fi
# delete the old wait_for_sysfs.hotplug symlink if it is present
if [[ -h ${EROOT}/etc/hotplug.d/default/10-udev.hotplug ]]
then
rm -f "${EROOT}"/etc/hotplug.d/default/10-udev.hotplug
fi
has_version "=${CATEGORY}/${PN}-103-r3"
previous_equal_to_103_r3=$?
has_version "<${CATEGORY}/${PN}-104-r5"
previous_less_than_104_r5=$?
has_version "<${CATEGORY}/${PN}-106-r5"
previous_less_than_106_r5=$?
has_version "<${CATEGORY}/${PN}-113"
previous_less_than_113=$?
}
# 19 Nov 2008
fix_old_persistent_net_rules() {
local rules=${EROOT}/etc/udev/rules.d/70-persistent-net.rules
[[ -f ${rules} ]] || return
elog
elog "Updating persistent-net rules file"
# Change ATTRS to ATTR matches, Bug #246927
sed -i -e 's/ATTRS{/ATTR{/g' "${rules}"
# Add KERNEL matches if missing, Bug #246849
sed -ri \
-e '/KERNEL/ ! { s/NAME="(eth|wlan|ath)([0-9]+)"/KERNEL=="\1*", NAME="\1\2"/}' \
"${rules}"
}
# See Bug #129204 for a discussion about restarting udevd
restart_udevd() {
if [[ ${NO_RESTART} = "1" ]]
then
ewarn "Not restarting udevd, as your kernel is too old!"
return
fi
# need to merge to our system
[[ ${EROOT} = / ]] || return
# check if root of init-process is identical to ours (not in chroot)
[[ -r /proc/1/root && /proc/1/root/ -ef /proc/self/root/ ]] || return
# abort if there is no udevd running
[[ -n $(pidof udevd) ]] || return
# abort if no /dev/.udev exists
[[ -e /dev/.udev ]] || return
elog
elog "restarting udevd now."
killall -15 udevd &>/dev/null
sleep 1
killall -9 udevd &>/dev/null
/sbin/udevd --daemon
sleep 3
if [[ ! -n $(pidof udevd) ]]
then
eerror "FATAL: udev died, please check your kernel is"
eerror "new enough and configured correctly for ${P}."
eerror
eerror "Please have a look at this before rebooting."
eerror "If in doubt, please downgrade udev back to your old version"
fi
}
postinst_init_scripts() {
local enable_postmount=false
# FIXME: inconsistent handling of init-scripts here
# * udev is added to sysinit in openrc-ebuild
# * we add udev-postmount to default in here
#
# If we are building stages, add udev to the sysinit runlevel automatically.
if use build
then
if [[ -x "${EROOT}"/etc/init.d/udev \
&& -d "${EROOT}"/etc/runlevels/sysinit ]]
then
ln -s "${EPREFIX}"/etc/init.d/udev "${EROOT}"/etc/runlevels/sysinit/udev
fi
enable_postmount=true
fi
# migration to >=openrc-0.4
if [[ -e "${EROOT}"/etc/runlevels/sysinit && ! -e "${EROOT}"/etc/runlevels/sysinit/udev ]]
then
ewarn
ewarn "You need to add the udev init script to the runlevel sysinit,"
ewarn "else your system will not be able to boot"
ewarn "after updating to >=openrc-0.4.0"
ewarn "Run this to enable udev for >=openrc-0.4.0:"
ewarn "\trc-update add udev sysinit"
ewarn
fi
# add udev-postmount to default runlevel instead of that ugly injecting
# like a hotplug event, 2009/10/15
# already enabled?
[[ -e "${EROOT}"/etc/runlevels/default/udev-postmount ]] && return
[[ -e "${EROOT}"/etc/runlevels/sysinit/udev ]] && enable_postmount=true
[[ "${EROOT}" = "/" && -d /dev/.udev/ ]] && enable_postmount=true
if $enable_postmount
then
local initd=udev-postmount
if [[ -e ${EROOT}/etc/init.d/${initd} ]] && \
[[ ! -e ${EROOT}/etc/runlevels/default/${initd} ]]
then
ln -snf "${EPREFIX}"/etc/init.d/${initd} "${EROOT}"/etc/runlevels/default/${initd}
elog "Auto-adding '${initd}' service to your default runlevel"
fi
else
elog "You should add the udev-postmount service to default runlevel."
elog "Run this to add it:"
elog "\trc-update add udev-postmount default"
fi
}
pkg_postinst() {
fix_old_persistent_net_rules
# "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
# So try to remove it here (will only work if empty).
rmdir "${EROOT}"/dev/loop 2>/dev/null
if [[ -d "${EROOT}"/dev/loop ]]
then
ewarn "Please make sure your remove /dev/loop,"
ewarn "else losetup may be confused when looking for unused devices."
fi
restart_udevd
postinst_init_scripts
# people want reminders, I'll give them reminders. Odds are they will
# just ignore them anyway...
# delete 40-scsi-hotplug.rules, it is integrated in 50-udev.rules, 19 Jan 2007
if [[ $previous_equal_to_103_r3 = 0 ]] &&
[[ -e ${EROOT}/etc/udev/rules.d/40-scsi-hotplug.rules ]]
then
ewarn "Deleting stray 40-scsi-hotplug.rules"
ewarn "installed by sys-fs/udev-103-r3"
rm -f "${EROOT}"/etc/udev/rules.d/40-scsi-hotplug.rules
fi
# Removing some device-nodes we thought we need some time ago, 25 Jan 2007
if [[ -d ${EROOT}/lib/udev/devices ]]
then
rm -f "${EROOT}"/lib/udev/devices/{null,zero,console,urandom}
fi
# Removing some old file, 29 Jan 2007
if [[ $previous_less_than_104_r5 = 0 ]]
then
rm -f "${EROOT}"/etc/dev.d/net/hotplug.dev
rmdir --ignore-fail-on-non-empty "${EROOT}"/etc/dev.d/net 2>/dev/null
fi
# 19 Mar 2007
if [[ $previous_less_than_106_r5 = 0 ]] &&
[[ -e ${EROOT}/etc/udev/rules.d/95-net.rules ]]
then
rm -f "${EROOT}"/etc/udev/rules.d/95-net.rules
fi
# Try to remove /etc/dev.d as that is obsolete, 23 Apr 2007
if [[ -d ${EROOT}/etc/dev.d ]]
then
rmdir --ignore-fail-on-non-empty "${EROOT}"/etc/dev.d/default "${EROOT}"/etc/dev.d 2>/dev/null
if [[ -d ${EROOT}/etc/dev.d ]]
then
ewarn "You still have the directory /etc/dev.d on your system."
ewarn "This is no longer used by udev and can be removed."
fi
fi
# 64-device-mapper.rules now gets installed by sys-fs/device-mapper
# remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007
if [[ $previous_less_than_113 = 0 ]] &&
[[ -f ${EROOT}/etc/udev/rules.d/64-device-mapper.rules ]] &&
! has_version sys-fs/device-mapper
then
rm -f "${EROOT}"/etc/udev/rules.d/64-device-mapper.rules
einfo "Removed unneeded file 64-device-mapper.rules"
fi
# requested in Bug #225033:
elog
elog "persistent-net does assigning fixed names to network devices."
elog "If you have problems with the persistent-net rules,"
elog "just delete the rules file"
elog "\trm ${EROOT}etc/udev/rules.d/70-persistent-net.rules"
elog "and then reboot."
elog
elog "This may however number your devices in a different way than they are now."
ewarn
ewarn "If you build an initramfs including udev, then please"
ewarn "make sure that the /sbin/udevadm binary gets included,"
ewarn "and your scripts changed to use it,as it replaces the"
ewarn "old helper apps udevinfo, udevtrigger, ..."
ewarn
ewarn "mount options for directory /dev are no longer"
ewarn "set in /etc/udev/udev.conf, but in /etc/fstab"
ewarn "as for other directories."
ewarn
ewarn "If you use /dev/md/*, /dev/loop/* or /dev/rd/*,"
ewarn "then please migrate over to using the device names"
ewarn "/dev/md*, /dev/loop* and /dev/ram*."
ewarn "The devfs-compat rules have been removed."
ewarn "For reference see Bug #269359."
ewarn
ewarn "Rules for /dev/hd* devices have been removed"
ewarn "Please migrate to libata."
elog
elog "For more information on udev on Gentoo, writing udev rules, and"
elog " fixing known issues visit:"
elog " http://www.gentoo.org/doc/en/udev-guide.xml"
}

View File

@ -1,512 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-197-r4.ebuild,v 1.30 2013/01/31 23:08:05 ago Exp $
EAPI=4
KV_min=2.6.39
inherit autotools eutils linux-info multilib systemd toolchain-funcs versionator
if [[ ${PV} = 9999* ]]
then
EGIT_REPO_URI="git://anongit.freedesktop.org/systemd/systemd"
inherit git-2
else
patchset=1
SRC_URI="http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz"
if [[ -n "${patchset}" ]]
then
SRC_URI="${SRC_URI}
http://dev.gentoo.org/~williamh/dist/${P}-patches-${patchset}.tar.bz2"
fi
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~s390 ~sh ~sparc x86"
fi
DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
LICENSE="LGPL-2.1 MIT GPL-2"
SLOT="0"
IUSE="acl doc gudev hwdb introspection keymap +kmod selinux static-libs"
RESTRICT="test"
COMMON_DEPEND=">=sys-apps/util-linux-2.20
acl? ( sys-apps/acl )
gudev? ( >=dev-libs/glib-2 )
introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
kmod? ( >=sys-apps/kmod-12 )
selinux? ( sys-libs/libselinux )
!<sys-libs/glibc-2.11
!<sys-apps/systemd-${PV}"
DEPEND="${COMMON_DEPEND}
virtual/os-headers
virtual/pkgconfig
!<sys-kernel/linux-headers-${KV_min}
doc? ( >=dev-util/gtk-doc-1.18 )
hwdb? ( >=sys-apps/hwids-20130114[udev] )
keymap? ( dev-util/gperf )"
if [[ ${PV} = 9999* ]]
then
DEPEND="${DEPEND}
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
dev-util/gperf
>=dev-util/intltool-0.50"
fi
RDEPEND="${COMMON_DEPEND}
!sys-apps/coldplug
!<sys-fs/lvm2-2.02.97-r1
!sys-fs/device-mapper
!<sys-fs/udev-init-scripts-19
!<sys-kernel/dracut-017-r1
!<sys-kernel/genkernel-3.4.25
!<sec-policy/selinux-base-2.20120725-r10"
PDEPEND=">=virtual/udev-197"
S=${WORKDIR}/systemd-${PV}
QA_MULTILIB_PATHS="lib/systemd/systemd-udevd"
udev_check_KV()
{
# accept4 came late for ia64
use ia64 && KV_min=3.3
if kernel_is lt ${KV_min//./ }
then
return 1
fi
return 0
}
check_default_rules()
{
# Make sure there are no sudden changes to upstream rules file
# (more for my own needs than anything else ...)
local udev_rules_md5=66bb698deeae64ab444b710baf54a412
MD5=$(md5sum < "${S}"/rules/50-udev-default.rules)
MD5=${MD5/ -/}
if [[ ${MD5} != ${udev_rules_md5} ]]
then
eerror "50-udev-default.rules has been updated, please validate!"
eerror "md5sum: ${MD5}"
die "50-udev-default.rules has been updated, please validate!"
fi
}
pkg_setup()
{
# required kernel options
CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD"
ERROR_DEVTMPFS="DEVTMPFS is not set in this kernel. Udev will not run."
linux-info_pkg_setup
if ! udev_check_KV
then
eerror "Your kernel version (${KV_FULL}) is too old to run ${P}"
eerror "It must be at least ${KV_min}!"
fi
KV_FULL_SRC=${KV_FULL}
get_running_version
if ! udev_check_KV
then
eerror
eerror "Your running kernel version (${KV_FULL}) is too old"
eerror "for this version of udev."
eerror "You must upgrade your kernel or downgrade udev."
fi
}
src_prepare()
{
# backport some patches
if [[ -n "${patchset}" ]]
then
EPATCH_SUFFIX=patch EPATCH_FORCE=yes epatch
fi
# Remove requirements for gettext and intltool wrt bug #443028
if ! has_version dev-util/intltool && ! [[ ${PV} = 9999* ]]; then
sed -i \
-e '/INTLTOOL_APPLIED_VERSION=/s:=.*:=0.40.0:' \
-e '/XML::Parser perl module is required for intltool/s|^|:|' \
configure || die
eval export INTLTOOL_{EXTRACT,MERGE,UPDATE}=/bin/true
eval export {MSG{FMT,MERGE},XGETTEXT}=/bin/true
fi
# apply user patches
epatch_user
# compile with older versions of gcc #451110
version_is_at_least 4.6 $(gcc-version) || \
sed -i 's:static_assert:alsdjflkasjdfa:' src/shared/macro.h
# change rules back to group uucp instead of dialout for now
sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
-i rules/*.rules \
|| die "failed to change group dialout to uucp"
if [[ ! -e configure ]]
then
if use doc
then
gtkdocize --docdir docs || die "gtkdocize failed"
else
echo 'EXTRA_DIST =' > docs/gtk-doc.make
fi
eautoreconf
else
check_default_rules
elibtoolize
fi
if [[ ${PV} = 9999* ]]; then
# secure_getenv() disable for non-glibc systems wrt bug #443030
if ! [[ $(grep -r secure_getenv * | wc -l) -eq 16 ]]; then
eerror "The line count for secure_getenv() failed, see bug #443030"
die
fi
# gperf disable if keymaps are not requested wrt bug #452760
if ! [[ $(grep -i gperf Makefile.am | wc -l) -eq 24 ]]; then
eerror "The line count for gperf references failed, see bug 452760"
die
fi
fi
if ! use elibc_glibc; then #443030
echo '#define secure_getenv(x) NULL' >> config.h.in
sed -i -e '/error.*secure_getenv/s:.*:#define secure_getenv(x) NULL:' src/shared/missing.h || die
fi
}
src_configure()
{
use keymap || export ac_cv_path_GPERF=true #452760
local econf_args
econf_args=(
ac_cv_search_cap_init=
ac_cv_header_sys_capability_h=yes
DBUS_CFLAGS=' '
DBUS_LIBS=' '
--bindir=/bin
--docdir=/usr/share/doc/${PF}
--libdir=/usr/$(get_libdir)
--with-html-dir=/usr/share/doc/${PF}/html
--with-rootprefix=
--with-rootlibdir=/$(get_libdir)
--disable-audit
--disable-coredump
--disable-hostnamed
--disable-ima
--disable-libcryptsetup
--disable-localed
--disable-logind
--disable-myhostname
--disable-nls
--disable-pam
--disable-quotacheck
--disable-readahead
--enable-split-usr
--disable-tcpwrap
--disable-timedated
--disable-xz
--disable-silent-rules
$(use_enable acl)
$(use_enable doc gtk-doc)
$(use_enable gudev)
$(use_enable keymap)
$(use_enable kmod)
$(use_enable selinux)
$(use_enable static-libs static)
)
if use introspection; then
econf_args+=(
--enable-introspection=$(usex introspection)
)
fi
econf "${econf_args[@]}"
}
src_compile()
{
echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > "${T}"/Makefile.extra
emake -f Makefile -f "${T}"/Makefile.extra BUILT_SOURCES
local targets=(
systemd-udevd
udevadm
libudev.la
libsystemd-daemon.la
ata_id
cdrom_id
collect
scsi_id
v4l_id
accelerometer
mtd_probe
man/sd_is_fifo.3
man/sd_notify.3
man/sd_listen_fds.3
man/sd-daemon.3
man/udev.7
man/udevadm.8
man/systemd-udevd.8
man/systemd-udevd.service.8
)
use keymap && targets+=( keymap )
use gudev && targets+=( libgudev-1.0.la )
emake "${targets[@]}"
if use doc
then
emake -C docs/libudev
use gudev && emake -C docs/gudev
fi
}
src_install()
{
local lib_LTLIBRARIES="libsystemd-daemon.la libudev.la" \
pkgconfiglib_DATA="src/libsystemd-daemon/libsystemd-daemon.pc src/libudev/libudev.pc"
local targets=(
install-libLTLIBRARIES
install-includeHEADERS
install-libgudev_includeHEADERS
install-binPROGRAMS
install-rootlibexecPROGRAMS
install-udevlibexecPROGRAMS
install-dist_systemunitDATA
install-dist_udevconfDATA
install-dist_udevhomeSCRIPTS
install-dist_udevkeymapDATA
install-dist_udevkeymapforcerelDATA
install-dist_udevrulesDATA
install-girDATA
install-man3
install-man7
install-man8
install-nodist_systemunitDATA
install-pkgconfiglibDATA
install-sharepkgconfigDATA
install-typelibsDATA
install-dist_docDATA
udev-confdirs
systemd-install-hook
libudev-install-hook
libsystemd-daemon-install-hook
install-pkgincludeHEADERS
)
if use gudev
then
lib_LTLIBRARIES+=" libgudev-1.0.la"
pkgconfiglib_DATA+=" src/gudev/gudev-1.0.pc"
fi
# add final values of variables:
targets+=(
rootlibexec_PROGRAMS=systemd-udevd
bin_PROGRAMS=udevadm
lib_LTLIBRARIES="${lib_LTLIBRARIES}"
MANPAGES="man/sd-daemon.3 man/sd_notify.3 man/sd_listen_fds.3 \
man/sd_is_fifo.3 man/sd_booted.3 man/udev.7 man/udevadm.8 \
man/systemd-udevd.service.8"
MANPAGES_ALIAS="man/sd_is_socket.3 man/sd_is_socket_unix.3 \
man/sd_is_socket_inet.3 man/sd_is_mq.3 man/sd_notifyf.3 \
man/SD_LISTEN_FDS_START.3 man/SD_EMERG.3 man/SD_ALERT.3 \
man/SD_CRIT.3 man/SD_ERR.3 man/SD_WARNING.3 man/SD_NOTICE.3 \
man/SD_INFO.3 man/SD_DEBUG.3 man/systemd-udevd.8"
dist_systemunit_DATA="units/systemd-udevd-control.socket \
units/systemd-udevd-kernel.socket"
nodist_systemunit_DATA="units/systemd-udevd.service \
units/systemd-udev-trigger.service \
units/systemd-udev-settle.service"
pkgconfiglib_DATA="${pkgconfiglib_DATA}"
systemunitdir="$(systemd_get_unitdir)"
pkginclude_HEADERS="src/systemd/sd-daemon.h"
)
emake -j1 DESTDIR="${D}" "${targets[@]}"
if use doc
then
emake -C docs/libudev DESTDIR="${D}" install
use gudev && emake -C docs/gudev DESTDIR="${D}" install
fi
dodoc TODO
prune_libtool_files --all
rm -f "${D}"/lib/udev/rules.d/99-systemd.rules
rm -rf "${D}"/usr/share/doc/${PF}/LICENSE.*
# install gentoo-specific rules
insinto /lib/udev/rules.d
doins "${FILESDIR}"/40-gentoo.rules
# install udevadm symlink
dosym ../bin/udevadm /sbin/udevadm
# move udevd where it should be and remove unlogical /lib/systemd
mv "${ED}"/lib/systemd/systemd-udevd "${ED}"/sbin/udevd || die
rm -r "${ED}"/lib/systemd
# install compability symlink for systemd and initramfs tools
dosym /sbin/udevd "$(systemd_get_utildir)"/systemd-udevd
find "${ED}/$(systemd_get_unitdir)" -name '*.service' -exec \
sed -i -e "/ExecStart/s:/lib/systemd:$(systemd_get_utildir):" {} +
docinto gentoo
dodoc "${FILESDIR}"/80-net-name-slot.rules
docompress -x /usr/share/doc/${PF}/gentoo/80-net-name-slot.rules
}
pkg_preinst()
{
local htmldir
for htmldir in gudev libudev; do
if [[ -d ${ROOT}usr/share/gtk-doc/html/${htmldir} ]]
then
rm -rf "${ROOT}"usr/share/gtk-doc/html/${htmldir}
fi
if [[ -d ${D}/usr/share/doc/${PF}/html/${htmldir} ]]
then
dosym ../../doc/${PF}/html/${htmldir} \
/usr/share/gtk-doc/html/${htmldir}
fi
done
preserve_old_lib /{,usr/}$(get_libdir)/libudev$(get_libname 0)
}
# This function determines if a directory is a mount point.
# It was lifted from dracut.
ismounted()
{
while read a m a; do
[[ $m = $1 ]] && return 0
done < "${ROOT}"/proc/mounts
return 1
}
pkg_postinst()
{
mkdir -p "${ROOT}"run
net_rules="${ROOT}"etc/udev/rules.d/80-net-name-slot.rules
copy_net_rules() {
[[ -f ${net_rules} ]] || cp "${ROOT}"usr/share/doc/${PF}/gentoo/80-net-name-slot.rules "${net_rules}"
}
copy_net_rules
# "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
# So try to remove it here (will only work if empty).
rmdir "${ROOT}"dev/loop 2>/dev/null
if [[ -d ${ROOT}dev/loop ]]
then
ewarn "Please make sure your remove /dev/loop,"
ewarn "else losetup may be confused when looking for unused devices."
fi
# people want reminders, I'll give them reminders. Odds are they will
# just ignore them anyway...
# 64-device-mapper.rules now gets installed by sys-fs/device-mapper
# remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007
if [[ -f ${ROOT}etc/udev/rules.d/64-device-mapper.rules ]] &&
! has_version sys-fs/device-mapper
then
rm -f "${ROOT}"etc/udev/rules.d/64-device-mapper.rules
einfo "Removed unneeded file 64-device-mapper.rules"
fi
if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 189 ]]; then
ewarn
ewarn "Upstream has removed the persistent-cd rules"
ewarn "generator. If you need persistent names for these devices,"
ewarn "place udev rules for them in ${ROOT}etc/udev/rules.d."
fi
if ismounted /usr
then
ewarn
ewarn "Your system has /usr on a separate partition. This means"
ewarn "you will need to use an initramfs to pre-mount /usr before"
ewarn "udev runs."
ewarn
ewarn "If this is not set up before your next reboot, udev may work;"
ewarn "However, you also may experience failures which are very"
ewarn "difficult to troubleshoot."
ewarn
ewarn "For a more detailed explanation, see the following URL:"
ewarn "http://www.freedesktop.org/wiki/Software/systemd/separate-usr-is-broken"
ewarn
ewarn "For more information on setting up an initramfs, see the"
ewarn "following URL:"
ewarn "http://www.gentoo.org/doc/en/initramfs-guide.xml"
fi
if [ -n "${net_rules}" ]; then
ewarn
ewarn "udev-197 and newer introduces a new method of naming network"
ewarn "interfaces. The new names are a very significant change, so"
ewarn "they are disabled by default on live systems."
ewarn "Please see the contents of ${net_rules} for more"
ewarn "information on this feature."
fi
local fstab="${ROOT}"etc/fstab dev path fstype rest
while read -r dev path fstype rest; do
if [[ ${path} == /dev && ${fstype} != devtmpfs ]]; then
ewarn "You need to edit your /dev line in ${fstab} to have devtmpfs"
ewarn "filesystem. Otherwise udev won't be able to boot."
ewarn "See, http://bugs.gentoo.org/453186"
fi
done < "${fstab}"
if [[ -d ${ROOT}usr/lib/udev ]]
then
ewarn
ewarn "Please re-emerge all packages on your system which install"
ewarn "rules and helpers in /usr/lib/udev. They should now be in"
ewarn "/lib/udev."
ewarn
ewarn "One way to do this is to run the following command:"
ewarn "emerge -av1 \$(qfile -q -S -C /usr/lib/udev)"
ewarn "Note that qfile can be found in app-portage/portage-utils"
fi
old_net_rules=${ROOT}etc/udev/rules.d/70-persistent-net.rules
if [[ -f ${old_net_rules} ]]; then
ewarn "You still have ${old_net_rules} in place from previous udev release."
ewarn "Upstream has removed the possibility of renaming to existing"
ewarn "network interfaces. For example, it's not possible to assign based"
ewarn "on MAC address to existing interface eth0."
ewarn "See http://bugs.gentoo.org/453494 for more information."
ewarn "Rename your file to something else starting with 70- to silence"
ewarn "this warning."
fi
ewarn
ewarn "You need to restart udev as soon as possible to make the upgrade go"
ewarn "into effect."
ewarn "The method you use to do this depends on your init system."
ewarn
preserve_old_lib_notify /{,usr/}$(get_libdir)/libudev$(get_libname 0)
elog
elog "For more information on udev on Gentoo, writing udev rules, and"
elog " fixing known issues visit:"
elog " http://www.gentoo.org/doc/en/udev-guide.xml"
use hwdb && udevadm hwdb --update
}

View File

@ -1,524 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-197-r5.ebuild,v 1.2 2013/01/31 10:38:57 ssuominen Exp $
EAPI=4
KV_min=2.6.39
inherit autotools eutils linux-info multilib systemd toolchain-funcs versionator
if [[ ${PV} = 9999* ]]
then
EGIT_REPO_URI="git://anongit.freedesktop.org/systemd/systemd"
inherit git-2
else
patchset=1
SRC_URI="http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz"
if [[ -n "${patchset}" ]]
then
SRC_URI="${SRC_URI}
http://dev.gentoo.org/~williamh/dist/${P}-patches-${patchset}.tar.bz2"
fi
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
fi
DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
LICENSE="LGPL-2.1 MIT GPL-2"
SLOT="0"
IUSE="acl doc gudev hwdb introspection keymap +kmod +openrc selinux static-libs"
RESTRICT="test"
COMMON_DEPEND=">=sys-apps/util-linux-2.20
acl? ( sys-apps/acl )
gudev? ( >=dev-libs/glib-2 )
introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
kmod? ( >=sys-apps/kmod-12 )
selinux? ( sys-libs/libselinux )
!<sys-libs/glibc-2.11
!<sys-apps/systemd-${PV}"
DEPEND="${COMMON_DEPEND}
virtual/os-headers
virtual/pkgconfig
!<sys-kernel/linux-headers-${KV_min}
doc? ( >=dev-util/gtk-doc-1.18 )
hwdb? ( >=sys-apps/hwids-20130114[udev] )
keymap? ( dev-util/gperf )"
if [[ ${PV} = 9999* ]]
then
DEPEND="${DEPEND}
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
dev-util/gperf
>=dev-util/intltool-0.50"
fi
RDEPEND="${COMMON_DEPEND}
openrc? ( !<sys-apps/openrc-0.9.9 )
!sys-apps/coldplug
!<sys-fs/lvm2-2.02.97-r1
!sys-fs/device-mapper
!<sys-fs/udev-init-scripts-19
!<sys-kernel/dracut-017-r1
!<sys-kernel/genkernel-3.4.25
!<sec-policy/selinux-base-2.20120725-r10"
PDEPEND=">=virtual/udev-197
openrc? ( >=sys-fs/udev-init-scripts-19-r1 )"
S=${WORKDIR}/systemd-${PV}
QA_MULTILIB_PATHS="lib/systemd/systemd-udevd"
udev_check_KV()
{
# accept4 came late for ia64
use ia64 && KV_min=3.3
if kernel_is lt ${KV_min//./ }
then
return 1
fi
return 0
}
check_default_rules()
{
# Make sure there are no sudden changes to upstream rules file
# (more for my own needs than anything else ...)
local udev_rules_md5=66bb698deeae64ab444b710baf54a412
MD5=$(md5sum < "${S}"/rules/50-udev-default.rules)
MD5=${MD5/ -/}
if [[ ${MD5} != ${udev_rules_md5} ]]
then
eerror "50-udev-default.rules has been updated, please validate!"
eerror "md5sum: ${MD5}"
die "50-udev-default.rules has been updated, please validate!"
fi
}
pkg_setup()
{
# required kernel options
CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD"
ERROR_DEVTMPFS="DEVTMPFS is not set in this kernel. Udev will not run."
linux-info_pkg_setup
if ! udev_check_KV
then
eerror "Your kernel version (${KV_FULL}) is too old to run ${P}"
eerror "It must be at least ${KV_min}!"
fi
KV_FULL_SRC=${KV_FULL}
get_running_version
if ! udev_check_KV
then
eerror
eerror "Your running kernel version (${KV_FULL}) is too old"
eerror "for this version of udev."
eerror "You must upgrade your kernel or downgrade udev."
fi
}
src_prepare()
{
# backport some patches
if [[ -n "${patchset}" ]]
then
EPATCH_SUFFIX=patch EPATCH_FORCE=yes epatch
fi
# Remove requirements for gettext and intltool wrt bug #443028
if ! has_version dev-util/intltool && ! [[ ${PV} = 9999* ]]; then
sed -i \
-e '/INTLTOOL_APPLIED_VERSION=/s:=.*:=0.40.0:' \
-e '/XML::Parser perl module is required for intltool/s|^|:|' \
configure || die
eval export INTLTOOL_{EXTRACT,MERGE,UPDATE}=/bin/true
eval export {MSG{FMT,MERGE},XGETTEXT}=/bin/true
fi
# apply user patches
epatch_user
# compile with older versions of gcc #451110
version_is_at_least 4.6 $(gcc-version) || \
sed -i 's:static_assert:alsdjflkasjdfa:' src/shared/macro.h
# change rules back to group uucp instead of dialout for now
sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
-i rules/*.rules \
|| die "failed to change group dialout to uucp"
if [[ ! -e configure ]]
then
if use doc
then
gtkdocize --docdir docs || die "gtkdocize failed"
else
echo 'EXTRA_DIST =' > docs/gtk-doc.make
fi
eautoreconf
else
check_default_rules
elibtoolize
fi
if [[ ${PV} = 9999* ]]; then
# secure_getenv() disable for non-glibc systems wrt bug #443030
if ! [[ $(grep -r secure_getenv * | wc -l) -eq 16 ]]; then
eerror "The line count for secure_getenv() failed, see bug #443030"
die
fi
# gperf disable if keymaps are not requested wrt bug #452760
if ! [[ $(grep -i gperf Makefile.am | wc -l) -eq 24 ]]; then
eerror "The line count for gperf references failed, see bug 452760"
die
fi
fi
if ! use elibc_glibc; then #443030
echo '#define secure_getenv(x) NULL' >> config.h.in
sed -i -e '/error.*secure_getenv/s:.*:#define secure_getenv(x) NULL:' src/shared/missing.h || die
fi
}
src_configure()
{
use keymap || export ac_cv_path_GPERF=true #452760
local econf_args
econf_args=(
ac_cv_search_cap_init=
ac_cv_header_sys_capability_h=yes
DBUS_CFLAGS=' '
DBUS_LIBS=' '
--bindir=/bin
--docdir=/usr/share/doc/${PF}
--libdir=/usr/$(get_libdir)
--with-html-dir=/usr/share/doc/${PF}/html
--with-rootprefix=
--with-rootlibdir=/$(get_libdir)
--disable-audit
--disable-coredump
--disable-hostnamed
--disable-ima
--disable-libcryptsetup
--disable-localed
--disable-logind
--disable-myhostname
--disable-nls
--disable-pam
--disable-quotacheck
--disable-readahead
--enable-split-usr
--disable-tcpwrap
--disable-timedated
--disable-xz
--disable-silent-rules
$(use_enable acl)
$(use_enable doc gtk-doc)
$(use_enable gudev)
$(use_enable keymap)
$(use_enable kmod)
$(use_enable selinux)
$(use_enable static-libs static)
)
if use introspection; then
econf_args+=(
--enable-introspection=$(usex introspection)
)
fi
econf "${econf_args[@]}"
}
src_compile()
{
echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > "${T}"/Makefile.extra
emake -f Makefile -f "${T}"/Makefile.extra BUILT_SOURCES
local targets=(
systemd-udevd
udevadm
libudev.la
libsystemd-daemon.la
ata_id
cdrom_id
collect
scsi_id
v4l_id
accelerometer
mtd_probe
man/sd_is_fifo.3
man/sd_notify.3
man/sd_listen_fds.3
man/sd-daemon.3
man/udev.7
man/udevadm.8
man/systemd-udevd.8
man/systemd-udevd.service.8
)
use keymap && targets+=( keymap )
use gudev && targets+=( libgudev-1.0.la )
emake "${targets[@]}"
if use doc
then
emake -C docs/libudev
use gudev && emake -C docs/gudev
fi
}
src_install()
{
local lib_LTLIBRARIES="libsystemd-daemon.la libudev.la" \
pkgconfiglib_DATA="src/libsystemd-daemon/libsystemd-daemon.pc src/libudev/libudev.pc"
local targets=(
install-libLTLIBRARIES
install-includeHEADERS
install-libgudev_includeHEADERS
install-binPROGRAMS
install-rootlibexecPROGRAMS
install-udevlibexecPROGRAMS
install-dist_systemunitDATA
install-dist_udevconfDATA
install-dist_udevhomeSCRIPTS
install-dist_udevkeymapDATA
install-dist_udevkeymapforcerelDATA
install-dist_udevrulesDATA
install-girDATA
install-man3
install-man7
install-man8
install-nodist_systemunitDATA
install-pkgconfiglibDATA
install-sharepkgconfigDATA
install-typelibsDATA
install-dist_docDATA
udev-confdirs
systemd-install-hook
libudev-install-hook
libsystemd-daemon-install-hook
install-pkgincludeHEADERS
)
if use gudev
then
lib_LTLIBRARIES+=" libgudev-1.0.la"
pkgconfiglib_DATA+=" src/gudev/gudev-1.0.pc"
fi
# add final values of variables:
targets+=(
rootlibexec_PROGRAMS=systemd-udevd
bin_PROGRAMS=udevadm
lib_LTLIBRARIES="${lib_LTLIBRARIES}"
MANPAGES="man/sd-daemon.3 man/sd_notify.3 man/sd_listen_fds.3 \
man/sd_is_fifo.3 man/sd_booted.3 man/udev.7 man/udevadm.8 \
man/systemd-udevd.service.8"
MANPAGES_ALIAS="man/sd_is_socket.3 man/sd_is_socket_unix.3 \
man/sd_is_socket_inet.3 man/sd_is_mq.3 man/sd_notifyf.3 \
man/SD_LISTEN_FDS_START.3 man/SD_EMERG.3 man/SD_ALERT.3 \
man/SD_CRIT.3 man/SD_ERR.3 man/SD_WARNING.3 man/SD_NOTICE.3 \
man/SD_INFO.3 man/SD_DEBUG.3 man/systemd-udevd.8"
dist_systemunit_DATA="units/systemd-udevd-control.socket \
units/systemd-udevd-kernel.socket"
nodist_systemunit_DATA="units/systemd-udevd.service \
units/systemd-udev-trigger.service \
units/systemd-udev-settle.service"
pkgconfiglib_DATA="${pkgconfiglib_DATA}"
systemunitdir="$(systemd_get_unitdir)"
pkginclude_HEADERS="src/systemd/sd-daemon.h"
)
emake -j1 DESTDIR="${D}" "${targets[@]}"
if use doc
then
emake -C docs/libudev DESTDIR="${D}" install
use gudev && emake -C docs/gudev DESTDIR="${D}" install
fi
dodoc TODO
prune_libtool_files --all
rm -f "${D}"/lib/udev/rules.d/99-systemd.rules
rm -rf "${D}"/usr/share/doc/${PF}/LICENSE.*
# install gentoo-specific rules
insinto /lib/udev/rules.d
doins "${FILESDIR}"/40-gentoo.rules
# install udevadm symlink
dosym ../bin/udevadm /sbin/udevadm
# move udevd where it should be and remove unlogical /lib/systemd
mv "${ED}"/lib/systemd/systemd-udevd "${ED}"/sbin/udevd || die
rm -r "${ED}"/lib/systemd
# install compability symlink for systemd and initramfs tools
dosym /sbin/udevd "$(systemd_get_utildir)"/systemd-udevd
find "${ED}/$(systemd_get_unitdir)" -name '*.service' -exec \
sed -i -e "/ExecStart/s:/lib/systemd:$(systemd_get_utildir):" {} +
docinto gentoo
dodoc "${FILESDIR}"/80-net-name-slot.rules
docompress -x /usr/share/doc/${PF}/gentoo/80-net-name-slot.rules
}
pkg_preinst()
{
local htmldir
for htmldir in gudev libudev; do
if [[ -d ${ROOT}usr/share/gtk-doc/html/${htmldir} ]]
then
rm -rf "${ROOT}"usr/share/gtk-doc/html/${htmldir}
fi
if [[ -d ${D}/usr/share/doc/${PF}/html/${htmldir} ]]
then
dosym ../../doc/${PF}/html/${htmldir} \
/usr/share/gtk-doc/html/${htmldir}
fi
done
preserve_old_lib /{,usr/}$(get_libdir)/libudev$(get_libname 0)
}
# This function determines if a directory is a mount point.
# It was lifted from dracut.
ismounted()
{
while read a m a; do
[[ $m = $1 ]] && return 0
done < "${ROOT}"/proc/mounts
return 1
}
pkg_postinst()
{
mkdir -p "${ROOT}"run
net_rules="${ROOT}"etc/udev/rules.d/80-net-name-slot.rules
copy_net_rules() {
[[ -f ${net_rules} ]] || cp "${ROOT}"usr/share/doc/${PF}/gentoo/80-net-name-slot.rules "${net_rules}"
}
if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 197 ]]; then
ewarn "Because this is a upgrade we disable the new predictable network interface"
ewarn "name scheme by default."
copy_net_rules
fi
if has_version sys-apps/biosdevname; then
ewarn "Because sys-apps/biosdevname is installed we disable the new predictable"
ewarn "network interface name scheme by default."
copy_net_rules
fi
# "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
# So try to remove it here (will only work if empty).
rmdir "${ROOT}"dev/loop 2>/dev/null
if [[ -d ${ROOT}dev/loop ]]
then
ewarn "Please make sure your remove /dev/loop,"
ewarn "else losetup may be confused when looking for unused devices."
fi
# people want reminders, I'll give them reminders. Odds are they will
# just ignore them anyway...
# 64-device-mapper.rules now gets installed by sys-fs/device-mapper
# remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007
if [[ -f ${ROOT}etc/udev/rules.d/64-device-mapper.rules ]] &&
! has_version sys-fs/device-mapper
then
rm -f "${ROOT}"etc/udev/rules.d/64-device-mapper.rules
einfo "Removed unneeded file 64-device-mapper.rules"
fi
if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 189 ]]; then
ewarn
ewarn "Upstream has removed the persistent-cd rules"
ewarn "generator. If you need persistent names for these devices,"
ewarn "place udev rules for them in ${ROOT}etc/udev/rules.d."
fi
if ismounted /usr
then
ewarn
ewarn "Your system has /usr on a separate partition. This means"
ewarn "you will need to use an initramfs to pre-mount /usr before"
ewarn "udev runs."
ewarn
ewarn "If this is not set up before your next reboot, udev may work;"
ewarn "However, you also may experience failures which are very"
ewarn "difficult to troubleshoot."
ewarn
ewarn "For a more detailed explanation, see the following URL:"
ewarn "http://www.freedesktop.org/wiki/Software/systemd/separate-usr-is-broken"
ewarn
ewarn "For more information on setting up an initramfs, see the"
ewarn "following URL:"
ewarn "http://www.gentoo.org/doc/en/initramfs-guide.xml"
fi
if [ -n "${net_rules}" ]; then
ewarn
ewarn "udev-197 and newer introduces a new method of naming network"
ewarn "interfaces. The new names are a very significant change, so"
ewarn "they are disabled by default on live systems."
ewarn "Please see the contents of ${net_rules} for more"
ewarn "information on this feature."
fi
local fstab="${ROOT}"etc/fstab dev path fstype rest
while read -r dev path fstype rest; do
if [[ ${path} == /dev && ${fstype} != devtmpfs ]]; then
ewarn "You need to edit your /dev line in ${fstab} to have devtmpfs"
ewarn "filesystem. Otherwise udev won't be able to boot."
ewarn "See, http://bugs.gentoo.org/453186"
fi
done < "${fstab}"
if [[ -d ${ROOT}usr/lib/udev ]]
then
ewarn
ewarn "Please re-emerge all packages on your system which install"
ewarn "rules and helpers in /usr/lib/udev. They should now be in"
ewarn "/lib/udev."
ewarn
ewarn "One way to do this is to run the following command:"
ewarn "emerge -av1 \$(qfile -q -S -C /usr/lib/udev)"
ewarn "Note that qfile can be found in app-portage/portage-utils"
fi
old_net_rules=${ROOT}etc/udev/rules.d/70-persistent-net.rules
if [[ -f ${old_net_rules} ]]; then
ewarn "You still have ${old_net_rules} in place from previous udev release."
ewarn "Upstream has removed the possibility of renaming to existing"
ewarn "network interfaces. For example, it's not possible to assign based"
ewarn "on MAC address to existing interface eth0."
ewarn "See http://bugs.gentoo.org/453494 for more information."
ewarn "Rename your file to something else starting with 70- to silence"
ewarn "this warning."
fi
ewarn
ewarn "You need to restart udev as soon as possible to make the upgrade go"
ewarn "into effect."
ewarn "The method you use to do this depends on your init system."
ewarn
preserve_old_lib_notify /{,usr/}$(get_libdir)/libudev$(get_libname 0)
elog
elog "For more information on udev on Gentoo, writing udev rules, and"
elog " fixing known issues visit:"
elog " http://www.gentoo.org/doc/en/udev-guide.xml"
use hwdb && udevadm hwdb --update
}

View File

@ -1,528 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-197-r6.ebuild,v 1.3 2013/02/03 06:33:36 ssuominen Exp $
EAPI=4
KV_min=2.6.39
inherit autotools eutils linux-info multilib systemd toolchain-funcs versionator
if [[ ${PV} = 9999* ]]
then
EGIT_REPO_URI="git://anongit.freedesktop.org/systemd/systemd"
inherit git-2
else
patchset=1
SRC_URI="http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz"
if [[ -n "${patchset}" ]]
then
SRC_URI="${SRC_URI}
http://dev.gentoo.org/~williamh/dist/${P}-patches-${patchset}.tar.bz2"
fi
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
fi
DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
LICENSE="LGPL-2.1 MIT GPL-2"
SLOT="0"
IUSE="acl doc gudev hwdb introspection keymap +kmod +openrc selinux static-libs"
RESTRICT="test"
COMMON_DEPEND=">=sys-apps/util-linux-2.20
acl? ( sys-apps/acl )
gudev? ( >=dev-libs/glib-2 )
introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
kmod? ( >=sys-apps/kmod-12 )
selinux? ( sys-libs/libselinux )
!<sys-libs/glibc-2.11
!<sys-apps/systemd-${PV}"
DEPEND="${COMMON_DEPEND}
virtual/os-headers
virtual/pkgconfig
!<sys-kernel/linux-headers-${KV_min}
doc? ( >=dev-util/gtk-doc-1.18 )
hwdb? ( >=sys-apps/hwids-20130114[udev] )
keymap? ( dev-util/gperf )"
if [[ ${PV} = 9999* ]]
then
DEPEND="${DEPEND}
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
dev-util/gperf
>=dev-util/intltool-0.50"
fi
RDEPEND="${COMMON_DEPEND}
openrc? ( !<sys-apps/openrc-0.9.9 )
!sys-apps/coldplug
!<sys-fs/lvm2-2.02.97-r1
!sys-fs/device-mapper
!<sys-fs/udev-init-scripts-19
!<sys-kernel/dracut-017-r1
!<sys-kernel/genkernel-3.4.25
!<sec-policy/selinux-base-2.20120725-r10"
PDEPEND=">=virtual/udev-197
openrc? ( >=sys-fs/udev-init-scripts-19-r1 )"
S=${WORKDIR}/systemd-${PV}
QA_MULTILIB_PATHS="lib/systemd/systemd-udevd"
udev_check_KV()
{
# accept4 came late for ia64
use ia64 && KV_min=3.3
if kernel_is lt ${KV_min//./ }
then
return 1
fi
return 0
}
check_default_rules()
{
# Make sure there are no sudden changes to upstream rules file
# (more for my own needs than anything else ...)
local udev_rules_md5=66bb698deeae64ab444b710baf54a412
MD5=$(md5sum < "${S}"/rules/50-udev-default.rules)
MD5=${MD5/ -/}
if [[ ${MD5} != ${udev_rules_md5} ]]
then
eerror "50-udev-default.rules has been updated, please validate!"
eerror "md5sum: ${MD5}"
die "50-udev-default.rules has been updated, please validate!"
fi
}
pkg_setup()
{
CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~KALLSYMS ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD"
linux-info_pkg_setup
if ! udev_check_KV
then
eerror "Your kernel version (${KV_FULL}) is too old to run ${P}"
eerror "It must be at least ${KV_min}!"
fi
KV_FULL_SRC=${KV_FULL}
get_running_version
if ! udev_check_KV
then
eerror
eerror "Your running kernel version (${KV_FULL}) is too old"
eerror "for this version of udev."
eerror "You must upgrade your kernel or downgrade udev."
fi
}
src_prepare()
{
# backport some patches
if [[ -n "${patchset}" ]]
then
EPATCH_SUFFIX=patch EPATCH_FORCE=yes epatch
fi
# These are missing from upstream 50-udev-default.rules
cat <<-EOF > "${T}"/40-gentoo.rules
SUBSYSTEM=="snd", GROUP="audio"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb"
EOF
# Remove requirements for gettext and intltool wrt bug #443028
if ! has_version dev-util/intltool && ! [[ ${PV} = 9999* ]]; then
sed -i \
-e '/INTLTOOL_APPLIED_VERSION=/s:=.*:=0.40.0:' \
-e '/XML::Parser perl module is required for intltool/s|^|:|' \
configure || die
eval export INTLTOOL_{EXTRACT,MERGE,UPDATE}=/bin/true
eval export {MSG{FMT,MERGE},XGETTEXT}=/bin/true
fi
# apply user patches
epatch_user
# compile with older versions of gcc #451110
version_is_at_least 4.6 $(gcc-version) || \
sed -i 's:static_assert:alsdjflkasjdfa:' src/shared/macro.h
# change rules back to group uucp instead of dialout for now
sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
-i rules/*.rules \
|| die "failed to change group dialout to uucp"
if [[ ! -e configure ]]
then
if use doc
then
gtkdocize --docdir docs || die "gtkdocize failed"
else
echo 'EXTRA_DIST =' > docs/gtk-doc.make
fi
eautoreconf
else
check_default_rules
elibtoolize
fi
if [[ ${PV} = 9999* ]]; then
# secure_getenv() disable for non-glibc systems wrt bug #443030
if ! [[ $(grep -r secure_getenv * | wc -l) -eq 16 ]]; then
eerror "The line count for secure_getenv() failed, see bug #443030"
die
fi
# gperf disable if keymaps are not requested wrt bug #452760
if ! [[ $(grep -i gperf Makefile.am | wc -l) -eq 24 ]]; then
eerror "The line count for gperf references failed, see bug 452760"
die
fi
fi
if ! use elibc_glibc; then #443030
echo '#define secure_getenv(x) NULL' >> config.h.in
sed -i -e '/error.*secure_getenv/s:.*:#define secure_getenv(x) NULL:' src/shared/missing.h || die
fi
}
src_configure()
{
use keymap || export ac_cv_path_GPERF=true #452760
local econf_args
econf_args=(
ac_cv_search_cap_init=
ac_cv_header_sys_capability_h=yes
DBUS_CFLAGS=' '
DBUS_LIBS=' '
--bindir=/bin
--docdir=/usr/share/doc/${PF}
--libdir=/usr/$(get_libdir)
--with-html-dir=/usr/share/doc/${PF}/html
--with-rootprefix=
--with-rootlibdir=/$(get_libdir)
--disable-audit
--disable-coredump
--disable-hostnamed
--disable-ima
--disable-libcryptsetup
--disable-localed
--disable-logind
--disable-myhostname
--disable-nls
--disable-pam
--disable-quotacheck
--disable-readahead
--enable-split-usr
--disable-tcpwrap
--disable-timedated
--disable-xz
--disable-silent-rules
$(use_enable acl)
$(use_enable doc gtk-doc)
$(use_enable gudev)
$(use_enable keymap)
$(use_enable kmod)
$(use_enable selinux)
$(use_enable static-libs static)
)
if use introspection; then
econf_args+=(
--enable-introspection=$(usex introspection)
)
fi
econf "${econf_args[@]}"
}
src_compile()
{
echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > "${T}"/Makefile.extra
emake -f Makefile -f "${T}"/Makefile.extra BUILT_SOURCES
local targets=(
systemd-udevd
udevadm
libudev.la
libsystemd-daemon.la
ata_id
cdrom_id
collect
scsi_id
v4l_id
accelerometer
mtd_probe
man/sd_is_fifo.3
man/sd_notify.3
man/sd_listen_fds.3
man/sd-daemon.3
man/udev.7
man/udevadm.8
man/systemd-udevd.8
man/systemd-udevd.service.8
)
use keymap && targets+=( keymap )
use gudev && targets+=( libgudev-1.0.la )
emake "${targets[@]}"
if use doc
then
emake -C docs/libudev
use gudev && emake -C docs/gudev
fi
}
src_install()
{
local lib_LTLIBRARIES="libsystemd-daemon.la libudev.la" \
pkgconfiglib_DATA="src/libsystemd-daemon/libsystemd-daemon.pc src/libudev/libudev.pc"
local targets=(
install-libLTLIBRARIES
install-includeHEADERS
install-libgudev_includeHEADERS
install-binPROGRAMS
install-rootlibexecPROGRAMS
install-udevlibexecPROGRAMS
install-dist_systemunitDATA
install-dist_udevconfDATA
install-dist_udevhomeSCRIPTS
install-dist_udevkeymapDATA
install-dist_udevkeymapforcerelDATA
install-dist_udevrulesDATA
install-girDATA
install-man3
install-man7
install-man8
install-nodist_systemunitDATA
install-pkgconfiglibDATA
install-sharepkgconfigDATA
install-typelibsDATA
install-dist_docDATA
udev-confdirs
systemd-install-hook
libudev-install-hook
libsystemd-daemon-install-hook
install-pkgincludeHEADERS
)
if use gudev
then
lib_LTLIBRARIES+=" libgudev-1.0.la"
pkgconfiglib_DATA+=" src/gudev/gudev-1.0.pc"
fi
# add final values of variables:
targets+=(
rootlibexec_PROGRAMS=systemd-udevd
bin_PROGRAMS=udevadm
lib_LTLIBRARIES="${lib_LTLIBRARIES}"
MANPAGES="man/sd-daemon.3 man/sd_notify.3 man/sd_listen_fds.3 \
man/sd_is_fifo.3 man/sd_booted.3 man/udev.7 man/udevadm.8 \
man/systemd-udevd.service.8"
MANPAGES_ALIAS="man/sd_is_socket.3 man/sd_is_socket_unix.3 \
man/sd_is_socket_inet.3 man/sd_is_mq.3 man/sd_notifyf.3 \
man/SD_LISTEN_FDS_START.3 man/SD_EMERG.3 man/SD_ALERT.3 \
man/SD_CRIT.3 man/SD_ERR.3 man/SD_WARNING.3 man/SD_NOTICE.3 \
man/SD_INFO.3 man/SD_DEBUG.3 man/systemd-udevd.8"
dist_systemunit_DATA="units/systemd-udevd-control.socket \
units/systemd-udevd-kernel.socket"
nodist_systemunit_DATA="units/systemd-udevd.service \
units/systemd-udev-trigger.service \
units/systemd-udev-settle.service"
pkgconfiglib_DATA="${pkgconfiglib_DATA}"
systemunitdir="$(systemd_get_unitdir)"
pkginclude_HEADERS="src/systemd/sd-daemon.h"
)
emake -j1 DESTDIR="${D}" "${targets[@]}"
if use doc
then
emake -C docs/libudev DESTDIR="${D}" install
use gudev && emake -C docs/gudev DESTDIR="${D}" install
fi
dodoc TODO
prune_libtool_files --all
rm -f "${D}"/lib/udev/rules.d/99-systemd.rules
rm -rf "${D}"/usr/share/doc/${PF}/LICENSE.*
# install gentoo-specific rules
insinto /lib/udev/rules.d
doins "${T}"/40-gentoo.rules
# install udevadm symlink
dosym ../bin/udevadm /sbin/udevadm
# move udevd where it should be and remove unlogical /lib/systemd
mv "${ED}"/lib/systemd/systemd-udevd "${ED}"/sbin/udevd || die
rm -r "${ED}"/lib/systemd
# install compability symlink for systemd and initramfs tools
dosym /sbin/udevd "$(systemd_get_utildir)"/systemd-udevd
find "${ED}/$(systemd_get_unitdir)" -name '*.service' -exec \
sed -i -e "/ExecStart/s:/lib/systemd:$(systemd_get_utildir):" {} +
docinto gentoo
dodoc "${FILESDIR}"/80-net-name-slot.rules
docompress -x /usr/share/doc/${PF}/gentoo/80-net-name-slot.rules
}
pkg_preinst()
{
local htmldir
for htmldir in gudev libudev; do
if [[ -d ${ROOT}usr/share/gtk-doc/html/${htmldir} ]]
then
rm -rf "${ROOT}"usr/share/gtk-doc/html/${htmldir}
fi
if [[ -d ${D}/usr/share/doc/${PF}/html/${htmldir} ]]
then
dosym ../../doc/${PF}/html/${htmldir} \
/usr/share/gtk-doc/html/${htmldir}
fi
done
preserve_old_lib /{,usr/}$(get_libdir)/libudev$(get_libname 0)
}
# This function determines if a directory is a mount point.
# It was lifted from dracut.
ismounted()
{
while read a m a; do
[[ $m = $1 ]] && return 0
done < "${ROOT}"/proc/mounts
return 1
}
pkg_postinst()
{
mkdir -p "${ROOT}"run
net_rules="${ROOT}"etc/udev/rules.d/80-net-name-slot.rules
copy_net_rules() {
[[ -f ${net_rules} ]] || cp "${ROOT}"usr/share/doc/${PF}/gentoo/80-net-name-slot.rules "${net_rules}"
}
if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 197 ]]; then
ewarn "Because this is a upgrade we disable the new predictable network interface"
ewarn "name scheme by default."
copy_net_rules
fi
if has_version sys-apps/biosdevname; then
ewarn "Because sys-apps/biosdevname is installed we disable the new predictable"
ewarn "network interface name scheme by default."
copy_net_rules
fi
# "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
# So try to remove it here (will only work if empty).
rmdir "${ROOT}"dev/loop 2>/dev/null
if [[ -d ${ROOT}dev/loop ]]
then
ewarn "Please make sure your remove /dev/loop,"
ewarn "else losetup may be confused when looking for unused devices."
fi
# people want reminders, I'll give them reminders. Odds are they will
# just ignore them anyway...
# 64-device-mapper.rules now gets installed by sys-fs/device-mapper
# remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007
if [[ -f ${ROOT}etc/udev/rules.d/64-device-mapper.rules ]] &&
! has_version sys-fs/device-mapper
then
rm -f "${ROOT}"etc/udev/rules.d/64-device-mapper.rules
einfo "Removed unneeded file 64-device-mapper.rules"
fi
if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 189 ]]; then
ewarn
ewarn "Upstream has removed the persistent-cd rules"
ewarn "generator. If you need persistent names for these devices,"
ewarn "place udev rules for them in ${ROOT}etc/udev/rules.d."
fi
if ismounted /usr
then
ewarn
ewarn "Your system has /usr on a separate partition. This means"
ewarn "you will need to use an initramfs to pre-mount /usr before"
ewarn "udev runs."
ewarn
ewarn "If this is not set up before your next reboot, udev may work;"
ewarn "However, you also may experience failures which are very"
ewarn "difficult to troubleshoot."
ewarn
ewarn "For a more detailed explanation, see the following URL:"
ewarn "http://www.freedesktop.org/wiki/Software/systemd/separate-usr-is-broken"
ewarn
ewarn "For more information on setting up an initramfs, see the"
ewarn "following URL:"
ewarn "http://www.gentoo.org/doc/en/initramfs-guide.xml"
fi
if [ -n "${net_rules}" ]; then
ewarn
ewarn "udev-197 and newer introduces a new method of naming network"
ewarn "interfaces. The new names are a very significant change, so"
ewarn "they are disabled by default on live systems."
ewarn "Please see the contents of ${net_rules} for more"
ewarn "information on this feature."
fi
local fstab="${ROOT}"etc/fstab dev path fstype rest
while read -r dev path fstype rest; do
if [[ ${path} == /dev && ${fstype} != devtmpfs ]]; then
ewarn "You need to edit your /dev line in ${fstab} to have devtmpfs"
ewarn "filesystem. Otherwise udev won't be able to boot."
ewarn "See, http://bugs.gentoo.org/453186"
fi
done < "${fstab}"
if [[ -d ${ROOT}usr/lib/udev ]]
then
ewarn
ewarn "Please re-emerge all packages on your system which install"
ewarn "rules and helpers in /usr/lib/udev. They should now be in"
ewarn "/lib/udev."
ewarn
ewarn "One way to do this is to run the following command:"
ewarn "emerge -av1 \$(qfile -q -S -C /usr/lib/udev)"
ewarn "Note that qfile can be found in app-portage/portage-utils"
fi
old_net_rules=${ROOT}etc/udev/rules.d/70-persistent-net.rules
if [[ -f ${old_net_rules} ]]; then
ewarn "You still have ${old_net_rules} in place from previous udev release."
ewarn "Upstream has removed the possibility of renaming to existing"
ewarn "network interfaces. For example, it's not possible to assign based"
ewarn "on MAC address to existing interface eth0."
ewarn "See http://bugs.gentoo.org/453494 for more information."
ewarn "Rename your file to something else starting with 70- to silence"
ewarn "this warning."
fi
ewarn
ewarn "You need to restart udev as soon as possible to make the upgrade go"
ewarn "into effect."
ewarn "The method you use to do this depends on your init system."
ewarn
preserve_old_lib_notify /{,usr/}$(get_libdir)/libudev$(get_libname 0)
elog
elog "For more information on udev on Gentoo, writing udev rules, and"
elog " fixing known issues visit:"
elog " http://www.gentoo.org/doc/en/udev-guide.xml"
use hwdb && udevadm hwdb --update
}

View File

@ -1,65 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-2.2.2.ebuild,v 1.9 2010/12/27 12:51:44 ssuominen Exp $
EAPI=2
inherit eutils
DESCRIPTION="A portable programmer's library designed to allow a developer to create robust portable software"
HOMEPAGE="http://www.jedsoft.org/slang/"
SRC_URI="mirror://slang/v${PV%.*}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="cjk pcre png readline zlib"
RDEPEND="sys-libs/ncurses
pcre? ( dev-libs/libpcre )
png? ( media-libs/libpng )
cjk? ( dev-libs/oniguruma )
readline? ( sys-libs/readline )
zlib? ( sys-libs/zlib )"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.1.2-slsh-libs.patch \
"${FILESDIR}"/${PN}-2.1.3-uclibc.patch
sed -i \
-e '/^TERMCAP=/s:=.*:=:' \
configure || die
}
src_configure() {
local myconf
if use readline; then
myconf+=" --with-readline=gnu"
else
myconf+=" --with-readline=slang"
fi
econf \
$(use_with cjk onig) \
$(use_with pcre) \
$(use_with png) \
$(use_with zlib z) \
${myconf}
}
src_compile() {
emake -j1 elf static || die "emake elf static failed"
cd slsh
emake -j1 slsh || die "emake slsh failed"
}
src_install() {
emake -j1 DESTDIR="${D}" install-all || die "emake install-all failed"
rm -rf "${D}"/usr/share/doc/{slang,slsh}
dodoc NEWS README *.txt doc/{,internal,text}/*.txt
dohtml doc/slangdoc.html slsh/doc/html/*.html
}

View File

@ -1,65 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-2.0.ebuild,v 1.4 2012/06/01 18:36:59 vapier Exp $
EAPI="4"
inherit eutils
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://github.com/fenrus75/powertop.git"
inherit git-2
SRC_URI=""
else
SRC_URI="https://01.org/powertop/sites/default/files/downloads/${P}.tar.bz2"
KEYWORDS="amd64 arm ppc sparc x86 ~amd64-linux ~x86-linux"
fi
DESCRIPTION="tool that helps you find what software is using the most power"
HOMEPAGE="https://01.org/powertop/ http://www.lesswatts.org/projects/powertop/"
LICENSE="GPL-2"
SLOT="0"
IUSE="unicode"
DEPEND="
dev-libs/libnl
sys-apps/pciutils
sys-devel/gettext
sys-libs/ncurses[unicode?]
sys-libs/zlib
"
RDEPEND="
${DEPEND}
x11-apps/xset
"
DOCS=( TODO README )
src_prepare() {
sed -i -r \
-e '/^powertop_CXXFLAGS/s: (-O2|-g|-I/usr/include/) : :g' \
src/Makefile.in || die
}
src_configure() {
export ac_cv_search_delwin=$(usex unicode -lncursesw no)
default
}
src_compile() {
emake -C src csstoh
cp "${FILESDIR}"/csstoh src/ || die
emake
}
src_install() {
default
keepdir /var/cache/powertop
}
pkg_postinst() {
echo
einfo "For PowerTOP to work best, use a Linux kernel with the"
einfo "tickless idle (NO_HZ) feature enabled (version 2.6.21 or later)"
echo
}

View File

@ -1,55 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libX11/libX11-1.4.99.901.ebuild,v 1.1 2012/03/16 23:29:19 chithanh Exp $
EAPI=4
XORG_DOC=doc
inherit xorg-2 toolchain-funcs flag-o-matic
DESCRIPTION="X.Org X11 library"
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
IUSE="ipv6 test"
RDEPEND=">=x11-libs/libxcb-1.1.92
x11-libs/xtrans
>=x11-proto/xproto-7.0.17
x11-proto/xf86bigfontproto
x11-proto/inputproto
x11-proto/kbproto
x11-proto/xextproto"
DEPEND="${RDEPEND}
test? ( dev-lang/perl )"
PATCHES=(
"${FILESDIR}"/${PN}-1.1.4-aix-pthread.patch
"${FILESDIR}"/${PN}-1.1.5-winnt-private.patch
"${FILESDIR}"/${PN}-1.1.5-solaris.patch
)
pkg_setup() {
xorg-2_pkg_setup
XORG_CONFIGURE_OPTIONS=(
$(use_with doc xmlto)
$(use_enable doc specs)
$(use_enable ipv6)
--without-fop
)
}
src_configure() {
[[ ${CHOST} == *-interix* ]] && export ac_cv_func_poll=no
xorg-2_src_configure
}
src_compile() {
# [Cross-Compile Love] Disable {C,LD}FLAGS and redefine CC= for 'makekeys'
if tc-is-cross-compiler; then
(
filter-flags -m*
emake -C "${AUTOTOOLS_BUILD_DIR}"/src/util CC=$(tc-getBUILD_CC) CFLAGS="${CFLAGS}" LDFLAGS="" clean all || die
)
fi
xorg-2_src_compile
}

View File

@ -1,34 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libXt/libXt-1.0.7-r1.ebuild,v 1.10 2010/01/19 20:09:44 armin76 Exp $
SNAPSHOT="yes"
inherit x-modular flag-o-matic toolchain-funcs
DESCRIPTION="X.Org Xt library"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE=""
RDEPEND="x11-libs/libX11
x11-libs/libSM
x11-proto/xproto
x11-proto/kbproto"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/${P}-fix-cross-compile-again.patch" )
pkg_setup() {
# No such function yet
# x-modular_pkg_setup
# (#125465) Broken with Bdirect support
filter-flags -Wl,-Bdirect
filter-ldflags -Bdirect
filter-ldflags -Wl,-Bdirect
if tc-is-cross-compiler; then
export CFLAGS_FOR_BUILD="${BUILD_CFLAGS}"
fi
}

View File

@ -1,59 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/shared-mime-info/shared-mime-info-0.90.ebuild,v 1.7 2011/04/30 17:45:01 armin76 Exp $
EAPI=3
inherit fdo-mime
DESCRIPTION="The Shared MIME-info Database specification"
HOMEPAGE="http://freedesktop.org/wiki/Software/shared-mime-info"
SRC_URI="http://people.freedesktop.org/~hadess/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
RDEPEND=">=dev-libs/glib-2.6:2
>=dev-libs/libxml2-2.4"
DEPEND="${RDEPEND}
dev-util/pkgconfig
dev-util/intltool
sys-devel/gettext"
src_configure() {
econf \
--disable-dependency-tracking \
--disable-update-mimedb
}
src_compile() {
# http://bugs.gentoo.org/show_bug.cgi?id=347870
# https://bugs.freedesktop.org/show_bug.cgi?id=32127
emake -j1 || die
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc ChangeLog HACKING NEWS README
# in prefix, install an env.d entry such that prefix patch is used/added
if use prefix; then
echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share\"" > "${T}"/50mimeinfo
doenvd "${T}"/50mimeinfo
fi
}
pkg_postinst() {
use prefix && export XDG_DATA_DIRS="${EPREFIX}"/usr/share
fdo-mime_mime_database_update
# elog
# elog "The database format has changed between 0.60 and 0.70."
# elog "You may need to update all your local databases and caches."
# elog "To do so, please run the following command(s):"
# elog "(for each user) $ update-mime-database ~/.local/share/mime/"
# if [[ -d ${EROOT}/usr/local/share/mime ]]; then
# elog "(as root) # update-mime-database ${EPREFIX}/usr/local/share/mime/"
# fi
# elog
}