parent
e323175b8c
commit
70fb36eaa6
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/lz4/lz4-9999.ebuild,v 1.1 2013/08/07 09:46:39 ryao Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit cmake-utils subversion
|
||||
|
||||
DESCRIPTION="Extremely Fast Compression algorithm"
|
||||
HOMEPAGE="https://code.google.com/p/lz4/"
|
||||
SRC_URI=""
|
||||
|
||||
ESVN_REPO_URI="http://lz4.googlecode.com/svn/trunk/"
|
||||
ESVN_PROJECT="lz4-read-only"
|
||||
BUILD_DIR="${S}/cmake"
|
||||
PREFIX="/usr/bin"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
subversion_src_prepare
|
||||
|
||||
mv "${S}/cmake/"* "${S}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if [ -f "${S}/usr/bin/lz4c64" ]
|
||||
then
|
||||
dosym /usr/bin/{lz4c64,lz4c}
|
||||
else
|
||||
dosym /usr/bin/{lz4c32,lz4c}
|
||||
fi
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>ryao@gentoo.org</email>
|
||||
<name>Richard Yao</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/xz-utils/xz-utils-5.0.5-r1.ebuild,v 1.2 2013/08/07 22:47:41 mgorny Exp $
|
||||
|
||||
# Remember: we cannot leverage autotools in this ebuild in order
|
||||
# to avoid circular deps with autotools
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils multilib toolchain-funcs libtool multilib-minimal
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="http://git.tukaani.org/xz.git"
|
||||
inherit git-2 autotools
|
||||
SRC_URI=""
|
||||
EXTRA_DEPEND="sys-devel/gettext dev-vcs/cvs >=sys-devel/libtool-2" #272880 286068
|
||||
else
|
||||
MY_P="${PN/-utils}-${PV/_}"
|
||||
SRC_URI="http://tukaani.org/xz/${MY_P}.tar.gz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
EXTRA_DEPEND=
|
||||
fi
|
||||
|
||||
DESCRIPTION="utils for managing LZMA compressed files"
|
||||
HOMEPAGE="http://tukaani.org/xz/"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE="nls static-libs +threads"
|
||||
|
||||
RDEPEND="!<app-arch/lzma-4.63
|
||||
!app-arch/lzma-utils
|
||||
!<app-arch/p7zip-4.57"
|
||||
DEPEND="${RDEPEND}
|
||||
${EXTRA_DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
eautopoint
|
||||
eautoreconf
|
||||
else
|
||||
elibtoolize # to allow building shared libs on Solaris/x64
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
$(use_enable nls) \
|
||||
$(use_enable threads) \
|
||||
$(use_enable static-libs static) \
|
||||
$(multilib_is_native_abi || echo --disable-{xz,xzdec,lzmadec,lzmainfo,lzma-links,scripts})
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
default
|
||||
multilib_is_native_abi && gen_usr_ldscript -a lzma
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files --all
|
||||
rm "${ED}"/usr/share/doc/xz/COPYING* || die
|
||||
mv "${ED}"/usr/share/doc/{xz,${PF}} || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserve_old_lib /usr/$(get_libdir)/liblzma$(get_libname 0)
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
preserve_old_lib_notify /usr/$(get_libdir)/liblzma$(get_libname 0)
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST laptop-mode-tools_1.60.tar.gz 104415 SHA256 39246db1bba2ea12c7ee6f1979f914a803a9f70836cde687ff9c3a39bc9c9519 SHA512 79596bb24b2af8bbeb3424eeff51022bb381609325a0eb5c009e0970dffe055d2493509d56a4e2c8f745c27f03bc176372d9b27e3a0a050f7bc1c58f86aae5c9 WHIRLPOOL 819cd4ad40c9e2a74bc07f70986c985b4128828ed508d808097472ee301ca788567b65d86717552a8191b378d595cb41b922a9e2f5a2fbcacf645acfe607d0ec
|
||||
DIST laptop-mode-tools_1.62.tar.gz 105941 SHA256 d40b3d2fb4dc120b4a427ef7dbddc9dd4d9ea0c475685538d36d3457b39158cd SHA512 3ba2a8db860349c5766f5282ca6f70f3bb780cb44e8674beb7e9c5783e96fc07a144245cc50414fef61b1cd6e08a2096667806792c2853cbcc9c83eb7d796b1a WHIRLPOOL 232115a3a6599241892abcc3f64db8bfa1c897bebbc22c198ce58bcb6bb3dd99aa3fb143c07f69fd6e6099b76da9c494423def0c86c8eeb3b610f9f3e51c0505
|
||||
DIST laptop-mode-tools_1.63.tar.gz 107339 SHA256 04b9bf8cce4172a810ce4026e75e0e7bfd0e05e456bbf3f13b8e9b4178d2c65b SHA512 41e48483883556541e3c5882cff2b029395d1814902d979b36e3db66385dcb22821d99ab2d0720b24b48c23afe02c94692d6222afd268a38063a1bb2bfe4c87a WHIRLPOOL 4d2b26fbe66cfa706ad660800936f2d795e493234b9154e3267db81bd476e5cb0b2f9c528d0df895238ea1ce618e2a3d87739ec5ae5dec367a787feb9dcedf79
|
||||
|
@ -1,25 +0,0 @@
|
||||
From 75cb1897a9eabd6acf280cade2ecffb1554380db Mon Sep 17 00:00:00 2001
|
||||
From: Ritesh Raj Sarraf <rrs@researchut.com>
|
||||
Date: Mon, 5 Nov 2012 04:07:26 +0530
|
||||
Subject: [PATCH 01/20] Do not ship the board-specific/ folder in default
|
||||
installs
|
||||
|
||||
---
|
||||
install.sh | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/install.sh b/install.sh
|
||||
index 322e784..536a63a 100755
|
||||
--- a/install.sh
|
||||
+++ b/install.sh
|
||||
@@ -112,7 +112,6 @@ $INSTALL -d -m 755 "$DESTDIR/usr/share/laptop-mode-tools/modules"
|
||||
$INSTALL -d -m 755 "$DESTDIR/usr/share/laptop-mode-tools/module-helpers"
|
||||
$INSTALL -d -m 755 "$DESTDIR/usr/lib/tmpfiles.d"
|
||||
$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/conf.d"
|
||||
-$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/conf.d/board-specific"
|
||||
$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/modules"
|
||||
$INSTALL -d -m 755 "$DESTDIR/usr/sbin"
|
||||
$INSTALL -d -m 755 "$DESTDIR/lib/udev"
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,72 +0,0 @@
|
||||
From 58ae05221b12192e48fb4801b6b93c88797985ea Mon Sep 17 00:00:00 2001
|
||||
From: Ritesh Raj Sarraf <rrs@debian.org>
|
||||
Date: Sun, 10 Mar 2013 13:43:19 +0530
|
||||
Subject: [PATCH 04/20] add $LIB_D so it can give the possibility to install
|
||||
udev/system files in different location
|
||||
|
||||
Thanks: Robert Milasan
|
||||
---
|
||||
etc/rules/99-laptop-mode.rules | 6 +++---
|
||||
install.sh | 15 +++++++++------
|
||||
2 files changed, 12 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/etc/rules/99-laptop-mode.rules b/etc/rules/99-laptop-mode.rules
|
||||
index c0b4761..96d5d68 100644
|
||||
--- a/etc/rules/99-laptop-mode.rules
|
||||
+++ b/etc/rules/99-laptop-mode.rules
|
||||
@@ -1,3 +1,3 @@
|
||||
-ACTION=="change", SUBSYSTEM=="power_supply", RUN+="/lib/udev/lmt-udev auto"
|
||||
-ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="/lib/udev/lmt-udev auto"
|
||||
-ACTION=="add", SUBSYSTEM=="usb", RUN+="/lib/udev/lmt-udev force modules=usb-autosuspend devices=%k"
|
||||
+ACTION=="change", SUBSYSTEM=="power_supply", RUN+="@LIB_D@/udev/lmt-udev auto"
|
||||
+ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="@LIB_D@/udev/lmt-udev auto"
|
||||
+ACTION=="add", SUBSYSTEM=="usb", RUN+="@LIB_D@/udev/lmt-udev force modules=usb-autosuspend devices=%k"
|
||||
diff --git a/install.sh b/install.sh
|
||||
index 536a63a..cde2a0a 100755
|
||||
--- a/install.sh
|
||||
+++ b/install.sh
|
||||
@@ -28,6 +28,7 @@
|
||||
#
|
||||
|
||||
[ -z "$MAN_D" ] && MAN_D="/usr/man"
|
||||
+[ -z "$LIB_D" ] && LIB_D="/lib"
|
||||
|
||||
if [ -z "$ACPI" ] ; then
|
||||
ACPI=auto
|
||||
@@ -114,8 +115,8 @@ $INSTALL -d -m 755 "$DESTDIR/usr/lib/tmpfiles.d"
|
||||
$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/conf.d"
|
||||
$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/modules"
|
||||
$INSTALL -d -m 755 "$DESTDIR/usr/sbin"
|
||||
-$INSTALL -d -m 755 "$DESTDIR/lib/udev"
|
||||
-$INSTALL -d -m 755 "$DESTDIR/lib/systemd/system"
|
||||
+$INSTALL -d -m 755 "$DESTDIR/$LIB_D/udev"
|
||||
+$INSTALL -d -m 755 "$DESTDIR/$LIB_D/systemd/system"
|
||||
$INSTALL -d -m 755 "$DESTDIR/$MAN_D/man8"
|
||||
|
||||
ALREADY_EXISTED=0
|
||||
@@ -200,16 +201,18 @@ fi
|
||||
if ( ! $INSTALL -D -m 644 etc/rules/99-laptop-mode.rules "$DESTDIR/etc/udev/rules.d/99-laptop-mode.rules" ) ; then
|
||||
echo "$0: Failed to install udev rule into /etc/udev/rules.d/ Installation failed."
|
||||
exit 23
|
||||
+else
|
||||
+ sed -i -e "s|@LIB_D@|$LIB_D|g" $DESTDIR/etc/udev/rules.d/99-laptop-mode.rules >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
# udev helper tool
|
||||
-if ( ! $INSTALL -D -m 755 etc/rules/lmt-udev "$DESTDIR/lib/udev/lmt-udev" ) ; then
|
||||
- echo "$0: Failed to install udev helper tool into /lib/udev/ Installation failed."
|
||||
+if ( ! $INSTALL -D -m 755 etc/rules/lmt-udev "$DESTDIR/$LIB_D/udev/lmt-udev" ) ; then
|
||||
+ echo "$0: Failed to install udev helper tool into $LIB_D/udev Installation failed."
|
||||
fi
|
||||
|
||||
# systemd service
|
||||
-if ( ! $INSTALL -D -m 644 etc/systemd/laptop-mode.service "$DESTDIR/lib/systemd/system/laptop-mode.service" ) ; then
|
||||
- echo "$0: Failed to install systemd service into /lib/systemd/system/ Installation failed."
|
||||
+if ( ! $INSTALL -D -m 644 etc/systemd/laptop-mode.service "$DESTDIR/$LIB_D/systemd/system/laptop-mode.service" ) ; then
|
||||
+ echo "$0: Failed to install systemd service into $LIB_D/systemd/system/ Installation failed."
|
||||
fi
|
||||
|
||||
# and systemd's tmpfiles.d
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,50 +0,0 @@
|
||||
From fedcb181446734d5bf22e878fcde0d60e9edbcc8 Mon Sep 17 00:00:00 2001
|
||||
From: Ritesh Raj Sarraf <rrs@debian.org>
|
||||
Date: Sun, 10 Mar 2013 16:29:16 +0530
|
||||
Subject: [PATCH 08/20] Re-order the check because HAL is deprecated
|
||||
|
||||
And for backward compatibility, still have the HAL check with the fix.
|
||||
|
||||
Thanks: Pacho Ramos
|
||||
---
|
||||
usr/sbin/laptop_mode | 20 ++++++++++----------
|
||||
1 file changed, 10 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/usr/sbin/laptop_mode b/usr/sbin/laptop_mode
|
||||
index 35b3b08..6ef1e41 100755
|
||||
--- a/usr/sbin/laptop_mode
|
||||
+++ b/usr/sbin/laptop_mode
|
||||
@@ -670,20 +670,20 @@ lmt_main_function ()
|
||||
fi
|
||||
|
||||
if [ "$ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED" -ne 0 -a "$ACTIVATE" -eq 0 ] ; then
|
||||
- if [ -x "`which hal-find-by-property`" ] ; then
|
||||
- HAL_LID_BUTTON=$(hal-find-by-property --key "button.type" --string "lid")
|
||||
- fi
|
||||
- if [ "$HAL_LID_BUTTON" != "" ] ; then
|
||||
- HAL_LID_BUTTON_STATE=$(hal-get-property --udi $(hal-find-by-property --key "button.type" --string "lid") --key "button.state.value")
|
||||
- if [ "$HAL_LID_BUTTON_STATE" = "true" ] ; then
|
||||
- log "VERBOSE" "Setting action to \"start\" because the lid is closed (says HAL)."
|
||||
- ACTIVATE=1
|
||||
- fi
|
||||
- elif [ -f /proc/acpi/button/lid/*/state ] ; then
|
||||
+ if [ -f /proc/acpi/button/lid/*/state ] ; then
|
||||
if ( grep -q "closed" /proc/acpi/button/lid/*/state ) ; then
|
||||
log "VERBOSE" 'Setting action to "start" because the lid is closed (says /proc/acpi/button/lid/*/state).'
|
||||
ACTIVATE=1
|
||||
fi
|
||||
+ elif ( which hal-find-by-property >/dev/null ) ; then
|
||||
+ HAL_LID_BUTTON=$($HAL_FIND_BY_PROPERTY --key "button.type" --string "lid")
|
||||
+ if [ "$HAL_LID_BUTTON" != "" ] ; then
|
||||
+ HAL_LID_BUTTON_STATE=$(hal-get-property --udi $(hal-find-by-property --key "button.type" --string "lid") --key "button.state.value")
|
||||
+ if [ "$HAL_LID_BUTTON_STATE" = "true" ] ; then
|
||||
+ log "VERBOSE" "Setting action to \"start\" because the lid is closed (says HAL)."
|
||||
+ ACTIVATE=1
|
||||
+ fi
|
||||
+ fi
|
||||
else
|
||||
log "MSG" "Warning: ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED is set, but there is no file"
|
||||
log "MSG" "/proc/acpi/button/lid/.../state, and hal information is not available either!"
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,22 +0,0 @@
|
||||
From 5ffc55928bd482872fbf6b7ffc67b4cd173f400b Mon Sep 17 00:00:00 2001
|
||||
From: Ritesh Raj Sarraf <rrs@debian.org>
|
||||
Date: Sat, 16 Mar 2013 16:04:00 +0530
|
||||
Subject: [PATCH 14/20] Kick the power savings back in, as soon as the stick is
|
||||
unplugged
|
||||
|
||||
---
|
||||
etc/rules/99-laptop-mode.rules | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/etc/rules/99-laptop-mode.rules b/etc/rules/99-laptop-mode.rules
|
||||
index 96d5d68..8ff8218 100644
|
||||
--- a/etc/rules/99-laptop-mode.rules
|
||||
+++ b/etc/rules/99-laptop-mode.rules
|
||||
@@ -1,3 +1,3 @@
|
||||
ACTION=="change", SUBSYSTEM=="power_supply", RUN+="@LIB_D@/udev/lmt-udev auto"
|
||||
ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="@LIB_D@/udev/lmt-udev auto"
|
||||
-ACTION=="add", SUBSYSTEM=="usb", RUN+="@LIB_D@/udev/lmt-udev force modules=usb-autosuspend devices=%k"
|
||||
+ACTION=="add|remove", SUBSYSTEM=="usb", RUN+="@LIB_D@/udev/lmt-udev force modules=usb-autosuspend devices=%k"
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,28 +0,0 @@
|
||||
From a5f59bfeed1d486a81bebc85171210909d2c981f Mon Sep 17 00:00:00 2001
|
||||
From: Ritesh Raj Sarraf <rrs@debian.org>
|
||||
Date: Sat, 16 Mar 2013 16:10:36 +0530
|
||||
Subject: [PATCH 15/20] Don't hardcode the path
|
||||
|
||||
There's no need to hardcode the path. From my tests, it shows that udev
|
||||
does a lookup in /lib/udev/ anyways.
|
||||
|
||||
This will also help in cases where udev/systemd stores rules in
|
||||
/usr/lib/
|
||||
---
|
||||
etc/rules/99-laptop-mode.rules | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/etc/rules/99-laptop-mode.rules b/etc/rules/99-laptop-mode.rules
|
||||
index 8ff8218..0565644 100644
|
||||
--- a/etc/rules/99-laptop-mode.rules
|
||||
+++ b/etc/rules/99-laptop-mode.rules
|
||||
@@ -1,3 +1,3 @@
|
||||
-ACTION=="change", SUBSYSTEM=="power_supply", RUN+="@LIB_D@/udev/lmt-udev auto"
|
||||
-ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="@LIB_D@/udev/lmt-udev auto"
|
||||
-ACTION=="add|remove", SUBSYSTEM=="usb", RUN+="@LIB_D@/udev/lmt-udev force modules=usb-autosuspend devices=%k"
|
||||
+ACTION=="change", SUBSYSTEM=="power_supply", RUN+="lmt-udev auto"
|
||||
+ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="lmt-udev auto"
|
||||
+ACTION=="add|remove", SUBSYSTEM=="usb", RUN+="lmt-udev force modules=usb-autosuspend devices=%k"
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,25 +0,0 @@
|
||||
From 7bde97466a824bdec0f2f4bc545e9790eac62e41 Mon Sep 17 00:00:00 2001
|
||||
From: Ritesh Raj Sarraf <rrs@debian.org>
|
||||
Date: Sat, 16 Mar 2013 16:35:19 +0530
|
||||
Subject: [PATCH 16/20] show the errors, if any
|
||||
|
||||
---
|
||||
install.sh | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/install.sh b/install.sh
|
||||
index cde2a0a..b36c8ca 100755
|
||||
--- a/install.sh
|
||||
+++ b/install.sh
|
||||
@@ -202,7 +202,7 @@ if ( ! $INSTALL -D -m 644 etc/rules/99-laptop-mode.rules "$DESTDIR/etc/udev/rule
|
||||
echo "$0: Failed to install udev rule into /etc/udev/rules.d/ Installation failed."
|
||||
exit 23
|
||||
else
|
||||
- sed -i -e "s|@LIB_D@|$LIB_D|g" $DESTDIR/etc/udev/rules.d/99-laptop-mode.rules >/dev/null 2>&1
|
||||
+ sed -i -e "s|@LIB_D@|$LIB_D|g" $DESTDIR/etc/udev/rules.d/99-laptop-mode.rules
|
||||
fi
|
||||
|
||||
# udev helper tool
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,36 +0,0 @@
|
||||
From 8c0db5f5fa48ca3580bc3f7fe9fdea346857c20e Mon Sep 17 00:00:00 2001
|
||||
From: Ritesh Raj Sarraf <rrs@debian.org>
|
||||
Date: Sat, 16 Mar 2013 17:00:27 +0530
|
||||
Subject: [PATCH 17/20] Initialize variables early, before being referenced
|
||||
|
||||
---
|
||||
usr/sbin/laptop_mode | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/usr/sbin/laptop_mode b/usr/sbin/laptop_mode
|
||||
index bc1d02a..48e6ad4 100755
|
||||
--- a/usr/sbin/laptop_mode
|
||||
+++ b/usr/sbin/laptop_mode
|
||||
@@ -508,6 +508,9 @@ lmt_load_config ()
|
||||
fi
|
||||
|
||||
|
||||
+ INIT=0 # Display info in init script format?
|
||||
+ FORCE=0 # Force reapplying the current state?
|
||||
+ INITSCRIPT_STOP=0 # Track stop command from init script. Consumer is lm-polling daemon
|
||||
|
||||
# Evaluate options passed to laptop_mode in here
|
||||
if [ "$1" = "status" ] ; then
|
||||
@@ -599,9 +602,6 @@ lmt_load_config ()
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- INIT=0 # Display info in init script format?
|
||||
- FORCE=0 # Force reapplying the current state?
|
||||
- INITSCRIPT_STOP=0 # Track stop command from init script. Consumer is lm-polling daemon
|
||||
while [ "$1" != "" ] ; do
|
||||
case "$1" in
|
||||
init) INIT=1 ;;
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,26 +0,0 @@
|
||||
From 7fb36a367d5faa935b31b2191e7255149c8a9823 Mon Sep 17 00:00:00 2001
|
||||
From: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
Date: Sat, 16 Mar 2013 23:42:21 +0200
|
||||
Subject: [PATCH 18/20] install: remove unused substitute for udev rule
|
||||
|
||||
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
---
|
||||
install.sh | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/install.sh b/install.sh
|
||||
index b36c8ca..900a596 100755
|
||||
--- a/install.sh
|
||||
+++ b/install.sh
|
||||
@@ -201,8 +201,6 @@ fi
|
||||
if ( ! $INSTALL -D -m 644 etc/rules/99-laptop-mode.rules "$DESTDIR/etc/udev/rules.d/99-laptop-mode.rules" ) ; then
|
||||
echo "$0: Failed to install udev rule into /etc/udev/rules.d/ Installation failed."
|
||||
exit 23
|
||||
-else
|
||||
- sed -i -e "s|@LIB_D@|$LIB_D|g" $DESTDIR/etc/udev/rules.d/99-laptop-mode.rules
|
||||
fi
|
||||
|
||||
# udev helper tool
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,53 +0,0 @@
|
||||
From 2113b1d1919a08fb1f8877e909a9b28c631bb138 Mon Sep 17 00:00:00 2001
|
||||
From: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
Date: Sat, 16 Mar 2013 23:40:56 +0200
|
||||
Subject: [PATCH 19/20] install: use customizable udev directory
|
||||
|
||||
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
---
|
||||
install.sh | 11 ++++++-----
|
||||
1 file changed, 6 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/install.sh b/install.sh
|
||||
index 900a596..85a7cd4 100755
|
||||
--- a/install.sh
|
||||
+++ b/install.sh
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
[ -z "$MAN_D" ] && MAN_D="/usr/man"
|
||||
[ -z "$LIB_D" ] && LIB_D="/lib"
|
||||
+[ -z "$UDEV_D" ] && UDEV_D="$LIB_D/udev"
|
||||
|
||||
if [ -z "$ACPI" ] ; then
|
||||
ACPI=auto
|
||||
@@ -115,7 +116,7 @@ $INSTALL -d -m 755 "$DESTDIR/usr/lib/tmpfiles.d"
|
||||
$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/conf.d"
|
||||
$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/modules"
|
||||
$INSTALL -d -m 755 "$DESTDIR/usr/sbin"
|
||||
-$INSTALL -d -m 755 "$DESTDIR/$LIB_D/udev"
|
||||
+$INSTALL -d -m 755 "$DESTDIR/$UDEV_D/rules.d"
|
||||
$INSTALL -d -m 755 "$DESTDIR/$LIB_D/systemd/system"
|
||||
$INSTALL -d -m 755 "$DESTDIR/$MAN_D/man8"
|
||||
|
||||
@@ -198,14 +199,14 @@ if [ -f "$DESTDIR/usr/lib/pm-utils/sleep.d/99laptop-mode" ]; then
|
||||
fi
|
||||
|
||||
# udev rule
|
||||
-if ( ! $INSTALL -D -m 644 etc/rules/99-laptop-mode.rules "$DESTDIR/etc/udev/rules.d/99-laptop-mode.rules" ) ; then
|
||||
- echo "$0: Failed to install udev rule into /etc/udev/rules.d/ Installation failed."
|
||||
+if ( ! $INSTALL -D -m 644 etc/rules/99-laptop-mode.rules "$DESTDIR/$UDEV_D/rules.d/99-laptop-mode.rules" ) ; then
|
||||
+ echo "$0: Failed to install udev rule into $UDEV_D/rules.d/ Installation failed."
|
||||
exit 23
|
||||
fi
|
||||
|
||||
# udev helper tool
|
||||
-if ( ! $INSTALL -D -m 755 etc/rules/lmt-udev "$DESTDIR/$LIB_D/udev/lmt-udev" ) ; then
|
||||
- echo "$0: Failed to install udev helper tool into $LIB_D/udev Installation failed."
|
||||
+if ( ! $INSTALL -D -m 755 etc/rules/lmt-udev "$DESTDIR/$UDEV_D/lmt-udev" ) ; then
|
||||
+ echo "$0: Failed to install udev helper tool into $UDEV_D Installation failed."
|
||||
fi
|
||||
|
||||
# systemd service
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,68 +0,0 @@
|
||||
From 523a3fdbf3d7bd897b0fe55fb6da50758eb83b7e Mon Sep 17 00:00:00 2001
|
||||
From: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
Date: Sun, 17 Mar 2013 00:09:50 +0200
|
||||
Subject: [PATCH 20/20] install: make systemd optional and configurable
|
||||
locations
|
||||
|
||||
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
---
|
||||
install.sh | 24 +++++++++++++++---------
|
||||
1 file changed, 15 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/install.sh b/install.sh
|
||||
index 85a7cd4..ed019f7 100755
|
||||
--- a/install.sh
|
||||
+++ b/install.sh
|
||||
@@ -30,6 +30,9 @@
|
||||
[ -z "$MAN_D" ] && MAN_D="/usr/man"
|
||||
[ -z "$LIB_D" ] && LIB_D="/lib"
|
||||
[ -z "$UDEV_D" ] && UDEV_D="$LIB_D/udev"
|
||||
+[ -z "$SYSTEMD" ] && SYSTEMD="yes"
|
||||
+[ -z "$SYSTEMD_UNIT_D" ] && SYSTEMD_UNIT_D="$LIB_D/systemd/system"
|
||||
+[ -z "$TMPFILES_D" ] && TMPFILES_D="$LIB_D/tmpfiles.d"
|
||||
|
||||
if [ -z "$ACPI" ] ; then
|
||||
ACPI=auto
|
||||
@@ -112,12 +115,10 @@ $INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/nolm-ac-start"
|
||||
$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/nolm-ac-stop"
|
||||
$INSTALL -d -m 755 "$DESTDIR/usr/share/laptop-mode-tools/modules"
|
||||
$INSTALL -d -m 755 "$DESTDIR/usr/share/laptop-mode-tools/module-helpers"
|
||||
-$INSTALL -d -m 755 "$DESTDIR/usr/lib/tmpfiles.d"
|
||||
$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/conf.d"
|
||||
$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/modules"
|
||||
$INSTALL -d -m 755 "$DESTDIR/usr/sbin"
|
||||
$INSTALL -d -m 755 "$DESTDIR/$UDEV_D/rules.d"
|
||||
-$INSTALL -d -m 755 "$DESTDIR/$LIB_D/systemd/system"
|
||||
$INSTALL -d -m 755 "$DESTDIR/$MAN_D/man8"
|
||||
|
||||
ALREADY_EXISTED=0
|
||||
@@ -209,14 +210,19 @@ if ( ! $INSTALL -D -m 755 etc/rules/lmt-udev "$DESTDIR/$UDEV_D/lmt-udev" ) ; the
|
||||
echo "$0: Failed to install udev helper tool into $UDEV_D Installation failed."
|
||||
fi
|
||||
|
||||
-# systemd service
|
||||
-if ( ! $INSTALL -D -m 644 etc/systemd/laptop-mode.service "$DESTDIR/$LIB_D/systemd/system/laptop-mode.service" ) ; then
|
||||
- echo "$0: Failed to install systemd service into $LIB_D/systemd/system/ Installation failed."
|
||||
-fi
|
||||
+if [ "${SYSTEMD}" = "yes" ]; then
|
||||
+ $INSTALL -d -m 755 "$DESTDIR/$SYSTEMD_UNIT_D"
|
||||
+ $INSTALL -d -m 755 "$DESTDIR/$TMPFILES_D"
|
||||
+
|
||||
+ # systemd service
|
||||
+ if ( ! $INSTALL -D -m 644 etc/systemd/laptop-mode.service "$DESTDIR/$SYSTEMD_UNIT_D/laptop-mode.service" ) ; then
|
||||
+ echo "$0: Failed to install systemd service into $SYSTEMD_UNIT_D Installation failed."
|
||||
+ fi
|
||||
|
||||
-# and systemd's tmpfiles.d
|
||||
-if ( ! $INSTALL -D -m 644 etc/systemd/laptop-mode.conf.tmpfiles "$DESTDIR/usr/lib/tmpfiles.d/laptop-mode.conf" ) ; then
|
||||
- echo "$0: Failed to install systemd tmpfiles into /usr/lib/tmpfiles.d/ Installation failed."
|
||||
+ # and systemd's tmpfiles.d
|
||||
+ if ( ! $INSTALL -D -m 644 etc/systemd/laptop-mode.conf.tmpfiles "$DESTDIR/${TMPFILES_D}/laptop-mode.conf" ) ; then
|
||||
+ echo "$0: Failed to install systemd tmpfiles into ${TMPFILES_D} Installation failed."
|
||||
+ fi
|
||||
fi
|
||||
|
||||
ACPI_DONE=0
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,28 +0,0 @@
|
||||
--- usr/sbin/laptop_mode.orig 2013-01-02 22:07:03.879859499 +0100
|
||||
+++ usr/sbin/laptop_mode 2013-01-02 22:08:31.740888273 +0100
|
||||
@@ -670,23 +670,14 @@
|
||||
fi
|
||||
|
||||
if [ "$ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED" -ne 0 -a "$ACTIVATE" -eq 0 ] ; then
|
||||
- if [ -x "`which hal-find-by-property`" ] ; then
|
||||
- HAL_LID_BUTTON=$(hal-find-by-property --key "button.type" --string "lid")
|
||||
- fi
|
||||
- if [ "$HAL_LID_BUTTON" != "" ] ; then
|
||||
- HAL_LID_BUTTON_STATE=$(hal-get-property --udi $(hal-find-by-property --key "button.type" --string "lid") --key "button.state.value")
|
||||
- if [ "$HAL_LID_BUTTON_STATE" = "true" ] ; then
|
||||
- log "VERBOSE" "Setting action to \"start\" because the lid is closed (says HAL)."
|
||||
- ACTIVATE=1
|
||||
- fi
|
||||
- elif [ -f /proc/acpi/button/lid/*/state ] ; then
|
||||
+ if [ -f /proc/acpi/button/lid/*/state ] ; then
|
||||
if ( grep -q "closed" /proc/acpi/button/lid/*/state ) ; then
|
||||
log "VERBOSE" 'Setting action to "start" because the lid is closed (says /proc/acpi/button/lid/*/state).'
|
||||
ACTIVATE=1
|
||||
fi
|
||||
else
|
||||
log "MSG" "Warning: ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED is set, but there is no file"
|
||||
- log "MSG" "/proc/acpi/button/lid/.../state, and hal information is not available either!"
|
||||
+ log "MSG" "/proc/acpi/button/lid/.../state"
|
||||
fi
|
||||
fi
|
||||
|
@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.60-r1.ebuild,v 1.6 2012/06/14 14:28:42 xmw Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MY_P=${PN}_${PV}
|
||||
|
||||
DESCRIPTION="Linux kernel laptop_mode user-space utilities"
|
||||
HOMEPAGE="http://www.samwel.tk/laptop_mode/"
|
||||
SRC_URI="http://www.samwel.tk/laptop_mode/tools/downloads/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE="acpi apm bluetooth scsi"
|
||||
|
||||
RDEPEND="net-wireless/wireless-tools
|
||||
sys-apps/ethtool
|
||||
sys-apps/hdparm
|
||||
acpi? ( sys-power/acpid )
|
||||
apm? ( sys-apps/apmd )
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
scsi? ( sys-apps/sdparm )"
|
||||
DEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
# Install 99-laptop-mode.rules to rules.d directory in /lib instead of /etc
|
||||
sed -i -e '/udev/s:/etc:/lib:' install.sh || die
|
||||
|
||||
# This should avoid conflict with pm-powersave wrt #327443 and #396703
|
||||
cat <<-EOF > "${T}"/${PN}
|
||||
HOOK_BLACKLIST="00powersave"
|
||||
EOF
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
DESTDIR="${D}" \
|
||||
INIT_D="none" \
|
||||
MAN_D="/usr/share/man" \
|
||||
ACPI="$(use acpi && echo force || echo disabled)" \
|
||||
PMU="$(false && echo force || echo disabled)" \
|
||||
APM="$(use apm && echo force || echo disabled)" \
|
||||
./install.sh || die
|
||||
|
||||
dodoc Documentation/*.txt README
|
||||
newinitd "${FILESDIR}"/laptop_mode.init-1.4 laptop_mode
|
||||
|
||||
# See src_prepare()
|
||||
insinto /etc/pm/config.d
|
||||
doins "${T}"/${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use acpi || use apm; then
|
||||
if use acpi; then
|
||||
daemon_name="acpid"
|
||||
elif use apm; then
|
||||
deamon_name="apmd"
|
||||
fi
|
||||
ewarn
|
||||
ewarn "To enable automatic power state event handling,"
|
||||
ewarn "e.g. enabling laptop_mode after unplugging the battery,"
|
||||
ewarn "both laptop_mode and the ${daemon_name} daemon"
|
||||
ewarn "must be added to a runlevel,"
|
||||
ewarn " rc-update add laptop_mode default"
|
||||
ewarn " rc-update add ${daemon_name} default"
|
||||
ewarn
|
||||
else
|
||||
ewarn
|
||||
ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not"
|
||||
ewarn "automatically disable laptop_mode on low battery."
|
||||
ewarn
|
||||
ewarn "This means you can lose up to 10 minutes of work if running"
|
||||
ewarn "out of battery while laptop_mode is enabled."
|
||||
ewarn
|
||||
ewarn "Please see laptop-mode.txt in /usr/share/doc/${PF} for further"
|
||||
ewarn "information."
|
||||
ewarn
|
||||
fi
|
||||
}
|
@ -1,95 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.62-r1.ebuild,v 1.2 2013/01/11 17:02:19 alonbl Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils systemd udev
|
||||
|
||||
MY_P=${PN}_${PV}
|
||||
|
||||
DESCRIPTION="Linux kernel laptop_mode user-space utilities"
|
||||
HOMEPAGE="http://www.samwel.tk/laptop_mode/"
|
||||
SRC_URI="http://www.samwel.tk/laptop_mode/tools/downloads/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="+acpi apm bluetooth scsi"
|
||||
|
||||
RDEPEND="net-wireless/wireless-tools
|
||||
sys-apps/ethtool
|
||||
sys-apps/hdparm
|
||||
acpi? ( sys-power/acpid )
|
||||
apm? ( sys-apps/apmd )
|
||||
bluetooth? ( net-wireless/bluez:= )
|
||||
scsi? ( sys-apps/sdparm )"
|
||||
DEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
# Install 99-laptop-mode.rules to rules.d directory in /usr/lib instead of /etc
|
||||
sed -i -e '/udev/s:/etc/udev:'$(udev_get_udevdir)':' install.sh || die
|
||||
|
||||
# This should avoid conflict with pm-powersave wrt #327443 and #396703
|
||||
cat <<-EOF > "${T}"/${PN}
|
||||
HOOK_BLACKLIST="00powersave"
|
||||
EOF
|
||||
|
||||
# Install systemd files in proper place
|
||||
sed -i -e "s:/lib/systemd/system:$(systemd_get_unitdir):" install.sh || die
|
||||
|
||||
# Remove HAL references, bug #345723
|
||||
epatch "${FILESDIR}/${P}-remove-hal.patch"
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
DESTDIR="${D}" \
|
||||
INIT_D="none" \
|
||||
MAN_D="/usr/share/man" \
|
||||
ACPI="$(use acpi && echo force || echo disabled)" \
|
||||
PMU="$(false && echo force || echo disabled)" \
|
||||
APM="$(use apm && echo force || echo disabled)" \
|
||||
./install.sh || die
|
||||
|
||||
dodoc Documentation/*.txt README
|
||||
newinitd "${FILESDIR}"/laptop_mode.init-1.4 laptop_mode
|
||||
|
||||
# See src_prepare()
|
||||
insinto /etc/pm/config.d
|
||||
doins "${T}"/${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use acpi || use apm; then
|
||||
if use acpi; then
|
||||
daemon_name="acpid"
|
||||
elif use apm; then
|
||||
deamon_name="apmd"
|
||||
fi
|
||||
if [ "$(rc-config list default | grep laptop_mode)" = "" ] || [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then
|
||||
ewarn "To enable automatic power state event handling,"
|
||||
ewarn "e.g. enabling laptop_mode after unplugging the battery,"
|
||||
ewarn "both laptop_mode and the ${daemon_name} daemon must be"
|
||||
ewarn "added to default runlevel:"
|
||||
if [ "$(rc-config list default | grep laptop_mode)" = "" ]; then
|
||||
ewarn "# rc-update add laptop_mode default"
|
||||
fi
|
||||
if [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then
|
||||
ewarn "# rc-update add ${daemon_name} default"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not"
|
||||
ewarn "automatically disable laptop_mode on low battery."
|
||||
ewarn
|
||||
ewarn "This means you can lose up to 10 minutes of work if running"
|
||||
ewarn "out of battery while laptop_mode is enabled."
|
||||
ewarn
|
||||
ewarn "Please see laptop-mode.txt in /usr/share/doc/${PF} for further"
|
||||
ewarn "information."
|
||||
ewarn
|
||||
fi
|
||||
}
|
@ -1,93 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.62-r2.ebuild,v 1.2 2013/04/12 06:22:54 lxnay Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils multilib systemd udev
|
||||
|
||||
MY_P=${PN}_${PV}
|
||||
|
||||
DESCRIPTION="Linux kernel laptop_mode user-space utilities"
|
||||
HOMEPAGE="http://www.samwel.tk/laptop_mode/"
|
||||
SRC_URI="http://www.samwel.tk/laptop_mode/tools/downloads/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="+acpi apm bluetooth scsi"
|
||||
|
||||
RDEPEND="net-wireless/wireless-tools
|
||||
sys-apps/ethtool
|
||||
sys-apps/hdparm
|
||||
acpi? ( sys-power/acpid )
|
||||
apm? ( sys-apps/apmd )
|
||||
bluetooth? ( net-wireless/bluez:= )
|
||||
scsi? ( sys-apps/sdparm )"
|
||||
DEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
# This should avoid conflict with pm-powersave wrt #327443 and #396703
|
||||
cat <<-EOF > "${T}"/${PN}
|
||||
HOOK_BLACKLIST="00powersave"
|
||||
EOF
|
||||
|
||||
epatch "${FILESDIR}/${PV}"/*.patch
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
DESTDIR="${D}" \
|
||||
INIT_D="none" \
|
||||
MAN_D="/usr/share/man" \
|
||||
LIB_D="/usr/$(get_libdir)" \
|
||||
UDEV_D="$(udev_get_udevdir)" \
|
||||
SYSTEMD_UNIT_D="$(systemd_get_unitdir)" \
|
||||
TMPFILES_D="/usr/$(get_libdir)/tmpfiles.d" \
|
||||
ACPI="$(use acpi && echo force || echo disabled)" \
|
||||
PMU="$(false && echo force || echo disabled)" \
|
||||
APM="$(use apm && echo force || echo disabled)" \
|
||||
SYSTEMD=yes \
|
||||
sh ./install.sh || die
|
||||
|
||||
dodoc Documentation/*.txt README
|
||||
newinitd "${FILESDIR}"/laptop_mode.init-1.4 laptop_mode
|
||||
|
||||
# See src_prepare()
|
||||
insinto /etc/pm/config.d
|
||||
doins "${T}"/${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use acpi || use apm; then
|
||||
if use acpi; then
|
||||
daemon_name="acpid"
|
||||
elif use apm; then
|
||||
deamon_name="apmd"
|
||||
fi
|
||||
if [ "$(rc-config list default | grep laptop_mode)" = "" ] || [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then
|
||||
ewarn "To enable automatic power state event handling,"
|
||||
ewarn "e.g. enabling laptop_mode after unplugging the battery,"
|
||||
ewarn "both laptop_mode and the ${daemon_name} daemon must be"
|
||||
ewarn "added to default runlevel:"
|
||||
if [ "$(rc-config list default | grep laptop_mode)" = "" ]; then
|
||||
ewarn "# rc-update add laptop_mode default"
|
||||
fi
|
||||
if [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then
|
||||
ewarn "# rc-update add ${daemon_name} default"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not"
|
||||
ewarn "automatically disable laptop_mode on low battery."
|
||||
ewarn
|
||||
ewarn "This means you can lose up to 10 minutes of work if running"
|
||||
ewarn "out of battery while laptop_mode is enabled."
|
||||
ewarn
|
||||
ewarn "Please see laptop-mode.txt in /usr/share/doc/${PF} for further"
|
||||
ewarn "information."
|
||||
ewarn
|
||||
fi
|
||||
}
|
@ -1,93 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.63-r1.ebuild,v 1.2 2013/04/12 06:22:54 lxnay Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils multilib systemd udev
|
||||
|
||||
MY_P=${PN}_${PV}
|
||||
|
||||
DESCRIPTION="Linux kernel laptop_mode user-space utilities"
|
||||
HOMEPAGE="http://www.samwel.tk/laptop_mode/"
|
||||
SRC_URI="http://www.samwel.tk/laptop_mode/tools/downloads/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="+acpi apm bluetooth scsi"
|
||||
|
||||
RDEPEND="net-wireless/wireless-tools
|
||||
sys-apps/ethtool
|
||||
sys-apps/hdparm
|
||||
acpi? ( sys-power/acpid )
|
||||
apm? ( sys-apps/apmd )
|
||||
bluetooth? ( net-wireless/bluez:= )
|
||||
scsi? ( sys-apps/sdparm )"
|
||||
DEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-pcie-aspm-silencing-stderr.patch"
|
||||
|
||||
# This should avoid conflict with pm-powersave wrt #327443 and #396703
|
||||
cat <<-EOF > "${T}"/${PN}
|
||||
HOOK_BLACKLIST="00powersave"
|
||||
EOF
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
DESTDIR="${D}" \
|
||||
INIT_D="none" \
|
||||
MAN_D="/usr/share/man" \
|
||||
LIB_D="/usr/$(get_libdir)" \
|
||||
UDEV_D="$(udev_get_udevdir)" \
|
||||
SYSTEMD_UNIT_D="$(systemd_get_unitdir)" \
|
||||
TMPFILES_D="/usr/$(get_libdir)/tmpfiles.d" \
|
||||
ACPI="$(use acpi && echo force || echo disabled)" \
|
||||
PMU="$(false && echo force || echo disabled)" \
|
||||
APM="$(use apm && echo force || echo disabled)" \
|
||||
SYSTEMD=yes \
|
||||
sh ./install.sh || die
|
||||
|
||||
dodoc Documentation/*.txt README
|
||||
newinitd "${FILESDIR}"/laptop_mode.init-1.4 laptop_mode
|
||||
|
||||
# See src_prepare()
|
||||
insinto /etc/pm/config.d
|
||||
doins "${T}"/${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use acpi || use apm; then
|
||||
if use acpi; then
|
||||
daemon_name="acpid"
|
||||
elif use apm; then
|
||||
deamon_name="apmd"
|
||||
fi
|
||||
if [ "$(rc-config list default | grep laptop_mode)" = "" ] || [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then
|
||||
ewarn "To enable automatic power state event handling,"
|
||||
ewarn "e.g. enabling laptop_mode after unplugging the battery,"
|
||||
ewarn "both laptop_mode and the ${daemon_name} daemon must be"
|
||||
ewarn "added to default runlevel:"
|
||||
if [ "$(rc-config list default | grep laptop_mode)" = "" ]; then
|
||||
ewarn "# rc-update add laptop_mode default"
|
||||
fi
|
||||
if [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then
|
||||
ewarn "# rc-update add ${daemon_name} default"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not"
|
||||
ewarn "automatically disable laptop_mode on low battery."
|
||||
ewarn
|
||||
ewarn "This means you can lose up to 10 minutes of work if running"
|
||||
ewarn "out of battery while laptop_mode is enabled."
|
||||
ewarn
|
||||
ewarn "Please see laptop-mode.txt in /usr/share/doc/${PF} for further"
|
||||
ewarn "information."
|
||||
ewarn
|
||||
fi
|
||||
}
|
@ -1,91 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.63.ebuild,v 1.2 2013/04/12 06:22:54 lxnay Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils multilib systemd udev
|
||||
|
||||
MY_P=${PN}_${PV}
|
||||
|
||||
DESCRIPTION="Linux kernel laptop_mode user-space utilities"
|
||||
HOMEPAGE="http://www.samwel.tk/laptop_mode/"
|
||||
SRC_URI="http://www.samwel.tk/laptop_mode/tools/downloads/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="+acpi apm bluetooth scsi"
|
||||
|
||||
RDEPEND="net-wireless/wireless-tools
|
||||
sys-apps/ethtool
|
||||
sys-apps/hdparm
|
||||
acpi? ( sys-power/acpid )
|
||||
apm? ( sys-apps/apmd )
|
||||
bluetooth? ( net-wireless/bluez:= )
|
||||
scsi? ( sys-apps/sdparm )"
|
||||
DEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
# This should avoid conflict with pm-powersave wrt #327443 and #396703
|
||||
cat <<-EOF > "${T}"/${PN}
|
||||
HOOK_BLACKLIST="00powersave"
|
||||
EOF
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
DESTDIR="${D}" \
|
||||
INIT_D="none" \
|
||||
MAN_D="/usr/share/man" \
|
||||
LIB_D="/usr/$(get_libdir)" \
|
||||
UDEV_D="$(udev_get_udevdir)" \
|
||||
SYSTEMD_UNIT_D="$(systemd_get_unitdir)" \
|
||||
TMPFILES_D="/usr/$(get_libdir)/tmpfiles.d" \
|
||||
ACPI="$(use acpi && echo force || echo disabled)" \
|
||||
PMU="$(false && echo force || echo disabled)" \
|
||||
APM="$(use apm && echo force || echo disabled)" \
|
||||
SYSTEMD=yes \
|
||||
sh ./install.sh || die
|
||||
|
||||
dodoc Documentation/*.txt README
|
||||
newinitd "${FILESDIR}"/laptop_mode.init-1.4 laptop_mode
|
||||
|
||||
# See src_prepare()
|
||||
insinto /etc/pm/config.d
|
||||
doins "${T}"/${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use acpi || use apm; then
|
||||
if use acpi; then
|
||||
daemon_name="acpid"
|
||||
elif use apm; then
|
||||
deamon_name="apmd"
|
||||
fi
|
||||
if [ "$(rc-config list default | grep laptop_mode)" = "" ] || [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then
|
||||
ewarn "To enable automatic power state event handling,"
|
||||
ewarn "e.g. enabling laptop_mode after unplugging the battery,"
|
||||
ewarn "both laptop_mode and the ${daemon_name} daemon must be"
|
||||
ewarn "added to default runlevel:"
|
||||
if [ "$(rc-config list default | grep laptop_mode)" = "" ]; then
|
||||
ewarn "# rc-update add laptop_mode default"
|
||||
fi
|
||||
if [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then
|
||||
ewarn "# rc-update add ${daemon_name} default"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not"
|
||||
ewarn "automatically disable laptop_mode on low battery."
|
||||
ewarn
|
||||
ewarn "This means you can lose up to 10 minutes of work if running"
|
||||
ewarn "out of battery while laptop_mode is enabled."
|
||||
ewarn
|
||||
ewarn "Please see laptop-mode.txt in /usr/share/doc/${PF} for further"
|
||||
ewarn "information."
|
||||
ewarn
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST scribus-1.4.1.tar.xz 63039820 SHA256 6853fc40cd178d0dcefcc9305fba6824bbe7fd915b0eb277d742b13297f8c7d8 SHA512 726c5f05644e573c13e741ed356ce5bd8366b824c71e587167b9c73f5f1ab6eeb7c78f26f2146cbaf09921fd583b1758dc1d3cf1d1c79d1bb8be586df88f055c WHIRLPOOL 0592405daa4b092d2861c6697a835d3564b30fa4fcbd50bdb5d743269ac8113f4dd5d8f187dd1fdcdd2358b28772905f46c3737bea79dfb5f1120b107bfc8c30
|
||||
DIST scribus-1.4.2.tar.xz 64405272 SHA256 b951d47913e800b31675fec94ae4e81dc2ee0247506a9218211db62da6386563 SHA512 17c65b39974bfb54d494afd687fc3284350b68da3d4c41cd874101a26d42a03a55b1110d3e14bda25ced1078c825576d8de61c8813a5026a680173a7e74bc63a WHIRLPOOL 570976044e7cfd3386dca5f8895f9b147bf2ee1610d70a133731b5b0a0f75fe5704b9c28ea059f14d1c4ca8947b9526edbef2e7ff4a685ca3e4f4ca6f85590f6
|
||||
DIST scribus-1.4.3.tar.xz 70503072 SHA256 c72ef314c32f995895ca5025127e65ffeccbe2d445c358bca334a7249ea0afff SHA512 e4841b346803bc096c2e00b2071d03ce3bae6af8d7317353ebf8e724b5a9b6461d95406bee61c2a316bc6ee5d9e302e3fee7b51dd89eae9adc9e69b3aa40454e WHIRLPOOL fbcbd4ecaadb868d836848ef2656df4a1dba58ce7f7b27a810818604f9a2875c948e91484475a68b034d0cdcd9457b925701a8435a687c7cea0c2606f4d8cfca
|
||||
|
@ -0,0 +1,144 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.4.3.ebuild,v 1.1 2013/08/07 20:25:52 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
PYTHON_REQ_USE="tk?"
|
||||
|
||||
inherit cmake-utils fdo-mime python-single-r1
|
||||
|
||||
DESCRIPTION="Desktop publishing (DTP) and layout program"
|
||||
HOMEPAGE="http://www.scribus.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="aspell cairo debug examples hunspell +minimal +pdf scripts templates tk"
|
||||
|
||||
# a=$(ls resources/translations/po/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'); echo ${a}
|
||||
IUSE_LINGUAS=" af ar bg br ca cs_CZ cy da_DK de de_1901 de_CH el en_AU en_GB en_US es_ES et eu fi fr gl hu id it ja ko lt_LT nb_NO nl pl_PL pt pt_BR ru sa sk_SK sl sq sr sv th_TH tr uk zh_CN zh_TW"
|
||||
IUSE+=" ${IUSE_LINGUAS// / linguas_}"
|
||||
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
tk? ( scripts )"
|
||||
|
||||
COMMON_DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-libs/boost
|
||||
dev-libs/hyphen
|
||||
dev-libs/libxml2
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype:2
|
||||
media-libs/lcms:2
|
||||
media-libs/libpng:0
|
||||
media-libs/tiff:0
|
||||
net-print/cups
|
||||
sys-libs/zlib[minizip]
|
||||
virtual/jpeg
|
||||
cairo? ( x11-libs/cairo[X,svg] )
|
||||
!cairo? ( media-libs/libart_lgpl )
|
||||
hunspell? ( app-text/hunspell )
|
||||
pdf? ( app-text/podofo )
|
||||
scripts? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] )
|
||||
tk? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
app-text/ghostscript-gpl"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.4.2-docs.patch
|
||||
"${FILESDIR}"/${PN}-1.4.0-minizip.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cat > cmake/modules/FindZLIB.cmake <<- EOF
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(ZLIB minizip zlib)
|
||||
SET( ZLIB_LIBRARY \${ZLIB_LIBRARIES} )
|
||||
SET( ZLIB_INCLUDE_DIR \${ZLIB_INCLUDE_DIRS} )
|
||||
MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR )
|
||||
EOF
|
||||
|
||||
rm scribus/{ioapi,unzip}.[ch] || die
|
||||
|
||||
sed \
|
||||
-e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \
|
||||
-i resources/templates/CMakeLists.txt || die
|
||||
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local lang langs
|
||||
for lang in ${IUSE_LINGUAS}; do
|
||||
if use linguas_${lang}; then
|
||||
langs+=",${lang}"
|
||||
else
|
||||
sed -e "/${lang}/d" -i scribus/doc/CMakeLists.txt || die
|
||||
fi
|
||||
done
|
||||
|
||||
local mycmakeargs=(
|
||||
-DHAVE_PYTHON=ON
|
||||
-DPYTHON_INCLUDE_PATH="$(python_get_includedir)"
|
||||
-DPYTHON_LIBRARY="$(python_get_library_path)"
|
||||
-DWANT_NORPATH=ON
|
||||
-DWANT_QT3SUPPORT=OFF
|
||||
-DGENTOOVERSION=${PVR}
|
||||
-DWANT_GUI_LANG=${langs#,}
|
||||
$(cmake-utils_use_with pdf PODOFO)
|
||||
$(cmake-utils_use_want cairo)
|
||||
$(cmake-utils_use_want !cairo QTARTHUR)
|
||||
$(cmake-utils_use_want debug DEBUG)
|
||||
$(cmake-utils_use_want minimal NOHEADERINSTALL)
|
||||
$(cmake-utils_use_want hunspell HUNSPELL)
|
||||
$(cmake-utils_use_want !examples NOEXAMPLES)
|
||||
$(cmake-utils_use_want !templates NOTEMPLATES)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
local lang file
|
||||
for lang in ${IUSE_LINGUAS}; do
|
||||
file="${ED}"/usr/share/scribus/translations/scribus.${lang}.qm
|
||||
if ! use linguas_${lang} && [[ -f "${file}" ]]; then
|
||||
rm "${file}" || die
|
||||
fi
|
||||
done
|
||||
|
||||
if ! use scripts; then
|
||||
rm "${ED}"/usr/share/scribus/scripts/*.py || die
|
||||
elif ! use tk; then
|
||||
rm "${ED}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die
|
||||
fi
|
||||
|
||||
python_fix_shebang "${ED}"/usr/share/scribus/scripts
|
||||
python_optimize "${ED}"/usr/share/scribus/scripts
|
||||
|
||||
mv "${ED}"/usr/share/doc/${PF}/{en,html} || die
|
||||
ln -sf html "${ED}"/usr/share/doc/${PF}/en || die
|
||||
docompress -x /usr/share/doc/${PF}/en
|
||||
doicon resources/icons/scribus.png
|
||||
domenu scribus.desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-portage/eix/eix-0.29.3.ebuild,v 1.1 2013/08/07 08:15:04 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PLOCALES="de ru"
|
||||
inherit bash-completion-r1 eutils multilib l10n
|
||||
|
||||
DESCRIPTION="Search and query ebuilds, portage incl. local settings, ext. overlays, version changes, and more"
|
||||
HOMEPAGE="http://eix.berlios.de"
|
||||
SRC_URI="mirror://berlios/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
|
||||
IUSE="clang debug +dep doc nls optimization security strong-optimization strong-security sqlite swap-remote tools zsh-completion"
|
||||
|
||||
BOTHDEPEND="sqlite? ( >=dev-db/sqlite-3 )
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${BOTHDEPEND}
|
||||
app-shells/push"
|
||||
DEPEND="${BOTHDEPEND}
|
||||
app-arch/xz-utils
|
||||
clang? ( sys-devel/clang )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
pkg_setup() {
|
||||
case " ${REPLACING_VERSIONS}" in
|
||||
*\ 0.[0-9].*|*\ 0.1[0-9].*|*\ 0.2[0-4].*|*\ 0.25.0*)
|
||||
local eixcache="${EROOT}/var/cache/${PN}"
|
||||
test -f "${eixcache}" && rm -f -- "${eixcache}";;
|
||||
esac
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with sqlite) $(use_with doc extra-doc) \
|
||||
$(use_with zsh-completion) \
|
||||
$(use_enable nls) $(use_enable tools separate-tools) \
|
||||
$(use_enable security) $(use_enable optimization) \
|
||||
$(use_enable strong-security) \
|
||||
$(use_enable strong-optimization) $(use_enable debug debugging) \
|
||||
$(use_enable swap-remote) \
|
||||
$(use_with prefix always-accept-keywords) \
|
||||
$(use_with dep dep-default) \
|
||||
$(use_with clang nongnu-cxx clang++) \
|
||||
--with-ebuild-sh-default="/usr/$(get_libdir)/portage/bin/ebuild.sh" \
|
||||
--with-portage-rootpath="${ROOTPATH}" \
|
||||
--with-eprefix-default="${EPREFIX}" \
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dobashcomp bash/eix
|
||||
keepdir "/var/cache/${PN}"
|
||||
fowners portage:portage "/var/cache/${PN}"
|
||||
fperms 775 "/var/cache/${PN}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# fowners in src_install doesn't work for owner/group portage:
|
||||
# merging changes this owner/group back to root.
|
||||
use prefix || chown portage:portage "${EROOT}var/cache/${PN}"
|
||||
local obs="${EROOT}var/cache/eix.previous"
|
||||
! test -f "${obs}" || ewarn "Found obsolete ${obs}, please remove it"
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusb-compat/libusb-compat-0.1.5-r2.ebuild,v 1.2 2013/08/07 16:12:28 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="Userspace access to USB devices (libusb-0.1 compat wrapper)"
|
||||
HOMEPAGE="http://libusb.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN/-compat}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="debug examples static-libs"
|
||||
|
||||
RDEPEND="virtual/libusb:1[${MULTILIB_USEDEP}]
|
||||
!dev-libs/libusb:0"
|
||||
# abi_x86_32? (
|
||||
# !<=app-emulation/emul-linux-x86-baselibs-2013
|
||||
# !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
# )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS="AUTHORS ChangeLog NEWS README"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN/-compat}-0.1-ansi.patch
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable debug debug-log)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
multilib_is_native_abi && gen_usr_ldscript -a usb
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins examples/*.c
|
||||
fi
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusb/libusb-1.0.9-r2.ebuild,v 1.1 2013/08/07 15:55:40 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="Userspace access to USB devices"
|
||||
HOMEPAGE="http://libusb.org/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -amd64-fbsd -x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="debug doc examples static-libs"
|
||||
|
||||
RDEPEND="!dev-libs/libusbx:1"
|
||||
# abi_x86_32? (
|
||||
# !<=app-emulation/emul-linux-x86-baselibs-2013
|
||||
# !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
# )"
|
||||
DEPEND="doc? ( app-doc/doxygen )"
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable debug debug-log)
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
use doc && emake -C doc docs
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
gen_usr_ldscript -a usb-1.0
|
||||
|
||||
use doc && dohtml doc/html/*
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
dodoc AUTHORS NEWS PORTING README THANKS TODO
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins examples/*.c
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST libusbx-1.0.15.tar.bz2 455939 SHA256 bb5ec30e53e007d13c37b4edd929435ac224bb71b8fc08fa37ec9e3e81037963 SHA512 7bead1b6407b294ed4a258a3c4d005601c0195960fda1ca35669e64939eb9b58f82738d021f90e55ab4854dd8c78571eb6a77a4ca37896987b14155d33165a3a WHIRLPOOL 2bd07e15506f72147af10e23250d3bb4fe9cbfaa1d2e5a1d21d1efd2d51cb246244cf45a3693c46a736f8e716ec12ff71107a2ec1bd84876fb0244d7f7af95c4
|
||||
DIST libusbx-1.0.16.tar.bz2 488428 SHA256 5b335cf9572d793da6ced55bce633894288a8ff39557f07ccc798f2cb74cb580 SHA512 a92fd006afab80c051edc725105bbf1c7b79bdc050fde750d81bf050195e1f19be6217682c0cdf047754eed1be5848c915aac3d5364acc72a8324ce0f8b9e698 WHIRLPOOL dc25709f8f838c28306f6838f23e4907b7f8d1f8b5dd0ec14c649d79f15ed23942a6457034fe2ae25606ed6a584efa41fed6233e6be09e1965a6aa95b5a303ae
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusbx/libusbx-1.0.15.ebuild,v 1.1 2013/04/18 05:57:41 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Userspace access to USB devices"
|
||||
HOMEPAGE="http://libusbx.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="debug doc examples static-libs test"
|
||||
|
||||
RDEPEND="!dev-libs/libusb:1"
|
||||
DEPEND="doc? ( app-doc/doxygen )"
|
||||
|
||||
DOCS="AUTHORS ChangeLog NEWS PORTING README THANKS TODO"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable debug debug-log) \
|
||||
$(use_enable test tests-build)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
use doc && emake -C doc docs
|
||||
}
|
||||
|
||||
src_test() {
|
||||
default
|
||||
|
||||
# noinst_PROGRAMS from tests/Makefile.am
|
||||
tests/stress || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins examples/*.{c,h}
|
||||
fi
|
||||
|
||||
use doc && dohtml doc/html/*
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusbx/libusbx-1.0.16-r1.ebuild,v 1.1 2013/08/01 12:32:22 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Userspace access to USB devices"
|
||||
HOMEPAGE="http://libusbx.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="debug doc examples static-libs test udev"
|
||||
|
||||
RDEPEND="!dev-libs/libusb:1
|
||||
udev? ( >=virtual/udev-200 )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
DOCS="AUTHORS ChangeLog NEWS PORTING README THANKS TODO"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable udev) \
|
||||
$(use_enable debug debug-log) \
|
||||
$(use_enable test tests-build)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
use doc && emake -C doc docs
|
||||
}
|
||||
|
||||
src_test() {
|
||||
default
|
||||
|
||||
# noinst_PROGRAMS from tests/Makefile.am
|
||||
tests/stress || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
gen_usr_ldscript -a usb-1.0
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins examples/*.{c,h}
|
||||
fi
|
||||
|
||||
use doc && dohtml doc/html/*
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusbx/libusbx-1.0.16-r3.ebuild,v 1.2 2013/08/07 18:25:51 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="Userspace access to USB devices"
|
||||
HOMEPAGE="http://libusbx.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="debug doc examples static-libs test udev"
|
||||
|
||||
RDEPEND="udev? ( >=virtual/udev-200[${MULTILIB_USEDEP}] )
|
||||
!dev-libs/libusb:1"
|
||||
# abi_x86_32? (
|
||||
# !<=app-emulation/emul-linux-x86-baselibs-2013
|
||||
# !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
# )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
!udev? ( virtual/os-headers )"
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${P}-linux-Use-a-separate-lock-to-serialize-start-stop-vs.patch \
|
||||
"${FILESDIR}"/${P}-hotplug-Remove-use-of-pthread_cancel-from-linux_udev.patch
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable udev) \
|
||||
$(use_enable debug debug-log) \
|
||||
$(use_enable test tests-build)
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
use doc && emake -C doc docs
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake check
|
||||
|
||||
# noinst_PROGRAMS from tests/Makefile.am
|
||||
tests/stress || die
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
gen_usr_ldscript -a usb-1.0
|
||||
|
||||
use doc && dohtml doc/html/*
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS PORTING README THANKS TODO
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins examples/*.{c,h}
|
||||
fi
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libusbx/libusbx-1.0.16.ebuild,v 1.1 2013/07/15 08:42:02 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Userspace access to USB devices"
|
||||
HOMEPAGE="http://libusbx.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="debug doc examples static-libs test udev"
|
||||
|
||||
RDEPEND="!dev-libs/libusb:1
|
||||
udev? ( >=virtual/udev-200 )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
DOCS="AUTHORS ChangeLog NEWS PORTING README THANKS TODO"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable udev) \
|
||||
$(use_enable debug debug-log) \
|
||||
$(use_enable test tests-build)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
use doc && emake -C doc docs
|
||||
}
|
||||
|
||||
src_test() {
|
||||
default
|
||||
|
||||
# noinst_PROGRAMS from tests/Makefile.am
|
||||
tests/stress || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins examples/*.{c,h}
|
||||
fi
|
||||
|
||||
use doc && dohtml doc/html/*
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-Net_SmartIRC/PEAR-Net_SmartIRC-1.0.2.ebuild,v 1.8 2013/08/04 13:36:27 ago Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-Net_SmartIRC/PEAR-Net_SmartIRC-1.0.2.ebuild,v 1.9 2013/08/07 13:28:08 ago Exp $
|
||||
|
||||
inherit php-pear-r1
|
||||
|
||||
DESCRIPTION="Net_SmartIRC is a PHP class for communication with IRC networks"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc ~x86"
|
||||
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
|
||||
IUSE=""
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue