mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
sys-apps/{coreutils,grep,hdparm,help2man,man-pages-posix,miscfiles,pciutils,texinfo,which}: import from portage
Just copying the ebuilds from portage/ so hopefully no functional changes. BUG=chromium-os:26016 TEST=`cbuildbot arm-generic-full` works TEST=build_packages+build_image for x86-alex boots Change-Id: I7289476b1bfb53cfd12c979831df2432e2086e70 Reviewed-on: https://gerrit.chromium.org/gerrit/15425 Reviewed-by: Matt Tennant <mtennant@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
9e0cdf526a
commit
fd772e1888
2
sdk_container/src/third_party/portage-stable/sys-apps/coreutils/Manifest
vendored
Normal file
2
sdk_container/src/third_party/portage-stable/sys-apps/coreutils/Manifest
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
DIST coreutils-7.5-patches-2.tar.lzma 8370 RMD160 fef456359dd907c8264686720676ea1dabb90b63 SHA1 55f1b88bfeca34cd09c4ba305f6c0d45cfa3fd3f SHA256 1ee33146c960671f6cb54ca4916f6a828db904dae84841ec690eae7c0205e9a2
|
||||
DIST coreutils-7.5.tar.gz 9956013 RMD160 17785526e6820705aa5790454af1bd3d0d4104aa SHA1 97e1486a33bf42eb7686d8f131c80ab533f1f683 SHA256 341f49b9434f83ca9a8b6c2266813092ef08a5fca25f15dcc1a0ba82fc18c3c1
|
147
sdk_container/src/third_party/portage-stable/sys-apps/coreutils/coreutils-7.5-r1.ebuild
vendored
Normal file
147
sdk_container/src/third_party/portage-stable/sys-apps/coreutils/coreutils-7.5-r1.ebuild
vendored
Normal file
@ -0,0 +1,147 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/coreutils-7.5-r1.ebuild,v 1.3 2009/11/09 22:54:34 vapier Exp $
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs
|
||||
|
||||
PATCH_VER="2"
|
||||
DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)"
|
||||
HOMEPAGE="http://www.gnu.org/software/coreutils/"
|
||||
SRC_URI="ftp://alpha.gnu.org/gnu/coreutils/${P}.tar.gz
|
||||
mirror://gnu/${PN}/${P}.tar.gz
|
||||
mirror://gentoo/${P}.tar.gz
|
||||
mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma
|
||||
http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.lzma"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
|
||||
IUSE="acl caps gmp nls selinux static vanilla xattr"
|
||||
|
||||
RDEPEND="caps? ( sys-libs/libcap )
|
||||
gmp? ( dev-libs/gmp )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
acl? ( sys-apps/acl )
|
||||
xattr? ( sys-apps/attr )
|
||||
nls? ( >=sys-devel/gettext-0.15 )
|
||||
!<sys-apps/util-linux-2.13
|
||||
!sys-apps/stat
|
||||
!net-mail/base64
|
||||
!sys-apps/mktemp
|
||||
!<app-forensics/tct-1.18-r1
|
||||
!<net-fs/netatalk-2.0.3-r4
|
||||
!<sci-chemistry/ccp4-6.1.1
|
||||
>=sys-libs/ncurses-5.3-r5"
|
||||
DEPEND="${RDEPEND}
|
||||
|| ( app-arch/xz-utils app-arch/lzma-utils )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
if ! use vanilla ; then
|
||||
EPATCH_SUFFIX="patch" \
|
||||
PATCHDIR="${WORKDIR}/patch" \
|
||||
EPATCH_EXCLUDE="001_all_coreutils-gen-progress-bar.patch" \
|
||||
epatch
|
||||
fi
|
||||
|
||||
# Since we've patched many .c files, the make process will try to
|
||||
# re-build the manpages by running `./bin --help`. When doing a
|
||||
# cross-compile, we can't do that since 'bin' isn't a native bin.
|
||||
# Also, it's not like we changed the usage on any of these things,
|
||||
# so let's just update the timestamps and skip the help2man step.
|
||||
set -- man/*.x
|
||||
tc-is-cross-compiler && touch ${@/%x/1}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use static && append-ldflags -static
|
||||
# kill/uptime - procps
|
||||
# groups/su - shadow
|
||||
# hostname - net-tools
|
||||
econf \
|
||||
--enable-install-program="arch" \
|
||||
--enable-no-install-program="groups,hostname,kill,su,uptime" \
|
||||
--enable-largefile \
|
||||
$(use caps || echo --disable-libcap) \
|
||||
$(use_enable nls) \
|
||||
$(use_enable acl) \
|
||||
$(use_enable xattr) \
|
||||
$(use_with gmp) \
|
||||
|| die "econf"
|
||||
emake || die "emake"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Non-root tests will fail if the full path isnt
|
||||
# accessible to non-root users
|
||||
chmod -R go-w "${WORKDIR}"
|
||||
chmod a+rx "${WORKDIR}"
|
||||
|
||||
# coreutils tests like to do `mount` and such with temp dirs
|
||||
# so make sure /etc/mtab is writable #265725
|
||||
# make sure /dev/loop* can be mounted #269758
|
||||
mkdir -p "${T}"/mount-wrappers
|
||||
mkwrap() {
|
||||
local w ww
|
||||
for w in "$@" ; do
|
||||
ww="${T}/mount-wrappers/${w}"
|
||||
cat <<-EOF > "${ww}"
|
||||
#!/bin/sh
|
||||
exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@"
|
||||
EOF
|
||||
chmod a+rx "${ww}"
|
||||
done
|
||||
}
|
||||
mkwrap mount umount
|
||||
|
||||
addwrite /dev/full
|
||||
#export RUN_EXPENSIVE_TESTS="yes"
|
||||
#export FETISH_GROUPS="portage wheel"
|
||||
env PATH="${T}/mount-wrappers:${PATH}" \
|
||||
emake -j1 -k check || die "make check failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}" || die
|
||||
dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO
|
||||
|
||||
insinto /etc
|
||||
newins src/dircolors.hin DIR_COLORS || die
|
||||
|
||||
if [[ ${USERLAND} == "GNU" ]] ; then
|
||||
cd "${D}"/usr/bin
|
||||
dodir /bin
|
||||
# move critical binaries into /bin (required by FHS)
|
||||
local fhs="cat chgrp chmod chown cp date dd df echo false ln ls
|
||||
mkdir mknod mv pwd rm rmdir stty sync true uname"
|
||||
mv ${fhs} ../../bin/ || die "could not move fhs bins"
|
||||
# move critical binaries into /bin (common scripts)
|
||||
local com="basename chroot cut dir dirname du env expr head mkfifo
|
||||
mktemp readlink seq sleep sort tail touch tr tty vdir wc yes"
|
||||
mv ${com} ../../bin/ || die "could not move common bins"
|
||||
# create a symlink for uname in /usr/bin/ since autotools require it
|
||||
local x
|
||||
for x in ${com} uname ; do
|
||||
dosym /bin/${x} /usr/bin/${x} || die
|
||||
done
|
||||
else
|
||||
# For now, drop the man pages, collides with the ones of the system.
|
||||
rm -rf "${D}"/usr/share/man
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure you run 'hash -r' in your active shells."
|
||||
ewarn "You should also re-source your shell settings for LS_COLORS"
|
||||
ewarn " changes, such as: source /etc/profile"
|
||||
|
||||
# /bin/dircolors sometimes sticks around #224823
|
||||
if [ -e "${ROOT}/usr/bin/dircolors" ] && [ -e "${ROOT}/bin/dircolors" ] ; then
|
||||
if strings "${ROOT}/bin/dircolors" | grep -qs "GNU coreutils" ; then
|
||||
einfo "Deleting orphaned GNU /bin/dircolors for you"
|
||||
rm -f "${ROOT}/bin/dircolors"
|
||||
fi
|
||||
fi
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/sys-apps/grep/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/sys-apps/grep/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST grep-2.5.4.tar.bz2 723181 RMD160 52abf25681bc6830f372ea7607480da69eaa06fd SHA1 9bbd4f02b18bb264e0fcb17293b6f0445c8694d2 SHA256 0abec64e01458fbd032e33351d8071602a959529ea796965e98338ee83a40020
|
50
sdk_container/src/third_party/portage-stable/sys-apps/grep/files/grep-2.5.3-nls.patch
vendored
Normal file
50
sdk_container/src/third_party/portage-stable/sys-apps/grep/files/grep-2.5.3-nls.patch
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
Fixes compilation with -nls useflag on FreeBSD (and probably others).
|
||||
|
||||
See http://bugs.gentoo.org/253777.
|
||||
|
||||
--- grep-2.5.3.orig/lib/error.c
|
||||
+++ grep-2.5.3/lib/error.c
|
||||
@@ -26,8 +26,8 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
-#if HAVE_LIBINTL_H
|
||||
-# include <libintl.h>
|
||||
+#if defined(HAVE_LIBINTL_H) && defined(ENABLE_NLS)
|
||||
+# include <libintl.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
|
||||
--- grep-2.5.3.orig/lib/getopt.c
|
||||
+++ grep-2.5.3/lib/getopt.c
|
||||
@@ -77,7 +77,7 @@
|
||||
#ifndef _
|
||||
/* This is for other GNU distributions with internationalized messages.
|
||||
When compiling libc, the _ macro is predefined. */
|
||||
-# ifdef HAVE_LIBINTL_H
|
||||
+# if defined(HAVE_LIBINTL_H) && defined(ENABLE_NLS)
|
||||
# include <libintl.h>
|
||||
# define _(msgid) gettext (msgid)
|
||||
# else
|
||||
--- grep-2.5.3.orig/lib/obstack.c
|
||||
+++ grep-2.5.3/lib/obstack.c
|
||||
@@ -451,7 +451,7 @@
|
||||
|
||||
/* Define the error handler. */
|
||||
#ifndef _
|
||||
-# ifdef HAVE_LIBINTL_H
|
||||
+# if defined(HAVE_LIBINTL_H) && defined(ENABLE_NLS)
|
||||
# include <libintl.h>
|
||||
# ifndef _
|
||||
# define _(Str) gettext (Str)
|
||||
--- grep-2.5.3.orig/lib/regex.c
|
||||
+++ grep-2.5.3/lib/regex.c
|
||||
@@ -116,7 +116,7 @@
|
||||
#endif
|
||||
|
||||
/* This is for other GNU distributions with internationalized messages. */
|
||||
-#if HAVE_LIBINTL_H || defined _LIBC
|
||||
+#if ENABLE_NLS && (HAVE_LIBINTL_H || defined _LIBC)
|
||||
# include <libintl.h>
|
||||
# ifdef _LIBC
|
||||
# undef gettext
|
@ -0,0 +1,10 @@
|
||||
--- grep-2.5.3/po/Makefile.in.in.orig 2006-11-24 20:53:21 -0300
|
||||
+++ grep-2.5.3/po/Makefile.in.in 2008-10-26 18:31:06 -0200
|
||||
@@ -13,6 +13,7 @@
|
||||
@SET_MAKE@
|
||||
|
||||
srcdir = @srcdir@
|
||||
+top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
41
sdk_container/src/third_party/portage-stable/sys-apps/grep/grep-2.5.4-r1.ebuild
vendored
Normal file
41
sdk_container/src/third_party/portage-stable/sys-apps/grep/grep-2.5.4-r1.ebuild
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/grep/grep-2.5.4-r1.ebuild,v 1.8 2009/07/04 12:20:42 nixnut Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="GNU regular expression matcher"
|
||||
HOMEPAGE="http://www.gnu.org/software/grep/"
|
||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2
|
||||
mirror://gentoo/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~amd64-fbsd arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
|
||||
IUSE="nls pcre"
|
||||
|
||||
RDEPEND="nls? ( virtual/libintl )
|
||||
pcre? ( >=dev-libs/libpcre-7.8-r1 )"
|
||||
DEPEND="${RDEPEND}
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-2.5.3-po-builddir-fix.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.5.3-nls.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--bindir=/bin \
|
||||
$(use_enable nls) \
|
||||
$(use_enable pcre perl-regexp) \
|
||||
$(use elibc_FreeBSD || echo --without-included-regex) \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "make install failed"
|
||||
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/sys-apps/hdparm/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/sys-apps/hdparm/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST hdparm-9.20.tar.gz 104154 RMD160 19ac0580ce5bfa94dc4eae543e683c4a24bcd7cb SHA1 449a9e1998fffde4b68604467c9bea2407cb7fe1 SHA256 a7fb66f8c6068e028953571c899566dcc7021e67db6f8b1dece38d0b18d1bc46
|
26
sdk_container/src/third_party/portage-stable/sys-apps/hdparm/files/hdparm-conf.d.3
vendored
Normal file
26
sdk_container/src/third_party/portage-stable/sys-apps/hdparm/files/hdparm-conf.d.3
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
# /etc/conf.d/hdparm: config file for /etc/init.d/hdparm
|
||||
|
||||
#
|
||||
# Note that options such as -y which force *immediate* power saving options
|
||||
# should generally not be placed here. The hdparm init.d script may run at
|
||||
# anytime with respect to other init.d scripts that do system wide drive
|
||||
# scans (like the hald script), so they will merely get spun right back up.
|
||||
# If you wish to use these options, please use the local.start init.d script
|
||||
# instead so that you're guaranteed that it will run last.
|
||||
#
|
||||
|
||||
# You can either set hdparm arguments for each drive using hdX_args,
|
||||
# discX_args, cdromX_args and genericX_args, e.g.
|
||||
#
|
||||
# hda_args="-d1 -X66"
|
||||
# disc1_args="-d1"
|
||||
# cdrom0_args="-d1"
|
||||
|
||||
# or you can set options for all PATA drives
|
||||
pata_all_args="-d1"
|
||||
|
||||
# or you can set options for all SATA drives
|
||||
sata_all_args=""
|
||||
|
||||
# or, you can set hdparm options for all drives
|
||||
all_args=""
|
142
sdk_container/src/third_party/portage-stable/sys-apps/hdparm/files/hdparm-init-8
vendored
Normal file
142
sdk_container/src/third_party/portage-stable/sys-apps/hdparm/files/hdparm-init-8
vendored
Normal file
@ -0,0 +1,142 @@
|
||||
#!/sbin/runscript
|
||||
# METHOD
|
||||
# ------
|
||||
# if /dev/ide exists, find all block devices beneath it named disc, cd, or
|
||||
# generic.
|
||||
#
|
||||
# for the disc and cd ones, if there is a a matching /dev/hdX symlink and
|
||||
# hdX_args is set in the config file, use hdX_args. otherwise, if there is a
|
||||
# matching /dev/discs/discX or /dev/cdroms/cdromX symlink, and discX_args or
|
||||
# cdromX_args is set in the config file, use discX_args / cdromX_args. finally,
|
||||
# if all_args is set in the config file, use that.
|
||||
#
|
||||
# for the generic ones, sort them and look for genericX_args in the config file
|
||||
# or use all_args.
|
||||
#
|
||||
# if /dev/ide does not exist, check the /dev/hdX entries, and see which ones
|
||||
# correspond to real devices by opening them for reading. then check hdX_args
|
||||
# and all_args in the config file.
|
||||
#
|
||||
# for each device considered, if no args are found in the config file, do not
|
||||
# run hdparm.
|
||||
|
||||
depend() {
|
||||
before bootmisc
|
||||
}
|
||||
|
||||
do_hdparm() {
|
||||
local e=
|
||||
eval e=\$${extra_args}
|
||||
[ -z "${args}${all_args}${e}" ] && return 0
|
||||
|
||||
if [ -n "${args:=${all_args} ${e}}" ] ; then
|
||||
local orgdevice=$(readlink -f "${device}")
|
||||
if [ -b "${orgdevice}" ] ; then
|
||||
ebegin "Running hdparm on ${device}"
|
||||
hdparm ${args} "${device}" > /dev/null
|
||||
eend $?
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
scan_devfs() {
|
||||
local extra_args="pata_all_args" device= alias= args=
|
||||
|
||||
# devfs compatible systems
|
||||
for device in $(find /dev/ide -name disc) ; do
|
||||
args=''
|
||||
|
||||
for alias in /dev/hd? ; do
|
||||
if [ "${alias}" -ef "${device}" ] ; then
|
||||
device=${alias}
|
||||
eval args=\$"$(basename "${alias}")"_args
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -z "$args" ] ; then
|
||||
for alias in /dev/discs/* ; do
|
||||
if [ "${alias}"/disc -ef "${device}" ]; then
|
||||
device="${alias}/disc"
|
||||
eval args=\$"$(basename "${alias}")"_args
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
do_hdparm
|
||||
done
|
||||
|
||||
for device in $(find /dev/ide -name cd) ; do
|
||||
args=''
|
||||
|
||||
for alias in /dev/hd? ; do
|
||||
if [ "${alias}" -ef "${device}" ] ; then
|
||||
device=${alias}
|
||||
eval args=\$"$(basename "${alias}")"_args
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -z "$args" ] ; then
|
||||
for alias in /dev/cdroms/* ; do
|
||||
if [ "${alias}" -ef "${device}" ] ; then
|
||||
device=${alias}
|
||||
eval args=\$"$(basename "${alias}")"_args
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
do_hdparm
|
||||
done
|
||||
|
||||
local count=0
|
||||
# of course, the sort approach would fail here if any of the
|
||||
# host/bus/target/lun numbers reached 2 digits..
|
||||
for device in $(find /dev/ide -name generic | sort) ; do
|
||||
eval args=\$generic${count}_args
|
||||
do_hdparm
|
||||
count=$((${count} + 1))
|
||||
done
|
||||
}
|
||||
|
||||
scan_nondevfs() {
|
||||
# non-devfs compatible system
|
||||
for device in /dev/hd* /dev/sd* ; do
|
||||
[ -e "${device}" ] || continue
|
||||
case "${device}" in
|
||||
*[0-9]) continue ;;
|
||||
/dev/hd*) extra_args="pata_all_args" ;;
|
||||
/dev/sd*) extra_args="sata_all_args" ;;
|
||||
*) extra_args="" ;;
|
||||
esac
|
||||
|
||||
# check that the block device really exists by
|
||||
# opening it for reading
|
||||
local errmsg= status= nomed=1
|
||||
errmsg=$(export LC_ALL=C ; : 2>&1 <"${device}")
|
||||
status=$?
|
||||
case ${errmsg} in
|
||||
*": No medium found") nomed=0;;
|
||||
esac
|
||||
if [ -b "${device}" ] && [ "${status}" = "0" -o "${nomed}" = "0" ] ; then
|
||||
local conf_var="${device##*/}_args"
|
||||
eval args=\$${conf_var}
|
||||
do_hdparm
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
start() {
|
||||
if get_bootparam "nohdparm" ; then
|
||||
ewarn "Skipping hdparm init as requested in kernel cmdline"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [ -e /dev/.devfsd -a -d /dev/ide ] ; then
|
||||
scan_devfs
|
||||
else
|
||||
scan_nondevfs
|
||||
fi
|
||||
}
|
38
sdk_container/src/third_party/portage-stable/sys-apps/hdparm/hdparm-9.20.ebuild
vendored
Normal file
38
sdk_container/src/third_party/portage-stable/sys-apps/hdparm/hdparm-9.20.ebuild
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-9.20.ebuild,v 1.8 2009/10/07 16:58:14 armin76 Exp $
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Utility to change hard drive performance parameters"
|
||||
HOMEPAGE="http://sourceforge.net/projects/hdparm/"
|
||||
SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz"
|
||||
|
||||
LICENSE="as-is"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
|
||||
IUSE=""
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
sed -i \
|
||||
-e "/^CFLAGS/ s:-O2:${CFLAGS}:" \
|
||||
-e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \
|
||||
Makefile || die "sed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake STRIP=: CC="$(tc-getCC)" || die "compile error"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
into /
|
||||
dosbin hdparm contrib/idectl || die "dosbin"
|
||||
|
||||
newinitd "${FILESDIR}"/hdparm-init-8 hdparm
|
||||
newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm
|
||||
|
||||
doman hdparm.8
|
||||
dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/sys-apps/help2man/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/sys-apps/help2man/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST help2man-1.36.4.tar.gz 85630 RMD160 1c2e18f86c2d689dbc4bbc1d85e60a2273308c42 SHA1 f3ffd89d50ee158589f2d0ccdc476d2ac3ebff70 SHA256 a4adadf76b496a6bc50795702253ecfcb6f0d159b68038f31a5362009340bca2
|
@ -0,0 +1,11 @@
|
||||
--- Makefile.in
|
||||
+++ Makefile.in
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
preload: $(preload).so
|
||||
$(preload).so: $(srcdir)/$(preload).c
|
||||
- $(CC) $(CFLAGS) -o $@ -fPIC -shared $? $(LIBS)
|
||||
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ -fPIC -shared $? $(LIBS)
|
||||
|
||||
man: $(target).1
|
||||
$(target).1: $(srcdir)/$(target).PL $(srcdir)/$(target).h2m
|
40
sdk_container/src/third_party/portage-stable/sys-apps/help2man/help2man-1.36.4-r1.ebuild
vendored
Normal file
40
sdk_container/src/third_party/portage-stable/sys-apps/help2man/help2man-1.36.4-r1.ebuild
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
# 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
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/sys-apps/man-pages-posix/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/sys-apps/man-pages-posix/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST man-pages-posix-2003-a.tar.bz2 971300 RMD160 29cfa977f7ccbc5f5e4c77bbce6146ca5e3376cb SHA1 6e15124dd0739b91d2db05b9f4f84e5b9084455e SHA256 e355b1b7bbccd4cef6b4a38dccf090e4535e038c21a9985c19891f21173d49ea
|
@ -0,0 +1,11 @@
|
||||
--- man1p/ipcs.1p
|
||||
+++ man1p/ipcs.1p
|
||||
@@ -544,7 +544,7 @@
|
||||
None.
|
||||
.SH SEE ALSO
|
||||
.LP
|
||||
-The System Interfaces volume of IEEE\ Std\ 1003.1-2001, \fImsgrcv\fP(),
|
||||
+\fIipcrm\fP , The System Interfaces volume of IEEE\ Std\ 1003.1-2001, \fImsgrcv\fP(),
|
||||
\fImsgsnd\fP(), \fIsemget\fP(), \fIsemop\fP(), \fIshmat\fP(), \fIshmdt\fP(),
|
||||
\fIshmget\fP()
|
||||
.SH COPYRIGHT
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/man-pages-posix/man-pages-posix-2003a.ebuild,v 1.12 2010/01/08 18:16:13 ulm Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_P="${PN}-${PV:0:4}-${PV:0-1}"
|
||||
DESCRIPTION="POSIX man-pages (0p, 1p, 3p)"
|
||||
HOMEPAGE="http://www.kernel.org/doc/man-pages/"
|
||||
SRC_URI="mirror://kernel/linux/docs/man-pages/${PN}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="man-pages-posix"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
RESTRICT="binchecks"
|
||||
|
||||
RDEPEND="virtual/man !<sys-apps/man-pages-3"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/man-pages-2.08-updates.patch
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}" || die
|
||||
dodoc man-pages-*.Announce README Changes*
|
||||
}
|
2
sdk_container/src/third_party/portage-stable/sys-apps/miscfiles/Manifest
vendored
Normal file
2
sdk_container/src/third_party/portage-stable/sys-apps/miscfiles/Manifest
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
DIST UnicodeData-5.2.0.txt.bz2 159460 RMD160 df88c7464e66599406b19eeafbe87637043def58 SHA1 870dd97b2c782d70c5d3ca0efe1ef604ef3cb070 SHA256 0b4b03725d313f0cc1056b80a4ea6d30a3b0a959316228c60b7a05e958d90486
|
||||
DIST miscfiles-1.4.2.tar.gz 1524786 RMD160 1e02a9c34f88cc56c6f6dfdab3e6a51d66a2623e SHA1 57eaaa29aacdc178877874c1bcaaf2af068695b7 SHA256 b699ca60d61475578f1f9adb28e6d6e6b649fcf1bdd25aaec7d96b358c0701e6
|
@ -0,0 +1,18 @@
|
||||
--- Makefile.in.orig 2003-03-08 17:26:28.000000000 +0200
|
||||
+++ Makefile.in 2003-03-08 17:28:59.000000000 +0200
|
||||
@@ -60,6 +60,7 @@
|
||||
$(INSTALL_DATA) $(srcdir)/dict-README $(datadir)/dict/README
|
||||
rm -f $(datadir)/dict/words
|
||||
ln $(datadir)/dict/web2 $(datadir)/dict/words
|
||||
+ ln $(datadir)/dict/web2a $(datadir)/dict/extra.words
|
||||
for i in $(miscfiles); do \
|
||||
$(INSTALL_DATA) $(srcdir)/$$i $(datadir)/misc/$$i ; \
|
||||
done
|
||||
@@ -80,6 +81,7 @@
|
||||
rm -f $(datadir)/dict/$$i ; \
|
||||
done
|
||||
rm -f $(datadir)/dict/README $(datadir)/dict/words
|
||||
+ rm -f $(datadir)/dict/extra.words
|
||||
for i in $(miscfiles); do \
|
||||
rm -f $(datadir)/misc/$$i ; \
|
||||
done
|
53
sdk_container/src/third_party/portage-stable/sys-apps/miscfiles/miscfiles-1.4.2-r1.ebuild
vendored
Normal file
53
sdk_container/src/third_party/portage-stable/sys-apps/miscfiles/miscfiles-1.4.2-r1.ebuild
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/miscfiles/miscfiles-1.4.2-r1.ebuild,v 1.10 2010/03/04 17:42:43 jer Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
UNI_PV=5.2.0
|
||||
DESCRIPTION="Miscellaneous files"
|
||||
HOMEPAGE="http://www.gnu.org/directory/miscfiles.html"
|
||||
# updated unicode data file from:
|
||||
# http://www.unicode.org/Public/${UNI_PV}/ucd/UnicodeData.txt
|
||||
SRC_URI="mirror://gnu/miscfiles/${P}.tar.gz
|
||||
mirror://gentoo/UnicodeData-${UNI_PV}.txt.bz2"
|
||||
|
||||
LICENSE="GPL-2 unicode"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="minimal"
|
||||
# Collides with older versions/revisions
|
||||
RDEPEND="!<sys-freebsd/freebsd-share-7.2-r1"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
mv "${WORKDIR}"/UnicodeData-${UNI_PV}.txt unicode || die
|
||||
epatch "${FILESDIR}"/miscfiles-1.3-Makefile.diff
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install prefix="${D}/usr" || die
|
||||
dodoc NEWS ORIGIN README dict-README
|
||||
rm -f "${D}"/usr/share/dict/README
|
||||
|
||||
if use minimal ; then
|
||||
cd "${D}"/usr/share/dict
|
||||
rm -f words extra.words
|
||||
gzip -9 *
|
||||
ln -s web2.gz words
|
||||
ln -s web2a.gz extra.words
|
||||
ln -s connectives{.gz,}
|
||||
ln -s propernames{.gz,}
|
||||
cd ..
|
||||
rm -r misc rfc
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${ROOT} == "/" ]] && type -P create-cracklib-dict >/dev/null ; then
|
||||
ebegin "Regenerating cracklib dictionary"
|
||||
create-cracklib-dict /usr/share/dict/* > /dev/null
|
||||
eend $?
|
||||
fi
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/sys-apps/pciutils/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/sys-apps/pciutils/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST pciutils-3.1.4.tar.gz 305747 RMD160 86ed925d1345e8050aa990ce212fff114e569111 SHA1 eafde87ac5bb3f0bcabc98461f22a23f8e7229f2 SHA256 676b941ddaf912387092c6925597b14cef4f35f495bdbb229c1e5947151a1b20
|
28
sdk_container/src/third_party/portage-stable/sys-apps/pciutils/files/conf.d-pciparm
vendored
Normal file
28
sdk_container/src/third_party/portage-stable/sys-apps/pciutils/files/conf.d-pciparm
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
# PCI tweaking article:
|
||||
# http://www.gentoo.org/doc/en/articles/hardware-stability-p2.xml
|
||||
#
|
||||
# Apply to all devices:
|
||||
# PCIPARM_ALL="...."
|
||||
# Cards also can be addressed by vid:pid or by bus:slot.func
|
||||
# (see setpci man page relative to -d and -s options)
|
||||
# PCIPARM_(BUS|VENDOR)_#="...."
|
||||
# Where # is sequentially numbered from zero.
|
||||
|
||||
# Examples:
|
||||
# "open up" the PCI bus by allowing fairly long bursts
|
||||
# for all devices, increasing performance
|
||||
# (equivalent to: setpci -v -d *:* latency_timer=b0)
|
||||
#PCIPARM_ALL="latency_timer=b0"
|
||||
|
||||
# maximize latency timers for network and audio,
|
||||
# allowing them to transmit more data per burst,
|
||||
# preventing buffer over/under-run conditions
|
||||
#PCIPARM_BUS_0="00:04.0 latency_timer=ff"
|
||||
#PCIPARM_BUS_1="01:04.0 latency_timer=ff"
|
||||
#PCIPARM_VENDOR_0="1057:3410 latency_timer=ff"
|
||||
|
||||
# -v : whether to be verbose about changes
|
||||
# -D : dry-run, no commit
|
||||
# -f : do not warn if the change is already set
|
||||
# (see the setpci manpage for more advanced options)
|
||||
SETPCI_OPT="-f"
|
80
sdk_container/src/third_party/portage-stable/sys-apps/pciutils/files/init.d-pciparm
vendored
Normal file
80
sdk_container/src/third_party/portage-stable/sys-apps/pciutils/files/init.d-pciparm
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/files/init.d-pciparm,v 1.3 2008/10/11 02:47:50 robbat2 Exp $
|
||||
|
||||
depend() {
|
||||
before bootmisc hdparm
|
||||
after localmount
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [ ! -f /etc/conf.d/pciparm ]; then
|
||||
ewarn "/etc/conf.d/pciparm does not exist, skipping"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ -z "${PCIPARM_ALL}" -a -z "${PCIPARM_BUS_0}" -a -z "${PCIPARM_VENDOR_0}" ]; then
|
||||
ewarn "None of PCIPARM_ALL, PCIPARM_BUS_* or PCIPARM_VENDOR_* set in /etc/conf.d/pciparm"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
do_setpci() {
|
||||
#ewarn "do_setpci: /usr/sbin/setpci $SETPCI_OPT $@"
|
||||
SWITCH=$1
|
||||
SPEC_ID=$2
|
||||
shift 2
|
||||
case "$SWITCH" in
|
||||
-d) DESC=vendor ;;
|
||||
-s) DESC=bus ;;
|
||||
*) eerror "Unknown setpci type: $SWITCH" ; return 1 ;;
|
||||
esac
|
||||
|
||||
if [ -z "$SPEC_ID" ]; then
|
||||
eerror "Missing device specifier!"
|
||||
return 1
|
||||
fi
|
||||
if [ -z "$*" ]; then
|
||||
eerror "Missing configuration to set for ($DESC) $SPEC_ID!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
ebegin "Setting PCI params for ($DESC) $SPEC_ID to $@"
|
||||
/usr/sbin/setpci $SETPCI_OPT $SWITCH $SPEC_ID "$@"
|
||||
rc=$?
|
||||
eend $rc
|
||||
return $rc
|
||||
}
|
||||
|
||||
do_setpci_array() {
|
||||
name=$1
|
||||
shift
|
||||
i=0
|
||||
while true; do
|
||||
eval opt="\$${name}_$i"
|
||||
# End of loop
|
||||
[ -z "${opt}" ] && break
|
||||
# Pass in all other parameters here, in case we want to use multiple
|
||||
# arguments later.
|
||||
do_setpci "$@" $opt #|| return 1
|
||||
i=$(($i+1))
|
||||
done
|
||||
}
|
||||
|
||||
start() {
|
||||
if get_bootparam "nopciparm" ; then
|
||||
ewarn "Skipping pciparm init as requested in kernel cmdline"
|
||||
return 0
|
||||
fi
|
||||
|
||||
checkconfig || return 1
|
||||
|
||||
# We do not exit after any errors presently, because it might be a
|
||||
# stability-related fix after a failure.
|
||||
[ -n "$PCIPARM_ALL" ] && \
|
||||
do_setpci -d '*:*' $PCIPARM_ALL #|| return 1
|
||||
|
||||
do_setpci_array PCIPARM_BUS -s #|| return 1
|
||||
do_setpci_array PCIPARM_VENDOR -d #|| return 1
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
--- pciutils-2.2.7/update-pciids.sh
|
||||
+++ pciutils-2.2.7/update-pciids.sh
|
||||
@@ -72,4 +72,19 @@
|
||||
rm -f ${DEST%.gz} ${DEST%.gz}.old
|
||||
fi
|
||||
|
||||
+# if the gzip version exists, but we are not using compressed mode,
|
||||
+# erase the gzip version, as it is old and crufty
|
||||
+if [ -z "$PCI_COMPRESSED_IDS" ] && [ -f $DEST.gz ]; then
|
||||
+ rm -f ${DEST}.gz
|
||||
+fi
|
||||
+
|
||||
+# Lastly, because HAL still reads the plaintext version only and
|
||||
+# has not yet migrated to using a library we leave the plaintext
|
||||
+# version in addition to the gzip version.
|
||||
+# They need to migrate because the pci.ids format will be changing.
|
||||
+if [ ${DEST%.gz} != ${DEST} ] ; then
|
||||
+ gzip -d <${DEST} >${DEST%.gz}
|
||||
+fi
|
||||
+chmod a+r ${DEST} ${DEST%.gz}
|
||||
+
|
||||
${quiet} || echo "Done."
|
@ -0,0 +1,40 @@
|
||||
don't have the install and install-lib targets install the same files
|
||||
otherwise we can hit parallel install failures
|
||||
|
||||
http://bugs.gentoo.org/273489
|
||||
|
||||
patch by Kevin Pyle
|
||||
|
||||
--- Makefile
|
||||
+++ Makefile
|
||||
@@ -90,7 +90,11 @@
|
||||
|
||||
distclean: clean
|
||||
|
||||
-install: all
|
||||
+install-pcilib: lib/$(PCILIB)
|
||||
+ $(DIRINSTALL) -m 755 $(DESTDIR)$(LIBDIR)
|
||||
+ $(INSTALL) -c -m 644 lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
|
||||
+
|
||||
+install: all install-pcilib
|
||||
# -c is ignored on Linux, but required on FreeBSD
|
||||
$(DIRINSTALL) -m 755 $(DESTDIR)$(SBINDIR) $(DESTDIR)$(IDSDIR) $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(MANDIR)/man7
|
||||
$(INSTALL) -c -m 755 $(STRIP) lspci setpci $(DESTDIR)$(SBINDIR)
|
||||
@@ -99,15 +103,12 @@
|
||||
$(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(DESTDIR)$(MANDIR)/man8
|
||||
$(INSTALL) -c -m 644 pcilib.7 $(DESTDIR)$(MANDIR)/man7
|
||||
ifeq ($(SHARED),yes)
|
||||
- $(DIRINSTALL) -m 755 $(DESTDIR)$(LIBDIR)
|
||||
- $(INSTALL) -c -m 644 lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
|
||||
ln -sf $(PCILIB) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so$(ABI_VERSION)
|
||||
endif
|
||||
|
||||
-install-lib: $(PCIINC_INS) lib/$(PCILIB) lib/$(PCILIBPC)
|
||||
- $(DIRINSTALL) -m 755 $(DESTDIR)$(INCDIR)/pci $(DESTDIR)$(LIBDIR) $(DESTDIR)$(PKGCFDIR)
|
||||
+install-lib: $(PCIINC_INS) lib/$(PCILIBPC) install-pcilib
|
||||
+ $(DIRINSTALL) -m 755 $(DESTDIR)$(INCDIR)/pci $(DESTDIR)$(PKGCFDIR)
|
||||
$(INSTALL) -c -m 644 $(PCIINC_INS) $(DESTDIR)$(INCDIR)/pci
|
||||
- $(INSTALL) -c -m 644 lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
|
||||
$(INSTALL) -c -m 644 lib/$(PCILIBPC) $(DESTDIR)$(PKGCFDIR)
|
||||
ifeq ($(SHARED),yes)
|
||||
ln -sf $(LIBNAME).so$(ABI_VERSION) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so
|
2
sdk_container/src/third_party/portage-stable/sys-apps/pciutils/files/pciutils.cron
vendored
Executable file
2
sdk_container/src/third_party/portage-stable/sys-apps/pciutils/files/pciutils.cron
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec /usr/sbin/update-pciids -q
|
69
sdk_container/src/third_party/portage-stable/sys-apps/pciutils/pciutils-3.1.4.ebuild
vendored
Normal file
69
sdk_container/src/third_party/portage-stable/sys-apps/pciutils/pciutils-3.1.4.ebuild
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/pciutils-3.1.4.ebuild,v 1.12 2010/01/30 18:36:57 armin76 Exp $
|
||||
|
||||
inherit eutils multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Various utilities dealing with the PCI bus"
|
||||
HOMEPAGE="http://atrey.karlin.mff.cuni.cz/~mj/pciutils.html"
|
||||
SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
|
||||
IUSE="network-cron zlib"
|
||||
|
||||
DEPEND="zlib? ( sys-libs/zlib )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/${P}-install-lib.patch #273489
|
||||
epatch "${FILESDIR}"/${PN}-2.2.7-update-pciids-both-forms.patch
|
||||
sed -i -e "/^LIBDIR=/s:/lib:/$(get_libdir):" Makefile
|
||||
}
|
||||
|
||||
uyesno() { use $1 && echo yes || echo no ; }
|
||||
pemake() {
|
||||
emake \
|
||||
HOST="${CHOST}" \
|
||||
CROSS_COMPILE="${CHOST}-" \
|
||||
CC="$(tc-getCC)" \
|
||||
DNS="yes" \
|
||||
IDSDIR="/usr/share/misc" \
|
||||
MANDIR="/usr/share/man" \
|
||||
PREFIX="/usr" \
|
||||
SHARED="yes" \
|
||||
STRIP="" \
|
||||
ZLIB=$(uyesno zlib) \
|
||||
"$@"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
pemake OPT="${CFLAGS}" all || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pemake DESTDIR="${D}" install install-lib || die
|
||||
dodoc ChangeLog README TODO
|
||||
|
||||
if use network-cron ; then
|
||||
exeinto /etc/cron.monthly
|
||||
newexe "${FILESDIR}"/pciutils.cron update-pciids \
|
||||
|| die "Failed to install update cronjob"
|
||||
fi
|
||||
|
||||
# Install both forms until HAL has migrated
|
||||
if use zlib ; then
|
||||
local sharedir="${D}/usr/share/misc"
|
||||
elog "Providing a backwards compatibility non-compressed pci.ids"
|
||||
gzip -d <"${sharedir}"/pci.ids.gz >"${sharedir}"/pci.ids
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}"/init.d-pciparm pciparm
|
||||
newconfd "${FILESDIR}"/conf.d-pciparm pciparm
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "The 'pcimodules' program has been replaced by 'lspci -k'"
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/sys-apps/texinfo/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/sys-apps/texinfo/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST texinfo-4.13.tar.lzma 1563777 RMD160 31d68ab41fead86d473ecc1de183fd1629e01560 SHA1 676ec9aa25a97c05dff66fba5225f9e101160063 SHA256 6d28b0ceae866e3536142fc552e7a3bc9f84c8303119c25731b2478eef64c9e5
|
43
sdk_container/src/third_party/portage-stable/sys-apps/texinfo/texinfo-4.13.ebuild
vendored
Normal file
43
sdk_container/src/third_party/portage-stable/sys-apps/texinfo/texinfo-4.13.ebuild
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/texinfo/texinfo-4.13.ebuild,v 1.12 2009/09/08 17:50:31 vapier Exp $
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
DESCRIPTION="The GNU info program and utilities"
|
||||
HOMEPAGE="http://www.gnu.org/software/texinfo/"
|
||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.lzma"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
|
||||
IUSE="nls static"
|
||||
|
||||
RDEPEND="!=app-text/tetex-2*
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
|| ( app-arch/xz-utils app-arch/lzma-utils )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_compile() {
|
||||
use static && append-ldflags -static
|
||||
econf $(use_enable nls) || die
|
||||
|
||||
# Make cross-compiler safe (#196041)
|
||||
if tc-is-cross-compiler; then
|
||||
emake -C tools/gnulib/lib || die "emake -C tools/gnulib/lib"
|
||||
fi
|
||||
|
||||
emake || die "emake"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "install failed"
|
||||
|
||||
dodoc AUTHORS ChangeLog INTRODUCTION NEWS README TODO
|
||||
newdoc info/README README.info
|
||||
newdoc makeinfo/README README.makeinfo
|
||||
|
||||
rm -f "${D}"/usr/lib/charset.alias #195148
|
||||
}
|
1
sdk_container/src/third_party/portage-stable/sys-apps/which/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/sys-apps/which/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST which-2.20.tar.gz 135372 RMD160 f0e8f464b9fe70c0126749d559e98170cdac0b98 SHA1 3bcd6d87aa5231917ba7123319eedcae90cfa0fd SHA256 d417b65c650d88ad26a208293c1c6e3eb60d4b6d847f01ff8f66aca63e2857f8
|
17
sdk_container/src/third_party/portage-stable/sys-apps/which/which-2.20.ebuild
vendored
Normal file
17
sdk_container/src/third_party/portage-stable/sys-apps/which/which-2.20.ebuild
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/which/which-2.20.ebuild,v 1.10 2010/01/07 21:59:48 fauli Exp $
|
||||
|
||||
DESCRIPTION="Prints out location of specified executables that are in your path"
|
||||
HOMEPAGE="http://www.xs4all.nl/~carlo17/which/"
|
||||
SRC_URI="http://www.xs4all.nl/~carlo17/which/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~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"
|
||||
IUSE=""
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}" || die
|
||||
dodoc AUTHORS EXAMPLES NEWS README*
|
||||
}
|
Loading…
Reference in New Issue
Block a user