parent
002eaca16b
commit
b140d11d65
Binary file not shown.
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
DIST ansible-2.5.10.tar.gz 10167484 BLAKE2B 0c60758d54fabef8037ce7e79d86c1508786a3e8cfe2cb1cc9d09cc24ece107414793f4dd12013dbc4c9a1354669288e0989374a20b7ebc035115dfd907c7279 SHA512 911f1f616206136708ceb4f9955e8bf309d7b506fcca9e0f31d770ead0a47c803d670909b6fe10b0d26056d3fd5c140e144132284ad5dbb618d3b013abc9385f
|
||||
DIST ansible-2.5.8.tar.gz 10169397 BLAKE2B 7cb0abb168af25a3cd7b94880309cf19f018a68277472afb24811bb4ccc329c129f754d2b97626f71052712690e372856bfb62345cdae74165eca38066e86779 SHA512 8de8ddf1925ef1465654f4bc1d54fd9f5f9d700ef2c5a4982684f3a4560ac933b05ff0661c34e61235006abc64fd6acf299d0c45f7b5796c3a89dda5382099ed
|
||||
DIST ansible-2.6.4.tar.gz 10751810 BLAKE2B 16a01b76387b6fb0c6554861fd02a57858cf2623ea89e55c0940589b69a6589d4db00bdf87f1e51ab64e638c187657f66ebb5af33a6fa008b7f1dba1e853b3f3 SHA512 b3dc3469dd7e34e3b39b3382df65c3684a44be0515f68861997a4d0e5fce44d64000bc0da0b38fd3d27b45aa1ec3973da581482e0de54c5cc41eb761b230b116
|
||||
DIST ansible-2.6.5.tar.gz 10757800 BLAKE2B 2389dfdbdf731382643227cb3a0df501d7b756d81dbddfe9b5ce609086eb04073441c01ed6f49480628fa2a2b3556e07c1b4588cb5df96a072d72c9a09fe2739 SHA512 3cab1d14abb3d173722ee76699ac778188481d575d589fb9e85541689a806b6f3eece9b1c5122cd863b46da56ed5cc3c32faaa143826ab3bd3e7a6cc06cbe2fe
|
||||
DIST ansible-2.6.6.tar.gz 10707168 BLAKE2B be41ee9b314a669069d4e8578baefdaa3e12864d132320ecad1cb539ae34d048a4f95b44c995f4695911f652064ef343ca35d9864326fd951e4e389088266505 SHA512 0fd8f208479bde3f9fa957c488abce17e6e7c492e6016a9acd88a11db44f777d148d451a4a246d2b55c6de85b9178e8127908e1fe36e490f7bbef350246ba716
|
||||
DIST ansible-2.7.0.tar.gz 11773769 BLAKE2B 00df537d2a8c6d76c7b4c4a424ff3c33a8a69d77ecdd741fe6ec4c6b30c7b136e28e644a488b6b49a305a454d1a923bd92d3b78be79a816fea6c127f4c2aa6da SHA512 a5e0e0b87bb2fa8fbc76825733a5c6afe642d4602be80466e5f28324e90be4487fd1c300e567a164222f171bd9eac65b7b36ca9b6fe4bebfcbd2c24dd60049ad
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST hddtemp-0.3-beta15.tar.bz2 256372 BLAKE2B 1c928234c36172c387a002190045cd05007f4b4b8d74eb378ba810ea9aad96951b7a9b3b0f872130677fca1f294d86f855327dcfa5a263c9f3c7d58fbbba502e SHA512 7db5a3dff60c59ce147b996ea4f8b6de1abcd34301bb863507b4d4b44e72fdc031078867a7f37161e67e74f6b426a1d856d3081179c678d2a442815bb0faa94d
|
||||
DIST hddtemp-20080531.db.bz2 5627 BLAKE2B b973a981ee55033c8ba190efd9dc8586589292ef1f2b00542be7db2be64df812847665abefc7517f7c71dc70df153766570f62b69fc4891e758e82200ff8d589 SHA512 cd03cc300aece4f7427fde1b58840643c8e41e6c0ce30b418a62bf44b268f249ef3dc4f5f4bcbc9cc0cfe0346c18d4f1da22451c87efc3d46faebcb81a1fe059
|
||||
DIST hddtemp_0.3-beta15-53.diff.gz 52845 BLAKE2B ae4ef1f98ff39a39bdb49b2752f6f442c6ebe8ea6b0e8e743cc3ab9ef39d07abe8970648b841b3974cd814fdef72bc59cfe93c4b4d1cf2a85de1a0d94c4409b9 SHA512 1006ffa92f9973eb1da6444f8e8eed681e641efd17a52954b0e6c5041ecae13108af4ed89534ec4f2799685f96191769d3b168dbbb96085dc801150c7c547511
|
||||
|
@ -0,0 +1,114 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit autotools readme.gentoo-r1 systemd
|
||||
|
||||
MY_P=${P/_beta/-beta}
|
||||
DBV="20080531"
|
||||
DEB_PATCH="53"
|
||||
|
||||
DESCRIPTION="A simple utility to read the temperature of SMART capable hard drives"
|
||||
HOMEPAGE="https://savannah.nongnu.org/projects/hddtemp/"
|
||||
SRC_URI="
|
||||
http://download.savannah.gnu.org/releases/hddtemp/${MY_P}.tar.bz2
|
||||
mirror://gentoo/hddtemp-${DBV}.db.bz2
|
||||
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_/-}-${DEB_PATCH}.diff.gz
|
||||
"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="network-cron nls selinux"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="selinux? ( sec-policy/selinux-hddtemp )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
DOC_CONTENTS="In order to update your hddtemp database, run:
|
||||
emerge --config =${CATEGORY}/${PF} or update-hddtemp.db (if USE
|
||||
network-cron is enabled)
|
||||
|
||||
If your hard drive is not recognized by hddtemp, please consider
|
||||
submitting your HDD info for inclusion into the Gentoo hddtemp
|
||||
database by filing a bug at https://bugs.gentoo.org/
|
||||
|
||||
If hddtemp complains but finds your HDD temperature sensor, use the
|
||||
--quiet option to suppress the warning.
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${WORKDIR}"/${PN}_${PV/_/-}-${DEB_PATCH}.diff
|
||||
"${FILESDIR}"/${P}-nls.patch
|
||||
"${FILESDIR}"/${P}-iconv.patch
|
||||
"${FILESDIR}"/${P}-dontwake.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
mv "${S}"/configure.{in,ac} || die
|
||||
AT_M4DIR="m4" eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db"
|
||||
# disabling nls breaks compiling
|
||||
use nls || myconf="--disable-nls ${myconf}"
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /usr/share/hddtemp
|
||||
newins "${WORKDIR}/hddtemp-${DBV}.db" hddtemp.db
|
||||
doins "${FILESDIR}"/hddgentoo.db
|
||||
|
||||
update_db "${ED}/usr/share/hddtemp/hddgentoo.db" "${ED}/usr/share/hddtemp/hddtemp.db"
|
||||
newconfd "${FILESDIR}"/hddtemp-conf.d hddtemp
|
||||
newinitd "${FILESDIR}"/hddtemp-init hddtemp
|
||||
systemd_newunit "${FILESDIR}"/hddtemp.service-r1 "${PN}.service"
|
||||
systemd_install_serviced "${FILESDIR}"/hddtemp.service.conf
|
||||
|
||||
readme.gentoo_create_doc
|
||||
|
||||
if use network-cron; then
|
||||
dosbin "${FILESDIR}"/update-hddtemp.db
|
||||
exeinto /etc/cron.monthly
|
||||
echo -e "#!/bin/sh\n/usr/sbin/update-hddtemp.db" > "${T}"/hddtemp.cron
|
||||
newexe "${T}"/hddtemp.cron update-hddtemp.db
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
}
|
||||
|
||||
update_db() {
|
||||
local src=$1
|
||||
local dst=$2
|
||||
|
||||
while read line ; do
|
||||
if [[ -z $(echo "${line}" | sed -re 's/(^#.*|^\w*$)//') ]]; then
|
||||
echo "${line}" >> "${dst}"
|
||||
fi
|
||||
|
||||
id=$(echo "${line}" | grep -o '"[^"]*"')
|
||||
|
||||
grep "${id}" "${dst}" 2>&1 >/dev/null || echo "${line}" >> "${dst}"
|
||||
done < "${src}"
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
cd "${ROOT}"/usr/share/hddtemp || die
|
||||
|
||||
einfo "Trying to download the latest hddtemp.db file"
|
||||
wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db -O hddtemp.db \
|
||||
|| die "failed to download hddtemp.db"
|
||||
|
||||
update_db "hddgentoo.db" "hddtemp.db"
|
||||
}
|
Binary file not shown.
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Afio creates cpio-format archives."
|
||||
HOMEPAGE="http://members.chello.nl/k.holtman/afio.html https://github.com/kholtman/afio"
|
||||
SRC_URI="http://members.chello.nl/k.holtman/${P}.tgz"
|
||||
|
||||
LICENSE="Artistic LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.5.1-fix-build-system.patch
|
||||
"${FILESDIR}"/${PN}-2.5.1-control-file-warning-fix.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
doman "${PN}.1"
|
||||
dodoc ANNOUNCE-* HISTORY README SCRIPTS
|
||||
|
||||
local i
|
||||
for i in {1..4}; do
|
||||
docinto "script${i}"
|
||||
dodoc -r "script${i}"/.
|
||||
done
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
Only in b: 1
|
||||
diff -ubBr a/afio.c b/afio.c
|
||||
--- a/afio.c 2018-03-23 09:16:07.230401966 -0400
|
||||
+++ b/afio.c 2018-03-23 09:20:05.614421756 -0400
|
||||
@@ -3724,7 +3724,8 @@
|
||||
|
||||
/* ASX check if file changed between the begining
|
||||
and end of the backup */
|
||||
- if (*fsname)
|
||||
+ /* if *fsname==0, it was a control file, so do not check then */
|
||||
+ if (*fsname!=0)
|
||||
{
|
||||
struct stat st;
|
||||
/* I must check fsname !
|
||||
@@ -3739,13 +3740,10 @@
|
||||
if (st.st_mtime!=sb.sb_mtime)
|
||||
{
|
||||
warn (fsname, "File was modified during its backup");
|
||||
+ if(index(ignorewarnings,(int)'d')) warnings--;
|
||||
}
|
||||
}
|
||||
}
|
||||
- else
|
||||
- {
|
||||
- warn (name, "ASX no fsname for this name ??");
|
||||
- }
|
||||
|
||||
if(aflag && *fsname && ((sb.sb_mode & S_IFMT)==S_IFREG))
|
||||
{
|
@ -1,3 +1,2 @@
|
||||
DIST lz4-1.8.0.tar.gz 222840 BLAKE2B 0b33f920f59a5ec9576051baa9ba887b320d424f8f64e1a752124371797d3f8bf2dbf13ee2e7268ef363d70697b8358e7ad627489c6843c61bdba004df80c5ec SHA512 aea46d4a900a3ede7dd7b498ee938ecd98397d3277c5b3a85b4236a44777cba85cd68a2f32c993b872afda96c5dafe0cb3dd391101fe8181e17c9f48884c1535
|
||||
DIST lz4-1.8.2.tar.gz 320742 BLAKE2B cd97b6a31a1f45d410d598af0b0b696b3ccc3ffdc4fd523316576ebc68e24e545b8ce359889b0dca1968b1c296cb69951617b91b49cbe8eb98cfdb9ce400803c SHA512 5fadc79334d37739c947d6dfc24f48ce82989fc5ee4f2bb8201ccf7ee3230b9e6e7c8488beb64050a035369f4247161d258bdb539578bec224ccebfef1b8a763
|
||||
DIST lz4-1.8.3.tar.gz 327897 BLAKE2B e2be80be14c67cf1a07cc6a2e6f6777a87abdd15499b9c32b8096e09284aea19620adf930e28454ce105e325cff684d2625e0a38211705f3c105a80b72f56be5 SHA512 5d284f75a0c4ad11ebc4abb4394d98c863436da0718d62f648ef2e2cda8e5adf47617a4b43594375f7b0b673541a9ccfaf73880a55fd240986594558214dbf9f
|
||||
|
@ -1,37 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-multilib
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/lz4/lz4.git"
|
||||
EGIT_BRANCH=dev
|
||||
else
|
||||
SRC_URI="https://github.com/Cyan4973/lz4/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x64-macos"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Extremely Fast Compression algorithm"
|
||||
HOMEPAGE="https://github.com/lz4/lz4"
|
||||
|
||||
LICENSE="BSD-2 GPL-2"
|
||||
# https://abi-laboratory.pro/tracker/timeline/lz4/
|
||||
# 1.7.5->1.8.0 has some minor changes; the only really incompatible
|
||||
# would be removing 'const' from LZ4F_freeDecompressionContext() arg
|
||||
# however, it is extremely unlikely that this 'const' would actually
|
||||
# be relied on
|
||||
SLOT="0/r131"
|
||||
IUSE="static-libs"
|
||||
|
||||
CMAKE_USE_DIR=${S}/contrib/cmake_unofficial
|
||||
|
||||
multilib_src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_STATIC_LIBS=$(usex static-libs)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST rpm-4.11.0.1.tar.bz2 3670158 BLAKE2B 8190cd760ce86275a27a64aca7622340a2894f4f7aad0171425c7f5d3cfcf58e82c2a792f7d4687fff9270fe3f9c861027b6eea43f3602be8b12098dbccf408f SHA512 72bd3054b2d0def1e25fba7113eda14def38baef62b558e65cafaf3b374823d0905d982772cffddfd9dc6698eff293251acb2ace7dfda0964085669caa88d535
|
||||
DIST rpm-4.14.1.tar.bz2 4103880 BLAKE2B 3fa7579a251b02ec89943b5505ad9ca7303a444eb64b1018fc74bc6dfb1c19d4f30d96189172c4450925f3357174cde70b298116b53b9155223b52a593a67aea SHA512 29e95eaaf40a6ddf7f23446ea6cb8a1dcd12a45d4965595a705cb9130890d772a40ecfa475b189865da51248b3d2414e4f4b1a40cbfd7ca538c482d87c50a218
|
||||
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils autotools flag-o-matic perl-module python-single-r1 versionator
|
||||
|
||||
DESCRIPTION="Red Hat Package Management Utils"
|
||||
HOMEPAGE="http://www.rpm.org"
|
||||
SRC_URI="http://rpm.org/releases/rpm-$(get_version_component_range 1-2).x/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE="nls python doc caps lua acl selinux"
|
||||
|
||||
CDEPEND="!app-arch/rpm5
|
||||
>=sys-libs/db-4.5:*
|
||||
>=sys-libs/zlib-1.2.3-r1
|
||||
>=app-arch/bzip2-1.0.1
|
||||
>=dev-libs/popt-1.7
|
||||
>=app-crypt/gnupg-1.2
|
||||
dev-libs/elfutils
|
||||
virtual/libintl
|
||||
>=dev-lang/perl-5.8.8
|
||||
dev-libs/nss
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
nls? ( virtual/libintl )
|
||||
lua? ( >=dev-lang/lua-5.1.0:*[deprecated] )
|
||||
acl? ( virtual/acl )
|
||||
caps? ( >=sys-libs/libcap-2.0 )"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
doc? ( app-doc/doxygen )"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-rpm )"
|
||||
REQUIRED_USE="
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-4.11.0-autotools.patch \
|
||||
"${FILESDIR}"/${PN}-4.8.1-db-path.patch \
|
||||
"${FILESDIR}"/${PN}-4.9.1.2-libdir.patch
|
||||
|
||||
# fix #356769
|
||||
sed -i 's:%{_var}/tmp:/var/tmp:' macros.in || die "Fixing tmppath failed"
|
||||
|
||||
eautoreconf
|
||||
|
||||
# Prevent automake maintainer mode from kicking in (#450448).
|
||||
touch -r Makefile.am preinstall.am
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags -I"${EPREFIX}/usr/include/nss" -I"${EPREFIX}/usr/include/nspr"
|
||||
econf \
|
||||
--without-selinux \
|
||||
--with-external-db \
|
||||
--without-beecrypt \
|
||||
$(use_enable python) \
|
||||
$(use_with doc hackingdocs) \
|
||||
$(use_enable nls) \
|
||||
$(use_with lua) \
|
||||
$(use_with caps cap) \
|
||||
$(use_with acl)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# remove la files
|
||||
prune_libtool_files --all
|
||||
|
||||
mv "${ED}"/bin/rpm "${ED}"/usr/bin
|
||||
rmdir "${ED}"/bin
|
||||
# fix symlinks to /bin/rpm (#349840)
|
||||
for binary in rpmquery rpmverify;do
|
||||
ln -sf rpm "${ED}"/usr/bin/${binary}
|
||||
done
|
||||
|
||||
use nls || rm -rf "${ED}"/usr/share/man/??
|
||||
|
||||
keepdir /usr/src/rpm/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
|
||||
|
||||
dodoc CHANGES CREDITS GROUPS README*
|
||||
if use doc; then
|
||||
pushd doc/hacking/html
|
||||
dohtml -p hacking -r .
|
||||
popd
|
||||
pushd doc/librpm/html
|
||||
dohtml -p librpm -r .
|
||||
popd
|
||||
fi
|
||||
|
||||
# Fix perllocal.pod file collision
|
||||
perl_delete_localpod
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -f "${EROOT}"/var/lib/rpm/Packages ]] ; then
|
||||
einfo "RPM database found... Rebuilding database (may take a while)..."
|
||||
"${EROOT}"/usr/bin/rpmdb --rebuilddb --root="${EROOT}"
|
||||
else
|
||||
einfo "No RPM database found... Creating database..."
|
||||
"${EROOT}"/usr/bin/rpmdb --initdb --root="${EROOT}"
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST dumpet-2.1-15.fc27.src.rpm 25268 BLAKE2B ae80875f08211a825bbc357e4051bf6fcd26d2726b9fc477b61593155080fb460ea3cb6b7c5af519a740436313fa588cfffda7afdba41179a620702693e82ff2 SHA512 bf4b7f2de48590f5ff71ec17a05e331def234a1e57e7e06254c00eb60e44ae8c712e33515e01c6f5fe0bcecbea6e596e4e452ad192823b81dfb7de781d0d4e55
|
||||
DIST dumpet-2.1_p20140601.tar.gz 20140 BLAKE2B def3e7948096e2543bf24324b17c3b3123b867e750971858cb403732efde6c217fcf1c04955a0dd4ed2f99fdaedecab1becdcc1027645e7a955ed1addf11daa1 SHA512 161911ae136aa81abff5a591593acf421a4101e3f80cb259c5b2190581d5cbd06641eefe4c873d40d1b2adabedb2e42ef7fdd0a6e39ec98e1927550ae8960eda
|
||||
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rpm vcs-snapshot
|
||||
|
||||
COMMIT="8f47670dd582c96ad1b6dd3c9b9da0acebded5d8"
|
||||
|
||||
DESCRIPTION="A tool to dump and debug bootable CD-like images"
|
||||
HOMEPAGE="https://github.com/rhboot/dumpet"
|
||||
SRC_URI="https://github.com/rhboot/dumpet/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/libxml2
|
||||
dev-libs/popt"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
sed -i Makefile \
|
||||
-e "s/^CFLAGS:/#CFLAGS:/" \
|
||||
-e "s/^install : all$/install :/" \
|
||||
|| die
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake dumpet
|
||||
}
|
||||
|
||||
pkg_setup(){
|
||||
tc-export CC
|
||||
}
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
DIST acme.sh-2.7.9.tar.gz 110323 BLAKE2B 244afad17ddf17fa95a11d5af7943a153ed37e67ef304511787767a5d769f9cd22fb66875d637f2d536cce8942e4feee0c442af8349a32a91940b1fbbc2e879c SHA512 24374783ca52835b400b84316ffab5e9066805362f02082f8ef409e21ca590d837b3dd11401633947f9fcc98dc977b0e8b6076d5deecd02b38478f257500a052
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PN="${PN/-/.}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="An ACME Shell script"
|
||||
HOMEPAGE="https://github.com/Neilpang/acme.sh"
|
||||
SRC_URI="https://github.com/Neilpang/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="net-misc/curl
|
||||
|| ( dev-libs/libressl dev-libs/openssl:0 )
|
||||
|| ( net-analyzer/netcat6 net-analyzer/openbsd-netcat )
|
||||
|| ( net-misc/socat www-servers/apache:2 www-servers/nginx:0 )
|
||||
virtual/cron"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
newdoc dnsapi/README.md README-dnsapi.md
|
||||
newdoc deploy/README.md README-deploy.md
|
||||
|
||||
keepdir /etc/acme-sh
|
||||
doenvd "${FILESDIR}"/99acme-sh
|
||||
insinto /etc/bash/bashrc.d
|
||||
doins "${FILESDIR}"/acme.sh
|
||||
|
||||
exeinto /usr/share/acme.sh
|
||||
doexe acme.sh
|
||||
insinto /usr/share/acme.sh/dnsapi
|
||||
doins -r dnsapi/*.sh
|
||||
insinto /usr/share/acme.sh/deploy
|
||||
doins -r deploy/*.sh
|
||||
|
||||
dosym ../share/acme.sh/acme.sh usr/bin/acme.sh
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_REPO_URI="https://github.com/Neilpang/${PN/-/.}.git"
|
||||
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="An ACME Shell script"
|
||||
HOMEPAGE="https://github.com/Neilpang/acme.sh"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="net-misc/curl
|
||||
|| ( dev-libs/libressl dev-libs/openssl:0 )
|
||||
|| ( net-analyzer/netcat6 net-analyzer/openbsd-netcat )
|
||||
|| ( net-misc/socat www-servers/apache:2 www-servers/nginx:0 )
|
||||
virtual/cron"
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
newdoc dnsapi/README.md README-dnsapi.md
|
||||
newdoc deploy/README.md README-deploy.md
|
||||
|
||||
keepdir /etc/acme-sh
|
||||
doenvd "${FILESDIR}"/99acme-sh
|
||||
insinto /etc/bash/bashrc.d
|
||||
doins "${FILESDIR}"/acme.sh
|
||||
|
||||
exeinto /usr/share/acme.sh
|
||||
doexe acme.sh
|
||||
insinto /usr/share/acme.sh/dnsapi
|
||||
doins -r dnsapi/*.sh
|
||||
insinto /usr/share/acme.sh/deploy
|
||||
doins -r deploy/*.sh
|
||||
|
||||
dosym ../share/acme.sh/acme.sh usr/bin/acme.sh
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
LE_WORKING_DIR="/etc/acme-sh/"
|
||||
LE_CONFIG_HOME="/etc/acme-sh/"
|
@ -0,0 +1 @@
|
||||
alias acme.sh="/usr/bin/acme.sh --config-home '/etc/acme-sh/'"
|
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>spiderx@spiderx.dp.ua</email>
|
||||
<name>Vladimir Pavljuchenkov</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
A shell script to automatically issue and renew the free certificates
|
||||
from Let's Encrypt
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">Neilpang/acme.sh</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -0,0 +1,20 @@
|
||||
diff --git a/src/file.c b/src/file.c
|
||||
index 5e44a43..4c90a37 100644
|
||||
--- a/src/file.c
|
||||
+++ b/src/file.c
|
||||
@@ -190,6 +190,7 @@ gint file_save_real(GtkWidget *view, FileInfo *fi)
|
||||
gtk_text_buffer_get_start_iter(buffer, &start);
|
||||
gtk_text_buffer_get_end_iter(buffer, &end);
|
||||
str = gtk_text_buffer_get_text(buffer, &start, &end, FALSE);
|
||||
+ gtk_text_buffer_set_modified(buffer, FALSE);
|
||||
|
||||
switch (fi->lineend) {
|
||||
case CR:
|
||||
@@ -229,7 +230,6 @@ gint file_save_real(GtkWidget *view, FileInfo *fi)
|
||||
return -1;
|
||||
}
|
||||
|
||||
- gtk_text_buffer_set_modified(buffer, FALSE);
|
||||
fclose(fp);
|
||||
g_free(cstr);
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit gnome2-utils xdg-utils
|
||||
|
||||
DESCRIPTION="A simple GTK2 text editor"
|
||||
HOMEPAGE="http://tarot.freeshell.org/leafpad/"
|
||||
SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="emacs"
|
||||
|
||||
RDEPEND="
|
||||
virtual/libintl
|
||||
x11-libs/gtk+:2
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/intltool
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-fdo.patch
|
||||
"${FILESDIR}"/${P}-format-security.patch
|
||||
|
||||
# https://bugs.gentoo.org/657462
|
||||
"${FILESDIR}"/${P}-truncate.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-chooser \
|
||||
--enable-print \
|
||||
$(use_enable emacs)
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
--- xmlcopyeditor-1.2.1.3.orig/configure.ac
|
||||
+++ xmlcopyeditor-1.2.1.3/configure.ac
|
||||
@@ -139,13 +139,9 @@
|
||||
AC_CHECK_HEADER(expat.h, ,
|
||||
AC_MSG_ERROR([Expat headers not found]))
|
||||
|
||||
-# Check enchant is available
|
||||
-PKG_CHECK_MODULES(ENCHANT, [enchant], [CXXFLAGS="$CXXFLAGS -DUSE_ENCHANT"],
|
||||
- # otherwise Check ASPELL is available
|
||||
- [AC_CHECK_HEADER(aspell.h, [ASPELL_LIBS="-laspell"],
|
||||
- AC_MSG_ERROR([Aspell headers not found]))]
|
||||
-)
|
||||
-
|
||||
+# Check Aspell is available
|
||||
+AC_CHECK_HEADER(aspell.h, [ASPELL_LIBS="-laspell"],
|
||||
+ AC_MSG_ERROR([Aspell headers not found]))
|
||||
AC_SUBST(ASPELL_LIBS)
|
||||
|
||||
# Check gtk
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST qemu-2.11.1.tar.bz2 32819412 BLAKE2B 6b6d4e7b8dcf33aeedb0b33bad267da07ad17c2eeeb5fbd2c038d760bc03224e55ba0f03eb248c62bc0e8636c2c660ea76b367eaea96bee16388053f82c8b8a9 SHA512 1b692bbdfc3dc785738c7192aa2a3f9cf53d9f5bf3b3f49fa8692050dc50f7056c8a4d1b527d48ffb2a674a0fd3a46d87addd1eaaa758f35eec1ab5adfe32354
|
||||
DIST qemu-2.12.0.tar.bz2 41196232 BLAKE2B f258e570558249ea647c3571908f90b8bacdcef9a1814009b98571cf0e96406194d44aa041fd0a97c9b673f39a9eaae8d873824745509778a6784cd85f8398b0 SHA512 91d829f44c431e4c1cd335f3efea5afff9da62d832b0296a92417463ea0826d09ce226c2ea8ac167fe7b99b6bb976c7cb1357aaf17735ee57af6602161e46346
|
||||
|
@ -1,83 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils systemd udev python-any-r1
|
||||
|
||||
MY_PN="qemu"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
SRC_URI="http://wiki.qemu.org/download/${MY_P}.tar.bz2"
|
||||
KEYWORDS="amd64 ~ppc ~ppc64 x86 ~x86-fbsd"
|
||||
|
||||
DESCRIPTION="QEMU Guest Agent (qemu-ga) for use when running inside a VM"
|
||||
HOMEPAGE="https://wiki.qemu.org/Features/GuestAgent"
|
||||
|
||||
LICENSE="GPL-2 BSD-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/glib
|
||||
x11-libs/pixman"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.5.0-sysmacros.patch #580924
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
tc-export AR LD OBJCOPY
|
||||
|
||||
local myconf=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--libdir="/usr/$(get_libdir)"
|
||||
--localstatedir=/
|
||||
--disable-bsd-user
|
||||
--disable-linux-user
|
||||
--disable-system
|
||||
--disable-strip
|
||||
--disable-tools
|
||||
--disable-werror
|
||||
--enable-guest-agent
|
||||
--python="${PYTHON}"
|
||||
--cc="$(tc-getCC)"
|
||||
--cxx="$(tc-getCXX)"
|
||||
--host-cc="$(tc-getBUILD_CC)"
|
||||
)
|
||||
echo "./configure ${myconf[*]}"
|
||||
./configure "${myconf[@]}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 qemu-ga
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin qemu-ga
|
||||
|
||||
# Normal init stuff
|
||||
newinitd "${FILESDIR}/qemu-ga.init-r1" qemu-guest-agent
|
||||
newconfd "${FILESDIR}/qemu-ga.conf-r1" qemu-guest-agent
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/qemu-ga.logrotate" qemu-guest-agent
|
||||
|
||||
# systemd stuff
|
||||
udev_newrules "${FILESDIR}/qemu-ga-systemd.udev" 99-qemu-guest-agent.rules
|
||||
|
||||
systemd_newunit "${FILESDIR}/qemu-ga-systemd.service" \
|
||||
qemu-guest-agent.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "You should add 'qemu-guest-agent' to the default runlevel."
|
||||
elog "e.g. rc-update add qemu-guest-agent default"
|
||||
}
|
Binary file not shown.
@ -1,5 +1,6 @@
|
||||
DIST libpinyin-2.1.0.tar.gz 246219 BLAKE2B cae5b41faeb2e0eedc2ae2c098b2db04b22e36d0bd9fd222a4516f71ab9b3e8ade7fa96e0d6d898e197bf91c1cb6a0b98a9fff97e7be31bb4f901400c87bfea7 SHA512 e6aa3998ac466cb155750b574140dd43673bfeb4f13d1b88c4892b61bb773aee84610dd67ad17871961d51a48067c535eab33a6fb6c9ac28179a9958c4e9b518
|
||||
DIST libpinyin-2.1.91.tar.gz 256045 BLAKE2B 148a2617cbe335ebda5b9fb26f63f7c75f06d2dfd3fb950f60b4db37762a5bb3a91459dba0759abd33fbc01d38fe26d7cce92dfaaa2c6e45c80552f0bbeb3d27 SHA512 568b263726a022bdca52fd54c7583a36a31385a8f19bb5c5903918a6036c5499ef8c8bb91ebb2db877449ec5177d2d4e4f0a20e7bb528534361ba1405dd1fd92
|
||||
DIST libpinyin-2.2.0.tar.gz 256221 BLAKE2B 72c0dc42ca6e63852c92975b871706d24c1066cb9bb37faf9ff0ccde9773308e1a29c7587f00ab337c52a1f957c8e67d6241bdff13a50d9dbf73c3b4e530d2be SHA512 7327e6726acaf984492fdecb5ed04f81624da261aeac3cbea9a8ea5540d84f39ca8d41ec8835b509da97b9de5837534885e4ba5f4041ce9c7252c8a438480598
|
||||
DIST libpinyin-2.2.1.tar.gz 256262 BLAKE2B 4fc081aa42b07eb7d21277c95407eafbf618c9aaf0c6707893f212be70f51d43fe00f50d1b4758d857d0f8aed1e9c177d61d6ca912e776633e8179279f09fb2e SHA512 d323655419aaceda12d794ac25387a2e073e8c2372511913febd5b8049f9d1764a0011cd97b538bbfb14f5c248495a150cf7e3b9f4af21182941e5920f2d879f
|
||||
DIST libpinyin-model14.text.tar.gz 19361973 BLAKE2B 702f0c2cb0c8157758f8c46e7b47221475f2a96a5e4f6181b5dee605bd72002827431f017a913275b4e9cf6b4b07bccec4b9a5b7960a9b2c42ffba4631c57ed6 SHA512 792d3cf7ab7fdea701737cea66d18f697015f19d18b6d26273db2da0ae28291f38b3d8a5717f595da63fbe573921c552bdce10c4bec9a0834947dfec92265da9
|
||||
DIST libpinyin-model15.text.tar.gz 19361973 BLAKE2B 3d24321db407e28c1adf49373dd9bacafe0e89409511c0656d7b9a85f1d1ac8693249088dd99beef069576f4a8d0d5db3fd47f98822b32aa3098315cf2660d22 SHA512 d3f5b42f6ea6b22570b5ba67cf23d94a3fee2d7d894191ebc11eb72edc162c72b90b2fe10b312bfd8d77d110654ee5dc00c21b25fb8b7c3f905d4088c9895ac1
|
||||
|
@ -0,0 +1,61 @@
|
||||
# Copyright 2012-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit autotools
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/libpinyin/libpinyin"
|
||||
fi
|
||||
|
||||
LIBPINYIN_MODEL_VERSION="15"
|
||||
|
||||
DESCRIPTION="Libraries for handling of Hanyu Pinyin and Zhuyin Fuhao"
|
||||
HOMEPAGE="https://github.com/libpinyin/libpinyin https://sourceforge.net/projects/libpinyin/"
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="https://github.com/libpinyin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
SRC_URI+=" mirror://sourceforge/${PN}/models/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz -> ${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0/13"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
DEPEND="dev-libs/glib:2
|
||||
sys-libs/db:="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
unpack ${P}.tar.gz
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -e "/^\twget .*\/model${LIBPINYIN_MODEL_VERSION}\.text\.tar\.gz$/d" -i data/Makefile.am || die
|
||||
ln -s "${DISTDIR}/${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" "data/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-libzhuyin \
|
||||
--disable-static
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name "*.la" -delete || die
|
||||
}
|
Binary file not shown.
@ -1,27 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2003 Martin Hierling <mad@cc.fh-lippe.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
: ${IREXEC_USER:=root}
|
||||
|
||||
depend() {
|
||||
need lirc
|
||||
}
|
||||
|
||||
start() {
|
||||
if [ "x${IREXEC_USER}" = "xroot" -a "x${IREXEC_DISABLE_ROOT_WARNING}" != "xyes" ]; then
|
||||
ewarn "Warning: Running irexec as root can open security holes"
|
||||
fi
|
||||
|
||||
ebegin "Starting irexec"
|
||||
start-stop-daemon --start --chuid ${IREXEC_USER} --user ${IREXEC_USER} --chdir / \
|
||||
--exec /usr/bin/irexec -- --daemon ${IREXEC_OPTS}
|
||||
eend $? "Failed to start irexec."
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping irexec"
|
||||
start-stop-daemon --stop --exec /usr/bin/irexec --user ${IREXEC_USER}
|
||||
eend $? "Failed to stop irexec."
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=IR Exec
|
||||
After=lirc.service
|
||||
Wants=lirc.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/irexec
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,26 +0,0 @@
|
||||
--- lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c.orig 2005-10-29 08:18:53.000000000 -0600
|
||||
+++ lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c 2006-04-01 14:31:05.000000000 -0700
|
||||
@@ -147,8 +147,9 @@
|
||||
/* init strings */
|
||||
#define USB_OUTLEN 7
|
||||
|
||||
-static char init1[] = {0x01, 0x00, 0x20, 0x14};
|
||||
-static char init2[] = {0x01, 0x00, 0x20, 0x14, 0x20, 0x20, 0x20};
|
||||
+static char init1[] = {0x80, 0x05, 0x1b, 0x15, 0x14, 0x20, 0x24, 0x15};
|
||||
+static char init2[] = {0x83, 0x03};
|
||||
+static char init3[] = {0x84, 0xd7, 0x020};
|
||||
|
||||
struct in_endpt {
|
||||
/* inner link in list of endpoints for the remote specified by ir */
|
||||
@@ -1034,8 +1034,9 @@
|
||||
usb_sndintpipe(ir->usbdev, oep->ep->bEndpointAddress), oep->buf,
|
||||
USB_OUTLEN, usb_remote_send, oep, oep->ep->bInterval);
|
||||
|
||||
- send_packet(oep, 0x8004, init1);
|
||||
- send_packet(oep, 0x8007, init2);
|
||||
+ send_packet(oep, 0x8007, init1);
|
||||
+ send_packet(oep, 0x8002, init2);
|
||||
+ send_packet(oep, 0x8003, init3);
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +0,0 @@
|
||||
Portaudio is only needed for LIRC_DEVICES=audio, so not checking for Portaudio when the device is disabled will prevent automagic dependencies.
|
||||
--- configure.ac.orig 2009-03-13 10:02:50.000000000 +0100
|
||||
+++ configure.ac 2009-03-13 10:04:00.000000000 +0100
|
||||
@@ -336,14 +336,6 @@
|
||||
AC_DEFINE(HAVE_LIBIRMAN_SW)
|
||||
possible_drivers="${possible_drivers} (irman_sw)"
|
||||
)
|
||||
-dnl audio driver requires PortAudio library installed and some linker flags
|
||||
-AC_CHECK_HEADERS(portaudio.h,[
|
||||
- AC_CHECK_LIB(portaudio, Pa_Initialize,[
|
||||
- AC_DEFINE(HAVE_LIBPORTAUDIO)
|
||||
- possible_drivers="${possible_drivers} (audio)"
|
||||
- ],,${portaudio_lib_other}
|
||||
- )]
|
||||
-)
|
||||
dnl audio_alsa driver requires ALSA library installed and some linker flags
|
||||
have_alsa=no
|
||||
AC_CHECK_HEADERS(alsa/asoundlib.h,[
|
@ -1,658 +0,0 @@
|
||||
diff -rupN base/configure.ac mod/configure.ac
|
||||
--- base/configure.ac 2011-03-25 23:28:18.000000000 +0100
|
||||
+++ mod/configure.ac 2013-03-21 16:25:07.218419985 +0100
|
||||
@@ -383,7 +383,7 @@ AC_CHECK_HEADERS(linux/input.h,[
|
||||
dnl check if hiddev is available
|
||||
AC_CHECK_HEADERS([linux/types.h])
|
||||
AC_CHECK_HEADERS([linux/hiddev.h],[
|
||||
- possible_drivers="${possible_drivers} (asusdh) (bw6130) (dvico) (macmini)"
|
||||
+ possible_drivers="${possible_drivers} (asusdh) (bw6130) (dvico) (macmini) (zotac)"
|
||||
AC_MSG_CHECKING(for HIDDEV_FLAG_UREF support)
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <linux/types.h>
|
||||
@@ -393,7 +393,7 @@ AC_CHECK_HEADERS([linux/hiddev.h],[
|
||||
]])],[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_LINUX_HIDDEV_FLAG_UREF)
|
||||
- possible_drivers="${possible_drivers} (samsung) (sb0540)"
|
||||
+ possible_drivers="${possible_drivers} (samsung) (sb0540) (zotac)"
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
@@ -446,7 +446,7 @@ AC_ARG_WITH(driver,
|
||||
srm7500libusb, tekram,
|
||||
tekram_bt829, tira, tira_raw, ttusbir,
|
||||
tuxbox, tvbox, udp, uirt2, uirt2_raw,
|
||||
- usb_uirt_raw, usbx, wpc8769l],
|
||||
+ usb_uirt_raw, usbx, wpc8769l, zotac],
|
||||
driver=${withval},
|
||||
driver="unset"
|
||||
)
|
||||
@@ -464,6 +464,7 @@ portaudio_lib=""
|
||||
alsa_lib=""
|
||||
atilibusb_lib=""
|
||||
atwf83_lib=""
|
||||
+zotac_lib=""
|
||||
awlibusb_lib=""
|
||||
dfclibusb_lib=""
|
||||
srm7500libusb_lib=""
|
||||
@@ -683,6 +684,10 @@ if test "$driver" = "userspace" -o "$dri
|
||||
usbx)
|
||||
hw_module="${hw_module} hw_usbx.o serial.o"
|
||||
;;
|
||||
+ zotac)
|
||||
+ hw_module="${hw_module} hw_zotac.o"
|
||||
+ zotac_lib=-lpthread
|
||||
+ ;;
|
||||
esac
|
||||
done
|
||||
#remove duplicates
|
||||
@@ -733,6 +738,14 @@ if test "$driver" = "alsa_usb"; then
|
||||
lircd_conf="creative/lircd.conf.alsa_usb"
|
||||
fi
|
||||
|
||||
+if test "$driver" = "zotac"; then
|
||||
+ lirc_driver="$driver"
|
||||
+ hw_module="hw_zotac.o"
|
||||
+ HW_DEFAULT="hw_zotac"
|
||||
+ lircd_conf="zotac/lircd.conf.zotac"
|
||||
+ zotac_lib=-lpthread
|
||||
+fi
|
||||
+
|
||||
if test "$driver" = "animax"; then
|
||||
lirc_driver="lirc_dev lirc_serial"
|
||||
lircd_conf="animax/lircd.conf.animax"
|
||||
@@ -1499,6 +1512,7 @@ if test "$lirc_driver" = "none" || \
|
||||
test "$lirc_driver" = "macmini" || \
|
||||
test "$lirc_driver" = "samsung" || \
|
||||
test "$lirc_driver" = "sb0540" || \
|
||||
+ test "$lirc_driver" = "zotac" || \
|
||||
test "$lirc_driver" = "srm7500libusb" || \
|
||||
test "$lirc_driver" = "userspace"; then
|
||||
lirc_driver=
|
||||
@@ -1669,7 +1683,7 @@ if ! echo ${hw_module}|grep " receive.o"
|
||||
receive="receive.o"
|
||||
fi
|
||||
|
||||
-hw_module_libs="${alsa_lib} ${atilibusb_lib} ${awlibusb_lib} ${caraca_lib} ${commandir_lib} ${dfclibusb_lib} ${ftdi_lib} ${iguanaIR_lib} ${irman_lib} ${portaudio_lib} ${srm7500libusb_lib} ${atwf83_lib}"
|
||||
+hw_module_libs="${alsa_lib} ${atilibusb_lib} ${awlibusb_lib} ${caraca_lib} ${commandir_lib} ${dfclibusb_lib} ${ftdi_lib} ${iguanaIR_lib} ${irman_lib} ${portaudio_lib} ${srm7500libusb_lib} ${atwf83_lib} ${zotac_lib}"
|
||||
|
||||
dnl tell the Makefiles what we decided
|
||||
AC_SUBST(daemon)
|
||||
diff -rupN base/daemons/Makefile.am mod/daemons/Makefile.am
|
||||
--- base/daemons/Makefile.am 2011-03-25 23:28:18.000000000 +0100
|
||||
+++ mod/daemons/Makefile.am 2013-03-21 16:25:40.488790784 +0100
|
||||
@@ -58,7 +58,8 @@ EXTRA_libhw_module_a_SOURCES = \
|
||||
hw_usbx.c hw_usbx.h \
|
||||
receive.c receive.h \
|
||||
transmit.c transmit.h \
|
||||
- serial.c serial.h
|
||||
+ serial.c serial.h \
|
||||
+ hw_zotac.c
|
||||
|
||||
libhw_module_a_LIBADD = @hw_module@
|
||||
libhw_module_a_DEPENDENCIES = @hw_module@
|
||||
diff -rupN base/daemons/hw-types.c mod/daemons/hw-types.c
|
||||
--- base/daemons/hw-types.c 2011-03-25 23:28:18.000000000 +0100
|
||||
+++ mod/daemons/hw-types.c 2013-03-21 16:26:38.913200218 +0100
|
||||
@@ -59,6 +59,7 @@ extern struct hardware hw_uirt2;
|
||||
extern struct hardware hw_uirt2_raw;
|
||||
extern struct hardware hw_usb_uirt_raw;
|
||||
extern struct hardware hw_usbx;
|
||||
+extern struct hardware hw_zotac;
|
||||
|
||||
#ifndef HW_DEFAULT
|
||||
# define HW_DEFAULT hw_default
|
||||
@@ -160,6 +161,7 @@ struct hardware *hw_list[] = {
|
||||
#ifdef HAVE_LINUX_HIDDEV_FLAG_UREF
|
||||
&hw_samsung,
|
||||
&hw_sb0540,
|
||||
+ &hw_zotac,
|
||||
#endif
|
||||
&hw_silitek,
|
||||
#ifdef HAVE_LIBUSB
|
||||
diff -rupN base/daemons/hw_zotac.c mod/daemons/hw_zotac.c
|
||||
--- base/daemons/hw_zotac.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ mod/daemons/hw_zotac.c 2013-03-21 16:31:06.989272556 +0100
|
||||
@@ -0,0 +1,429 @@
|
||||
+/****************************************************************************
|
||||
+ ** hw_zotac.c *************************************************************
|
||||
+ ****************************************************************************
|
||||
+ *
|
||||
+ * Lirc driver for Zotac remote
|
||||
+ *
|
||||
+ * Copyright (C) 2010 Rainer Hochecker
|
||||
+ *
|
||||
+ * Distribute under GPL version 2 or later.
|
||||
+ *
|
||||
+ */
|
||||
+
|
||||
+#ifdef HAVE_CONFIG_H
|
||||
+# include <config.h>
|
||||
+#endif
|
||||
+
|
||||
+#include <stdio.h>
|
||||
+#include <pthread.h>
|
||||
+#include <sys/fcntl.h>
|
||||
+#include <signal.h>
|
||||
+#include <linux/hiddev.h>
|
||||
+#include <sys/ioctl.h>
|
||||
+#include "hardware.h"
|
||||
+#include "ir_remote.h"
|
||||
+#include "lircd.h"
|
||||
+
|
||||
+enum {
|
||||
+ RPT_NO = 0,
|
||||
+ RPT_YES = 1,
|
||||
+};
|
||||
+
|
||||
+static int zotac_init();
|
||||
+static int zotac_deinit();
|
||||
+static char *zotac_rec(struct ir_remote *remotes);
|
||||
+static int zotac_decode(struct ir_remote *remote, ir_code * prep, ir_code * codep, ir_code * postp, int *repeat_flagp,
|
||||
+ lirc_t * min_remaining_gapp, lirc_t * max_remaining_gapp);
|
||||
+static void *zotac_repeat();
|
||||
+static int zotac_getcode();
|
||||
+
|
||||
+/** Max number of repetitions */
|
||||
+static unsigned max_repeat_count = 500;
|
||||
+/** Code that triggers key release */
|
||||
+static unsigned release_code = 0x00000000;
|
||||
+/** Code that triggers device remove */
|
||||
+static unsigned remove_code =0x00FFFFFF;
|
||||
+/** Time to wait before first repetition */
|
||||
+static unsigned repeat_time1_us = 500000;
|
||||
+/** Time to wait between two repetitions */
|
||||
+static unsigned repeat_time2_us = 100000;
|
||||
+/** Pipe between main thread and repetition thread */
|
||||
+static int fd_pipe[2] = { -1, -1 };
|
||||
+
|
||||
+/** Thread that simulates repetitions */
|
||||
+static pthread_t repeat_thread;
|
||||
+/** File descriptor for the real device */
|
||||
+static int fd_hidraw;
|
||||
+
|
||||
+static int main_code_length = 32;
|
||||
+static signed int main_code = 0;
|
||||
+static struct timeval start, end, last;
|
||||
+static int repeat_state = RPT_NO;
|
||||
+static int error_state = 0;
|
||||
+static int probe_code = 0;
|
||||
+
|
||||
+#ifdef HAVE_LINUX_HIDDEV_FLAG_UREF
|
||||
+/* Zotac USB iR Receiver */
|
||||
+struct hardware hw_zotac = {
|
||||
+ "/dev/usb/hiddev0", /* "device" */
|
||||
+ -1, /* fd (device) */
|
||||
+ LIRC_CAN_REC_LIRCCODE, /* features */
|
||||
+ 0, /* send_mode */
|
||||
+ LIRC_MODE_LIRCCODE, /* rec_mode */
|
||||
+ 32, /* code_length */
|
||||
+ zotac_init, /* init_func */
|
||||
+ zotac_deinit, /* deinit_func */
|
||||
+ NULL, /* send_func */
|
||||
+ zotac_rec, /* rec_func */
|
||||
+ zotac_decode, /* decode_func */
|
||||
+ NULL, /* ioctl_func */
|
||||
+ NULL, /* readdata */
|
||||
+ "zotac" /* name */
|
||||
+};
|
||||
+#endif
|
||||
+
|
||||
+static int zotac_decode(struct ir_remote *remote, ir_code * prep, ir_code * codep, ir_code * postp, int *repeat_flagp,
|
||||
+ lirc_t * min_remaining_gapp, lirc_t * max_remaining_gapp)
|
||||
+{
|
||||
+ LOGPRINTF(1, "zotac_decode");
|
||||
+
|
||||
+ if (!map_code(remote, prep, codep, postp, 0, 0, main_code_length, main_code, 0, 0)) {
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ map_gap(remote, &start, &last, 0, repeat_flagp, min_remaining_gapp, max_remaining_gapp);
|
||||
+ /* override repeat */
|
||||
+ *repeat_flagp = repeat_state;
|
||||
+
|
||||
+ return 1;
|
||||
+}
|
||||
+
|
||||
+static int zotac_getcode() {
|
||||
+
|
||||
+ ssize_t rd;
|
||||
+ struct hiddev_usage_ref uref;
|
||||
+ struct hiddev_report_info rinfo;
|
||||
+ struct hiddev_field_info finfo;
|
||||
+ int shift = 0;
|
||||
+
|
||||
+ rd = read(fd_hidraw, &uref, sizeof(uref));
|
||||
+ if (rd < 0) {
|
||||
+ logprintf(LOG_ERR, "error reading '%s'", hw.device);
|
||||
+ logperror(LOG_ERR, NULL);
|
||||
+ zotac_deinit();
|
||||
+ error_state = 1;
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ if (uref.field_index == HID_FIELD_INDEX_NONE) {
|
||||
+ /*
|
||||
+ * we get this when the new report has been send from
|
||||
+ * device at this point we have the uref structure
|
||||
+ * prefilled with correct report type and id
|
||||
+ *
|
||||
+ */
|
||||
+
|
||||
+ switch (uref.report_id) {
|
||||
+ case 1: /* USB standard keyboard usage page */
|
||||
+ {
|
||||
+ /* This page reports cursor keys */
|
||||
+ LOGPRINTF(3, "Keyboard (standard)\n");
|
||||
+
|
||||
+ /* check for special codes */
|
||||
+ uref.field_index = 0;
|
||||
+ uref.usage_index = 1;
|
||||
+ /* fetch the usage code for given indexes */
|
||||
+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref, sizeof(uref));
|
||||
+ /* fetch the value from report */
|
||||
+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref, sizeof(uref));
|
||||
+
|
||||
+ if (uref.value)
|
||||
+ shift = 1;
|
||||
+
|
||||
+ /* populate required field number */
|
||||
+ uref.field_index = 1;
|
||||
+ uref.usage_index = 0;
|
||||
+ /* fetch the usage code for given indexes */
|
||||
+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref, sizeof(uref));
|
||||
+ /* fetch the value from report */
|
||||
+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref, sizeof(uref));
|
||||
+ /* now we have the key */
|
||||
+
|
||||
+ LOGPRINTF(3, "usage: %x value: %x shift: %d\n",uref.usage_code, uref.value, shift);
|
||||
+
|
||||
+ /* now we have the key */
|
||||
+ if (uref.value) {
|
||||
+ probe_code = (uref.usage_code | uref.value);
|
||||
+ if (shift)
|
||||
+ probe_code |= 0x10000000;
|
||||
+ LOGPRINTF(3, "Main code 1: %x\n", probe_code);
|
||||
+ return 1;
|
||||
+ }
|
||||
+ else {
|
||||
+ LOGPRINTF(3, "rel button\n");
|
||||
+ probe_code = release_code;
|
||||
+ return 2;
|
||||
+ }
|
||||
+ }
|
||||
+ break;
|
||||
+
|
||||
+ case 2:
|
||||
+ case 3: /* USB generic desktop usage page */
|
||||
+ case 4:
|
||||
+ {
|
||||
+ /* This page reports power key
|
||||
+ * (via SystemControl SLEEP)
|
||||
+ */
|
||||
+ LOGPRINTF(3, "Generic desktop (standard)\n");
|
||||
+
|
||||
+
|
||||
+ /* traverse report descriptor */
|
||||
+ rinfo.report_type = HID_REPORT_TYPE_INPUT;
|
||||
+ rinfo.report_id = HID_REPORT_ID_FIRST;
|
||||
+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
|
||||
+
|
||||
+ unsigned int i,j;
|
||||
+ while (rd >= 0) {
|
||||
+ for (i = 0; i < rinfo.num_fields; i++) {
|
||||
+ finfo.report_type = rinfo.report_type;
|
||||
+ finfo.report_id = rinfo.report_id;
|
||||
+ finfo.field_index = i;
|
||||
+ ioctl(fd_hidraw, HIDIOCGFIELDINFO, &finfo);
|
||||
+ for (j = 0; j < finfo.maxusage; j++) {
|
||||
+ uref.field_index = i;
|
||||
+ uref.usage_index = j;
|
||||
+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref);
|
||||
+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref);
|
||||
+
|
||||
+ if (uref.value != 0) {
|
||||
+ LOGPRINTF(3, "field: %d, idx: %d, usage: %x value: %x\n",i, j, uref.usage_code, uref.value);
|
||||
+ probe_code = uref.usage_code;
|
||||
+ return 1;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ rinfo.report_id |= HID_REPORT_ID_NEXT;
|
||||
+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
|
||||
+ }
|
||||
+ return 2;
|
||||
+ }
|
||||
+ break;
|
||||
+ default:
|
||||
+ /* Unknown/unsupported report id.
|
||||
+ * Should not happen because remaining reports
|
||||
+ * from report descriptor seem to be unused by remote.
|
||||
+ */
|
||||
+ logprintf(LOG_ERR, "Unexpected report id %d", uref.report_id);
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
+ else {
|
||||
+ /* This page reports power key
|
||||
+ * (via SystemControl SLEEP)
|
||||
+ */
|
||||
+ LOGPRINTF(3, "Same Event ...\n");
|
||||
+
|
||||
+ /* traverse report descriptor */
|
||||
+ rinfo.report_type = HID_REPORT_TYPE_INPUT;
|
||||
+ rinfo.report_id = HID_REPORT_ID_FIRST;
|
||||
+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
|
||||
+
|
||||
+ unsigned int i,j;
|
||||
+ while (rd >= 0) {
|
||||
+ for (i = 0; i < rinfo.num_fields; i++) {
|
||||
+ finfo.report_type = rinfo.report_type;
|
||||
+ finfo.report_id = rinfo.report_id;
|
||||
+ finfo.field_index = i;
|
||||
+ ioctl(fd_hidraw, HIDIOCGFIELDINFO, &finfo);
|
||||
+ for (j = 0; j < finfo.maxusage; j++) {
|
||||
+ uref.field_index = i;
|
||||
+ uref.usage_index = j;
|
||||
+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref);
|
||||
+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref);
|
||||
+
|
||||
+ if (uref.value != 0) {
|
||||
+ LOGPRINTF(3, "usage: %x value: %x\n",uref.usage_code, uref.value);
|
||||
+ //probe_code = uref.usage_code;
|
||||
+ return 0;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ rinfo.report_id |= HID_REPORT_ID_NEXT;
|
||||
+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
|
||||
+ }
|
||||
+ return 2;
|
||||
+ }
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+static int zotac_init()
|
||||
+{
|
||||
+ logprintf(LOG_INFO, "zotac initializing '%s'", hw.device);
|
||||
+ if ((fd_hidraw = open(hw.device, O_RDONLY)) < 0) {
|
||||
+ logprintf(LOG_ERR, "unable to open '%s'", hw.device);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ int flags = HIDDEV_FLAG_UREF | HIDDEV_FLAG_REPORT;
|
||||
+ if (ioctl(fd_hidraw, HIDIOCSFLAG, &flags)) {
|
||||
+ return 0;
|
||||
+ }
|
||||
+ hw.fd = fd_hidraw;
|
||||
+
|
||||
+ /* Create pipe so that events sent by the repeat thread will
|
||||
+ trigger main thread */
|
||||
+ if (pipe(fd_pipe) != 0) {
|
||||
+ logperror(LOG_ERR, "couldn't open pipe");
|
||||
+ close(fd_hidraw);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ hw.fd = fd_pipe[0];
|
||||
+ /* Create thread to simulate repetitions */
|
||||
+ if (pthread_create(&repeat_thread, NULL, zotac_repeat, NULL)) {
|
||||
+ logprintf(LOG_ERR, "Could not create \"repeat thread\"");
|
||||
+ return 0;
|
||||
+ }
|
||||
+ return 1;
|
||||
+}
|
||||
+
|
||||
+static int zotac_deinit()
|
||||
+{
|
||||
+ pthread_cancel(repeat_thread);
|
||||
+ if (fd_hidraw != -1) {
|
||||
+ // Close device if it is open
|
||||
+ logprintf(LOG_INFO, "closing '%s'", hw.device);
|
||||
+ close(fd_hidraw);
|
||||
+ fd_hidraw = -1;
|
||||
+ }
|
||||
+ // Close pipe input
|
||||
+ if (fd_pipe[1] >= 0) {
|
||||
+ close(fd_pipe[1]);
|
||||
+ fd_pipe[1] = -1;
|
||||
+ }
|
||||
+ // Close pipe output
|
||||
+ if (fd_pipe[0] >= 0) {
|
||||
+ close(fd_pipe[0]);
|
||||
+ fd_pipe[0] = -1;
|
||||
+ }
|
||||
+ hw.fd = -1;
|
||||
+ return 1;
|
||||
+}
|
||||
+
|
||||
+/**
|
||||
+ * Runtime that reads device, forwards codes to main thread
|
||||
+ * and simulates repetitions.
|
||||
+ */
|
||||
+static void *zotac_repeat()
|
||||
+{
|
||||
+ int repeat_count = 0;
|
||||
+ unsigned current_code;
|
||||
+ int ret;
|
||||
+ int sel;
|
||||
+ fd_set files;
|
||||
+ struct timeval delay;
|
||||
+ int pressed = 0;
|
||||
+ int fd = fd_pipe[1];
|
||||
+
|
||||
+ while (1) {
|
||||
+ // Initialize set to monitor device's events
|
||||
+ FD_ZERO(&files);
|
||||
+ FD_SET(fd_hidraw, &files);
|
||||
+ if (pressed) {
|
||||
+ sel = select(FD_SETSIZE, &files, NULL, NULL, &delay);
|
||||
+ } else {
|
||||
+ sel = select(FD_SETSIZE, &files, NULL, NULL, NULL);
|
||||
+ }
|
||||
+
|
||||
+ switch (sel) {
|
||||
+ case 1:
|
||||
+ // Data ready in device's file
|
||||
+ ret = zotac_getcode();
|
||||
+
|
||||
+ if (ret < 0) {
|
||||
+ // Error
|
||||
+ logprintf(LOG_ERR, "(%s) Could not read %s", __FUNCTION__, hw.device);
|
||||
+ goto exit_loop;
|
||||
+ }
|
||||
+ if (ret == 1) {
|
||||
+ // Key code : forward it to main thread
|
||||
+ pressed = 1;
|
||||
+ repeat_count = 0;
|
||||
+ delay.tv_sec = 0;
|
||||
+ delay.tv_usec = repeat_time1_us;
|
||||
+ current_code = probe_code;
|
||||
+ } else if (ret == 2) {
|
||||
+ // Release code : stop repetitions
|
||||
+ pressed = 0;
|
||||
+ current_code = release_code;
|
||||
+ } else if (ret == 0) {
|
||||
+ continue;
|
||||
+ }
|
||||
+ break;
|
||||
+ case 0:
|
||||
+ repeat_count++;
|
||||
+ if (repeat_count >= max_repeat_count) {
|
||||
+ // Too many repetitions, something must have gone wrong
|
||||
+ logprintf(LOG_ERR,"(%s) too many repetitions", __FUNCTION__);
|
||||
+ goto exit_loop;
|
||||
+ }
|
||||
+ // Timeout : send current_code again to main
|
||||
+ // thread to simulate repetition
|
||||
+ delay.tv_sec = 0;
|
||||
+ delay.tv_usec = repeat_time2_us;
|
||||
+ break;
|
||||
+ default:
|
||||
+ // Error
|
||||
+ logprintf(LOG_ERR, "(%s) select() failed", __FUNCTION__);
|
||||
+ goto exit_loop;
|
||||
+ }
|
||||
+ // Send code to main thread through pipe
|
||||
+ write(fd, ¤t_code, sizeof(current_code));
|
||||
+ }
|
||||
+exit_loop:
|
||||
+
|
||||
+ // Wake up main thread with special key code
|
||||
+ current_code = remove_code;
|
||||
+ write(fd, ¤t_code, sizeof(current_code));
|
||||
+ return NULL;
|
||||
+}
|
||||
+
|
||||
+/*
|
||||
+* Aureal Technology ATWF@83 cheap remote
|
||||
+* specific code.
|
||||
+*/
|
||||
+
|
||||
+static char *zotac_rec(struct ir_remote *remotes)
|
||||
+{
|
||||
+ unsigned ev;
|
||||
+ int rd;
|
||||
+ last = end;
|
||||
+ gettimeofday(&start, NULL);
|
||||
+ rd = read(hw.fd, &ev, sizeof(ev));
|
||||
+
|
||||
+ if (rd == -1) {
|
||||
+ // Error
|
||||
+ logprintf(LOG_ERR, "(%s) could not read pipe", __FUNCTION__);
|
||||
+ zotac_deinit();
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ if (ev == release_code) {
|
||||
+ // Release code
|
||||
+ main_code = 0;
|
||||
+ return 0;
|
||||
+ } else if (ev == remove_code) {
|
||||
+ // Device has been removed
|
||||
+ zotac_deinit();
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ LOGPRINTF(1, "zotac : %x", ev);
|
||||
+ // Record the code and check for repetition
|
||||
+ if (main_code == ev) {
|
||||
+ repeat_state = RPT_YES;
|
||||
+ } else {
|
||||
+ main_code = ev;
|
||||
+ repeat_state = RPT_NO;
|
||||
+ }
|
||||
+ gettimeofday(&end, NULL);
|
||||
+ return decode_all(remotes);
|
||||
+}
|
||||
diff -rupN base/remotes/zotac/lircd.conf.zotac mod/remotes/zotac/lircd.conf.zotac
|
||||
--- base/remotes/zotac/lircd.conf.zotac 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ mod/remotes/zotac/lircd.conf.zotac 2013-03-21 16:31:31.343367869 +0100
|
||||
@@ -0,0 +1,77 @@
|
||||
+
|
||||
+# Please make this file available to others
|
||||
+# by sending it to <lirc@bartelmus.de>
|
||||
+#
|
||||
+# this config file was automatically generated
|
||||
+# using lirc-0.9.1-git(zotac) on Mon Apr 2 14:10:29 2012
|
||||
+#
|
||||
+# contributed by
|
||||
+#
|
||||
+# brand: zotac.conf
|
||||
+# model no. of remote control:
|
||||
+# devices being controlled by this remote:
|
||||
+#
|
||||
+
|
||||
+begin remote
|
||||
+
|
||||
+ name zotac.conf
|
||||
+ bits 32
|
||||
+ eps 30
|
||||
+ aeps 100
|
||||
+
|
||||
+ one 0 0
|
||||
+ zero 0 0
|
||||
+ gap 100123
|
||||
+ min_repeat 9
|
||||
+# suppress_repeat 9
|
||||
+# uncomment to suppress unwanted repeats
|
||||
+# toggle_bit_mask 0x7004F
|
||||
+
|
||||
+ begin codes
|
||||
+ KEY_SLEEP 0x00010082
|
||||
+ KEY_WAKEUP 0x00010083
|
||||
+ KEY_RECORD 0x000C00B2
|
||||
+ KEY_PAUSE 0x000C00B1
|
||||
+ KEY_STOP 0x000C00B7
|
||||
+ KEY_REWIND 0x000C00B4
|
||||
+ KEY_PLAY 0x000C00B0
|
||||
+ KEY_FORWARD 0x000C00B3
|
||||
+ KEY_LEFTSHIFT 0x000C00B6
|
||||
+ KEY_RIGHTSHIFT 0x000C00B5
|
||||
+ KEY_BACK 0x000C0224
|
||||
+ KEY_INFO 0x000C0209
|
||||
+ KEY_MENU 0xFFBC000D
|
||||
+ KEY_UP 0x00070052
|
||||
+ KEY_LEFT 0x00070050
|
||||
+ KEY_RIGHT 0x0007004F
|
||||
+ KEY_DOWN 0x00070051
|
||||
+ KEY_OK 0x00070028
|
||||
+ KEY_VOLUMEUP 0x000C00E9
|
||||
+ KEY_VOLUMEDOWN 0x000C00EA
|
||||
+ KEY_MUTE 0x000C00E2
|
||||
+ KEY_CHANNELUP 0x000C009C
|
||||
+ KEY_CHANNELDOWN 0x000C009D
|
||||
+ KEY_1 0x0007001E
|
||||
+ KEY_2 0x0007001F
|
||||
+ KEY_3 0x00070020
|
||||
+ KEY_4 0x00070021
|
||||
+ KEY_5 0x00070022
|
||||
+ KEY_6 0x00070023
|
||||
+ KEY_7 0x00070024
|
||||
+ KEY_8 0x00070025
|
||||
+ KEY_9 0x00070026
|
||||
+ KEY_0 0x00070027
|
||||
+ KEY_NUMERIC_STAR 0x10070025
|
||||
+ KEY_NUMERIC_POUND 0x10070020
|
||||
+ KEY_CLEAR 0x00070029
|
||||
+ KEY_TEXT 0xFFBC005A
|
||||
+ KEY_TITLE 0x000C008D
|
||||
+ KEY_ENTER 0x00070028
|
||||
+ KEY_RED 0xFFBC005B
|
||||
+ KEY_GREEN 0xFFBC005C
|
||||
+ KEY_YELLOW 0xFFBC005D
|
||||
+ KEY_BLUE 0xFFBC005E
|
||||
+ end codes
|
||||
+
|
||||
+end remote
|
||||
+
|
||||
diff -rupN base/setup.data mod/setup.data
|
||||
--- base/setup.data 2011-03-25 23:28:18.000000000 +0100
|
||||
+++ mod/setup.data 2013-03-21 16:28:11.433935463 +0100
|
||||
@@ -146,6 +146,7 @@ hw_menu_entry: @hw-usb
|
||||
usb_uirt_raw: "USB-UIRT"
|
||||
mplay: "VLSystem MPlay Blast"
|
||||
mplay: "VLSystem MPlay Mini"
|
||||
+ zotac: "Zotac USB IR Receiver"
|
||||
|
||||
param_type: \
|
||||
act200l \
|
||||
@@ -260,7 +261,8 @@ param_type: \
|
||||
ttusbir \
|
||||
tvbox \
|
||||
udp \
|
||||
- wpc8769l
|
||||
+ wpc8769l \
|
||||
+ zotac
|
||||
none:
|
||||
|
||||
default_param: \
|
||||
@@ -331,7 +333,8 @@ default_param: \
|
||||
ttusbir \
|
||||
tvbox \
|
||||
udp \
|
||||
- wpc8769l
|
||||
+ wpc8769l \
|
||||
+ zotac
|
||||
none:
|
||||
|
||||
default_param: \
|
@ -1,14 +0,0 @@
|
||||
--- a/drivers/lirc_atiusb/lirc_atiusb.c 2012-07-17 16:04:39.000000000 -0400
|
||||
+++ b/drivers/lirc_atiusb/lirc_atiusb.c 2012-07-17 16:19:06.000000000 -0400
|
||||
@@ -1050,7 +1050,11 @@
|
||||
goto new_irctl_failure_check;
|
||||
}
|
||||
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 38)
|
||||
if (lirc_buffer_init(driver->rbuf, dclen, 1)) {
|
||||
+#else
|
||||
+ if (lirc_buffer_init(driver->rbuf, dclen, 2)) {
|
||||
+#endif
|
||||
mem_failure = 4;
|
||||
goto new_irctl_failure_check;
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
--- a/tools/xmode2.c 2011-03-25 23:28:18.000000000 +0100
|
||||
+++ b/tools/xmode2.c 2012-07-29 19:36:34.972246587 +0200
|
||||
@@ -69,7 +69,7 @@
|
||||
Window w0, w1; /*w0 = root */
|
||||
char w1_wname[] = "xmode2";
|
||||
char w1_iname[] = "xmode2";
|
||||
-char font1_name[] = "-*-Courier-medium-r-*-*-8-*-*-m-*-iso8859-1";
|
||||
+char font1_name[] = "fixed";
|
||||
|
||||
int w1_x = 0, w1_y = 0;
|
||||
unsigned int w1_w = 640, w1_h = 480, w1_border = 0;
|
||||
@@ -201,7 +201,7 @@
|
||||
printf("coudn't allocate blue color\n");
|
||||
f1_str = XLoadQueryFont(d1, font1_name);
|
||||
if (f1_str == NULL) {
|
||||
- printf("could't load font\n");
|
||||
+ printf("couldn't load font\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
@ -1,67 +0,0 @@
|
||||
diff -u a/drivers/lirc_atiusb/lirc_atiusb.c b/drivers/lirc_atiusb/lirc_atiusb.c
|
||||
--- a/drivers/lirc_atiusb/lirc_atiusb.c
|
||||
+++ b/drivers/lirc_atiusb/lirc_atiusb.c
|
||||
@@ -48,7 +48,9 @@
|
||||
#include <linux/slab.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/kmod.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
|
||||
#include <linux/smp_lock.h>
|
||||
+#endif
|
||||
#include <linux/completion.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/usb.h>
|
||||
diff -u a/drivers/lirc_i2c/lirc_i2c.c b/drivers/lirc_i2c/lirc_i2c.c
|
||||
--- a/drivers/lirc_i2c/lirc_i2c.c
|
||||
+++ b/drivers/lirc_i2c/lirc_i2c.c
|
||||
@@ -555,8 +555,8 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
||||
kfree(ir);
|
||||
return -EINVAL;
|
||||
}
|
||||
- printk(KERN_INFO "lirc_i2c: chip 0x%x found @ 0x%02x (%s)\n",
|
||||
- adap->id, addr, ir->c.name);
|
||||
+ printk(KERN_INFO "lirc_i2c: chip found @ 0x%02x (%s)\n",
|
||||
+ addr, ir->c.name);
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
|
||||
/* register device */
|
||||
diff -u a/drivers/lirc_wpc8769l/lirc_wpc8769l.c b/drivers/lirc_wpc8769l/lirc_wpc8769l.c
|
||||
--- a/drivers/lirc_wpc8769l/lirc_wpc8769l.c
|
||||
+++ b/drivers/lirc_wpc8769l/lirc_wpc8769l.c
|
||||
@@ -361,14 +361,22 @@ static irqreturn_t irq_handler(int irqno, void *blah, struct pt_regs *regs)
|
||||
size = count << 3;
|
||||
|
||||
ldata = (unsigned long *) data_buf;
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
|
||||
next_one = generic_find_next_le_bit(ldata, size, 0);
|
||||
+#else
|
||||
+ next_one = find_next_zero_bit_le(ldata, size, 0);
|
||||
+#endif
|
||||
|
||||
if (next_one > 0)
|
||||
put_pulse_bit(next_one
|
||||
* WPC8769L_USECS_PER_BIT);
|
||||
|
||||
while (next_one < size) {
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
|
||||
next_zero = generic_find_next_zero_le_bit(ldata,
|
||||
+#else
|
||||
+ next_zero = find_next_zero_bit_le(ldata,
|
||||
+#endif
|
||||
size, next_one + 1);
|
||||
|
||||
put_space_bit(
|
||||
@@ -376,7 +384,11 @@ static irqreturn_t irq_handler(int irqno, void *blah, struct pt_regs *regs)
|
||||
* WPC8769L_USECS_PER_BIT);
|
||||
|
||||
if (next_zero < size) {
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
|
||||
next_one = generic_find_next_le_bit(ldata,
|
||||
+#else
|
||||
+ next_one = find_next_bit_le(ldata,
|
||||
+#endif
|
||||
size, next_zero + 1);
|
||||
|
||||
put_pulse_bit(
|
||||
--
|
||||
1.7.5.4
|
@ -1,50 +0,0 @@
|
||||
diff -ur drivers/lirc_serial/lirc_serial.c drivers.new/lirc_serial/lirc_serial.c
|
||||
--- drivers/lirc_serial/lirc_serial.c 2011-03-25 18:28:18.000000000 -0400
|
||||
+++ drivers.new/lirc_serial/lirc_serial.c 2012-10-24 14:32:14.000000000 -0400
|
||||
@@ -66,7 +66,12 @@
|
||||
#include <linux/poll.h>
|
||||
#include <linux/platform_device.h>
|
||||
|
||||
+#include "drivers/kcompat.h"
|
||||
+#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0)
|
||||
+#include <asm/switch_to.h>
|
||||
+#else
|
||||
#include <asm/system.h>
|
||||
+#endif
|
||||
#include <linux/io.h>
|
||||
#include <linux/irq.h>
|
||||
#include <linux/fcntl.h>
|
||||
@@ -80,7 +85,6 @@
|
||||
#define UART_IE_IXP42X_UUE 0x40 /* IXP42X UART Unit enable */
|
||||
#define UART_IE_IXP42X_RTOIE 0x10 /* IXP42X Receiver Data Timeout int.enable */
|
||||
|
||||
-#include "drivers/kcompat.h"
|
||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35)
|
||||
#include <media/lirc.h>
|
||||
#include <media/lirc_dev.h>
|
||||
diff -ur drivers/lirc_sir/lirc_sir.c drivers.new/lirc_sir/lirc_sir.c
|
||||
--- drivers/lirc_sir/lirc_sir.c 2011-03-25 18:28:18.000000000 -0400
|
||||
+++ drivers.new/lirc_sir/lirc_sir.c 2012-10-24 14:32:46.000000000 -0400
|
||||
@@ -59,7 +59,14 @@
|
||||
#include <linux/mm.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/poll.h>
|
||||
+
|
||||
+#include "drivers/kcompat.h"
|
||||
+#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0)
|
||||
+#include <asm/switch_to.h>
|
||||
+#else
|
||||
#include <asm/system.h>
|
||||
+#endif
|
||||
+
|
||||
#include <linux/io.h>
|
||||
#include <asm/irq.h>
|
||||
#include <linux/fcntl.h>
|
||||
@@ -74,7 +81,6 @@
|
||||
|
||||
#include <linux/timer.h>
|
||||
|
||||
-#include "drivers/kcompat.h"
|
||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35)
|
||||
#include <media/lirc.h>
|
||||
#include <media/lirc_dev.h>
|
@ -1,12 +0,0 @@
|
||||
--- a/drivers/kcompat.h 2011-03-25 18:28:18.000000000 -0400
|
||||
+++ b/drivers/kcompat.h 2012-11-27 13:37:55.000000000 -0500
|
||||
@@ -136,4 +136,9 @@
|
||||
)
|
||||
#endif
|
||||
|
||||
+#ifndef err
|
||||
+#define err(format, arg...) \
|
||||
+ printk(KERN_ERR KBUILD_MODNAME ": " format "\n", ##arg)
|
||||
+#endif
|
||||
+
|
||||
#endif /* _KCOMPAT_H */
|
@ -1,80 +0,0 @@
|
||||
diff -Naur lirc-0.9.0/drivers/lirc_serial/lirc_serial.c lirc-0.9.0.new/drivers/lirc_serial/lirc_serial.c
|
||||
--- lirc-0.9.0/drivers/lirc_serial/lirc_serial.c 2013-05-24 11:58:31.017566567 -0400
|
||||
+++ lirc-0.9.0.new/drivers/lirc_serial/lirc_serial.c 2013-05-24 12:00:38.733568898 -0400
|
||||
@@ -1107,12 +1107,12 @@
|
||||
|
||||
static struct platform_device *lirc_serial_dev;
|
||||
|
||||
-static int __devinit lirc_serial_probe(struct platform_device *dev)
|
||||
+static int lirc_serial_probe(struct platform_device *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static int __devexit lirc_serial_remove(struct platform_device *dev)
|
||||
+static int lirc_serial_remove(struct platform_device *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -1163,7 +1163,7 @@
|
||||
|
||||
static struct platform_driver lirc_serial_driver = {
|
||||
.probe = lirc_serial_probe,
|
||||
- .remove = __devexit_p(lirc_serial_remove),
|
||||
+ .remove = lirc_serial_remove,
|
||||
.suspend = lirc_serial_suspend,
|
||||
.resume = lirc_serial_resume,
|
||||
.driver = {
|
||||
diff -Naur lirc-0.9.0/drivers/lirc_sir/lirc_sir.c lirc-0.9.0.new/drivers/lirc_sir/lirc_sir.c
|
||||
--- lirc-0.9.0/drivers/lirc_sir/lirc_sir.c 2013-05-24 11:58:31.017566567 -0400
|
||||
+++ lirc-0.9.0.new/drivers/lirc_sir/lirc_sir.c 2013-05-24 12:00:38.733568898 -0400
|
||||
@@ -1296,19 +1296,19 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static int __devinit lirc_sir_probe(struct platform_device *dev)
|
||||
+static int lirc_sir_probe(struct platform_device *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static int __devexit lirc_sir_remove(struct platform_device *dev)
|
||||
+static int lirc_sir_remove(struct platform_device *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver lirc_sir_driver = {
|
||||
.probe = lirc_sir_probe,
|
||||
- .remove = __devexit_p(lirc_sir_remove),
|
||||
+ .remove = lirc_sir_remove,
|
||||
.driver = {
|
||||
.name = "lirc_sir",
|
||||
.owner = THIS_MODULE,
|
||||
diff -Naur lirc-0.9.0/drivers/lirc_wpc8769l/lirc_wpc8769l.c lirc-0.9.0.new/drivers/lirc_wpc8769l/lirc_wpc8769l.c
|
||||
--- lirc-0.9.0/drivers/lirc_wpc8769l/lirc_wpc8769l.c 2013-05-24 11:58:30.974566567 -0400
|
||||
+++ lirc-0.9.0.new/drivers/lirc_wpc8769l/lirc_wpc8769l.c 2013-05-24 12:00:38.734568898 -0400
|
||||
@@ -942,12 +942,12 @@
|
||||
#ifdef MODULE
|
||||
static struct platform_device *lirc_wpc8769l_platform_dev;
|
||||
|
||||
-static int __devinit lirc_wpc8769l_probe(struct platform_device *dev)
|
||||
+static int lirc_wpc8769l_probe(struct platform_device *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static int __devexit lirc_wpc8769l_remove(struct platform_device *dev)
|
||||
+static int lirc_wpc8769l_remove(struct platform_device *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -975,7 +975,7 @@
|
||||
|
||||
static struct platform_driver lirc_wpc8769l_platform_driver = {
|
||||
.probe = lirc_wpc8769l_probe,
|
||||
- .remove = __devexit_p(lirc_wpc8769l_remove),
|
||||
+ .remove = lirc_wpc8769l_remove,
|
||||
.suspend = lirc_wpc8769l_suspend,
|
||||
.resume = lirc_wpc8769l_resume,
|
||||
.driver = {
|
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=Linux Infrared Remote Control
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
RuntimeDirectory=lirc
|
||||
ExecStart=/usr/sbin/lircd --nodaemon --driver=default --device=/dev/lirc0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=LIRC Mouse
|
||||
Requires=lirc.service
|
||||
After=network.target lirc.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/lircmd --nodaemon
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -1,19 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
need lircd
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting lircmd"
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping lircmd"
|
||||
start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
|
||||
eend $?
|
||||
}
|
@ -1,428 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils linux-mod linux-info systemd toolchain-funcs flag-o-matic autotools
|
||||
|
||||
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
|
||||
HOMEPAGE="http://www.lirc.org/"
|
||||
|
||||
MY_P=${PN}-${PV/_/}
|
||||
|
||||
if [[ "${PV/_pre/}" = "${PV}" ]]; then
|
||||
SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
|
||||
else
|
||||
SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86"
|
||||
IUSE="debug doc hardware-carrier transmitter static-libs X"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
RDEPEND="
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libSM
|
||||
x11-libs/libICE
|
||||
)
|
||||
lirc_devices_alsa_usb? ( media-libs/alsa-lib )
|
||||
lirc_devices_audio? ( >media-libs/portaudio-18 )
|
||||
lirc_devices_irman? ( media-libs/libirman )"
|
||||
|
||||
# 2012-07-17, Ian Stakenvicius
|
||||
# A helper script that scrapes out values for nearly all of the variables below
|
||||
# from lirc's configure.ac is available at
|
||||
# https://dev.gentoo.org/~axs/helper-for-lirc-iuse.sh
|
||||
|
||||
# This are drivers with names matching the
|
||||
# parameter --with-driver=NAME
|
||||
IUSE_LIRC_DEVICES_DIRECT="
|
||||
all userspace accent act200l act220l
|
||||
adaptec alsa_usb animax asusdh atilibusb
|
||||
atiusb audio audio_alsa avermedia avermedia_vdomate
|
||||
avermedia98 awlibusb bestbuy bestbuy2 breakoutbox
|
||||
bte bw6130 caraca chronos commandir
|
||||
cph06x creative creative_infracd
|
||||
devinput digimatrix dsp dvico ea65 ene0100
|
||||
exaudio flyvideo ftdi gvbctv5pci hauppauge
|
||||
hauppauge_dvb hercules_smarttv_stereo i2cuser
|
||||
igorplugusb iguanaIR imon imon_24g imon_knob
|
||||
imon_lcd imon_pad imon_rsc irdeo irdeo_remote
|
||||
irlink irman irreal it87 ite8709
|
||||
knc_one kworld leadtek_0007 leadtek_0010
|
||||
leadtek_pvr2000 livedrive_midi
|
||||
livedrive_seq logitech macmini
|
||||
mediafocusI mouseremote
|
||||
mouseremote_ps2 mp3anywhere mplay nslu2
|
||||
packard_bell parallel pcmak pcmak_usb
|
||||
pctv pixelview_bt878 pixelview_pak
|
||||
pixelview_pro provideo realmagic
|
||||
remotemaster sa1100 samsung sasem sb0540 serial
|
||||
silitek sir slinke streamzap tekram
|
||||
tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2
|
||||
uirt2_raw usb_uirt_raw usbx wpc8769l zotac"
|
||||
|
||||
# drivers that need special handling and
|
||||
# must have another name specified for
|
||||
# parameter --with-driver=NAME
|
||||
IUSE_LIRC_DEVICES_SPECIAL="
|
||||
serial_igor_cesko
|
||||
remote_wonder_plus xboxusb inputlirc"
|
||||
|
||||
IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}"
|
||||
|
||||
# The following are lists which are used to provide ewarns on incompatibilities
|
||||
# with the kernel:
|
||||
|
||||
#drivers that do not build kernel modules
|
||||
NO_KMOD_BUILT_FOR_DEV="
|
||||
accent bte creative creative_infracd devinput dsp ea65 exaudio
|
||||
ftdi i2cuser irlink irreal livedrive_midi livedrive_seq logitech
|
||||
mediafocusI mouseremote mouseremote_ps2 mp3anywhere mplay mplay2
|
||||
pcmak pcmak_usb pctv realmagic remotemaster silitek tira tira_raw
|
||||
tuxbox udp uirt2 uirt2_raw usb_uirt_raw usbx"
|
||||
|
||||
#drivers that build lirc_dev and so will conflict with kernel lirc_dev
|
||||
LIRCDEV_BUILT_FOR_DEV="all
|
||||
act200l act220l adaptec animax atiusb breakoutbox hauppauge
|
||||
hauppauge_dvb hercules_smarttv_stereo igorplugusb imon imon_24g
|
||||
imon_knob imon_lcd imon_pad imon_rsc irdeo irdeo_remote knc_one
|
||||
leadtek_pvr2000 nslu2 packard_bell parallel pixelview_bt878
|
||||
provideo sa1100 sasem serial sir tekram tekram_bt829 ttusbir
|
||||
tvbox wpc8769l zotac"
|
||||
|
||||
#lirc_gpio drivers, which cannot be supported on kernel >= 2.6.22
|
||||
LIRC_GPIO_DEV="
|
||||
avermedia avermedia98 avermedia_vdomate bestbuy bestbuy2 chronos
|
||||
cph03x cph06x flyvideo gvbctv5pci kworld leadtek_0007 leadtek_0010
|
||||
pixelview_pak pixelview_pro"
|
||||
|
||||
#device-driver which use libusb
|
||||
LIBUSB_USED_BY_DEV="
|
||||
all atilibusb awlibusb sasem igorplugusb imon imon_lcd imon_pad
|
||||
imon_rsc streamzap xboxusb irlink commandir"
|
||||
|
||||
for dev in ${LIBUSB_USED_BY_DEV}; do
|
||||
DEPEND="${DEPEND} lirc_devices_${dev}? ( virtual/libusb:0 )"
|
||||
done
|
||||
|
||||
# adding only compile-time depends
|
||||
DEPEND="${RDEPEND} ${DEPEND}
|
||||
virtual/linux-sources
|
||||
lirc_devices_ftdi? ( dev-embedded/libftdi:0 )
|
||||
lirc_devices_all? ( dev-embedded/libftdi:0 )"
|
||||
|
||||
# adding only run-time depends
|
||||
RDEPEND="${RDEPEND}
|
||||
lirc_devices_inputlirc? ( app-misc/inputlircd )
|
||||
lirc_devices_iguanaIR? ( app-misc/iguanaIR )"
|
||||
|
||||
# add all devices to IUSE
|
||||
# and ensure lirc_devices_all is not set alongside lirc_devices_*
|
||||
REQUIRED_USE="lirc_devices_all? ("
|
||||
for dev in ${IUSE_LIRC_DEVICES}; do
|
||||
IUSE="${IUSE} lirc_devices_${dev}"
|
||||
if [[ "${dev}" != "all" ]]; then
|
||||
REQUIRED_USE="${REQUIRED_USE} !lirc_devices_${dev}"
|
||||
fi
|
||||
done
|
||||
REQUIRED_USE="${REQUIRED_USE} )"
|
||||
|
||||
add_device() {
|
||||
local dev="${1}"
|
||||
local desc="device ${dev}"
|
||||
if [[ -n "${2}" ]]; then
|
||||
desc="${2}"
|
||||
fi
|
||||
|
||||
# Bug #187418
|
||||
if kernel_is ge 2 6 22 && [[ " ${LIRC_GPIO_DEV} " == *" ${dev} "* ]]; then
|
||||
eerror "${desc} uses lirc_gpio which fails with kernel 2.6.22 or above. Not building."
|
||||
eerror "Use 'devinput' instead, or use 'userspace' along with in-kernel drivers"
|
||||
return 0
|
||||
fi
|
||||
: ${lirc_device_count:=0}
|
||||
((lirc_device_count++))
|
||||
|
||||
elog "Compiling support for ${desc}"
|
||||
|
||||
if [[ " ${LIRCDEV_BUILT_FOR_DEV} " == *" ${dev} "* ]] ; then
|
||||
if linux_chkconfig_present LIRC ; then
|
||||
ewarn "${desc} builds lirc_dev and CONFIG_LIRC is set in the kernel -- this may conflict."
|
||||
fi
|
||||
if ! linux_chkconfig_present MODULE_UNLOAD ; then
|
||||
ewarn "${desc} builds modules and CONFIG_MODULE_UNLOAD is unset in kernel."
|
||||
ewarn "You will need MODULE_UNLOAD support in your kernel."
|
||||
fi
|
||||
fi
|
||||
if [[ " ${NO_KMOD_BUILT_FOR_DEV} " == *" ${dev} "* ]] && ! linux_chkconfig_present IR_LIRC_CODEC ; then
|
||||
ewarn "${desc} builds no kernel module and CONFIG_IR_LIRC_CODEC is unset in kernel."
|
||||
fi
|
||||
|
||||
if [[ ${lirc_device_count} -eq 2 ]] ; then
|
||||
ewarn
|
||||
ewarn "LIRC_DEVICES has more than one entry."
|
||||
ewarn "When selecting multiple devices for lirc to be supported,"
|
||||
ewarn "it can not be guaranteed that the drivers play nice together."
|
||||
ewarn "If this is not intended, then please adjust LIRC_DEVICES"
|
||||
ewarn "and re-emerge."
|
||||
ewarn
|
||||
fi
|
||||
|
||||
MY_OPTS="${MY_OPTS} --with-driver=${dev}"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ -n "${LIRC_OPTS}" ]] ; then
|
||||
ewarn
|
||||
ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on."
|
||||
ewarn
|
||||
ewarn "Please use LIRC_DEVICES from now on."
|
||||
ewarn "e.g. LIRC_DEVICES=\"serial sir\""
|
||||
ewarn
|
||||
ewarn "Flags are now set per use-flags."
|
||||
ewarn "e.g. transmitter, hardware-carrier"
|
||||
|
||||
local opt
|
||||
local unsupported_opts=""
|
||||
|
||||
# test for allowed options for LIRC_OPTS
|
||||
for opt in ${LIRC_OPTS}; do
|
||||
case ${opt} in
|
||||
--with-port=*|--with-irq=*|--with-timer=*|--with-tty=*)
|
||||
MY_OPTS="${MY_OPTS} ${opt}"
|
||||
;;
|
||||
*)
|
||||
unsupported_opts="${unsupported_opts} ${opt}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if [[ -n ${unsupported_opts} ]]; then
|
||||
eerror "These options are no longer allowed to be set"
|
||||
eerror "with LIRC_OPTS: ${unsupported_opts}"
|
||||
die "LIRC_OPTS is no longer supported, use LIRC_DEVICES."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
linux-mod_pkg_setup
|
||||
|
||||
# set default configure options
|
||||
MY_OPTS=""
|
||||
LIRC_DRIVER_DEVICE="/dev/lirc0"
|
||||
|
||||
if use lirc_devices_all; then
|
||||
# compile in drivers for a lot of devices
|
||||
add_device all "a lot of devices"
|
||||
else
|
||||
# compile in only requested drivers
|
||||
local dev
|
||||
for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
|
||||
if use lirc_devices_${dev}; then
|
||||
add_device ${dev}
|
||||
fi
|
||||
done
|
||||
|
||||
if use lirc_devices_remote_wonder_plus; then
|
||||
add_device atiusb "device Remote Wonder Plus (atiusb-based)"
|
||||
fi
|
||||
|
||||
if use lirc_devices_serial_igor_cesko; then
|
||||
add_device serial "serial with Igor Cesko design"
|
||||
MY_OPTS="${MY_OPTS} --with-igor"
|
||||
fi
|
||||
|
||||
if use lirc_devices_imon_pad; then
|
||||
ewarn "The imon_pad driver has incorporated the previous pad2keys patch"
|
||||
ewarn "and removed the pad2keys_active option for the lirc_imon module"
|
||||
ewarn "because it is always active."
|
||||
ewarn "If you have an older imon VFD device, you may need to add the module"
|
||||
ewarn "option display_type=1 to override autodetection and force VFD mode."
|
||||
fi
|
||||
|
||||
if use lirc_devices_xboxusb; then
|
||||
add_device atiusb "device xboxusb"
|
||||
fi
|
||||
|
||||
if [[ "${MY_OPTS}" == "" ]]; then
|
||||
if [[ "${PROFILE_ARCH}" == "xbox" ]]; then
|
||||
# on xbox: use special driver
|
||||
add_device atiusb "device xboxusb"
|
||||
else
|
||||
# no driver requested
|
||||
elog
|
||||
elog "Compiling only the lirc-applications, but no drivers."
|
||||
elog "Enable drivers with LIRC_DEVICES if you need them."
|
||||
MY_OPTS="--with-driver=none"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier"
|
||||
use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter"
|
||||
|
||||
einfo
|
||||
einfo "lirc-configure-opts: ${MY_OPTS}"
|
||||
elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"
|
||||
|
||||
filter-flags -Wl,-O1
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Rip out dos CRLF
|
||||
edos2unix contrib/lirc.rules
|
||||
|
||||
# Apply patches needed for some special device-types
|
||||
use lirc_devices_audio || epatch "${FILESDIR}"/lirc-0.8.4-portaudio_check.patch
|
||||
use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch
|
||||
|
||||
# Apply fixes for kernel-2.6.39 and above
|
||||
epatch "${FILESDIR}"/${P}-kernel-2.6.39-fixes.patch
|
||||
# Slightly massaged upstream patch to fix kfifo issues >=2.6.38
|
||||
# for bug 377033
|
||||
epatch "${FILESDIR}"/${P}-atiusb_kfifo.patch
|
||||
# Apply fixes for kernel-3.3 and above (bug 439538)
|
||||
epatch "${FILESDIR}"/${P}-kernel-3.3.0-fixes.patch
|
||||
# Apply fix for missing err() in usb.h for kernel 3.5+ (bug 444736)
|
||||
epatch "${FILESDIR}"/${P}-kernel-3.5-err-fix.patch
|
||||
# Apply fix for missing __devinit __devexit defines in kernel 3.8+ (bug 461532)
|
||||
epatch "${FILESDIR}"/${P}-kernel-3.8-fixes.patch
|
||||
# Add support for zotac remote, bug 342848
|
||||
epatch "${FILESDIR}"/${P}-add-zotac-support.patch
|
||||
# Use fixed font
|
||||
epatch "${FILESDIR}"/${P}-fixed-font.patch
|
||||
|
||||
# Do not build drivers from the top-level Makefile
|
||||
sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am
|
||||
|
||||
# remove parallel driver on SMP systems
|
||||
if linux_chkconfig_present SMP ; then
|
||||
sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
|
||||
fi
|
||||
|
||||
# Bug #187418 - only need this part for lirc_devices_all as others die in pkg_setup
|
||||
if use lirc_devices_all && kernel_is ge 2 6 22 ; then
|
||||
ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+"
|
||||
sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
|
||||
fi
|
||||
|
||||
# respect CFLAGS
|
||||
sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
|
||||
|
||||
# setting default device-node
|
||||
local f
|
||||
for f in configure.ac acconfig.h; do
|
||||
[[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f"
|
||||
done
|
||||
echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h
|
||||
|
||||
sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die # automake 1.13
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--localstatedir=/var \
|
||||
--with-syslog=LOG_DAEMON \
|
||||
--enable-sandboxed \
|
||||
--with-kerneldir="${KV_DIR}" \
|
||||
--with-moduledir="/lib/modules/${KV_FULL}/misc" \
|
||||
$(use_enable debug) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with X x) \
|
||||
${MY_OPTS} \
|
||||
ABI="${KERNEL_ABI}" \
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# force non-parallel make, Bug 196134 (confirmed valid for 0.9.0-r2)
|
||||
emake -j1
|
||||
|
||||
MODULE_NAMES="lirc(misc:${S}/drivers)"
|
||||
BUILD_TARGETS="all"
|
||||
linux-mod_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake -C drivers DESTDIR="${D}" install
|
||||
|
||||
newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
|
||||
newinitd "${FILESDIR}"/lircmd lircmd
|
||||
newconfd "${FILESDIR}"/lircd.conf.4 lircd
|
||||
|
||||
insinto /etc/modprobe.d/
|
||||
newins "${FILESDIR}"/modprobed.lirc lirc.conf
|
||||
|
||||
newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec
|
||||
newconfd "${FILESDIR}"/irexec-confd irexec
|
||||
|
||||
systemd_dounit "${FILESDIR}"/irexec.service
|
||||
systemd_dounit "${FILESDIR}"/lirc.service
|
||||
systemd_dounit "${FILESDIR}"/lircm.service
|
||||
|
||||
if use doc ; then
|
||||
dohtml doc/html/*.html
|
||||
insinto /usr/share/doc/${PF}/images
|
||||
doins doc/images/*
|
||||
fi
|
||||
|
||||
insinto /usr/share/lirc/remotes
|
||||
doins -r remotes/*
|
||||
|
||||
keepdir /etc/lirc
|
||||
if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
|
||||
newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example
|
||||
fi
|
||||
|
||||
use static-libs || rm "${D}/usr/$(get_libdir)/liblirc_client.la"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
linux-mod_pkg_preinst
|
||||
|
||||
local dir="${EROOT}/etc/modprobe.d"
|
||||
if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
|
||||
elog "Renaming ${dir}/lirc to lirc.conf"
|
||||
mv -f "${dir}/lirc" "${dir}/lirc.conf"
|
||||
fi
|
||||
|
||||
# copy the first file that can be found
|
||||
if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then
|
||||
cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf
|
||||
elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then
|
||||
cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf
|
||||
MOVE_OLD_LIRCD_CONF=1
|
||||
elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then
|
||||
cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf
|
||||
fi
|
||||
|
||||
# stop portage from touching the config file
|
||||
if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
|
||||
rm -f "${D}"/etc/lirc/lircd.conf
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
linux-mod_pkg_postinst
|
||||
|
||||
# copy config file to new location
|
||||
# without portage knowing about it
|
||||
# so it will not delete it on unmerge or ever touch it again
|
||||
if [[ -e "${T}"/lircd.conf ]]; then
|
||||
cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf
|
||||
if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
|
||||
elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
|
||||
rm -f "${EROOT}"/etc/lircd.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
einfo "The new default location for lircd.conf is inside of"
|
||||
einfo "/etc/lirc/ directory"
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST neofetch-3.4.0.tar.gz 82090 BLAKE2B afc00b37d84cdf3ae0fd4037312b1c67fdadcbe99d6d602e8f3b6caa844b3780861c9d2522ec605ba5b7aa08e4e85ef804129da2ce3f6f01ab8b536704cdd182 SHA512 931648e8173eb91fdf5c79b5bb9b6efef132d30cf2f10d6f75dcff42f3661d40ceec712c109e90e2226e1aa85cad7676c438b6cad49e8298a77d990d9a3d197b
|
||||
DIST neofetch-4.0.2.tar.gz 111792 BLAKE2B 865c45a366224915aeeff82c843c869685814ccb5f553d7da59ab51e26336500cb133b5c827dd6dccccef3e771b357852e86db166d88cda894515419e9eadbc8 SHA512 326b7a9fdf08aa10b790c281148946727dc6a10c5c073654fc0ce9cee9afe663de84ac13144cb3e1d2e33b5ca3ed5094d2cb83e78b7b5f6e1ced49d78e191ce4
|
||||
DIST neofetch-5.0.0.tar.gz 110526 BLAKE2B 7149321c051021644407d28b232631c8149d21f1b8463b3a4470d1baaf88494f3a88026c606ac539938933333da5671f4a14b6ce029268ba01a16e85d4a30c33 SHA512 7872e646a0d784d0c9d851d16cb1ef03926d07f67ec9573b673b2a82fd9a1ffbb7bbcb0ca0e67c299dd210947396a8c36dacb98d8a61c3ea72b5a438995e7de6
|
||||
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Simple information system script"
|
||||
HOMEPAGE="https://github.com/dylanaraps/neofetch"
|
||||
SRC_URI="https://github.com/dylanaraps/${PN}/archive/${PV}/${P}.tar.gz"
|
||||
LICENSE="MIT-with-advertising"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86 ~amd64-fbsd"
|
||||
IUSE="X"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
X? (
|
||||
media-gfx/imagemagick
|
||||
media-libs/imlib2
|
||||
www-client/w3m[imlib]
|
||||
x11-apps/xprop
|
||||
x11-apps/xrandr
|
||||
x11-apps/xwininfo
|
||||
)"
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
SRC_URI="https://github.com/dylanaraps/${PN}/archive/${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-fbsd"
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/dylanaraps/neofetch.git"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Simple information system script"
|
||||
HOMEPAGE="https://github.com/dylanaraps/neofetch"
|
||||
LICENSE="MIT-with-advertising"
|
||||
SLOT="0"
|
||||
IUSE="X"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
X? (
|
||||
media-gfx/imagemagick
|
||||
media-libs/imlib2
|
||||
www-client/w3m[imlib]
|
||||
x11-apps/xprop
|
||||
x11-apps/xrandr
|
||||
x11-apps/xwininfo
|
||||
)"
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,115 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit autotools distutils-r1 perl-module java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="Suite of tools for moving data between a Palm device and a desktop"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2
|
||||
https://dev.gentoo.org/~mgorny/dist/${P}-gentoo-patchset.tar.bz2"
|
||||
|
||||
LICENSE="|| ( GPL-2 LGPL-2 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="bluetooth debug java perl png python static-libs threads usb"
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/popt
|
||||
>=sys-libs/ncurses-5.7-r7:0=
|
||||
>=sys-libs/readline-6:0=
|
||||
virtual/libiconv
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
perl? ( >=dev-lang/perl-5.12 )
|
||||
png? ( media-libs/libpng:0= )
|
||||
usb? ( virtual/libusb:0 )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
java? ( >=virtual/jdk-1.4 )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
java? ( >=virtual/jre-1.4 )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-java-install.patch
|
||||
eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-respect-javacflags.patch
|
||||
eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.2-werror_194921.patch
|
||||
eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.2-threads.patch
|
||||
eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-libpng14.patch
|
||||
eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-png.patch
|
||||
eapply -p0 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-distutils.patch
|
||||
eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.3-libusb-compat-usb_open.patch
|
||||
eapply -p1 "${WORKDIR}/${P}-gentoo-patchset"/${PN}-0.12.5-perl514.patch
|
||||
|
||||
sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467600
|
||||
|
||||
AT_M4DIR="m4" eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# tcl/tk support is disabled as per upstream request.
|
||||
# readline is not really optional, bug #626504
|
||||
econf \
|
||||
--includedir="${EPREFIX}"/usr/include/libpisock \
|
||||
$(use_enable static-libs static) \
|
||||
--enable-conduits \
|
||||
--with-readline \
|
||||
$(use_enable threads) \
|
||||
$(use_enable usb libusb) \
|
||||
$(use_enable debug) \
|
||||
$(use_with png libpng) \
|
||||
$(use_with bluetooth bluez) \
|
||||
$(use_with perl) \
|
||||
$(use_with java) \
|
||||
--without-tcl \
|
||||
$(use_with python)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
|
||||
if use perl; then
|
||||
cd "${S}"/bindings/Perl
|
||||
perl-module_src_configure
|
||||
local mymake=( OTHERLDFLAGS="${LDFLAGS} -L../../libpisock/.libs -lpisock" ) #308629
|
||||
perl-module_src_compile
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
cd "${S}"/bindings/Python
|
||||
distutils-r1_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc ChangeLog NEWS README doc/{README*,TODO}
|
||||
|
||||
if use java; then
|
||||
cd "${S}"/bindings/Java
|
||||
java-pkg_newjar ${PN}.jar
|
||||
java-pkg_doso libjpisock.so
|
||||
fi
|
||||
|
||||
if use perl; then
|
||||
cd "${S}"/bindings/Perl
|
||||
perl-module_src_install
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
cd "${S}"/bindings/Python
|
||||
distutils-r1_src_install
|
||||
fi
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
perl_set_version
|
||||
java-pkg-opt-2_pkg_preinst
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST loksh-6.3.tar.gz 249493 BLAKE2B 1790b3c272d0ab3f0129ee199c46905850f87a9fc0815833d005ebedde53605701a8820e4ff40761e5742d4e4cac8969c9a4d7004a8fd995e6a4585f352790d7 SHA512 414d25c10096485bd1bb6574d0f91526f452ee0102924398aff0b1451128e5bf3d5d7344bcc746f574ad1acdefd39a92ee59d0b86b05f0c149418302c4d2d3fb
|
||||
DIST loksh-6.4.tar.gz 250475 BLAKE2B 061538766834038677019ca8f1ccd16c77245855f0d666ec5af78fc24995e74b22637ccb29d92d6c436c377d21c1a9449dcb79568ab5ccf7f141e8f0b6040d99 SHA512 74cce1428346820331fb8bce8acf275077b05a3c46081bce5c35e8e0d47704446bb93ce3e457dbf2e379d5d9656844b78c736b1190b2fe39ee92717863adb86c
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Linux port of OpenBSD's ksh"
|
||||
HOMEPAGE="https://github.com/dimkr/loksh"
|
||||
SRC_URI="https://github.com/dimkr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="sys-libs/ncurses:0="
|
||||
RDEPEND="${DEPEND}
|
||||
!app-shells/ksh"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
BIN_DIR="${EROOT}/bin" \
|
||||
DESTDIR="${D}" \
|
||||
DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
install
|
||||
|
||||
dodoc NOTES
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1 @@
|
||||
DIST gentoo-syntax-20160530.tar.gz 18950 BLAKE2B 0e769cb4d67ebf1b4299a1aa0dc1bc1ce942a9e6b4f3528b5499ff83ffe9d165697576901c5ba9cca52de6e26abd0298f1f7a5383cdc0c8ca1dff0de2945080c SHA512 38881c5f16499eb053eb7a5514f6324b2a161f1392a044db0bbaf0cb71a0f17e1edebd4a685ff856a78525fbcb8c6267daa2503cfbc6f94d841cf3f6a25045bd
|
||||
DIST gentoo-syntax-20170225.tar.gz 18939 BLAKE2B 7586b45791e74e69ad6e0607bc0a4d52eba4747a6c4d9933d43db1196ceb57ac6317279c9e86f77c71bdb7379828dd96fe6d63a2933a3660f1639faf1b6df5d5 SHA512 2c01577910eccd413b85c094dbd12bf8445e2f560be1fffc4a4c3130b32587f9c298d8442b5cf12bd7d2950ab8c9e5b95a72f2f41c42c6dc939ffa2c26fd71d5
|
||||
DIST gentoo-syntax-20180821.tar.bz2 18361 BLAKE2B 4134fd0a3d75d86f3984f135021063b68588083f191efcb94d7b599460703d6eb501bad7de2aa0cc9cdc4447d73b83e4b36cee2acdd113e7d0a879e1e864e2fb SHA512 09c70ded667b489e03f02e0e72fca32f13a40501a5e319b387967e75f616c7f3dc44ceab3a46b776a509263f58668223eb85d51ba58ca3fbc48e4c05d7345dfc
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit vim-plugin
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/gentoo/gentoo-syntax.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="vim plugin: Gentoo and Portage syntax highlighting"
|
||||
HOMEPAGE="https://github.com/gentoo/gentoo-syntax"
|
||||
LICENSE="vim"
|
||||
IUSE="ignore-glep31"
|
||||
|
||||
VIM_PLUGIN_HELPFILES="gentoo-syntax"
|
||||
VIM_PLUGIN_MESSAGES="filetype"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if use ignore-glep31 ; then
|
||||
for f in ftplugin/*.vim ; do
|
||||
ebegin "Removing UTF-8 rules from ${f} ..."
|
||||
sed -i -e 's~\(setlocal fileencoding=utf-8\)~" \1~' ${f} \
|
||||
|| die "waah! bad sed voodoo. need more goats."
|
||||
eend $?
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
vim-plugin_pkg_postinst
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
if use ignore-glep31 1>/dev/null ; then
|
||||
ewarn "You have chosen to disable the rules which ensure GLEP 31"
|
||||
ewarn "compliance. When editing ebuilds, please make sure you get"
|
||||
ewarn "the character set correct."
|
||||
else
|
||||
elog "Note for developers and anyone else who edits ebuilds:"
|
||||
elog " This release of gentoo-syntax now contains filetype rules to set"
|
||||
elog " fileencoding for ebuilds and ChangeLogs to utf-8 as per GLEP 31."
|
||||
elog " If you find this feature breaks things, please submit a bug and"
|
||||
elog " assign it to vim@gentoo.org. You can use the 'ignore-glep31' USE"
|
||||
elog " flag to remove these rules."
|
||||
fi
|
||||
fi
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit vim-plugin
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/gentoo/gentoo-syntax.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="vim plugin: Gentoo and Portage syntax highlighting"
|
||||
HOMEPAGE="https://github.com/gentoo/gentoo-syntax"
|
||||
LICENSE="vim"
|
||||
IUSE="ignore-glep31"
|
||||
|
||||
VIM_PLUGIN_HELPFILES="gentoo-syntax"
|
||||
VIM_PLUGIN_MESSAGES="filetype"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if use ignore-glep31 ; then
|
||||
for f in ftplugin/*.vim ; do
|
||||
ebegin "Removing UTF-8 rules from ${f} ..."
|
||||
sed -i -e 's~\(setlocal fileencoding=utf-8\)~" \1~' ${f} \
|
||||
|| die "waah! bad sed voodoo. need more goats."
|
||||
eend $?
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
vim-plugin_pkg_postinst
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
if use ignore-glep31 1>/dev/null ; then
|
||||
ewarn "You have chosen to disable the rules which ensure GLEP 31"
|
||||
ewarn "compliance. When editing ebuilds, please make sure you get"
|
||||
ewarn "the character set correct."
|
||||
else
|
||||
elog "Note for developers and anyone else who edits ebuilds:"
|
||||
elog " This release of gentoo-syntax now contains filetype rules to set"
|
||||
elog " fileencoding for ebuilds and ChangeLogs to utf-8 as per GLEP 31."
|
||||
elog " If you find this feature breaks things, please submit a bug and"
|
||||
elog " assign it to vim@gentoo.org. You can use the 'ignore-glep31' USE"
|
||||
elog " flag to remove these rules."
|
||||
fi
|
||||
fi
|
||||
}
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue