parent
451e712817
commit
d0c2c258c1
Binary file not shown.
Binary file not shown.
@ -0,0 +1,9 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit acct-group
|
||||
|
||||
DESCRIPTION="A group for the automatic bug detection and reporting tool"
|
||||
ACCT_GROUP_ID=422
|
@ -0,0 +1,8 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>gnome@gentoo.org</email>
|
||||
<name>Gentoo GNOME Desktop</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit acct-user
|
||||
|
||||
DESCRIPTION="A user for the automatic bug detection and reporting tool"
|
||||
ACCT_USER_ID=422
|
||||
ACCT_USER_GROUPS=( abrt )
|
||||
|
||||
acct-user_add_deps
|
@ -0,0 +1,8 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>gnome@gentoo.org</email>
|
||||
<name>Gentoo GNOME Desktop</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST abrt-2.12.0.tar.gz 6799338 BLAKE2B 57a9b3fac4a4a5f55630be0573b26d4ae2d921d4f09d6566339a77f314c413c1a9e242f882fe20befabf30a58e7df21395edcf1b0d560bfeadf8e854bff6a705 SHA512 3567332399cd9708505a6d05c9388c7da5c14c7432e6fd40e5e76b6bcea8859c17b3b6c52a96ce54740e3682d75d8bf77dbc5fede80bd4fc6f72c60014f9cded
|
||||
DIST abrt-2.14.0.tar.gz 6102393 BLAKE2B 6bba45604406c1f2f84d778475acc6b5db3747f292fcb74a881703491b2d92adda3cc88d6ed741087c1ed2f88a68cdc4858f3640b506a6be650ea4d1d1f2bfd3 SHA512 26cf04ef6f52da445e825d5f1074186c4c77d1b093174bb6f7b0a8fa6175e265fcaf56fa4a977851a2352f9fd004425bc397e35a91f6f8e78f37564cd492c571
|
||||
|
@ -0,0 +1,129 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit autotools python-single-r1 systemd xdg-utils
|
||||
|
||||
DESCRIPTION="Automatic bug detection and reporting tool"
|
||||
HOMEPAGE="https://github.com/abrt/abrt/wiki/ABRT-Project"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="selinux test"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
>=dev-libs/glib-2.56:2
|
||||
>=dev-libs/libreport-2.10.0[python]
|
||||
dev-libs/libxml2:2
|
||||
>=gnome-base/gsettings-desktop-schemas-3.15.1
|
||||
net-libs/libsoup:2.4
|
||||
sys-apps/dbus
|
||||
sys-apps/systemd:0=
|
||||
sys-auth/polkit
|
||||
sys-libs/libcap
|
||||
sys-fs/inotify-tools
|
||||
x11-libs/gtk+:3
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
acct-user/abrt
|
||||
acct-group/abrt
|
||||
app-arch/cpio
|
||||
app-arch/rpm[python,${PYTHON_SINGLE_USEDEP}]
|
||||
dev-libs/elfutils
|
||||
dev-libs/json-c:0=
|
||||
sys-apps/util-linux
|
||||
>=sys-devel/gdb-7
|
||||
$(python_gen_cond_dep '
|
||||
dev-libs/satyr[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/argcomplete[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/argh[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/humanize[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
$(python_gen_cond_dep 'dev-python/pytest[${PYTHON_MULTI_USEDEP}]')
|
||||
)
|
||||
app-text/asciidoc
|
||||
app-text/xmlto
|
||||
>=dev-util/intltool-0.35.0
|
||||
virtual/pkgconfig
|
||||
>=sys-devel/gettext-0.17
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang .
|
||||
default
|
||||
|
||||
# Install under proper directory
|
||||
sed -i -e 's:dbusabrtdocdir = ${datadir}/doc/abrt-dbus-${VERSION}/html:dbusabrtdocdir = ${datadir}/doc/${PF}/html:' doc/problems-service/Makefile.am || die
|
||||
|
||||
# Ensure this works for systems with and without /usr merge
|
||||
sed -i -e "s:/usr/bin/bash:$(which bash):" init-scripts/abrtd.service || die
|
||||
|
||||
# Fix hardcoded "pytest-3"
|
||||
sed -i -e "s:pytest-3:pytest:" \
|
||||
configure.ac src/python-problem/tests/Makefile.am src/cli/test || die
|
||||
|
||||
# pyhook test is sensitive to the format of python's error messages, and
|
||||
# fails with certain python versions
|
||||
sed -e '/pyhook.at/ d' \
|
||||
-i tests/Makefile.* tests/testsuite.at || die "sed remove pyhook tests failed"
|
||||
./gen-version || die # Needed to be run before autoreconf
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
myeconfargs=(
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)"
|
||||
--localstatedir="${EPREFIX}/var"
|
||||
--without-bodhi
|
||||
# package breaks due to not finding libreport-web with bodhi plugin enabled
|
||||
--without-rpm
|
||||
$(usex selinux "" "--without-selinux")
|
||||
--with-python3
|
||||
--without-pythondoc
|
||||
# package breaks due to no sphinx-build-3
|
||||
$(use_with test pythontests)
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
python_optimize
|
||||
|
||||
keepdir /var/run/abrt
|
||||
# /var/spool/abrt is created by dev-libs/libreport
|
||||
|
||||
diropts -m 700 -o abrt -g abrt
|
||||
keepdir /var/spool/abrt-upload
|
||||
|
||||
diropts -m 775 -o abrt -g abrt
|
||||
keepdir /var/cache/abrt-di
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
newinitd "${FILESDIR}/${PN}-2.0.12-r1-init" abrt
|
||||
newconfd "${FILESDIR}/${PN}-2.0.12-r1-conf" abrt
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST bcfg2-1.2.4.tar.gz 1959767 BLAKE2B abd99f054a549c1239c938591ee4d5bd808a6fdad36d784d5efccbcc878b1a8b64413dcf84adce547ba46f036b612f76ad8d748fcbffe33a87501a0f63ec67e5 SHA512 15f9079dd18485088464da5ea63e53435e2a2141970e6c0400797424bd3c612928349438ed0f6bb2874eb4599768e210e3fef970ed09f8fb2c2d673b986221d9
|
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE='ssl'
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Configuration management tool"
|
||||
HOMEPAGE="http://bcfg2.org"
|
||||
SRC_URI="ftp://ftp.mcs.anl.gov/pub/bcfg/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
|
||||
IUSE="doc cheetah genshi server"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="app-portage/gentoolkit[${PYTHON_USEDEP}]
|
||||
cheetah? ( dev-python/cheetah[${PYTHON_USEDEP}] )
|
||||
genshi? ( dev-python/genshi[${PYTHON_USEDEP}] )
|
||||
server? (
|
||||
dev-libs/libgamin[python,${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
!kernel_linux? ( virtual/fam ) )"
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
einfo "Building Bcfg2 documentation"
|
||||
sphinx-build doc doc_output || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install \
|
||||
--record=PY_SERVER_LIBS
|
||||
|
||||
if ! use server; then
|
||||
rm -f "${ED%/}"/usr/bin/bcfg2-* || die
|
||||
rm -f "${D%/}$(python_get_scriptdir)"/bcfg2-* || die
|
||||
rm -rf "${ED%/}"/usr/share/bcfg2 || die
|
||||
rm -rf "${ED%/}"/usr/share/man/man8 || die
|
||||
else
|
||||
newinitd "${FILESDIR}/${PN}-server-1.2.0.rc" bcfg2-server
|
||||
fi
|
||||
|
||||
insinto /etc
|
||||
doins examples/bcfg2.conf
|
||||
|
||||
if use doc; then
|
||||
cd doc_output || die
|
||||
docinto html
|
||||
dodoc -r [a-z]* _images _static
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use server; then
|
||||
einfo "If this is a new installation, you probably need to run:"
|
||||
einfo " bcfg2-admin init"
|
||||
fi
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
#
|
||||
# bcfgd - bcfg configuration daemon
|
||||
#
|
||||
#
|
||||
|
||||
depend () {
|
||||
need net
|
||||
}
|
||||
|
||||
start () {
|
||||
ebegin "Starting bcfg2-server"
|
||||
start-stop-daemon --start --quiet --pidfile /var/run/bcfg2-server.pid \
|
||||
--exec /usr/sbin/bcfg2-server -- -D /var/run/bcfg2-server.pid
|
||||
eend $? "Failed to start bcfg2-server"
|
||||
}
|
||||
|
||||
stop () {
|
||||
ebegin "Stopping bcfg2-server"
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/bcfg2-server.pid \
|
||||
--signal INT
|
||||
eend $? "Failed to stop bcfg2-server"
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<use>
|
||||
<flag name="cheetah">Include dev-python/cheetah support</flag>
|
||||
<flag name="genshi">Include dev-python/genshi support</flag>
|
||||
<flag name="server">Installs scripts to be used on the server-side of this app</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
@ -1 +1 @@
|
||||
DIST calamares-3.2.17.1.tar.gz 3128350 BLAKE2B a6926faaf1d521647cc0037b88686f9ceee1cc8167b888fe3c25228cbca8058572c8786a51f6ce0ccb77b31351d21ac41fa6c86a6577569c118729e1263ccafa SHA512 fa8f1906aa7774b0f6bd65d1dc87ea2e08df92018c162f7e7fe01fe6119e65d6391141bc242623f88040bb18eb8b71003cb7417b27c10b39bc30de0f0bf8deb0
|
||||
DIST calamares-3.2.20.tar.gz 3246752 BLAKE2B 11bc23da8f035a0399f54c1f0f9e11806b0e3b77ad9f57c694c15de077ad37d3f282d29d0b4c010f19372e78d14af2cf9c58b95b03d6d867ea6c0c104e701fab SHA512 473422eca83007ce0d82e09d637b73c114fffab338ece8269d37a4496d786eeef5e75b06b60ec51fb85bbd145984d37f0a586edd9c5d58e23abde665b8370c7c
|
||||
|
@ -1,4 +1 @@
|
||||
DIST webapp-config-1.52.tar.bz2 62951 BLAKE2B 8abc9f5503c9204fdb2d860f819e06a9f75f285bc0190bf1c479caea08754da92a351a12abe026d8600a51d8e33d57d827b027e8a0f9da5a8af1f09daa0de1e5 SHA512 ec616067588e6ab306af067e70bab9d17961aa675f387ee67a2291235ce81638b49a784d9a6c31891b7c78a712f276c3e62c6681a5e496a52c7e6fe7753922ea
|
||||
DIST webapp-config-1.53.tar.bz2 63429 BLAKE2B bb13d52a4c19859ff4730df2f7db75452effa23d1864d97aada38137f00ada8eec530f728f1c3ae06ecbed713a2d489b7225db3fc02aeabbf6241d0956761609 SHA512 7d2fc7197d537f2264c26b68b61e69273d2fcd3eec93657db54ba685c8383e7b8245cf05ed2ddd8b72453bf3fbf8f4bc4867e53d608331799df2e6162be14820
|
||||
DIST webapp-config-1.54.tar.bz2 58954 BLAKE2B 42a4305c51ccb8bb9db455c6ae2663b5d17c9d477eee3e504569c802e5f0d10183f3e6cd1e747462dcc0559d6ed7ba53a8b5607ed422f34813a33e0e8148bb90 SHA512 fa61e88696eaed130575e5ae9a17ec827aa14aece359e5ba43fa723ad00083def22e44fb02d99fc5ba6000a5949c5ce7aecea9307d2bfae333e202ef111dcd31
|
||||
DIST webapp-config-1.55.tar.bz2 72583 BLAKE2B be958dc991f0e1f6835d9c29350b7d97e3f23d52971f6013165ce59a8f4b32ac6262c9719956d1bcdbe60797f07d77910b44a749ae545c4dc15f765525144709 SHA512 44294b276fd036908438cd984ebf70433639caa18d8330bab348433b4f39ea2c42c57fa8de4f0a6198f7875429a3ef9ebe61321c288d910f9be8b3414865f438
|
||||
|
@ -1,185 +0,0 @@
|
||||
From 5f61d249507c3502c3c76faf3926522e6e63370d Mon Sep 17 00:00:00 2001
|
||||
From: Devan Franchini <twitch153@gentoo.org>
|
||||
Date: Fri, 3 Jan 2014 21:03:00 -0500
|
||||
Subject: [PATCH] WebappConfig/{ebuild,content}.py: Nulls doctest code.
|
||||
|
||||
Due to the variable nature of the returning values of the two functions
|
||||
run_vars() and add(), it is unrealistic to depend on doctest to not
|
||||
fail. It has been decided that disabling these two doctest codes would
|
||||
be the best decision to prevent failures that are not detrimental.
|
||||
|
||||
X-Gentoo-Bug: 430010
|
||||
X-Gentoo-Bug-URL: https://bugs.gentoo.org/430010
|
||||
---
|
||||
WebappConfig/content.py | 36 ++++++++++++++++++------------------
|
||||
WebappConfig/ebuild.py | 46 +++++++++++++++++++++++-----------------------
|
||||
2 files changed, 41 insertions(+), 41 deletions(-)
|
||||
|
||||
diff --git a/WebappConfig/content.py b/WebappConfig/content.py
|
||||
index 8fe5be9..c635f5a 100644
|
||||
--- a/WebappConfig/content.py
|
||||
+++ b/WebappConfig/content.py
|
||||
@@ -379,71 +379,71 @@ class Contents:
|
||||
(and this is important for md5)
|
||||
relative - 1 for storing a relative filename, 0 otherwise
|
||||
|
||||
- >>> OUT.color_off()
|
||||
- >>> import os.path
|
||||
- >>> here = os.path.dirname(os.path.realpath(__file__))
|
||||
+ OUT.color_off()
|
||||
+ import os.path
|
||||
+ here = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
One for pretending:
|
||||
|
||||
- >>> a = Contents(here + '/tests/testfiles/contents/app/',
|
||||
+ a = Contents(here + '/tests/testfiles/contents/app/',
|
||||
... package = 'test', version = '1.0',
|
||||
... pretend = True)
|
||||
|
||||
And this one is for real:
|
||||
|
||||
- >>> b = Contents(here + '/tests/testfiles/contents/app/',
|
||||
+ b = Contents(here + '/tests/testfiles/contents/app/',
|
||||
... package = 'test', version = '1.0')
|
||||
|
||||
Pretend to add a file:
|
||||
|
||||
- >>> a.add('file', 'config-owned',
|
||||
+ a.add('file', 'config-owned',
|
||||
... destination = here + '/tests/testfiles/contents/app/',
|
||||
... path = '/test1', relative = True)
|
||||
* pretending to add: file 1 config-owned "test1"
|
||||
|
||||
Lets not pretend this time:
|
||||
|
||||
- >>> b.add('file', 'config-owned',
|
||||
+ b.add('file', 'config-owned',
|
||||
... destination = here + '/tests/testfiles/contents/app/',
|
||||
... path = '/test1', relative = True)
|
||||
- >>> b.entry(here + '/tests/testfiles/contents/app/test1') #doctest: +ELLIPSIS
|
||||
+ b.entry(here + '/tests/testfiles/contents/app/test1') #doctest: +ELLIPSIS
|
||||
'file 1 config-owned "test1" ... d8e8fca2dc0f896fd7cb4cb0031ba249 '
|
||||
|
||||
Lets produce an error with a file that does not exist:
|
||||
|
||||
- >>> b.add('file', 'config-owned',
|
||||
+ b.add('file', 'config-owned',
|
||||
... destination = here + '/tests/testfiles/contents/app/',
|
||||
... path = '/nothere', relative = True) #doctest: +ELLIPSIS
|
||||
* Cannot access file .../tests/testfiles/contents/app/nothere to add it as installation content. This should not happen!
|
||||
|
||||
Other file types:
|
||||
|
||||
- >>> b.add('hardlink', 'config-owned',
|
||||
+ b.add('hardlink', 'config-owned',
|
||||
... destination = here + '/tests/testfiles/contents/app/',
|
||||
... path = '/test2', relative = True)
|
||||
- >>> b.entry(here + '/tests/testfiles/contents/app/test2') #doctest: +ELLIPSIS
|
||||
+ b.entry(here + '/tests/testfiles/contents/app/test2') #doctest: +ELLIPSIS
|
||||
'file 1 config-owned "test2" ... d8e8fca2dc0f896fd7cb4cb0031ba249 '
|
||||
- >>> b.add('dir', 'default-owned',
|
||||
+ b.add('dir', 'default-owned',
|
||||
... destination = here + '/tests/testfiles/contents/app/',
|
||||
... path = '/dir1', relative = True)
|
||||
- >>> b.entry(here + '/tests/testfiles/contents/app/dir1') #doctest: +ELLIPSIS
|
||||
+ b.entry(here + '/tests/testfiles/contents/app/dir1') #doctest: +ELLIPSIS
|
||||
'dir 1 default-owned "dir1" ... 0 '
|
||||
- >>> b.add('dir', 'default-owned', destination = here + '/tests/testfiles/contents/app',
|
||||
+ b.add('dir', 'default-owned', destination = here + '/tests/testfiles/contents/app',
|
||||
... path = '/dir1',
|
||||
... relative = False)
|
||||
- >>> b.entry(here + '/tests/testfiles/contents/app/dir1') #doctest: +ELLIPSIS
|
||||
+ b.entry(here + '/tests/testfiles/contents/app/dir1') #doctest: +ELLIPSIS
|
||||
'dir 0 default-owned ".../tests/testfiles/contents/app/dir1" ... 0 '
|
||||
|
||||
Q: Is the full link to the target what we want?
|
||||
A: Yes, since the link will still be ok even if we move the directory.
|
||||
|
||||
- >>> b.add('sym', 'virtual',
|
||||
+ b.add('sym', 'virtual',
|
||||
... destination = here + '/tests/testfiles/contents/app/',
|
||||
... path = '/test3', relative = True)
|
||||
- >>> b.entry(here + '/tests/testfiles/contents/app/test3') #doctest: +ELLIPSIS
|
||||
+ b.entry(here + '/tests/testfiles/contents/app/test3') #doctest: +ELLIPSIS
|
||||
'sym 1 virtual "test3" ... 0 .../tests/testfiles/contents/app/test1'
|
||||
|
||||
- >>> b.db_print() #doctest: +ELLIPSIS
|
||||
+ b.db_print() #doctest: +ELLIPSIS
|
||||
file 1 config-owned "test1" ... d8e8fca2dc0f896fd7cb4cb0031ba249
|
||||
file 1 config-owned "test2" ... d8e8fca2dc0f896fd7cb4cb0031ba249
|
||||
sym 1 virtual "test3" ... 0 .../tests/testfiles/contents/app/test1
|
||||
diff --git a/WebappConfig/ebuild.py b/WebappConfig/ebuild.py
|
||||
index 03c0c57..cc23bec 100644
|
||||
--- a/WebappConfig/ebuild.py
|
||||
+++ b/WebappConfig/ebuild.py
|
||||
@@ -201,35 +201,35 @@ class Ebuild:
|
||||
The procedure from above is repeated to set up the default
|
||||
environment:
|
||||
|
||||
- >>> import WebappConfig.config
|
||||
- >>> config = WebappConfig.config.Config()
|
||||
- >>> config.config.set('USER', 'my_htdocsbase', 'htdocs')
|
||||
- >>> config.config.set('USER', 'pn', 'horde')
|
||||
- >>> config.config.set('USER', 'pvr', '3.0.5')
|
||||
- >>> import os.path
|
||||
- >>> here = os.path.dirname(os.path.realpath(__file__))
|
||||
- >>> config.config.set('USER', 'my_approot', here +
|
||||
- ... '/tests/testfiles/share-webapps')
|
||||
- >>> my_approot = config.config.get('USER', 'my_approot')
|
||||
- >>> my_appdir = my_approot + "/horde/3.0.5"
|
||||
- >>> config.config.set('USER', 'my_appdir', my_appdir)
|
||||
- >>> config.config.set('USER', 'my_hookscriptsdir', my_appdir + '/hooks')
|
||||
- >>> config.config.set('USER', 'my_cgibinbase', 'cgi-bin')
|
||||
- >>> config.config.set('USER', 'my_errorsbase', 'error')
|
||||
- >>> config.config.set('USER', 'my_iconsbase', 'icons')
|
||||
- >>> config.config.set('USER', 'my_serverconfigdir', '/'.join([my_appdir,'conf']))
|
||||
- >>> config.config.set('USER', 'my_hostrootdir', '/'.join([my_appdir,'hostroot']))
|
||||
- >>> config.config.set('USER', 'my_htdocsdir', '/'.join([my_appdir,'htdocs']))
|
||||
- >>> config.config.set('USER', 'my_sqlscriptsdir', '/'.join([my_appdir,'sqlscripts']))
|
||||
+ "">>> import WebappConfig.config"
|
||||
+ ">>> config = WebappConfig.config.Config()"
|
||||
+ ">>> config.config.set('USER', 'my_htdocsbase', 'htdocs')"
|
||||
+ ">>> config.config.set('USER', 'pn', 'horde')"
|
||||
+ ">>> config.config.set('USER', 'pvr', '3.0.5')"
|
||||
+ ">>> import os.path"
|
||||
+ ">>> here = os.path.dirname(os.path.realpath(__file__))"
|
||||
+ ">>> config.config.set('USER', 'my_approot', here +"
|
||||
+ "... '/tests/testfiles/share-webapps')"
|
||||
+ ">>> my_approot = config.config.get('USER', 'my_approot')"
|
||||
+ ">>> my_appdir = my_approot + "/horde/3.0.5""
|
||||
+ ">>> config.config.set('USER', 'my_appdir', my_appdir)"
|
||||
+ ">>> config.config.set('USER', 'my_hookscriptsdir', my_appdir + '/hooks')"
|
||||
+ ">>> config.config.set('USER', 'my_cgibinbase', 'cgi-bin')"
|
||||
+ ">>> config.config.set('USER', 'my_errorsbase', 'error')"
|
||||
+ ">>> config.config.set('USER', 'my_iconsbase', 'icons')"
|
||||
+ ">>> config.config.set('USER', 'my_serverconfigdir', '/'.join([my_appdir,'conf']))"
|
||||
+ ">>> config.config.set('USER', 'my_hostrootdir', '/'.join([my_appdir,'hostroot']))"
|
||||
+ ">>> config.config.set('USER', 'my_htdocsdir', '/'.join([my_appdir,'htdocs']))"
|
||||
+ ">>> config.config.set('USER', 'my_sqlscriptsdir', '/'.join([my_appdir,'sqlscripts']))"
|
||||
|
||||
Time to create the ebuild handler:
|
||||
|
||||
- >>> a = Ebuild(config)
|
||||
+ ">>> a = Ebuild(config)"
|
||||
|
||||
The dummy post-install file should display all the variables
|
||||
that are exported here:
|
||||
|
||||
- >>> a.show_postinst() #doctest: +ELLIPSIS
|
||||
+ ">>> a.show_postinst() #doctest: +ELLIPSIS
|
||||
<BLANKLINE>
|
||||
=================================================================
|
||||
POST-INSTALL INSTRUCTIONS
|
||||
@@ -270,7 +270,7 @@ class Ebuild:
|
||||
PVR: 3.0.5
|
||||
<BLANKLINE>
|
||||
=================================================================
|
||||
- <BLANKLINE>
|
||||
+ <BLANKLINE>"
|
||||
'''
|
||||
|
||||
v_root = self.get_config('vhost_root')
|
||||
--
|
||||
1.8.3.2
|
||||
|
@ -1,25 +0,0 @@
|
||||
From ff7ba0d89c79584f14a8137d886a656a9af6de5c Mon Sep 17 00:00:00 2001
|
||||
From: Devan Franchini <twitch153@gentoo.org>
|
||||
Date: Sat, 27 Dec 2014 20:43:08 -0500
|
||||
Subject: [PATCH] webapp-cleaner: sources function.sh from /lib/gentoo
|
||||
|
||||
---
|
||||
sbin/webapp-cleaner | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/sbin/webapp-cleaner b/sbin/webapp-cleaner
|
||||
index bfec623..52e44ac 100755
|
||||
--- a/sbin/webapp-cleaner
|
||||
+++ b/sbin/webapp-cleaner
|
||||
@@ -13,7 +13,7 @@ CMD="emerge -Cav"
|
||||
WEBAPP_DIR="/usr/share/webapps"
|
||||
WEBAPP_CONFIG=
|
||||
|
||||
-[[ -z ${RC_GOT_FUNCTIONS} ]] && source /etc/init.d/functions.sh
|
||||
+[[ -z ${RC_GOT_FUNCTIONS} ]] && source /lib/gentoo/functions.sh
|
||||
|
||||
function help() {
|
||||
echo "Remove obsolete and unused versions of web applications"
|
||||
--
|
||||
2.0.5
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff -Naur WebappConfig.old/ebuild.py WebappConfig/ebuild.py
|
||||
--- WebappConfig/ebuild.py
|
||||
+++ WebappConfig/ebuild.py
|
||||
@@ -101,7 +101,7 @@
|
||||
|
||||
for i in post_instructions:
|
||||
i = i.replace('"', '\\"')
|
||||
- post.append(os.popen('echo -n "' + i + '"\n').read()[:-1])
|
||||
+ post.append(os.popen('printf "' + i + '"\n').read()[:-1])
|
||||
|
||||
post = post + [
|
||||
'',
|
@ -1,49 +0,0 @@
|
||||
commit 9e251c7574d074e424ea19024f743c754f321979
|
||||
Author: Devan Franchini <twitch153@gentoo.org>
|
||||
Date: Fri Jul 10 21:25:17 2015 -0400
|
||||
|
||||
config.py: Fixes package version checking regression
|
||||
|
||||
Previously webapp-config would not do any sanity checks when
|
||||
setting the package version. After adding a sanity check in 1.54
|
||||
I made the mistake of not being flexible enough and this caused
|
||||
a regression that prevented web apps with versions such as
|
||||
"20140929d"[1] to be installed. This commit fixes that while still
|
||||
allowing for some sanity checking.
|
||||
|
||||
[1]: https://github.com/gentoo/webapp-config/issues/2
|
||||
|
||||
diff --git a/WebappConfig/config.py b/WebappConfig/config.py
|
||||
index 6c915c3..3a176a0 100644
|
||||
--- a/WebappConfig/config.py
|
||||
+++ b/WebappConfig/config.py
|
||||
@@ -996,17 +996,20 @@ class Config:
|
||||
OUT.die('Invalid package name')
|
||||
|
||||
if len(args) > 1:
|
||||
- argsvr = args[1].split('.')
|
||||
- if len(argsvr) == 1:
|
||||
- OUT.die('Invalid package version: %(pvr)s'
|
||||
+ pvr = args[1]
|
||||
+ has_int = False # A package version should have at least one
|
||||
+ # numerical value, but we want to allow for
|
||||
+ # the flexibility of having any alphanumeric
|
||||
+ # value while checking to make sure it's sane.
|
||||
+
|
||||
+ for char in pvr:
|
||||
+ if char.isdigit():
|
||||
+ has_int = True
|
||||
+
|
||||
+ if not has_int:
|
||||
+ OUT.die('Invalid package version: "%(pvr)s"'
|
||||
% {'pvr': args[1]})
|
||||
|
||||
- pvr = ''
|
||||
- for i in range(0, len(argsvr)):
|
||||
- if not i == len(argsvr) - 1:
|
||||
- pvr += argsvr[i] + '.'
|
||||
- else:
|
||||
- pvr += argsvr[i]
|
||||
self.config.set('USER', 'pvr', pvr)
|
||||
|
||||
if (not options['dir'] and
|
@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
SRC_URI="https://dev.gentoo.org/~twitch153/${PN}/${P}.tar.bz2"
|
||||
KEYWORDS="~alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86"
|
||||
|
||||
DESCRIPTION="Gentoo's installer for web-based applications"
|
||||
HOMEPAGE="https://sourceforge.net/projects/webapp-config/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+portage"
|
||||
|
||||
DEPEND="app-text/xmlto
|
||||
!dev-python/configparser"
|
||||
RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare() {
|
||||
epatch "${FILESDIR}/${P}-nulls-doctest.patch"
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
emake -C doc/
|
||||
}
|
||||
|
||||
python_install() {
|
||||
# According to this discussion:
|
||||
# http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
|
||||
# distutils does not provide for specifying two different script install
|
||||
# locations. Since we only install one script here the following should
|
||||
# be ok
|
||||
distutils-r1_python_install --install-scripts="${EPREFIX}/usr/sbin"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
insinto /etc/vhosts
|
||||
doins config/webapp-config
|
||||
|
||||
keepdir /usr/share/webapps
|
||||
keepdir /var/db/webapps
|
||||
|
||||
dodoc AUTHORS
|
||||
doman doc/*.[58]
|
||||
dohtml doc/*.[58].html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH="." "${PYTHON}" WebappConfig/tests/dtest.py \
|
||||
|| die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Now that you have upgraded webapp-config, you **must** update your"
|
||||
elog "config files in /etc/vhosts/webapp-config before you emerge any"
|
||||
elog "packages that use webapp-config."
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
SRC_URI="https://dev.gentoo.org/~twitch153/${PN}/${P}.tar.bz2"
|
||||
KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86"
|
||||
|
||||
DESCRIPTION="Gentoo's installer for web-based applications"
|
||||
HOMEPAGE="https://sourceforge.net/projects/webapp-config/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+portage"
|
||||
|
||||
DEPEND="app-text/xmlto
|
||||
!dev-python/configparser
|
||||
sys-apps/gentoo-functions"
|
||||
RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare() {
|
||||
epatch "${FILESDIR}/${P}-sources-function.sh-from-lib-gentoo.patch"
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
emake -C doc/
|
||||
}
|
||||
|
||||
python_install() {
|
||||
# According to this discussion:
|
||||
# http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
|
||||
# distutils does not provide for specifying two different script install
|
||||
# locations. Since we only install one script here the following should
|
||||
# be ok
|
||||
distutils-r1_python_install --install-scripts="${EPREFIX}/usr/sbin"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
insinto /etc/vhosts
|
||||
doins config/webapp-config
|
||||
|
||||
keepdir /usr/share/webapps
|
||||
keepdir /var/db/webapps
|
||||
|
||||
dodoc AUTHORS
|
||||
doman doc/*.[58]
|
||||
dohtml doc/*.[58].html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH="." "${PYTHON}" WebappConfig/tests/dtest.py \
|
||||
|| die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Now that you have upgraded webapp-config, you **must** update your"
|
||||
elog "config files in /etc/vhosts/webapp-config before you emerge any"
|
||||
elog "packages that use webapp-config."
|
||||
}
|
@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_6} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
SRC_URI="https://dev.gentoo.org/~twitch153/${PN}/${P}.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
|
||||
DESCRIPTION="Gentoo's installer for web-based applications"
|
||||
HOMEPAGE="https://sourceforge.net/projects/webapp-config/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+portage"
|
||||
|
||||
DEPEND="app-text/xmlto
|
||||
sys-apps/gentoo-functions"
|
||||
RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare() {
|
||||
epatch "${FILESDIR}/${P}-pvr-check.patch"\
|
||||
"${FILESDIR}/${P}-fix-bashism.patch"
|
||||
}
|
||||
python_compile_all() {
|
||||
emake -C doc/
|
||||
}
|
||||
|
||||
python_install() {
|
||||
# According to this discussion:
|
||||
# http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
|
||||
# distutils does not provide for specifying two different script install
|
||||
# locations. Since we only install one script here the following should
|
||||
# be ok
|
||||
distutils-r1_python_install --install-scripts="${EPREFIX}/usr/sbin"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
insinto /etc/vhosts
|
||||
doins config/webapp-config
|
||||
|
||||
keepdir /usr/share/webapps
|
||||
keepdir /var/db/webapps
|
||||
|
||||
dodoc AUTHORS
|
||||
doman doc/*.[58]
|
||||
dohtml doc/*.[58].html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH="." "${PYTHON}" WebappConfig/tests/external.py \
|
||||
|| die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "webapp-config now requires that all -I/-U/-C commands be followed"
|
||||
elog "by the package name and package version of the webapp"
|
||||
elog "eg.) 'webapp-config -d drupal -I drupal 8.0.0_beta10'"
|
||||
elog "See 'man 8 webapp-config' for more information"
|
||||
}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
DIST skyldav-0.7.tar.gz 244444 BLAKE2B 7c5e6448a1a3ab83904d01844e9054471666ca3c7f32bc89c3fb56caf02711ade4adf0d7ea73738f21e4c3db1936b8382d7c12d992ea6576dffc3537dbc8e774 SHA512 008988ca7ab24ea8b77377e7a639ddc0a26149eab41af1d429cf8f870320617feda01ec2c9403493a3bb0bd5cd0c8cad94701bcb6c28993f2d9739e1a1b36c0b
|
@ -1,21 +0,0 @@
|
||||
diff -urN skyldav-0.7.orig/examples/etc/skyldav.conf skyldav-0.7/examples/etc/skyldav.conf
|
||||
--- skyldav-0.7.orig/examples/etc/skyldav.conf 2016-06-12 18:39:51.000000000 +0200
|
||||
+++ skyldav-0.7/examples/etc/skyldav.conf 2017-02-21 15:12:06.875945224 +0100
|
||||
@@ -22,6 +22,9 @@
|
||||
|
||||
# Directories that shall not be scanned (including subdirectories)
|
||||
# EXCLUDE_PATH = /var/noscan, /opt/noscan
|
||||
+#
|
||||
+# Exclude various portage directories for performance reasons
|
||||
+EXCLUDE_PATH = /usr/portage, /var/cache/edb, /var/db/pkg, /var/tmp/portage, /var/tmp/binpkgs, /var/log/portage
|
||||
|
||||
# File systems that are local, virus scan results may be cached.
|
||||
# LOCAL_FS = ext3, ext4, iso9660, tmpfs, vfat
|
||||
@@ -31,6 +34,7 @@
|
||||
# File systems that shall not be marked for virus scan.
|
||||
# Cifs uses a background daemon which causes problems when scanned.
|
||||
# Exclusion of fuse file systems is hard coded.
|
||||
+# Do not exclude devtmpfs and configfs, as userspace could write malware onto them!
|
||||
# NOMARK_FS = proc, sysfs
|
||||
NOMARK_FS = proc, sysfs, devpts, debugfs, securityfs, cgroup, rpc_pipefs
|
||||
NOMARK_FS = mqueue, autofs, cifs
|
@ -1,11 +0,0 @@
|
||||
diff -urN skyldav-0.7.orig/Makefile.am skyldav-0.7/Makefile.am
|
||||
--- skyldav-0.7.orig/Makefile.am 2016-06-12 18:39:51.000000000 +0200
|
||||
+++ skyldav-0.7/Makefile.am 2017-02-21 15:11:35.709518793 +0100
|
||||
@@ -9,7 +9,6 @@
|
||||
rm -rf doc/doxygen
|
||||
|
||||
install-data-local: \
|
||||
- install-skyldav-examples \
|
||||
install-skyldav-conf \
|
||||
install-skyldavnotify-desktop
|
||||
|
@ -1,10 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Config file for /etc/init.d/skyldav
|
||||
|
||||
# Options to pass to the skyldav daemon.
|
||||
# Option -d for daemonizing is always passed!
|
||||
# See the skyldav(1) man page for more info.
|
||||
|
||||
#SKYLDAV_OPTS="-m 1"
|
@ -1,25 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
SKYLDAV_BIN="/usr/sbin/skyldav"
|
||||
SKYLDAV_OPTS="${SKYLDAV_OPTS:--m 2}"
|
||||
SKYLDAV_CONFIGFILE="/etc/skyldav.conf"
|
||||
SKYLDAV_PIDFILE_DIR="${SKYLDAV_PIDFILE_DIR:-/var/run/${RC_SVCNAME}}"
|
||||
SKYLDAV_PIDFILE="${SKYLDAV_PIDFILE:-${SKYLDAV_PIDFILE_DIR}/${RC_SVCNAME}.pid}"
|
||||
|
||||
name="${SKYLDAV_BIN##*/}"
|
||||
command="${SKYLDAV_BIN}"
|
||||
command_args="-d ${SKYLDAV_OPTS}"
|
||||
pidfile="${SKYLDAV_PIDFILE}"
|
||||
description="Skyld AV is an anti-virus on-access scanner based upon Clam AV and fanotify"
|
||||
required_files="${SKYLDAV_CONFIG}"
|
||||
|
||||
depend() {
|
||||
use logger
|
||||
need localmount
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 -o root:root "${SKYLDAV_PIDFILE_DIR}"
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
[Unit]
|
||||
Description=SkyldAV anti-virus on-access scanning daemon based upon Clam AV and fanotify
|
||||
Requires=local-fs.target clamd.service
|
||||
After=local-fs.target clamd.service
|
||||
Before=multi-user.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment="SKYLDAV_MESSAGE_LEVEL=2"
|
||||
ExecStart=/usr/sbin/skyldav -d -m ${SKYLDAV_MESSAGE_LEVEL}
|
||||
#KillMode=process
|
||||
#KillSignal=SIGTERM
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,3 +0,0 @@
|
||||
[Service]
|
||||
# skyldav message level (-m)
|
||||
#Environment="SKYLDAV_MESSAGE_LEVEL=1"
|
@ -1,2 +0,0 @@
|
||||
# skyldav runtime directory for skyldav.pid and log (used by skyldavnotify)
|
||||
d /run/skyldav 0755 root root -
|
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<remote-id type="github">xypron/skyldav</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit flag-o-matic linux-info linux-mod autotools-utils readme.gentoo-r1 systemd
|
||||
|
||||
DESCRIPTION="Skyld AV: on-access scanning daemon for ClamAV using fanotify"
|
||||
HOMEPAGE="http://xypron.github.io/skyldav/"
|
||||
|
||||
## github release tarball
|
||||
MY_PV=${PV/_rc/rc}
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SRC_URI="https://github.com/xypron/skyldav/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
|
||||
## selfmade tarball
|
||||
#MY_PVR=${PVR/_rc/rc}
|
||||
#MY_P="${PN}-${MY_PVR}"
|
||||
#SRC_URI="https://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
## github commit tarball
|
||||
#MY_GIT_COMMIT="49bdb5e710b5a77c38ceb87da6015afb7009f1f9"
|
||||
#MY_P="xypron-${PN}-${MY_GIT_COMMIT:0:7}"
|
||||
#SRC_URI="https://github.com/xypron/${PN}/tarball/${MY_GIT_COMMIT} -> ${PF}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
LICENSE="Apache-2.0"
|
||||
IUSE="libnotify systemd"
|
||||
|
||||
RDEPEND=">=app-antivirus/clamav-0.97.8
|
||||
sys-apps/util-linux
|
||||
sys-libs/libcap
|
||||
libnotify? (
|
||||
media-libs/libcanberra[gtk]
|
||||
x11-libs/libnotify
|
||||
x11-libs/gtk+:2
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/autoconf-archive"
|
||||
|
||||
## autotools-utils.eclass settings
|
||||
AUTOTOOLS_AUTORECONF="1"
|
||||
AUTOTOOLS_IN_SOURCE_BUILD="1"
|
||||
DOCS=( AUTHORS NEWS README )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-examples.patch"
|
||||
"${FILESDIR}/${PN}-conf.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
linux-info_pkg_setup
|
||||
kernel_is ge 3 8 0 || die "Linux 3.8.0 or newer recommended"
|
||||
CONFIG_CHECK="FANOTIFY FANOTIFY_ACCESS_PERMISSIONS"
|
||||
check_extra_config
|
||||
|
||||
## define contents for README.gentoo
|
||||
if use systemd; then
|
||||
DOC_CONTENTS='Skyld AV provides a systemd service.'$'\n'
|
||||
DOC_CONTENTS+='Please edit the systemd service config file to match your needs:'$'\n'
|
||||
DOC_CONTENTS+='/etc/systemd/system/skyldav.service.d/00gentoo.conf'$'\n'
|
||||
DOC_CONTENTS+='# systemctl daemon-reload'$'\n'
|
||||
DOC_CONTENTS+='# systemctl restart skyldav.service'$'\n'
|
||||
DOC_CONTENTS+='Example for enabling the Skyld AV service:'$'\n'
|
||||
DOC_CONTENTS+='# systemctl enable skyldav.service'$'\n'
|
||||
else
|
||||
DOC_CONTENTS='Skyld AV provides an init script for OpenRC.'$'\n'
|
||||
DOC_CONTENTS+='Please edit the init script config file to match your needs:'$'\n'
|
||||
DOC_CONTENTS+='/etc/conf.d/skyldav'$'\n'
|
||||
DOC_CONTENTS+='Example for enabling the Skyld AV init script:'$'\n'
|
||||
DOC_CONTENTS+='# rc-update add skyldav default'$'\n'
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with libnotify notification)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
## install systemd service or OpenRC init scripts
|
||||
if use systemd; then
|
||||
systemd_newunit "${FILESDIR}/skyldav.service-r1" skyldav.service
|
||||
systemd_install_serviced "${FILESDIR}"/skyldav.service.conf
|
||||
systemd_newtmpfilesd "${FILESDIR}"/skyldav.tmpfilesd skyldav.conf
|
||||
else
|
||||
newinitd "${FILESDIR}/${PN}.initd" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
fi
|
||||
|
||||
## create README.gentoo from ${DOC_CONTENTS}
|
||||
DISABLE_AUTOFORMATTING=1 readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
## workaround for /usr/lib/tmpfiles.d/skyldav.conf
|
||||
## not getting processed until the next reboot
|
||||
if use systemd; then
|
||||
install -d -m 0755 -o root -g root /run/skyldav
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST rdiff-backup-1.3.3.tar.gz 198412 BLAKE2B 95141b64ecb3442b2a420e3e2f4325a80bc4e3949e920f3fb04d8d7e69cd20b2809d230a5f9f6af6958f47689d73cf9fdc2d95134d41a5a9d0d6037ee87cf96e SHA512 e2731464a6ff146cdecac49d2d99275dc5e6b4a3ff5b8209fe6dc71fd80cdbf573d029531325a879e9a169c12b31568f75fdcb812f53df33896784c5bc550280
|
||||
DIST rdiff-backup-1.4.0b0.tar.gz 280675 BLAKE2B f729d7c4db08e32ca02a303afd7b88028efaba50e7dc9da20bac1e94835cd929c7277a73fb1f614d6acdf3ff72c96698bf6ca1a36c64c426649230f3f917ffe0 SHA512 50d3ca8ea155c9c001bf0284d8142757f8d12c4b9ef99b4ace43978c625dd6ddb06b04d2f91d0804a445c5ffcfef0dc1e1742a45d51731a728bde054cf3642f9
|
||||
DIST rdiff-backup-1.9.1b0.tar.gz 318549 BLAKE2B 726b3aec733861cbba45d3d3b13302c52d3e09fdf9f5a1912145b5af4503cc804ea1cf19bdb88c92ea77ad64c0a836bae470e0f4d672cc71eeef15fb00157678 SHA512 48dd4126ba13ebc1fda1a6855279d3d54c8c79571a2d8117a0204b37521aeb802e65e9d242c9ba6c360a196125da419c1bf36f95f5b73ceb39a8ba5f5dee0f2a
|
||||
DIST rdiff-backup-2.0.0.tar.gz 408352 BLAKE2B c2a7ae90ea147398d648142e20761e3caf4f08948dcd0a3de22254a13857d3e99cb2801c83084dd13dd84764cebc7651b42a70a788553c67925521e2ed123953 SHA512 0bf06d4eefffd41e86224d798e6ac6852ca0fd356be73d651ffaf63c37aaa043a6d22f8025619ab4a86e54f6e98e61f445ab68a6f87f4f2f48e635507ea110ec
|
||||
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
inherit distutils-r1
|
||||
|
||||
UPSTREAM_PV=$(ver_rs 3 '.')
|
||||
|
||||
DESCRIPTION="Local/remote mirroring+incremental backup"
|
||||
HOMEPAGE="https://github.com/rdiff-backup/rdiff-backup"
|
||||
SRC_URI="https://github.com/rdiff-backup/${PN}/releases/download/v${PV/_/.}/${P/_beta/b0}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||
IUSE="examples"
|
||||
|
||||
DEPEND=">=net-libs/librsync-1.0:0="
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/pylibacl[${PYTHON_USEDEP}]
|
||||
dev-python/pyxattr[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.4.0-no-docs.patch"
|
||||
)
|
||||
|
||||
S=${WORKDIR}/${P/_beta/b0}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( docs/FAQ.md )
|
||||
use examples && DOCS+=( docs/examples.md )
|
||||
distutils-r1_python_install_all
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST qca-2.2.1.tar.xz 691676 BLAKE2B d5bcc0d6e791811e1efcdbf2e09916fe40ad682b0e59b2993c73a5bd79e09fc28facdec81259a982bee05223c8dfce78b9a6b729ca4e566c0901a13b91575379 SHA512 3a0e8aa7cf3ea9a7244facaf1d521ebca2753af37636e7bf5f21c57ae880ac9682ae7d6d9fa5ce41b73568ff9538214956b89cd41228c2cb828d9068c2031a9c
|
||||
DIST qca-2.3.0.tar.xz 729504 BLAKE2B 71cf9dfae00066c14e1055da1fa1a8e1210f538b1addfde1b99a9b26b1e8f7dd61e289d0f505b5ec04d5f4745216d4fd0f8be8f8de9e9cbf74123907ba703d0e SHA512 ca9251868e073834562fa62ffc64b3e7817c9ddadc6bc3fb99cf8b5c8d859969562170a98874be9590c617b2dd8e5590d2c83792554f54bb880c677902db22fe
|
||||
|
@ -1,84 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake qmake-utils
|
||||
|
||||
DESCRIPTION="Qt Cryptographic Architecture (QCA)"
|
||||
HOMEPAGE="https://userbase.kde.org/QCA"
|
||||
SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="2"
|
||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
|
||||
|
||||
IUSE="botan debug doc examples gcrypt gpg logger nss pkcs11 sasl softstore +ssl test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
botan? ( dev-libs/botan:= )
|
||||
gcrypt? ( dev-libs/libgcrypt:= )
|
||||
gpg? ( app-crypt/gnupg )
|
||||
nss? ( dev-libs/nss )
|
||||
pkcs11? (
|
||||
dev-libs/openssl:0
|
||||
dev-libs/pkcs11-helper
|
||||
)
|
||||
sasl? ( dev-libs/cyrus-sasl:2 )
|
||||
ssl? ( >=dev-libs/openssl-1.0.1:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qttest:5
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-disable-pgp-test.patch" )
|
||||
|
||||
qca_plugin_use() {
|
||||
echo -DWITH_${2:-$1}_PLUGIN=$(usex "$1")
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DQCA_FEATURE_INSTALL_DIR="${EPREFIX}$(qt5_get_mkspecsdir)/features"
|
||||
-DQCA_PLUGINS_INSTALL_DIR="${EPREFIX}$(qt5_get_plugindir)"
|
||||
$(qca_plugin_use botan)
|
||||
$(qca_plugin_use gcrypt)
|
||||
$(qca_plugin_use gpg gnupg)
|
||||
$(qca_plugin_use logger)
|
||||
$(qca_plugin_use nss)
|
||||
$(qca_plugin_use pkcs11)
|
||||
$(qca_plugin_use sasl cyrus-sasl)
|
||||
$(qca_plugin_use softstore)
|
||||
$(qca_plugin_use ssl ossl)
|
||||
-DBUILD_TESTS=$(usex test)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local -x QCA_PLUGIN_PATH="${BUILD_DIR}/lib/qca"
|
||||
cmake_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
if use doc; then
|
||||
pushd "${BUILD_DIR}" >/dev/null || die
|
||||
doxygen Doxyfile || die
|
||||
dodoc -r apidocs/html
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
dodoc -r "${S}"/examples
|
||||
fi
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit eutils qmake-utils python-single-r1
|
||||
inherit eutils qmake-utils python-single-r1 desktop
|
||||
|
||||
DESCRIPTION="Cross-platform application for configuring any YubiKey over all USB transports"
|
||||
HOMEPAGE="https://developers.yubico.com/yubikey-manager-qt https://github.com/Yubico/yubikey-manager-qt"
|
@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
inherit readme.gentoo-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Python library and command line tool for configuring a YubiKey"
|
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST libvirt-5.10.0.tar.xz 8732120 BLAKE2B 9b191a624cca2c84d157482c48cd4eec0456382aa861958880bbbdc25785625386f63320a0626e52683776cca25c4af80ee65d19349ed0b2862e76a074e4e419 SHA512 bb518a6aa6731a7de4b24fc7b8ffdcd2cdd84dfe49047374e0f02265c274eb06dbe1732c9cc4954412853d36d9dd5c1124fb8a5e37f4c01654d85013773ffa23
|
||||
DIST libvirt-6.0.0.tar.xz 8686092 BLAKE2B 669054aa3bb3e4f2cf0be2e9ea796b820786661f65495597322e178d7c7e42355b0e3752c8a847cb2fc4405928a30a00544829647aa84cc2e71bc0cb8ce9af5f SHA512 64259c0cffa9fc01192c5474f69d88a61ed0bae0a100379fed6112723a37eff1865ccfc85a19d6b8cd39ed504f04998bb3f6390aaafff797bb41ef65b6ec413c
|
||||
DIST libvirt-6.1.0.tar.xz 8276964 BLAKE2B cf57e28d17e868ab4a69f03fe77b0d779362c6cb8cf1a38196ba7bad873ec4ecfa8ad1744ce97251820ab898be1ddc9bf30b788f1708172bfd23ec2c7cd3bdac SHA512 17a2641f300a4a05149261bae74ac856e9a2511a259146595d2e2412c4a0601d88369b0544ba86edc80e433a47cf828317d8de38c6ec86a1b3efaca75294a606
|
||||
|
@ -1,379 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit autotools out-of-source bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://libvirt.org/git/libvirt.git"
|
||||
SRC_URI=""
|
||||
KEYWORDS="amd64 x86"
|
||||
SLOT="0"
|
||||
else
|
||||
SRC_URI="https://libvirt.org/sources/${P}.tar.xz"
|
||||
KEYWORDS="amd64 ~arm64 ~ppc64 x86"
|
||||
SLOT="0/${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
IUSE="
|
||||
apparmor audit +caps +dbus dtrace firewalld fuse glusterfs iscsi
|
||||
iscsi-direct +libvirtd lvm libssh lxc +macvtap nfs nls numa openvz
|
||||
parted pcap phyp policykit +qemu rbd sasl selinux +udev +vepa
|
||||
virtualbox virt-network wireshark-plugins xen zfs
|
||||
"
|
||||
|
||||
REQUIRED_USE="
|
||||
firewalld? ( virt-network )
|
||||
libvirtd? ( || ( lxc openvz qemu virtualbox xen ) )
|
||||
lxc? ( caps libvirtd )
|
||||
openvz? ( libvirtd )
|
||||
policykit? ( dbus )
|
||||
qemu? ( libvirtd )
|
||||
vepa? ( macvtap )
|
||||
virt-network? ( libvirtd )
|
||||
virtualbox? ( libvirtd )
|
||||
xen? ( libvirtd )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||
# we must go with the most recent
|
||||
RDEPEND="
|
||||
acct-user/qemu
|
||||
policykit? ( acct-group/libvirt )
|
||||
app-misc/scrub
|
||||
>=dev-libs/glib-2.48.0
|
||||
dev-libs/libgcrypt:0
|
||||
dev-libs/libnl:3
|
||||
>=dev-libs/libxml2-2.7.6
|
||||
>=net-analyzer/openbsd-netcat-1.105-r1
|
||||
>=net-libs/gnutls-1.0.25:0=
|
||||
net-libs/libssh2
|
||||
net-libs/libtirpc
|
||||
net-libs/rpcsvc-proto
|
||||
>=net-misc/curl-7.18.0
|
||||
sys-apps/dmidecode
|
||||
>=sys-apps/util-linux-2.17
|
||||
sys-devel/gettext
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:=
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
audit? ( sys-process/audit )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
dbus? ( sys-apps/dbus )
|
||||
dtrace? ( dev-util/systemtap )
|
||||
firewalld? ( >=net-firewall/firewalld-0.6.3 )
|
||||
fuse? ( sys-fs/fuse:0= )
|
||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.1 )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
iscsi-direct? ( >=net-libs/libiscsi-1.18.0 )
|
||||
libssh? ( net-libs/libssh )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] )
|
||||
lxc? ( !sys-apps/systemd[-cgroup-hybrid(+)] )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? (
|
||||
>sys-process/numactl-2.0.2
|
||||
sys-process/numad
|
||||
)
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2[-device-mapper-only(-)]
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||
policykit? ( >=sys-auth/polkit-0.9 )
|
||||
qemu? (
|
||||
>=app-emulation/qemu-1.5.0
|
||||
dev-libs/yajl
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
virt-network? (
|
||||
net-dns/dnsmasq[script]
|
||||
net-firewall/ebtables
|
||||
>=net-firewall/iptables-1.4.10[ipv6]
|
||||
net-misc/radvd
|
||||
sys-apps/iproute2[-minimal]
|
||||
)
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
wireshark-plugins? ( net-analyzer/wireshark:= )
|
||||
xen? (
|
||||
>=app-emulation/xen-4.6.0
|
||||
app-emulation/xen-tools:=
|
||||
)
|
||||
udev? (
|
||||
virtual/udev
|
||||
>=x11-libs/libpciaccess-0.10.9
|
||||
)
|
||||
zfs? ( sys-fs/zfs )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
app-text/xhtml1
|
||||
dev-lang/perl
|
||||
dev-libs/libxslt
|
||||
dev-perl/XML-XPath
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.7.0-do-not-use-sysconf.patch
|
||||
"${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch
|
||||
"${FILESDIR}"/${PN}-5.2.0-fix-paths-for-apparmor.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# Check kernel configuration:
|
||||
CONFIG_CHECK=""
|
||||
use fuse && CONFIG_CHECK+="
|
||||
~FUSE_FS"
|
||||
|
||||
use lvm && CONFIG_CHECK+="
|
||||
~BLK_DEV_DM
|
||||
~DM_MULTIPATH
|
||||
~DM_SNAPSHOT"
|
||||
|
||||
use lxc && CONFIG_CHECK+="
|
||||
~BLK_CGROUP
|
||||
~CGROUP_CPUACCT
|
||||
~CGROUP_DEVICE
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_NET_PRIO
|
||||
~CGROUP_PERF
|
||||
~CGROUPS
|
||||
~CGROUP_SCHED
|
||||
~CPUSETS
|
||||
~IPC_NS
|
||||
~MACVLAN
|
||||
~NAMESPACES
|
||||
~NET_CLS_CGROUP
|
||||
~NET_NS
|
||||
~PID_NS
|
||||
~POSIX_MQUEUE
|
||||
~SECURITYFS
|
||||
~USER_NS
|
||||
~UTS_NS
|
||||
~VETH
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS"
|
||||
|
||||
kernel_is lt 4 7 && use lxc && CONFIG_CHECK+="
|
||||
~DEVPTS_MULTIPLE_INSTANCES"
|
||||
|
||||
use macvtap && CONFIG_CHECK+="
|
||||
~MACVTAP"
|
||||
|
||||
use virt-network && CONFIG_CHECK+="
|
||||
~BRIDGE_EBT_MARK_T
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_CONNMARK
|
||||
~NETFILTER_XT_MARK
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
~IP_NF_FILTER
|
||||
~IP_NF_MANGLE
|
||||
~IP_NF_NAT
|
||||
~IP_NF_TARGET_MASQUERADE
|
||||
~IP6_NF_FILTER
|
||||
~IP6_NF_MANGLE
|
||||
~IP6_NF_NAT"
|
||||
# Bandwidth Limiting Support
|
||||
use virt-network && CONFIG_CHECK+="
|
||||
~BRIDGE_EBT_T_NAT
|
||||
~IP_NF_TARGET_REJECT
|
||||
~NET_ACT_POLICE
|
||||
~NET_CLS_FW
|
||||
~NET_CLS_U32
|
||||
~NET_SCH_HTB
|
||||
~NET_SCH_INGRESS
|
||||
~NET_SCH_SFQ"
|
||||
|
||||
# Handle specific kernel versions for different features
|
||||
kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
||||
if kernel_is ge 3 6; then
|
||||
CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP "
|
||||
kernel_is lt 4 5 && CONFIG_CHECK+=" ~MEMCG_KMEM "
|
||||
fi
|
||||
|
||||
ERROR_USER_NS="Optional depending on LXC configuration."
|
||||
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch "${S}/.mailmap"
|
||||
|
||||
default
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Reinitialize submodules as this is required for gnulib's bootstrap
|
||||
git submodule init
|
||||
# git checkouts require bootstrapping to create the configure script.
|
||||
# Additionally the submodules must be cloned to the right locations
|
||||
# bug #377279
|
||||
./bootstrap || die "bootstrap failed"
|
||||
(
|
||||
git submodule status .gnulib | awk '{ print $1 }'
|
||||
git hash-object bootstrap.conf
|
||||
git ls-tree -d HEAD gnulib/local | awk '{ print $3 }'
|
||||
) >.git-module-status
|
||||
fi
|
||||
|
||||
# Tweak the init script:
|
||||
cp "${FILESDIR}/libvirtd.init-r18" "${S}/libvirtd.init" || die
|
||||
sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \
|
||||
-i "${S}/libvirtd.init" || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
my_src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with apparmor)
|
||||
$(use_with apparmor apparmor-profiles)
|
||||
$(use_with audit)
|
||||
$(use_with caps capng)
|
||||
$(use_with dbus)
|
||||
$(use_with dtrace)
|
||||
$(use_with firewalld)
|
||||
$(use_with fuse)
|
||||
$(use_with glusterfs)
|
||||
$(use_with glusterfs storage-gluster)
|
||||
$(use_with iscsi storage-iscsi)
|
||||
$(use_with iscsi-direct storage-iscsi-direct)
|
||||
$(use_with libvirtd)
|
||||
$(use_with libssh)
|
||||
$(use_with lvm storage-lvm)
|
||||
$(use_with lvm storage-mpath)
|
||||
$(use_with lxc)
|
||||
$(use_with macvtap)
|
||||
$(use_enable nls)
|
||||
$(use_with numa numactl)
|
||||
$(use_with numa numad)
|
||||
$(use_with openvz)
|
||||
$(use_with parted storage-disk)
|
||||
$(use_with pcap libpcap)
|
||||
$(use_with phyp)
|
||||
$(use_with policykit polkit)
|
||||
$(use_with qemu)
|
||||
$(use_with qemu yajl)
|
||||
$(use_with rbd storage-rbd)
|
||||
$(use_with sasl)
|
||||
$(use_with selinux)
|
||||
$(use_with udev)
|
||||
$(use_with vepa virtualport)
|
||||
$(use_with virt-network network)
|
||||
$(use_with wireshark-plugins wireshark-dissector)
|
||||
$(use_with xen libxl)
|
||||
$(use_with zfs storage-zfs)
|
||||
|
||||
--without-hal
|
||||
--without-netcf
|
||||
--without-sanlock
|
||||
|
||||
--with-esx
|
||||
--with-init-script=systemd
|
||||
--with-qemu-group=$(usex caps qemu root)
|
||||
--with-qemu-user=$(usex caps qemu root)
|
||||
--with-remote
|
||||
--with-storage-fs
|
||||
--with-vmware
|
||||
|
||||
--disable-static
|
||||
--disable-werror
|
||||
|
||||
--localstatedir=/var
|
||||
--enable-dependency-tracking
|
||||
)
|
||||
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myeconfargs+=( --with-vbox=/usr/lib/virtualbox-ose/ )
|
||||
else
|
||||
myeconfargs+=( $(use_with virtualbox vbox) )
|
||||
fi
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Restore gnulib's config.sub and config.guess
|
||||
# bug #377279
|
||||
(cd "${S}"/.gnulib && git reset --hard > /dev/null)
|
||||
fi
|
||||
}
|
||||
|
||||
my_src_test() {
|
||||
# remove problematic tests, bug #591416, bug #591418
|
||||
sed -i -e 's#commandtest$(EXEEXT) # #' \
|
||||
-e 's#virfirewalltest$(EXEEXT) # #' \
|
||||
-e 's#nwfilterebiptablestest$(EXEEXT) # #' \
|
||||
-e 's#nwfilterxml2firewalltest$(EXEEXT)$##' \
|
||||
tests/Makefile
|
||||
|
||||
export VIR_TEST_DEBUG=1
|
||||
HOME="${T}" emake check
|
||||
}
|
||||
|
||||
my_src_install() {
|
||||
emake DESTDIR="${D}" \
|
||||
SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
# Remove bogus, empty directories. They are either not used, or
|
||||
# libvirtd is able to create them on demand
|
||||
rm -rf "${D}"/etc/sysconfig
|
||||
rm -rf "${D}"/var
|
||||
|
||||
newbashcomp "${S}/tools/bash-completion/vsh" virsh
|
||||
bashcomp_alias virsh virt-admin
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
systemd_install_serviced \
|
||||
"${FILESDIR}"/libvirtd.service.conf libvirtd.service
|
||||
|
||||
systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd
|
||||
newinitd "${FILESDIR}/libvirt-guests.init-r4" libvirt-guests
|
||||
newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd
|
||||
newinitd "${FILESDIR}/virtlogd.init-r1" virtlogd
|
||||
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd
|
||||
newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests
|
||||
|
||||
DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r2")
|
||||
DISABLE_AUTOFORMATTING=true
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# we only ever want to generate this once
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -1,829 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python{3_6,3_7} )
|
||||
PYTHON_REQ_USE="ncurses,readline"
|
||||
|
||||
PLOCALES="bg de_DE fr_FR hu it tr zh_CN"
|
||||
|
||||
FIRMWARE_ABI_VERSION="4.0.0-r50"
|
||||
|
||||
inherit eutils linux-info toolchain-funcs multilib python-r1 \
|
||||
udev fcaps readme.gentoo-r1 pax-utils l10n xdg-utils
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
EGIT_REPO_URI="https://git.qemu.org/git/qemu.git"
|
||||
EGIT_SUBMODULES=(
|
||||
slirp
|
||||
tests/fp/berkeley-{test,soft}float-3
|
||||
ui/keycodemapdb
|
||||
)
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="https://download.qemu.org/${P}.tar.xz"
|
||||
KEYWORDS="amd64 ~arm64 ~ppc ~ppc64 x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools"
|
||||
HOMEPAGE="http://www.qemu.org http://www.linux-kvm.org"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2 BSD-2"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="accessibility +aio alsa bzip2 capstone +caps +curl debug doc
|
||||
+fdt glusterfs gnutls gtk infiniband iscsi jemalloc +jpeg kernel_linux
|
||||
kernel_FreeBSD lzo ncurses nfs nls numa opengl +oss +pin-upstream-blobs
|
||||
plugins +png pulseaudio python rbd sasl +seccomp sdl selinux smartcard snappy
|
||||
spice ssh static static-user systemtap tci test usb usbredir vde
|
||||
+vhost-net vhost-user-fs virgl virtfs +vnc vte xattr xen xfs +xkb"
|
||||
|
||||
COMMON_TARGETS="aarch64 alpha arm cris hppa i386 m68k microblaze microblazeel
|
||||
mips mips64 mips64el mipsel nios2 or1k ppc ppc64 riscv32 riscv64 s390x
|
||||
sh4 sh4eb sparc sparc64 x86_64 xtensa xtensaeb"
|
||||
IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS}
|
||||
lm32 moxie tricore unicore32"
|
||||
IUSE_USER_TARGETS="${COMMON_TARGETS}
|
||||
aarch64_be armeb mipsn32 mipsn32el ppc64abi32 ppc64le sparc32plus
|
||||
tilegx"
|
||||
|
||||
use_softmmu_targets=$(printf ' qemu_softmmu_targets_%s' ${IUSE_SOFTMMU_TARGETS})
|
||||
use_user_targets=$(printf ' qemu_user_targets_%s' ${IUSE_USER_TARGETS})
|
||||
IUSE+=" ${use_softmmu_targets} ${use_user_targets}"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
# Allow no targets to be built so that people can get a tools-only build.
|
||||
# Block USE flag configurations known to not work.
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
qemu_softmmu_targets_arm? ( fdt )
|
||||
qemu_softmmu_targets_microblaze? ( fdt )
|
||||
qemu_softmmu_targets_mips64el? ( fdt )
|
||||
qemu_softmmu_targets_ppc64? ( fdt )
|
||||
qemu_softmmu_targets_ppc? ( fdt )
|
||||
qemu_softmmu_targets_riscv32? ( fdt )
|
||||
qemu_softmmu_targets_riscv64? ( fdt )
|
||||
static? ( static-user !alsa !gtk !opengl !pulseaudio !plugins !rbd !snappy )
|
||||
static-user? ( !plugins )
|
||||
virtfs? ( xattr )
|
||||
vte? ( gtk )
|
||||
plugins? ( !static !static-user )
|
||||
"
|
||||
|
||||
# Dependencies required for qemu tools (qemu-nbd, qemu-img, qemu-io, ...)
|
||||
# and user/softmmu targets (qemu-*, qemu-system-*).
|
||||
#
|
||||
# Yep, you need both libcap and libcap-ng since virtfs only uses libcap.
|
||||
#
|
||||
# The attr lib isn't always linked in (although the USE flag is always
|
||||
# respected). This is because qemu supports using the C library's API
|
||||
# when available rather than always using the external library.
|
||||
ALL_DEPEND="
|
||||
>=dev-libs/glib-2.0[static-libs(+)]
|
||||
sys-libs/zlib[static-libs(+)]
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
xattr? ( sys-apps/attr[static-libs(+)] )"
|
||||
|
||||
# Dependencies required for qemu tools (qemu-nbd, qemu-img, qemu-io, ...)
|
||||
# softmmu targets (qemu-system-*).
|
||||
SOFTMMU_TOOLS_DEPEND="
|
||||
dev-libs/libxml2[static-libs(+)]
|
||||
xkb? ( x11-libs/libxkbcommon[static-libs(+)] )
|
||||
>=x11-libs/pixman-0.28.0[static-libs(+)]
|
||||
accessibility? (
|
||||
app-accessibility/brltty[api]
|
||||
app-accessibility/brltty[static-libs(+)]
|
||||
)
|
||||
aio? ( dev-libs/libaio[static-libs(+)] )
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
||||
bzip2? ( app-arch/bzip2[static-libs(+)] )
|
||||
capstone? ( dev-libs/capstone:= )
|
||||
caps? ( sys-libs/libcap-ng[static-libs(+)] )
|
||||
curl? ( >=net-misc/curl-7.15.4[static-libs(+)] )
|
||||
fdt? ( >=sys-apps/dtc-1.5.0[static-libs(+)] )
|
||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] )
|
||||
gnutls? (
|
||||
dev-libs/nettle:=[static-libs(+)]
|
||||
>=net-libs/gnutls-3.0:=[static-libs(+)]
|
||||
)
|
||||
gtk? (
|
||||
x11-libs/gtk+:3
|
||||
vte? ( x11-libs/vte:2.91 )
|
||||
)
|
||||
infiniband? (
|
||||
sys-fabric/libibumad:=[static-libs(+)]
|
||||
sys-fabric/libibverbs:=[static-libs(+)]
|
||||
sys-fabric/librdmacm:=[static-libs(+)]
|
||||
)
|
||||
iscsi? ( net-libs/libiscsi )
|
||||
jemalloc? ( dev-libs/jemalloc )
|
||||
jpeg? ( virtual/jpeg:0=[static-libs(+)] )
|
||||
lzo? ( dev-libs/lzo:2[static-libs(+)] )
|
||||
ncurses? (
|
||||
sys-libs/ncurses:0=[unicode]
|
||||
sys-libs/ncurses:0=[static-libs(+)]
|
||||
)
|
||||
nfs? ( >=net-fs/libnfs-1.9.3:=[static-libs(+)] )
|
||||
numa? ( sys-process/numactl[static-libs(+)] )
|
||||
opengl? (
|
||||
virtual/opengl
|
||||
media-libs/libepoxy[static-libs(+)]
|
||||
media-libs/mesa[static-libs(+)]
|
||||
media-libs/mesa[egl,gbm]
|
||||
)
|
||||
png? ( media-libs/libpng:0=[static-libs(+)] )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
||||
sdl? (
|
||||
media-libs/libsdl2[X]
|
||||
media-libs/libsdl2[static-libs(+)]
|
||||
)
|
||||
seccomp? ( >=sys-libs/libseccomp-2.1.0[static-libs(+)] )
|
||||
smartcard? ( >=app-emulation/libcacard-2.5.0[static-libs(+)] )
|
||||
snappy? ( app-arch/snappy:= )
|
||||
spice? (
|
||||
>=app-emulation/spice-protocol-0.12.3
|
||||
>=app-emulation/spice-0.12.0[static-libs(+)]
|
||||
)
|
||||
ssh? ( >=net-libs/libssh-0.8.6[static-libs(+)] )
|
||||
usb? ( >=virtual/libusb-1-r2[static-libs(+)] )
|
||||
usbredir? ( >=sys-apps/usbredir-0.6[static-libs(+)] )
|
||||
vde? ( net-misc/vde[static-libs(+)] )
|
||||
virgl? ( media-libs/virglrenderer[static-libs(+)] )
|
||||
virtfs? ( sys-libs/libcap )
|
||||
xen? ( app-emulation/xen-tools:= )
|
||||
xfs? ( sys-fs/xfsprogs[static-libs(+)] )"
|
||||
|
||||
X86_FIRMWARE_DEPEND="
|
||||
pin-upstream-blobs? (
|
||||
~sys-firmware/edk2-ovmf-201905[binary]
|
||||
~sys-firmware/ipxe-1.0.0_p20190728[binary]
|
||||
~sys-firmware/seabios-1.12.0[binary,seavgabios]
|
||||
~sys-firmware/sgabios-0.1_pre8[binary]
|
||||
)
|
||||
!pin-upstream-blobs? (
|
||||
sys-firmware/edk2-ovmf
|
||||
sys-firmware/ipxe
|
||||
>=sys-firmware/seabios-1.10.2[seavgabios]
|
||||
sys-firmware/sgabios
|
||||
)"
|
||||
PPC64_FIRMWARE_DEPEND="
|
||||
pin-upstream-blobs? (
|
||||
~sys-firmware/seabios-1.12.0[binary,seavgabios]
|
||||
)
|
||||
!pin-upstream-blobs? (
|
||||
>=sys-firmware/seabios-1.10.2[seavgabios]
|
||||
)
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
$(python_gen_impl_dep)
|
||||
dev-lang/perl
|
||||
sys-apps/texinfo
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-python/sphinx )
|
||||
gtk? ( nls? ( sys-devel/gettext ) )
|
||||
test? (
|
||||
dev-libs/glib[utils]
|
||||
sys-devel/bc
|
||||
)
|
||||
"
|
||||
CDEPEND="
|
||||
!static? (
|
||||
${ALL_DEPEND//\[static-libs(+)]}
|
||||
${SOFTMMU_TOOLS_DEPEND//\[static-libs(+)]}
|
||||
)
|
||||
qemu_softmmu_targets_i386? ( ${X86_FIRMWARE_DEPEND} )
|
||||
qemu_softmmu_targets_x86_64? ( ${X86_FIRMWARE_DEPEND} )
|
||||
qemu_softmmu_targets_ppc64? ( ${PPC64_FIRMWARE_DEPEND} )
|
||||
"
|
||||
DEPEND="${CDEPEND}
|
||||
kernel_linux? ( >=sys-kernel/linux-headers-2.6.35 )
|
||||
static? (
|
||||
${ALL_DEPEND}
|
||||
${SOFTMMU_TOOLS_DEPEND}
|
||||
)
|
||||
static-user? ( ${ALL_DEPEND} )"
|
||||
RDEPEND="${CDEPEND}
|
||||
acct-group/kvm
|
||||
selinux? ( sec-policy/selinux-qemu )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.5.0-cflags.patch
|
||||
"${FILESDIR}"/${PN}-2.5.0-sysmacros.patch
|
||||
"${FILESDIR}"/${PN}-2.11.1-capstone_include_path.patch
|
||||
"${FILESDIR}"/${PN}-4.0.0-sanitize-interp_info.patch
|
||||
"${FILESDIR}"/${PN}-4.0.0-mkdir_systemtap.patch #684902
|
||||
)
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/share/qemu/hppa-firmware.img
|
||||
usr/share/qemu/openbios-ppc
|
||||
usr/share/qemu/openbios-sparc64
|
||||
usr/share/qemu/openbios-sparc32
|
||||
usr/share/qemu/palcode-clipper
|
||||
usr/share/qemu/s390-ccw.img
|
||||
usr/share/qemu/s390-netboot.img
|
||||
usr/share/qemu/u-boot.e500"
|
||||
|
||||
QA_WX_LOAD="usr/bin/qemu-i386
|
||||
usr/bin/qemu-x86_64
|
||||
usr/bin/qemu-alpha
|
||||
usr/bin/qemu-arm
|
||||
usr/bin/qemu-cris
|
||||
usr/bin/qemu-m68k
|
||||
usr/bin/qemu-microblaze
|
||||
usr/bin/qemu-microblazeel
|
||||
usr/bin/qemu-mips
|
||||
usr/bin/qemu-mipsel
|
||||
usr/bin/qemu-or1k
|
||||
usr/bin/qemu-ppc
|
||||
usr/bin/qemu-ppc64
|
||||
usr/bin/qemu-ppc64abi32
|
||||
usr/bin/qemu-sh4
|
||||
usr/bin/qemu-sh4eb
|
||||
usr/bin/qemu-sparc
|
||||
usr/bin/qemu-sparc64
|
||||
usr/bin/qemu-armeb
|
||||
usr/bin/qemu-sparc32plus
|
||||
usr/bin/qemu-s390x
|
||||
usr/bin/qemu-unicore32"
|
||||
|
||||
DOC_CONTENTS="If you don't have kvm compiled into the kernel, make sure you have the
|
||||
kernel module loaded before running kvm. The easiest way to ensure that the
|
||||
kernel module is loaded is to load it on boot.
|
||||
For AMD CPUs the module is called 'kvm-amd'.
|
||||
For Intel CPUs the module is called 'kvm-intel'.
|
||||
Please review /etc/conf.d/modules for how to load these.
|
||||
|
||||
Make sure your user is in the 'kvm' group. Just run
|
||||
$ gpasswd -a <USER> kvm
|
||||
then have <USER> re-login.
|
||||
|
||||
For brand new installs, the default permissions on /dev/kvm might not let
|
||||
you access it. You can tell udev to reset ownership/perms:
|
||||
$ udevadm trigger -c add /dev/kvm
|
||||
|
||||
If you want to register binfmt handlers for qemu user targets:
|
||||
For openrc:
|
||||
# rc-update add qemu-binfmt
|
||||
For systemd:
|
||||
# ln -s /usr/share/qemu/binfmt.d/qemu.conf /etc/binfmt.d/qemu.conf"
|
||||
|
||||
pkg_pretend() {
|
||||
if use kernel_linux && kernel_is lt 2 6 25; then
|
||||
eerror "This version of KVM requres a host kernel of 2.6.25 or higher."
|
||||
elif use kernel_linux; then
|
||||
if ! linux_config_exists; then
|
||||
eerror "Unable to check your kernel for KVM support"
|
||||
else
|
||||
CONFIG_CHECK="~KVM ~TUN ~BRIDGE"
|
||||
ERROR_KVM="You must enable KVM in your kernel to continue"
|
||||
ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in"
|
||||
ERROR_KVM_AMD+=" your kernel configuration."
|
||||
ERROR_KVM_INTEL="If you have an Intel CPU, you must enable"
|
||||
ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration."
|
||||
ERROR_TUN="You will need the Universal TUN/TAP driver compiled"
|
||||
ERROR_TUN+=" into your kernel or loaded as a module to use the"
|
||||
ERROR_TUN+=" virtual network device if using -net tap."
|
||||
ERROR_BRIDGE="You will also need support for 802.1d"
|
||||
ERROR_BRIDGE+=" Ethernet Bridging for some network configurations."
|
||||
use vhost-net && CONFIG_CHECK+=" ~VHOST_NET"
|
||||
ERROR_VHOST_NET="You must enable VHOST_NET to have vhost-net"
|
||||
ERROR_VHOST_NET+=" support"
|
||||
|
||||
if use amd64 || use x86 || use amd64-linux || use x86-linux; then
|
||||
if grep -q AuthenticAMD /proc/cpuinfo; then
|
||||
CONFIG_CHECK+=" ~KVM_AMD"
|
||||
elif grep -q GenuineIntel /proc/cpuinfo; then
|
||||
CONFIG_CHECK+=" ~KVM_INTEL"
|
||||
fi
|
||||
fi
|
||||
|
||||
use python && CONFIG_CHECK+=" ~DEBUG_FS"
|
||||
ERROR_DEBUG_FS="debugFS support required for kvm_stat"
|
||||
|
||||
# Now do the actual checks setup above
|
||||
check_extra_config
|
||||
fi
|
||||
fi
|
||||
|
||||
if grep -qs '/usr/bin/qemu-kvm' "${EROOT}"/etc/libvirt/qemu/*.xml; then
|
||||
eerror "The kvm/qemu-kvm wrappers no longer exist, but your libvirt"
|
||||
eerror "instances are still pointing to it. Please update your"
|
||||
eerror "configs in /etc/libvirt/qemu/ to use the -enable-kvm flag"
|
||||
eerror "and the right system binary (e.g. qemu-system-x86_64)."
|
||||
die "update your virt configs to not use qemu-kvm"
|
||||
fi
|
||||
}
|
||||
|
||||
# Sanity check to make sure target lists are kept up-to-date.
|
||||
check_targets() {
|
||||
local var=$1 mak=$2
|
||||
local detected sorted
|
||||
|
||||
pushd "${S}"/default-configs >/dev/null || die
|
||||
|
||||
# Force C locale until glibc is updated. #564936
|
||||
detected=$(echo $(printf '%s\n' *-${mak}.mak | sed "s:-${mak}.mak::" | LC_COLLATE=C sort -u))
|
||||
sorted=$(echo $(printf '%s\n' ${!var} | LC_COLLATE=C sort -u))
|
||||
if [[ ${sorted} != "${detected}" ]] ; then
|
||||
eerror "The ebuild needs to be kept in sync."
|
||||
eerror "${var}: ${sorted}"
|
||||
eerror "$(printf '%-*s' ${#var} configure): ${detected}"
|
||||
die "sync ${var} to the list of targets"
|
||||
fi
|
||||
|
||||
popd >/dev/null
|
||||
}
|
||||
|
||||
handle_locales() {
|
||||
# Make sure locale list is kept up-to-date.
|
||||
local detected sorted
|
||||
detected=$(echo $(cd po && printf '%s\n' *.po | grep -v messages.po | sed 's:.po$::' | sort -u))
|
||||
sorted=$(echo $(printf '%s\n' ${PLOCALES} | sort -u))
|
||||
if [[ ${sorted} != "${detected}" ]] ; then
|
||||
eerror "The ebuild needs to be kept in sync."
|
||||
eerror "PLOCALES: ${sorted}"
|
||||
eerror " po/*.po: ${detected}"
|
||||
die "sync PLOCALES"
|
||||
fi
|
||||
|
||||
# Deal with selective install of locales.
|
||||
if use nls ; then
|
||||
# Delete locales the user does not want. #577814
|
||||
rm_loc() { rm po/$1.po || die; }
|
||||
l10n_for_each_disabled_locale_do rm_loc
|
||||
else
|
||||
# Cheap hack to disable gettext .mo generation.
|
||||
rm -f po/*.po
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
check_targets IUSE_SOFTMMU_TARGETS softmmu
|
||||
check_targets IUSE_USER_TARGETS linux-user
|
||||
|
||||
default
|
||||
|
||||
# Use correct toolchain to fix cross-compiling
|
||||
tc-export AR LD NM OBJCOPY PKG_CONFIG
|
||||
export WINDRES=${CHOST}-windres
|
||||
|
||||
# Verbose builds
|
||||
MAKEOPTS+=" V=1"
|
||||
|
||||
# Run after we've applied all patches.
|
||||
handle_locales
|
||||
|
||||
# Remove bundled copy of libfdt
|
||||
rm -r dtc || die
|
||||
}
|
||||
|
||||
##
|
||||
# configures qemu based on the build directory and the build type
|
||||
# we are using.
|
||||
#
|
||||
qemu_src_configure() {
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
local buildtype=$1
|
||||
local builddir="${S}/${buildtype}-build"
|
||||
|
||||
mkdir "${builddir}"
|
||||
|
||||
local conf_opts=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--bindir=/usr/bin
|
||||
--libdir=/usr/$(get_libdir)
|
||||
--datadir=/usr/share
|
||||
--docdir=/usr/share/doc/${PF}/html
|
||||
--mandir=/usr/share/man
|
||||
--with-confsuffix=/qemu
|
||||
--localstatedir=/var
|
||||
--disable-bsd-user
|
||||
--disable-guest-agent
|
||||
--disable-strip
|
||||
--disable-werror
|
||||
# We support gnutls/nettle for crypto operations. It is possible
|
||||
# to use gcrypt when gnutls/nettle are disabled (but not when they
|
||||
# are enabled), but it's not really worth the hassle. Disable it
|
||||
# all the time to avoid automatically detecting it. #568856
|
||||
--disable-gcrypt
|
||||
--python="${PYTHON}"
|
||||
--cc="$(tc-getCC)"
|
||||
--cxx="$(tc-getCXX)"
|
||||
--host-cc="$(tc-getBUILD_CC)"
|
||||
$(use_enable debug debug-info)
|
||||
$(use_enable debug debug-tcg)
|
||||
$(use_enable doc docs)
|
||||
$(use_enable plugins)
|
||||
$(use_enable tci tcg-interpreter)
|
||||
$(use_enable xattr attr)
|
||||
)
|
||||
|
||||
# Disable options not used by user targets. This simplifies building
|
||||
# static user targets (USE=static-user) considerably.
|
||||
conf_notuser() {
|
||||
if [[ ${buildtype} == "user" ]] ; then
|
||||
echo "--disable-${2:-$1}"
|
||||
else
|
||||
use_enable "$@"
|
||||
fi
|
||||
}
|
||||
conf_opts+=(
|
||||
--disable-bluez
|
||||
$(conf_notuser accessibility brlapi)
|
||||
$(conf_notuser aio linux-aio)
|
||||
$(conf_notuser bzip2)
|
||||
$(conf_notuser capstone)
|
||||
$(conf_notuser caps cap-ng)
|
||||
$(conf_notuser curl)
|
||||
$(conf_notuser fdt)
|
||||
$(conf_notuser glusterfs)
|
||||
$(conf_notuser gnutls)
|
||||
$(conf_notuser gnutls nettle)
|
||||
$(conf_notuser gtk)
|
||||
$(conf_notuser infiniband rdma)
|
||||
$(conf_notuser iscsi libiscsi)
|
||||
$(conf_notuser jemalloc jemalloc)
|
||||
$(conf_notuser jpeg vnc-jpeg)
|
||||
$(conf_notuser kernel_linux kvm)
|
||||
$(conf_notuser lzo)
|
||||
$(conf_notuser ncurses curses)
|
||||
$(conf_notuser nfs libnfs)
|
||||
$(conf_notuser numa)
|
||||
$(conf_notuser opengl)
|
||||
$(conf_notuser png vnc-png)
|
||||
$(conf_notuser rbd)
|
||||
$(conf_notuser sasl vnc-sasl)
|
||||
$(conf_notuser sdl)
|
||||
$(conf_notuser seccomp)
|
||||
$(conf_notuser smartcard)
|
||||
$(conf_notuser snappy)
|
||||
$(conf_notuser spice)
|
||||
$(conf_notuser ssh libssh)
|
||||
$(conf_notuser usb libusb)
|
||||
$(conf_notuser usbredir usb-redir)
|
||||
$(conf_notuser vde)
|
||||
$(conf_notuser vhost-net)
|
||||
$(conf_notuser vhost-user-fs)
|
||||
$(conf_notuser virgl virglrenderer)
|
||||
$(conf_notuser virtfs)
|
||||
$(conf_notuser vnc)
|
||||
$(conf_notuser vte)
|
||||
$(conf_notuser xen)
|
||||
$(conf_notuser xen xen-pci-passthrough)
|
||||
$(conf_notuser xfs xfsctl)
|
||||
$(conf_notuser xkb xkbcommon)
|
||||
)
|
||||
|
||||
if [[ ${buildtype} == "user" ]] ; then
|
||||
conf_opts+=( --disable-libxml2 )
|
||||
else
|
||||
conf_opts+=( --enable-libxml2 )
|
||||
fi
|
||||
|
||||
if [[ ! ${buildtype} == "user" ]] ; then
|
||||
# audio options
|
||||
local audio_opts=(
|
||||
$(usev alsa)
|
||||
$(usev oss)
|
||||
$(usev sdl)
|
||||
$(usex pulseaudio pa "")
|
||||
)
|
||||
conf_opts+=(
|
||||
--audio-drv-list=$(printf "%s," "${audio_opts[@]}")
|
||||
)
|
||||
fi
|
||||
|
||||
case ${buildtype} in
|
||||
user)
|
||||
conf_opts+=(
|
||||
--enable-linux-user
|
||||
--disable-system
|
||||
--disable-blobs
|
||||
--disable-tools
|
||||
)
|
||||
local static_flag="static-user"
|
||||
;;
|
||||
softmmu)
|
||||
conf_opts+=(
|
||||
--disable-linux-user
|
||||
--enable-system
|
||||
--disable-tools
|
||||
)
|
||||
local static_flag="static"
|
||||
;;
|
||||
tools)
|
||||
conf_opts+=(
|
||||
--disable-linux-user
|
||||
--disable-system
|
||||
--disable-blobs
|
||||
--enable-tools
|
||||
)
|
||||
local static_flag="static"
|
||||
;;
|
||||
esac
|
||||
|
||||
local targets="${buildtype}_targets"
|
||||
[[ -n ${targets} ]] && conf_opts+=( --target-list="${!targets}" )
|
||||
|
||||
# Add support for SystemTAP
|
||||
use systemtap && conf_opts+=( --enable-trace-backend=dtrace )
|
||||
|
||||
# We always want to attempt to build with PIE support as it results
|
||||
# in a more secure binary. But it doesn't work with static or if
|
||||
# the current GCC doesn't have PIE support.
|
||||
if use ${static_flag}; then
|
||||
conf_opts+=( --static --disable-pie )
|
||||
else
|
||||
tc-enables-pie && conf_opts+=( --enable-pie )
|
||||
fi
|
||||
|
||||
echo "../configure ${conf_opts[*]}"
|
||||
cd "${builddir}"
|
||||
../configure "${conf_opts[@]}" || die "configure failed"
|
||||
|
||||
# FreeBSD's kernel does not support QEMU assigning/grabbing
|
||||
# host USB devices yet
|
||||
use kernel_FreeBSD && \
|
||||
sed -i -E -e "s|^(HOST_USB=)bsd|\1stub|" "${S}"/config-host.mak
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local target
|
||||
|
||||
python_setup
|
||||
|
||||
softmmu_targets= softmmu_bins=()
|
||||
user_targets= user_bins=()
|
||||
|
||||
for target in ${IUSE_SOFTMMU_TARGETS} ; do
|
||||
if use "qemu_softmmu_targets_${target}"; then
|
||||
softmmu_targets+=",${target}-softmmu"
|
||||
softmmu_bins+=( "qemu-system-${target}" )
|
||||
fi
|
||||
done
|
||||
|
||||
for target in ${IUSE_USER_TARGETS} ; do
|
||||
if use "qemu_user_targets_${target}"; then
|
||||
user_targets+=",${target}-linux-user"
|
||||
user_bins+=( "qemu-${target}" )
|
||||
fi
|
||||
done
|
||||
|
||||
softmmu_targets=${softmmu_targets#,}
|
||||
user_targets=${user_targets#,}
|
||||
|
||||
[[ -n ${softmmu_targets} ]] && qemu_src_configure "softmmu"
|
||||
[[ -n ${user_targets} ]] && qemu_src_configure "user"
|
||||
qemu_src_configure "tools"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
default
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
default
|
||||
fi
|
||||
|
||||
cd "${S}/tools-build"
|
||||
default
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
pax-mark m */qemu-system-* #515550
|
||||
emake -j1 check
|
||||
emake -j1 check-report.html
|
||||
fi
|
||||
}
|
||||
|
||||
qemu_python_install() {
|
||||
python_domodule "${S}/python/qemu"
|
||||
|
||||
python_doscript "${S}/scripts/kvm/vmxcap"
|
||||
python_doscript "${S}/scripts/qmp/qmp-shell"
|
||||
python_doscript "${S}/scripts/qmp/qemu-ga-client"
|
||||
}
|
||||
|
||||
# Generate binfmt support files.
|
||||
# - /etc/init.d/qemu-binfmt script which registers the user handlers (openrc)
|
||||
# - /usr/share/qemu/binfmt.d/qemu.conf (for use with systemd-binfmt)
|
||||
generate_initd() {
|
||||
local out="${T}/qemu-binfmt"
|
||||
local out_systemd="${T}/qemu.conf"
|
||||
local d="${T}/binfmt.d"
|
||||
|
||||
einfo "Generating qemu binfmt scripts and configuration files"
|
||||
|
||||
# Generate the debian fragments first.
|
||||
mkdir -p "${d}"
|
||||
"${S}"/scripts/qemu-binfmt-conf.sh \
|
||||
--debian \
|
||||
--exportdir "${d}" \
|
||||
--qemu-path "${EPREFIX}/usr/bin" \
|
||||
|| die
|
||||
# Then turn the fragments into a shell script we can source.
|
||||
sed -E -i \
|
||||
-e 's:^([^ ]+) (.*)$:\1="\2":' \
|
||||
"${d}"/* || die
|
||||
|
||||
# Generate the init.d script by assembling the fragments from above.
|
||||
local f qcpu package interpreter magic mask
|
||||
cat "${FILESDIR}"/qemu-binfmt.initd.head >"${out}" || die
|
||||
for f in "${d}"/qemu-* ; do
|
||||
source "${f}"
|
||||
|
||||
# Normalize the cpu logic like we do in the init.d for the native cpu.
|
||||
qcpu=${package#qemu-}
|
||||
case ${qcpu} in
|
||||
arm*) qcpu="arm";;
|
||||
mips*) qcpu="mips";;
|
||||
ppc*) qcpu="ppc";;
|
||||
s390*) qcpu="s390";;
|
||||
sh*) qcpu="sh";;
|
||||
sparc*) qcpu="sparc";;
|
||||
esac
|
||||
|
||||
# we use 'printf' here to be portable across 'sh'
|
||||
# implementations: #679168
|
||||
cat <<EOF >>"${out}"
|
||||
if [ "\${cpu}" != "${qcpu}" -a -x "${interpreter}" ] ; then
|
||||
printf '%s\n' ':${package}:M::${magic}:${mask}:${interpreter}:'"\${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register
|
||||
fi
|
||||
EOF
|
||||
|
||||
echo ":${package}:M::${magic}:${mask}:${interpreter}:OC" >>"${out_systemd}"
|
||||
|
||||
done
|
||||
cat "${FILESDIR}"/qemu-binfmt.initd.tail >>"${out}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# Install binfmt handler init script for user targets.
|
||||
generate_initd
|
||||
doinitd "${T}/qemu-binfmt"
|
||||
|
||||
# Install binfmt/qemu.conf.
|
||||
insinto "/usr/share/qemu/binfmt.d"
|
||||
doins "${T}/qemu.conf"
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# This might not exist if the test failed. #512010
|
||||
[[ -e check-report.html ]] && dodoc check-report.html
|
||||
|
||||
if use kernel_linux; then
|
||||
udev_newrules "${FILESDIR}"/65-kvm.rules-r1 65-kvm.rules
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_foreach_impl qemu_python_install
|
||||
fi
|
||||
fi
|
||||
|
||||
cd "${S}/tools-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# Disable mprotect on the qemu binaries as they use JITs to be fast #459348
|
||||
pushd "${ED}"/usr/bin >/dev/null
|
||||
pax-mark mr "${softmmu_bins[@]}" "${user_bins[@]}" # bug 575594
|
||||
popd >/dev/null
|
||||
|
||||
# Install config file example for qemu-bridge-helper
|
||||
insinto "/etc/qemu"
|
||||
doins "${FILESDIR}/bridge.conf"
|
||||
|
||||
cd "${S}"
|
||||
dodoc Changelog MAINTAINERS docs/specs/pci-ids.txt
|
||||
newdoc pc-bios/README README.pc-bios
|
||||
|
||||
# Disallow stripping of prebuilt firmware files.
|
||||
dostrip -x ${QA_PREBUILT}
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
# Remove SeaBIOS since we're using the SeaBIOS packaged one
|
||||
rm "${ED}/usr/share/qemu/bios.bin"
|
||||
rm "${ED}/usr/share/qemu/bios-256k.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../seabios/bios.bin /usr/share/qemu/bios.bin
|
||||
dosym ../seabios/bios-256k.bin /usr/share/qemu/bios-256k.bin
|
||||
fi
|
||||
|
||||
# Remove vgabios since we're using the seavgabios packaged one
|
||||
rm "${ED}/usr/share/qemu/vgabios.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-cirrus.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-qxl.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-stdvga.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-virtio.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-vmware.bin"
|
||||
# PPC64 loads vgabios-stdvga
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386 || use qemu_softmmu_targets_ppc64; then
|
||||
dosym ../seavgabios/vgabios-isavga.bin /usr/share/qemu/vgabios.bin
|
||||
dosym ../seavgabios/vgabios-cirrus.bin /usr/share/qemu/vgabios-cirrus.bin
|
||||
dosym ../seavgabios/vgabios-qxl.bin /usr/share/qemu/vgabios-qxl.bin
|
||||
dosym ../seavgabios/vgabios-stdvga.bin /usr/share/qemu/vgabios-stdvga.bin
|
||||
dosym ../seavgabios/vgabios-virtio.bin /usr/share/qemu/vgabios-virtio.bin
|
||||
dosym ../seavgabios/vgabios-vmware.bin /usr/share/qemu/vgabios-vmware.bin
|
||||
fi
|
||||
|
||||
# Remove sgabios since we're using the sgabios packaged one
|
||||
rm "${ED}/usr/share/qemu/sgabios.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../sgabios/sgabios.bin /usr/share/qemu/sgabios.bin
|
||||
fi
|
||||
|
||||
# Remove iPXE since we're using the iPXE packaged one
|
||||
rm "${ED}"/usr/share/qemu/pxe-*.rom
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../ipxe/8086100e.rom /usr/share/qemu/pxe-e1000.rom
|
||||
dosym ../ipxe/80861209.rom /usr/share/qemu/pxe-eepro100.rom
|
||||
dosym ../ipxe/10500940.rom /usr/share/qemu/pxe-ne2k_pci.rom
|
||||
dosym ../ipxe/10222000.rom /usr/share/qemu/pxe-pcnet.rom
|
||||
dosym ../ipxe/10ec8139.rom /usr/share/qemu/pxe-rtl8139.rom
|
||||
dosym ../ipxe/1af41000.rom /usr/share/qemu/pxe-virtio.rom
|
||||
fi
|
||||
fi
|
||||
|
||||
DISABLE_AUTOFORMATTING=true
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
firmware_abi_change() {
|
||||
local pv
|
||||
for pv in ${REPLACING_VERSIONS}; do
|
||||
if ver_test $pv -lt ${FIRMWARE_ABI_VERSION}; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n ${softmmu_targets} ]] && use kernel_linux; then
|
||||
udev_reload
|
||||
fi
|
||||
|
||||
xdg_icon_cache_update
|
||||
|
||||
[[ -z ${EPREFIX} ]] && [[ -f ${EROOT}/usr/libexec/qemu-bridge-helper ]] && \
|
||||
fcaps cap_net_admin ${EROOT}/usr/libexec/qemu-bridge-helper
|
||||
|
||||
DISABLE_AUTOFORMATTING=true
|
||||
readme.gentoo_print_elog
|
||||
|
||||
if use pin-upstream-blobs && firmware_abi_change; then
|
||||
ewarn "This version of qemu pins new versions of firmware blobs:"
|
||||
ewarn " $(best_version sys-firmware/edk2-ovmf)"
|
||||
ewarn " $(best_version sys-firmware/ipxe)"
|
||||
ewarn " $(best_version sys-firmware/seabios)"
|
||||
ewarn " $(best_version sys-firmware/sgabios)"
|
||||
ewarn "This might break resume of hibernated guests (started with a different"
|
||||
ewarn "firmware version) and live migration to/from qemu versions with different"
|
||||
ewarn "firmware. Please (cold) restart all running guests. For functional"
|
||||
ewarn "guest migration ensure that all"
|
||||
ewarn "hosts run at least"
|
||||
ewarn " app-emulation/qemu-${FIRMWARE_ABI_VERSION}."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_info() {
|
||||
echo "Using:"
|
||||
echo " $(best_version app-emulation/spice-protocol)"
|
||||
echo " $(best_version sys-firmware/edk2-ovmf)"
|
||||
if has_version 'sys-firmware/edk2-ovmf[binary]'; then
|
||||
echo " USE=binary"
|
||||
else
|
||||
echo " USE=''"
|
||||
fi
|
||||
echo " $(best_version sys-firmware/ipxe)"
|
||||
echo " $(best_version sys-firmware/seabios)"
|
||||
if has_version 'sys-firmware/seabios[binary]'; then
|
||||
echo " USE=binary"
|
||||
else
|
||||
echo " USE=''"
|
||||
fi
|
||||
echo " $(best_version sys-firmware/sgabios)"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST manpages-de-v2.12.tar.bz2 10242050 BLAKE2B fa497a6fce2c2387dad2ab9443584174d8d5fab530b94e0123e71286c588cb3a2e52aa96760dbfd6545bed013c460e1bf61eb4a5af0673bb84c1c0f0c960a357 SHA512 548d3dd500ce1eadc71365119e35072b71e3fbe36eba664d992e94897f442fb93f9397053f72363f83dff2e931d93e2af995976736d8513d11d7c42bdb471862
|
||||
DIST manpages-l10n-v2.16.tar.bz2 26569385 BLAKE2B ff5877a2a58e48fb7411559bbc22dae5918bda2d1fa38b5239bb6fc0561d85c44a276a491a368fee75ee26508f0128b5f4a5d0afe344321b4d4c653dd6a24898 SHA512 e534276b693c124a70a409ba9318a4a3e168c3d10c8e2837811f27d471ebb25eb4235eff9910cfc57624560fbc6273379a2d813b4a8cec2dd7ca1a0cd09ed78d
|
||||
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools
|
||||
|
||||
MY_P="manpages-l10n-v${PV}"
|
||||
|
||||
DESCRIPTION="A somewhat comprehensive collection of Linux german man page translations"
|
||||
HOMEPAGE="https://salsa.debian.org/manpages-l10n-team/manpages-l10n"
|
||||
SRC_URI="https://salsa.debian.org/manpages-l10n-team/manpages-l10n/-/archive/v${PV}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3+ man-pages GPL-2+ GPL-2 BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="virtual/man"
|
||||
BDEPEND="app-text/po4a
|
||||
dev-lang/perl"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# some packages have their own translations
|
||||
local manpage
|
||||
local noinst_manpages=(
|
||||
# sys-apps/shadow
|
||||
po/de/man1/groups.1.po
|
||||
po/de/man1/su.1.po
|
||||
# sys-process/procps
|
||||
po/de/man1/tload.1.po
|
||||
po/de/man1/pwdx.1.po
|
||||
po/de/man1/uptime.1.po
|
||||
po/de/man1/pmap.1.po
|
||||
po/de/man1/pgrep.1.po
|
||||
po/de/man1/free.1.po
|
||||
po/de/man5/sysctl.conf.5.po
|
||||
po/de/man8/sysctl.8.po
|
||||
po/de/man8/vmstat.8.po
|
||||
# app-arch/xz-utils
|
||||
po/de/man1/xz.1.po
|
||||
po/de/man1/xzdiff.1.po
|
||||
po/de/man1/xzgrep.1.po
|
||||
po/de/man1/xzless.1.po
|
||||
po/de/man1/xzmore.1.po
|
||||
)
|
||||
for manpage in ${noinst_manpages[@]} ; do
|
||||
echo "${manpage}"
|
||||
rm "${manpage}" || die
|
||||
done
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --enable-compression="none"
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
emake mandir="${ED}"/usr/share/man install
|
||||
dodoc CHANGES.md README.md
|
||||
}
|
Binary file not shown.
@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Genealogy software program with a Web interface"
|
||||
HOMEPAGE="https://github.com/geneanet/geneweb"
|
||||
SRC_URI="https://github.com/geneweb/geneweb/archive/v6.08.tar.gz -> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~tupone/${P}-ocaml-4.patch.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="+ocamlopt"
|
||||
RESTRICT="strip"
|
||||
|
||||
RDEPEND="dev-lang/ocaml[ocamlopt?]
|
||||
dev-ml/camlp5[ocamlopt?]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${WORKDIR}"/${P}-ocaml-4.patch
|
||||
"${FILESDIR}"/${PF}-gentoo.patch
|
||||
"${FILESDIR}"/${P}-parallellbuild.patch )
|
||||
|
||||
src_compile() {
|
||||
if use ocamlopt; then
|
||||
emake
|
||||
else
|
||||
emake OCAMLC=ocamlc OCAMLOPT=ocamlopt out
|
||||
# If using bytecode we dont want to strip the binary as it would remove
|
||||
# the bytecode and only leave ocamlrun...
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc ICHANGES
|
||||
emake new_distrib
|
||||
emake wrappers
|
||||
# Install doc
|
||||
cd distribution
|
||||
dodoc CHANGES.txt
|
||||
# Install binaries
|
||||
cd gw
|
||||
dobin gwc gwc1 gwc2 consang gwd gwu update_nldb ged2gwb ged2gwb2 gwb2ged gwsetup
|
||||
insinto /usr/lib/${PN}
|
||||
doins -r gwtp_tmp/*
|
||||
dodoc a.gwf
|
||||
insinto /usr/share/${PN}
|
||||
doins -r etc images lang setup gwd.arg only.txt
|
||||
|
||||
cd ../..
|
||||
|
||||
# Install binaries
|
||||
dobin src/check_base
|
||||
# Install manpages
|
||||
doman man/*
|
||||
|
||||
# Install doc
|
||||
dodoc -r contrib
|
||||
docompress -x /usr/share/doc/${PF}/contrib
|
||||
|
||||
newinitd "${FILESDIR}/geneweb.initd" geneweb
|
||||
newconfd "${FILESDIR}/geneweb.confd" geneweb
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
enewuser geneweb "" "/bin/bash" /var/lib/geneweb
|
||||
einfo "A CGI program has been installed in /usr/lib/${PN}. Follow the"
|
||||
einfo "instructions on the README in that directory to use it"
|
||||
einfo "For 64 bits architecture you need to rebuild the database"
|
||||
einfo "\"gwu foo > foo.gw \" will save the database (use the previous"
|
||||
einfo "version to do that). \"gwc2 foo.gw -o bar \" will restore it "
|
||||
einfo "(using the current package)"
|
||||
}
|
@ -1,77 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Genealogy software program with a Web interface"
|
||||
HOMEPAGE="https://github.com/geneanet/geneweb"
|
||||
SRC_URI="https://github.com/geneweb/geneweb/archive/v6.08.tar.gz -> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~tupone/${P}-ocaml-4.patch.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+ocamlopt"
|
||||
RESTRICT="strip"
|
||||
|
||||
RDEPEND="dev-lang/ocaml[ocamlopt?]
|
||||
dev-ml/camlp5[ocamlopt?]
|
||||
acct-user/geneweb
|
||||
acct-group/geneweb"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${WORKDIR}"/${P}-ocaml-4.patch
|
||||
"${FILESDIR}"/${P}-r1-gentoo.patch
|
||||
"${FILESDIR}"/${P}-parallellbuild.patch )
|
||||
|
||||
src_compile() {
|
||||
if use ocamlopt; then
|
||||
emake
|
||||
else
|
||||
emake OCAMLC=ocamlc OCAMLOPT=ocamlopt out
|
||||
# If using bytecode we dont want to strip the binary as it would remove
|
||||
# the bytecode and only leave ocamlrun...
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc ICHANGES
|
||||
emake new_distrib
|
||||
emake wrappers
|
||||
# Install doc
|
||||
cd distribution
|
||||
dodoc CHANGES.txt
|
||||
# Install binaries
|
||||
cd gw
|
||||
dobin gwc gwc1 gwc2 consang gwd gwu update_nldb ged2gwb ged2gwb2 gwb2ged gwsetup
|
||||
insinto /usr/lib/${PN}
|
||||
doins -r gwtp_tmp/*
|
||||
dodoc a.gwf
|
||||
insinto /usr/share/${PN}
|
||||
doins -r etc images lang setup gwd.arg only.txt
|
||||
|
||||
cd ../..
|
||||
|
||||
# Install binaries
|
||||
dobin src/check_base
|
||||
# Install manpages
|
||||
doman man/*
|
||||
|
||||
# Install doc
|
||||
dodoc -r contrib
|
||||
docompress -x /usr/share/doc/${PF}/contrib
|
||||
|
||||
newinitd "${FILESDIR}/geneweb.initd" geneweb
|
||||
newconfd "${FILESDIR}/geneweb.confd" geneweb
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "A CGI program has been installed in /usr/lib/${PN}. Follow the"
|
||||
einfo "instructions on the README in that directory to use it"
|
||||
einfo "For 64 bits architecture you need to rebuild the database"
|
||||
einfo "\"gwu foo > foo.gw \" will save the database (use the previous"
|
||||
einfo "version to do that). \"gwc2 foo.gw -o bar \" will restore it "
|
||||
einfo "(using the current package)"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST hivex-1.3.14.tar.gz 1332257 BLAKE2B fe7c19e05d29c7e98a334842cc1144aa76b148a3b7aae91449a4923a124eb54227a9a004346ef3558732c688c4f92cacd0c9328056930c33dba0404465634da0 SHA512 dd7dd52dceda580179a815fc48a2a2c7e8f7234614beceb937fba7e317df17984e65453338160c4c467b70d7d4f9bd61b48aad3ca51e19bd5e4cfbca8ee3adb6
|
||||
DIST hivex-1.3.18.tar.gz 1542133 BLAKE2B 961d0797770a2bd3176ce288a509fab8685de91317d55f05e5295f9f56fd54c31acb64847e0cbb6a6074627ccbdfdf35bd0d35150beb7746a8b3de9128ac24e3 SHA512 1851351118921e81df9e505f90d00048a178572c2edd3de40194a69915176bdb615e2eb5afea408d57063e98257c8d1e3d0cd6730407153892cc9e3befc4aa3a
|
||||
|
@ -0,0 +1,110 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
USE_RUBY="ruby23 ruby24 ruby25"
|
||||
RUBY_OPTIONAL=yes
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit eutils perl-module ruby-ng python-single-r1
|
||||
|
||||
DESCRIPTION="Library for reading and writing Windows Registry 'hive' binary files"
|
||||
HOMEPAGE="http://libguestfs.org"
|
||||
SRC_URI="http://libguestfs.org/download/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ocaml readline +perl python test static-libs ruby"
|
||||
|
||||
RDEPEND="
|
||||
virtual/libiconv
|
||||
virtual/libintl
|
||||
dev-libs/libxml2:2
|
||||
ocaml? ( dev-lang/ocaml[ocamlopt]
|
||||
dev-ml/findlib[ocamlopt]
|
||||
)
|
||||
readline? ( sys-libs/readline:0 )
|
||||
perl? (
|
||||
dev-lang/perl:=
|
||||
dev-perl/IO-stringy
|
||||
)
|
||||
ruby? ( $(ruby_implementations_depend) )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
perl? (
|
||||
test? ( dev-perl/Pod-Coverage
|
||||
dev-perl/Test-Pod-Coverage )
|
||||
)
|
||||
"
|
||||
|
||||
ruby_add_bdepend "ruby? ( dev-ruby/rake
|
||||
virtual/rubygems
|
||||
dev-ruby/rdoc )"
|
||||
ruby_add_rdepend "ruby? ( virtual/rubygems )"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
|
||||
ruby? ( || ( $(ruby_get_use_targets) ) )"
|
||||
|
||||
DOCS=( README )
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
pkg_setup() {
|
||||
if use python; then
|
||||
python-single-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
cp -prlP "${WORKDIR}/${P}" "${WORKDIR}"/all
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
ruby-ng_src_configure
|
||||
|
||||
if use perl; then
|
||||
pushd perl
|
||||
perl-module_src_configure
|
||||
popd
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_with readline)
|
||||
$(use_enable ocaml)
|
||||
$(use_enable perl)
|
||||
--enable-nls
|
||||
--disable-ruby
|
||||
$(use_enable python)
|
||||
--disable-rpath
|
||||
)
|
||||
|
||||
econf ${myeconfargs[@]}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
ruby-ng_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
strip-linguas -i po
|
||||
|
||||
emake install DESTDIR="${ED}" "LINGUAS=""${LINGUAS}"""
|
||||
python_optimize
|
||||
|
||||
ruby-ng_src_install
|
||||
|
||||
if use perl; then
|
||||
perl_delete_localpod
|
||||
fi
|
||||
|
||||
#can't figure out a better way to do this
|
||||
mv "${ED}"/usr/man/man3/* "${ED}/usr/share/man/man3/" || die
|
||||
rm -r "${ED}/usr/man" || die
|
||||
}
|
@ -1,162 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info python-single-r1 systemd xdg-utils
|
||||
|
||||
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
|
||||
HOMEPAGE="http://www.lirc.org/"
|
||||
|
||||
LIRC_DRIVER_DEVICE="/dev/lirc0"
|
||||
|
||||
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 ~arm64 ppc ppc64 x86"
|
||||
IUSE="audio +devinput doc ftdi gtk inputlirc static-libs systemd +uinput usb X"
|
||||
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
gtk? ( X )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
COMMON_DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
audio? (
|
||||
>media-libs/portaudio-18
|
||||
media-libs/alsa-lib
|
||||
)
|
||||
$(python_gen_cond_dep '
|
||||
<dev-python/pyyaml-5[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
ftdi? ( dev-embedded/libftdi:0 )
|
||||
systemd? ( sys-apps/systemd )
|
||||
usb? ( virtual/libusb:0 )
|
||||
X? (
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-libs/libxslt
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/setuptools[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
doc? ( app-doc/doxygen )
|
||||
sys-apps/kmod
|
||||
sys-kernel/linux-headers
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
gtk? (
|
||||
x11-libs/vte[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pygobject[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
)
|
||||
inputlirc? ( app-misc/inputlircd )
|
||||
"
|
||||
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
pkg_setup() {
|
||||
use uinput && CONFIG_CHECK="~INPUT_UINPUT"
|
||||
python-single-r1_pkg_setup
|
||||
linux-info_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
xdg_environment_reset
|
||||
econf \
|
||||
--localstatedir="${EPREFIX}/var" \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable devinput) \
|
||||
$(use_enable uinput) \
|
||||
$(use_with X x)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use !gtk ; then
|
||||
# lirc-setup requires gtk
|
||||
rm "${ED%/}"/usr/bin/lirc-setup || die
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
|
||||
newinitd "${FILESDIR}"/lircmd-0.9.4a-r2 lircmd
|
||||
newconfd "${FILESDIR}"/lircd.conf.4 lircd
|
||||
newconfd "${FILESDIR}"/lircmd-0.10.0.conf lircmd
|
||||
|
||||
insinto /etc/modprobe.d/
|
||||
newins "${FILESDIR}"/modprobed.lirc lirc.conf
|
||||
|
||||
newinitd "${FILESDIR}"/irexec-initd-0.9.4a-r2 irexec
|
||||
newconfd "${FILESDIR}"/irexec-confd irexec
|
||||
|
||||
keepdir /etc/lirc
|
||||
if [[ -e "${ED%/}"/etc/lirc/lircd.conf ]]; then
|
||||
newdoc "${ED%/}"/etc/lirc/lircd.conf lircd.conf.example
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
|
||||
# Avoid QA notice
|
||||
rm -d "${ED%/}"/var/run/lirc || die
|
||||
rm -d "${ED%/}"/var/run || die
|
||||
}
|
||||
|
||||
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" || die
|
||||
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 || die
|
||||
elif [[ -f "${EROOT%/}"/etc/lircd.conf ]]; then
|
||||
cp "${EROOT%/}"/etc/lircd.conf "${T}"/lircd.conf || die
|
||||
MOVE_OLD_LIRCD_CONF=1
|
||||
elif [[ -f "${ED%/}"/etc/lirc/lircd.conf ]]; then
|
||||
cp "${ED%/}"/etc/lirc/lircd.conf "${T}"/lircd.conf || die
|
||||
fi
|
||||
|
||||
# stop portage from touching the config file
|
||||
if [[ -e "${ED%/}"/etc/lirc/lircd.conf ]]; then
|
||||
rm -f "${ED%/}"/etc/lirc/lircd.conf || die
|
||||
fi
|
||||
}
|
||||
|
||||
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 || die
|
||||
if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
|
||||
elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
|
||||
rm -f "${EROOT%/}"/etc/lircd.conf || die
|
||||
fi
|
||||
fi
|
||||
|
||||
einfo "The new default location for lircd.conf is inside of"
|
||||
einfo "${EROOT%/}/etc/lirc/ directory"
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST tails-installer-4.4.11.tar.gz 346123 BLAKE2B c6e0888cce180d411ab60a8098581da0df64ea6b2201076e58d6ae4d489feb5e9967fd67a457e8d333fad9934350d5df13044e02e2d428980bee335fd5420dcd SHA512 06d7e21f01841250ada8eca3dcb14078331450b61be4a15923fd0543970b9fb4284aba6cf12729515b2adff9dfa3f8a011e48d97a114356fff1edfd1eb914684
|
@ -1,28 +0,0 @@
|
||||
diff --git a/data/tails-installer-launcher.desktop b/data/tails-installer-launcher.desktop
|
||||
index b8a3f81..c7c5b2a 100644
|
||||
--- a/data/tails-installer-launcher.desktop
|
||||
+++ b/data/tails-installer-launcher.desktop
|
||||
@@ -6,8 +6,8 @@ Name[sv]=Tails installerare
|
||||
Comment=Install, clone, upgrade Tails
|
||||
Comment[fr]=Installer, cloner, mettre à jour Tails
|
||||
Comment[sv]=Installera, klona, uppgradera Tails
|
||||
-Icon=tails-installer.svg
|
||||
+Icon=tails-installer
|
||||
Exec=tails-installer-launcher
|
||||
Terminal=false
|
||||
-Categories=System;Tails;
|
||||
+Categories=System;
|
||||
Keywords=Tails;Install;Upgrade;Update;Copy;Clone;Installer;USB;Installation;Anonymity;Tor;Anonymous;SD;Amnesic;Amnesia;
|
||||
diff --git a/data/tails-installer.desktop b/data/tails-installer.desktop
|
||||
index 7d7fd2c..a79b57a 100644
|
||||
--- a/data/tails-installer.desktop
|
||||
+++ b/data/tails-installer.desktop
|
||||
@@ -2,7 +2,7 @@
|
||||
Type=Application
|
||||
Name=Tails Installer
|
||||
Comment=Write operating system images to a USB device
|
||||
-Icon=tails-installer.svg
|
||||
+Icon=tails-installer
|
||||
Exec=tails-installer
|
||||
Terminal=false
|
||||
Categories=System;
|
@ -1,29 +0,0 @@
|
||||
--- /tails_installer/creator.py
|
||||
+++ /tails_installer/creator.py
|
||||
@@ -220,7 +220,7 @@
|
||||
raise NotImplementedError
|
||||
|
||||
def update_system_partition_properties(self):
|
||||
- cmd = ( [ '/sbin/sgdisk' ]
|
||||
+ cmd = ( [ '/usr/sbin/sgdisk' ]
|
||||
+ [ '--typecode=1:%s' % ESP_GUID ]
|
||||
+ [ self.drive['parent'] ])
|
||||
self.popen(cmd, shell=False)
|
||||
@@ -235,7 +235,7 @@
|
||||
if not device:
|
||||
device = self.drive['device']
|
||||
|
||||
- proc = self.popen(['/sbin/sgdisk', '--print', device], shell=False, passive=True)
|
||||
+ proc = self.popen(['/usr/sbin/sgdisk', '--print', device], shell=False, passive=True)
|
||||
if proc.returncode:
|
||||
return False
|
||||
return True
|
||||
@@ -249,7 +249,7 @@
|
||||
# understand... while we want to make it do this reset
|
||||
# precisely to fix that unreadable partition table issue.
|
||||
# Chicken'n'egg, right.
|
||||
- self.popen(['/sbin/sgdisk', '--zap-all', device],
|
||||
+ self.popen(['/usr/sbin/sgdisk', '--zap-all', device],
|
||||
shell=False, passive=True)
|
||||
|
||||
def switch_drive_to_system_partition(self):
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<longdescription>
|
||||
Tails Installer is a graphical tool to install or upgrade Tails on a USB stick from an ISO image.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit distutils-r1 gnome2-utils
|
||||
|
||||
DESCRIPTION="A graphical tool to install or upgrade Tails on a USB stick from an ISO image"
|
||||
HOMEPAGE="https://tails.boum.org https://git.tails.boum.org/liveusb-creator"
|
||||
SRC_URI="https://deb.tails.boum.org/pool/main/t/${PN}/${PN}_${PV}+dfsg.orig.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
PATCHES=( ${FILESDIR}/fix-desktop-file.patch ${FILESDIR}/sgdisk.patch )
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/python-distutils-extra[${PYTHON_MULTI_USEDEP}]
|
||||
')"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
app-arch/p7zip
|
||||
dev-libs/glib:2
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/configobj[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pygobject[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/urlgrabber[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
sys-apps/gptfdisk
|
||||
sys-auth/polkit
|
||||
sys-boot/syslinux
|
||||
sys-fs/dosfstools
|
||||
sys-fs/mtools
|
||||
sys-fs/udisks:2[introspection]
|
||||
virtual/cdrtools
|
||||
x11-libs/gtk+:3[introspection]"
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST ytree-1.99pl2.tar.gz 124601 BLAKE2B c0cdabbdcc46169edb64c52bec737e51e1dbe4d70ff58eb6ad414fbdfa08a57027ea755609b31d098539e17d4ec9794a384bf0f5b9d655157de597503b880c3b SHA512 a82c897a0ba6c744a213bd04d8d1a2032419761f4a0948e0ca605ee0eacb8a477b960bc7485cd72dca2cfc3e4844bfca0082e84d2cd78eca8d996222e5b414c5
|
||||
DIST ytree-2.00.tar.gz 124654 BLAKE2B db55a463c3103a544ce882da9e5297a9bde3d6e5b618332cf863dec87e6d1842197c5f6ae282e05d4a0674a8c8d52807f9eb2c163e87c1adf0b8c484e1874d62 SHA512 4306ac6f46187dafd48103348fc30cafd8cec50a196a526249c15528604ad635b0bbf96897fedcb69360b43000d0447698523168589aa917a5884252fa183529
|
||||
DIST ytree-2.01.tar.gz 124683 BLAKE2B b6ee398b21f22ded23d4cba03ab50fa45113f57341029db1bbba2bafdf286f77191904e9d785b1009d57d79d58d82dafebd4bf75753f0724c855f3410e867299 SHA512 2a3ee821462f5aec21aeb613b336831b1f94a5595a3aefc718b4e7516471f43db85e8e430f2d9593d199f455719bacb7ee19e3419806a599354c29ff49d71ae6
|
||||
DIST ytree-2.02.tar.gz 124868 BLAKE2B e0b9b4251617df9d851752382e695657eb3bef5ce58deff00604ded14d6d29dad1c50b2d9f394defdabc3338bcdf491a9cec5821022e1171f2aa2b6887b274cb SHA512 31a425e9acd81921c111f1ef72f9e2d9342c04cdd9121d9cecd81893518b6f9579bfe22c3630d4d117783aed536cfafdf09866eb80bace3e5cbd59fd393e77a1
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A curses-based file manager"
|
||||
HOMEPAGE="https://www.han.de/~werner/ytree.html"
|
||||
SRC_URI="https://www.han.de/~werner/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
DEPEND="
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.99-tinfo.patch"
|
||||
)
|
||||
|
||||
DOCS=( CHANGES README THANKS ytree.conf )
|
||||
|
||||
pkg_setup() {
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
dobin ${PN}
|
||||
doman ${PN}.1
|
||||
}
|
Binary file not shown.
@ -1,8 +1 @@
|
||||
DIST metagen-0.6.2.tar.gz 6100 BLAKE2B c5e3fb2e3b6c2f5624923a161e7a22d4b81dd1e084b68152d312dfcb73a6b96face64fe6918fc66d7f87d2d7114725028d82d1e74d72f6b7ebc1a499f0fce268 SHA512 0ab8d7755259b870c995c471f366a976f4acc336dda4c2fa1c4e5b78b5aa701fb75d4dd88ac0ee069a231550b07b89b4a8f724c94ec791efe6c4c64b97ac19ff
|
||||
DIST metagen-0.6.3.tar.bz2 6118 BLAKE2B 1356111b23a96c6435bd997ff824682fd76074d004cc32f8af2fdff766e16eb70f395bfaa9fd9555397cebcb7859e87b16988b63fe7bd35684ca95e8cb12d9c3 SHA512 1a25e1ebd35ae97e0823aee2f929c09b9041c78496c2425cf5c0bf3d9f1747313dcf30b7e0a5d4e861cbd0caaf48b506f85eb5f25ab0b9e75a62514b0bb64ecd
|
||||
DIST metagen-0.6.4.2.tar.bz2 6837 BLAKE2B a9595045fea006e53fd23e3b96da0acd884b6f33e0089fc56bc7fb118ba1d205ddc81754a8cc2bc3e5207ad9cd9f537e1a3e7b25be0e5c804ebed5e66b481abc SHA512 cec88403ee06449f30524e0fe485b2e76f4f3bdc23feee0eb60503ab6e9c351bab3f55cdf3847ccec14a8f1e1b9ebe820a5f76feb095b13be11fe5fcf258ed2c
|
||||
DIST metagen-0.6.5.tar.bz2 6973 BLAKE2B 2cac99056bde1e6420ef3bb54e6655b17fb43b27dc0024cd3eb2b5c09dcb05b5db318dc4f52c3389d562275e46c901fab863ab50bd0555a6409a8fe5c0bd8de7 SHA512 6a95ce78c7b8ead89a28ea927d9e36cf806a1d363cc703c86c553a74499304081ac360d3fba390d5cc54de08572e8305ab1896d73eceff35166de32760162fe0
|
||||
DIST metagen-0.6.6.tar.bz2 6341 BLAKE2B e45e06570cbe6c690b4fdfef036282c5828ec1c86b1773c35000f19c557df7784e777a59e20f1c27fc5ae0edf5169a6d1ebcfc2d08ffa1cc4ab77265041550ac SHA512 0accac41957a555a35261c72053fb93ade62eb449d9ee4a2b1683afddb853d7bfb6394dc06c90643044cba1b573932663f1c7b559bf400ec15fce0c3f8c231ca
|
||||
DIST metagen-0.7.0.tar.bz2 6367 BLAKE2B 939fff83d9b6af7600ab7a89293d12fdcc79fb5ca47c5285989af31a6d0ea2ba539f7bb56489f50d6b8272afcf956b6e5a71b98a952ba829de60dde5766c820b SHA512 a41b8d0fb401b7fd8e2a3899cbe2ba95e42acae9dc274923b25a2933e12587838c6d599045c16387d895df0a5823ebf7b4b71ca383a75cb714959baa8355a77e
|
||||
DIST metagen-0.7.1.tar.gz 8276 BLAKE2B 7445e9729e8f7eab7d808ad95c3ee775bfb90c9264feabbc31d77d65a9eda7b61f9d7dded8c54e1b5cad5a5577cb0ef31b8d5fafd747804b957c8890ad0a7fea SHA512 7532c6a82fac10bc775b990605a8b5d23dab14e1d8a7f166c37640ffb6bebdfff57885e129a727e78ffb926b164f716f5171ea333d640030316271d0b354af88
|
||||
DIST metagen-0.7.2.tar.gz 8391 BLAKE2B 3ec53ff7fa12ea816c88bcbd4e45a3cc66527e6a507f01bc8934abc6bb6ae142e6c6620f82af7c6775b9001d6549832d6fab42c1b44c966f72a40ec0a0f66b2a SHA512 8a78d47ce8228df73a36d4c0f346d75250fbf8568ca6c8cc9ff9313b61c43ba514cf6dc13b36ea90f1ea5b194337748224ff81449d56527fbfc6b7a91e408054
|
||||
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="metadata.xml generator for ebuilds"
|
||||
HOMEPAGE="https://cgit.gentoo.org/proj/metagen.git"
|
||||
SRC_URI="https://dev.gentoo.org/~neurogeek/metagen_releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 hppa ppc x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE=""
|
||||
DEPEND=">=dev-python/jaxml-3.01[${PYTHON_USEDEP}]
|
||||
>=sys-apps/portage-2.1.9.42[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
python_newscript metagen/main.py metagen
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/metagen.1
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -c "from metagen import metagenerator; metagenerator.do_tests()" || die
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="metadata.xml generator for ebuilds"
|
||||
HOMEPAGE="https://cgit.gentoo.org/proj/metagen.git"
|
||||
SRC_URI="https://cgit.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 hppa ppc x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE=""
|
||||
DEPEND=">=dev-python/jaxml-3.01[${PYTHON_USEDEP}]
|
||||
>=sys-apps/portage-2.1.9.42[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
python_newscript metagen/main.py metagen
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/metagen.1
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -c "from metagen import metagenerator; metagenerator.do_tests()" || die
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="metadata.xml generator for ebuilds"
|
||||
HOMEPAGE="https://cgit.gentoo.org/proj/metagen.git"
|
||||
SRC_URI="https://cgit.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE=""
|
||||
DEPEND=">=dev-python/jaxml-3.01[${PYTHON_USEDEP}]
|
||||
>=sys-apps/portage-2.1.9.42[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
python_newscript metagen/main.py metagen
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/metagen.1
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -c "from metagen import metagenerator; metagenerator.do_tests()" || die
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="metadata.xml generator for ebuilds"
|
||||
HOMEPAGE="https://cgit.gentoo.org/proj/metagen.git"
|
||||
SRC_URI="https://cgit.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE=""
|
||||
DEPEND=">=dev-python/jaxml-3.01[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
( >=sys-apps/portage-2.3.0_rc1[${PYTHON_USEDEP}] app-portage/repoman[${PYTHON_USEDEP}] )
|
||||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
python_newscript metagen/main.py metagen
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/metagen.1
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -c "from metagen import metagenerator; metagenerator.do_tests()" || die
|
||||
}
|
@ -1,34 +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 distutils-r1
|
||||
|
||||
DESCRIPTION="metadata.xml generator for ebuilds"
|
||||
HOMEPAGE="https://cgit.gentoo.org/proj/metagen.git"
|
||||
SRC_URI="https://cgit.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 hppa ppc x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE=""
|
||||
DEPEND=">=dev-python/jaxml-3.01[${PYTHON_USEDEP}]
|
||||
>=sys-apps/portage-2.1.9.42[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
python_newscript metagen/main.py metagen
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/metagen.1
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -c "from metagen import metagenerator; metagenerator.do_tests()" || die
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="metadata.xml generator for ebuilds"
|
||||
HOMEPAGE="https://cgit.gentoo.org/proj/metagen.git"
|
||||
SRC_URI="https://cgit.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE=""
|
||||
DEPEND=">=dev-python/jaxml-3.01[${PYTHON_USEDEP}]
|
||||
sys-apps/portage[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
python_newscript metagen/main.py metagen
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/metagen.1
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -c "from metagen import metagenerator; metagenerator.do_tests()" || die
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=( python{2_7,3_{6,7,8}} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="metadata.xml generator for ebuilds"
|
||||
HOMEPAGE="https://cgit.gentoo.org/proj/metagen.git"
|
||||
SRC_URI="https://cgit.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE=""
|
||||
DEPEND="dev-python/lxml[${PYTHON_USEDEP}]
|
||||
sys-apps/portage[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/metagen.1
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -c "from metagen import metagenerator; metagenerator.do_tests()" || die
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=( python{2_7,3_{6,7,8}} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="metadata.xml generator for ebuilds"
|
||||
HOMEPAGE="https://cgit.gentoo.org/proj/metagen.git"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE=""
|
||||
DEPEND="dev-python/lxml[${PYTHON_USEDEP}]
|
||||
sys-apps/portage[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/metagen.1
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" -c "from metagen import metagenerator; metagenerator.do_tests()" || die
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST porthole-0.6.1.tar.bz2 958696 BLAKE2B e4eb7493a66278cd7d16ac68304fe74ad8623054a95bb3dca84b0b8236f76cb9b0a92f446d1ffd95f907c29d703d93bdd48e8e5064485b69282e8680f5fcb658 SHA512 9bc1d79c587ad8228b9bb4eee6cb32559a5d7b6a9f4f6ece752fce9030f71fdbfd6158d7a2a055641b63df1f0a1c31995747e15b618de79cd8a7a56e4d8f634c
|
@ -1,17 +0,0 @@
|
||||
Index: porthole/backends/portagelib.py
|
||||
===================================================================
|
||||
--- porthole/backends/portagelib.py (revision 1209)
|
||||
+++ porthole/backends/portagelib.py (working copy)
|
||||
@@ -452,7 +452,11 @@
|
||||
|
||||
|
||||
def get_masking_status(ebuild):
|
||||
- return portage.getmaskingstatus(ebuild)
|
||||
+ try:
|
||||
+ status = portage.getmaskingstatus(ebuild)
|
||||
+ except KeyError:
|
||||
+ status = ['deprecated']
|
||||
+ return status
|
||||
|
||||
|
||||
def get_masking_reason(ebuild):
|
@ -1,14 +0,0 @@
|
||||
diff -uNr porthole/db/user_configs.py.old porthole/db/user_configs.py
|
||||
|
||||
--- porthole/db/user_configs.py.old 2010-11-27 13:34:35.000000000 +0600
|
||||
+++ porthole/db/user_configs.py 2010-11-27 13:31:24.000000000 +0600
|
||||
@@ -364,7 +364,7 @@
|
||||
debug.dprint("USER_CONFIGS: set_user_config(): add: " +
|
||||
"%s,\n remove: %s " %(str(add),str(remove)))
|
||||
set_config.set_user_config(filename=file, name=name, ebuild=ebuild,
|
||||
- comment=comment, username=privileges.USER,
|
||||
+ comment=comment, username=privileges.user,
|
||||
add=add, remove=remove)
|
||||
self.set_config_callback()
|
||||
else:
|
||||
|
@ -1,19 +0,0 @@
|
||||
--- porthole/db/user_configs.py 2010/03/20 12:32:29 1217
|
||||
+++ porthole/db/user_configs.py 2010/03/20 14:10:46 1218
|
||||
@@ -36,6 +36,7 @@
|
||||
from porthole import backends
|
||||
portage_lib = backends.portage_lib
|
||||
from porthole.utils import debug
|
||||
+from porthole.privilege import controller as privileges
|
||||
|
||||
## set up this module to act as a user configs data server,
|
||||
## watch the user configs for changes and auto update
|
||||
@@ -363,7 +364,7 @@
|
||||
debug.dprint("USER_CONFIGS: set_user_config(): add: " +
|
||||
"%s,\n remove: %s " %(str(add),str(remove)))
|
||||
set_config.set_user_config(filename=file, name=name, ebuild=ebuild,
|
||||
- comment=comment, username=priviliges.USER,
|
||||
+ comment=comment, username=privileges.USER,
|
||||
add=add, remove=remove)
|
||||
self.set_config_callback()
|
||||
else:
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>tools-portage@gentoo.org</email>
|
||||
<name>Gentoo Portage tools team</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">porthole</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,75 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
PYTHON_REQ_USE="threads(+),xml(+)"
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
|
||||
DESCRIPTION="A GTK+-based frontend to Portage"
|
||||
HOMEPAGE="http://porthole.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/porthole/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ppc ppc64 sparc x86"
|
||||
IUSE="nls"
|
||||
LANGS="de pl ru vi it fr tr"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-apps/portage-2.1[${PYTHON_USEDEP}]
|
||||
dev-python/pygtk:2[${PYTHON_USEDEP}]
|
||||
gnome-base/libglade:2.0
|
||||
dev-python/pygtksourceview:2[${PYTHON_USEDEP}]
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
nls? ( >=sys-devel/gettext-0.14 )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-masking_status.patch" # bug 307037
|
||||
"${FILESDIR}/${P}-missing_import.patch" # bug 323179
|
||||
"${FILESDIR}/${P}-missing-attribute.patch" #bug 323179
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
# Compile localizations if necessary
|
||||
if use nls ; then
|
||||
cd scripts
|
||||
./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed"
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
dodoc TODO README NEWS AUTHORS
|
||||
|
||||
keepdir /var/log/porthole
|
||||
fperms g+w /var/log/porthole
|
||||
keepdir /var/db/porthole
|
||||
fperms g+w /var/db/porthole
|
||||
|
||||
# nls
|
||||
if use nls; then
|
||||
# mo directory doesn't exists with nls enabled and unsupported LINGUAS
|
||||
[[ -d porthole/i18n/mo ]] && domo porthole/i18n/mo/*
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
chgrp portage "${D}"/var/log/porthole
|
||||
chgrp portage "${D}"/var/db/porthole
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo
|
||||
einfo "Porthole has updated the way that the upgrades are sent to emerge."
|
||||
einfo "In this new way the user needs to set any 'Settings' menu emerge options"
|
||||
einfo "Porthole automatically adds '--oneshot' for all upgrades selections"
|
||||
einfo "Other options recommended are '--noreplace' along with '--update'"
|
||||
einfo "They allow for portage to skip any packages that might have already"
|
||||
einfo "been upgraded as a dependency of another previously upgraded package"
|
||||
einfo
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue