parent
1b717d9010
commit
53fea04cae
Binary file not shown.
Binary file not shown.
@ -0,0 +1,13 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit acct-user
|
||||||
|
|
||||||
|
DESCRIPTION="A user for app-i18n/dbskkd-cdb"
|
||||||
|
|
||||||
|
ACCT_USER_GROUPS=( "dbskkd" )
|
||||||
|
ACCT_USER_ID="146"
|
||||||
|
|
||||||
|
acct-user_add_deps
|
@ -1,7 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="person">
|
<maintainer type="project">
|
||||||
<email>stasibear@gentoo.org</email>
|
<email>cjk@gentoo.org</email>
|
||||||
</maintainer>
|
<name>Cjk</name>
|
||||||
|
</maintainer>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
@ -0,0 +1,13 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit acct-user
|
||||||
|
|
||||||
|
DESCRIPTION="A user for www-servers/h2o"
|
||||||
|
|
||||||
|
ACCT_USER_GROUPS=( "h2o" )
|
||||||
|
ACCT_USER_ID="141"
|
||||||
|
|
||||||
|
acct-user_add_deps
|
@ -0,0 +1,13 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit acct-user
|
||||||
|
|
||||||
|
DESCRIPTION="A user for net-misc/icecast"
|
||||||
|
|
||||||
|
ACCT_USER_GROUPS=( "icecast" )
|
||||||
|
ACCT_USER_ID="131"
|
||||||
|
|
||||||
|
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="person">
|
||||||
|
<email>polynomial-c@gentoo.org</email>
|
||||||
|
<name>Lars Wendler</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<!-- maintainer-needed -->
|
<maintainer type="person">
|
||||||
<upstream>
|
<email>williamh@gentoo.org</email>
|
||||||
<remote-id type="sourceforge">libetpan</remote-id>
|
<name>William Hubbs</name>
|
||||||
</upstream>
|
</maintainer>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
inherit acct-user
|
||||||
|
|
||||||
|
DESCRIPTION="A user for app-metrics/rabbitmq_exporter"
|
||||||
|
|
||||||
|
ACCT_USER_ID=107
|
||||||
|
ACCT_USER_GROUPS=( rabbitmq_exporter )
|
||||||
|
|
||||||
|
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="person">
|
||||||
|
<email>williamh@gentoo.org</email>
|
||||||
|
<name>William Hubbs</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
inherit acct-user
|
||||||
|
|
||||||
|
DESCRIPTION="A user for app-metrics/snmp_exporter"
|
||||||
|
|
||||||
|
ACCT_USER_ID=108
|
||||||
|
ACCT_USER_GROUPS=( snmp_exporter )
|
||||||
|
|
||||||
|
acct-user_add_deps
|
Binary file not shown.
@ -1,3 +1,2 @@
|
|||||||
DIST at-spi2-core-2.40.1.tar.xz 197064 BLAKE2B dfa19413e6688678fcc0c0ed76d0fca0d5de5039c9b1e42dc10c9c387c0cbffb3c6a38570f9e74c343fa86310f2c3f6fcf0e311c57d11b5adeac5faf7bdf9630 SHA512 fcb73e78a85db9b982ae10d8c968c7732079832877fa0214c30a04b9e27910448c3f5456b8628ed4a3d4dbd59037c8c206916ad1462ca5c7a44409a702096b14
|
|
||||||
DIST at-spi2-core-2.40.2.tar.xz 197476 BLAKE2B a3b6f1edb7beace2a54cc651f8bf5d002009a3d2791306f2b0a33c351c68d04e0a1003ab11f215333d498c50d17139b978e7f232df802f6c620bbe31997a8e1c SHA512 854fbba39064ba4b1d9728fc4943e811f0a9557f1096f32d7a6486bcb6c73379ab84c5fb8ce5288bf4dab1d1cd3e0664c492977450d4da503ce4b08abfc75fd9
|
DIST at-spi2-core-2.40.2.tar.xz 197476 BLAKE2B a3b6f1edb7beace2a54cc651f8bf5d002009a3d2791306f2b0a33c351c68d04e0a1003ab11f215333d498c50d17139b978e7f232df802f6c620bbe31997a8e1c SHA512 854fbba39064ba4b1d9728fc4943e811f0a9557f1096f32d7a6486bcb6c73379ab84c5fb8ce5288bf4dab1d1cd3e0664c492977450d4da503ce4b08abfc75fd9
|
||||||
DIST at-spi2-core-2.40.3.tar.xz 197528 BLAKE2B bc248d57d51cea6ae6dd6c737d85f10599a9c177a3a59f95ffc8f96f74b7da057f75e2b961c281650795ba8d5387a9439b00a0f277731af3d490cc8f34c3ab1a SHA512 85adf3da0a369d7f3481646a495a9c4c3337da3ae6a20ce8c924f8621d3d6ed1d9461bfac0e821dfe86e4ad6b930e4fd65d24c26401cbea644ef4951e5dda5ce
|
DIST at-spi2-core-2.40.3.tar.xz 197528 BLAKE2B bc248d57d51cea6ae6dd6c737d85f10599a9c177a3a59f95ffc8f96f74b7da057f75e2b961c281650795ba8d5387a9439b00a0f277731af3d490cc8f34c3ab1a SHA512 85adf3da0a369d7f3481646a495a9c4c3337da3ae6a20ce8c924f8621d3d6ed1d9461bfac0e821dfe86e4ad6b930e4fd65d24c26401cbea644ef4951e5dda5ce
|
||||||
|
@ -1,54 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit gnome.org meson-multilib systemd virtualx xdg
|
|
||||||
|
|
||||||
DESCRIPTION="D-Bus accessibility specifications and registration daemon"
|
|
||||||
HOMEPAGE="https://wiki.gnome.org/Accessibility"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1+"
|
|
||||||
SLOT="2"
|
|
||||||
IUSE="X gtk-doc +introspection"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=sys-apps/dbus-1.5[${MULTILIB_USEDEP}]
|
|
||||||
>=dev-libs/glib-2.62:2[${MULTILIB_USEDEP}]
|
|
||||||
introspection? ( >=dev-libs/gobject-introspection-1.54.0:= )
|
|
||||||
X? (
|
|
||||||
x11-libs/libX11[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXtst[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
dev-util/glib-utils
|
|
||||||
gtk-doc? (
|
|
||||||
>=dev-util/gtk-doc-1.25
|
|
||||||
app-text/docbook-xml-dtd:4.3
|
|
||||||
)
|
|
||||||
>=sys-devel/gettext-0.19.8
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# disable teamspaces test since that requires Novell.ICEDesktop.Daemon
|
|
||||||
"${FILESDIR}/${PN}-2.0.2-disable-teamspaces-test.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
local emesonargs=(
|
|
||||||
-Dsystemd_user_dir="$(systemd_get_userunitdir)"
|
|
||||||
$(meson_native_use_bool gtk-doc docs)
|
|
||||||
-Dintrospection=$(multilib_native_usex introspection)
|
|
||||||
-Dx11=$(usex X)
|
|
||||||
)
|
|
||||||
meson_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_test() {
|
|
||||||
virtx dbus-run-session meson test -C "${BUILD_DIR}"
|
|
||||||
}
|
|
Binary file not shown.
@ -1,5 +1,4 @@
|
|||||||
DIST ansible-base-2.10.10.tar.gz 5986488 BLAKE2B 5c793d25ac5a216d05e15f49cd447cbdfb2ef97c2881bca60be5c23e3245262e15304a63431704d8b69fff56594e25517c0e5e1f2641b3eca5ad6a1e76e4d7b3 SHA512 b599b498a20b77cd3346f5b865b5a0436cdd835af250e8cc4ed20d61ac6a4929bf4ceef9a95c6e7b8e825c5f513d33ea32b24661c58e2f1d285db0569d71fc1b
|
DIST ansible-base-2.10.10.tar.gz 5986488 BLAKE2B 5c793d25ac5a216d05e15f49cd447cbdfb2ef97c2881bca60be5c23e3245262e15304a63431704d8b69fff56594e25517c0e5e1f2641b3eca5ad6a1e76e4d7b3 SHA512 b599b498a20b77cd3346f5b865b5a0436cdd835af250e8cc4ed20d61ac6a4929bf4ceef9a95c6e7b8e825c5f513d33ea32b24661c58e2f1d285db0569d71fc1b
|
||||||
DIST ansible-base-2.10.9.tar.gz 6039597 BLAKE2B de455cc402ae4c5c4acd6b1c3d3f2e16572d4a4e79c5f3e4151ec8b913a3be0cfbcb42e5743fe627b7aba9b0e6b004189960cd5a17ff46166cd033a952d3c560 SHA512 093514230a3f6680ddeda07c24e77c2e793475895f44da6e5dd68335341d6fefe10091a124cf84e18475257a099b39fd2c16e6fc0dae0bbaf2d26e70b09c277a
|
DIST ansible-base-2.10.9.tar.gz 6039597 BLAKE2B de455cc402ae4c5c4acd6b1c3d3f2e16572d4a4e79c5f3e4151ec8b913a3be0cfbcb42e5743fe627b7aba9b0e6b004189960cd5a17ff46166cd033a952d3c560 SHA512 093514230a3f6680ddeda07c24e77c2e793475895f44da6e5dd68335341d6fefe10091a124cf84e18475257a099b39fd2c16e6fc0dae0bbaf2d26e70b09c277a
|
||||||
DIST ansible-core-2.11.1.tar.gz 6148111 BLAKE2B 46b1553542adbebfb0b0756be99a81d20cce2978a59766c65632b40413a851ad3c9de12df67959c0557584c5209ecd4f3c94381ae0a1e6987bd3cfb237de5a85 SHA512 1362754dde0a88ca8f6323d87cc6f4bf5f93b189b8d45fcb435d3fb289c359da128e7688a92107ade2c54828d4c4deb3ded9e01e18d19c503306924aa189a381
|
|
||||||
DIST ansible-core-2.11.2.tar.gz 7081783 BLAKE2B 64a2e02c4e44e72383bfb291efcde07a85ae553418e27687fbc12acdc45608e9b89e9f64943ad7f98a6de094f61765ac3e89fa84e66ed634e764a5f9581c6bd5 SHA512 8b4a8e329be9375d3226f8b992223198913226527278c14ccec01d8e7c546cca847cf7d2415440be995d236bdd88640c0dd6f740e91ca748de2d1c5b7b52c921
|
DIST ansible-core-2.11.2.tar.gz 7081783 BLAKE2B 64a2e02c4e44e72383bfb291efcde07a85ae553418e27687fbc12acdc45608e9b89e9f64943ad7f98a6de094f61765ac3e89fa84e66ed634e764a5f9581c6bd5 SHA512 8b4a8e329be9375d3226f8b992223198913226527278c14ccec01d8e7c546cca847cf7d2415440be995d236bdd88640c0dd6f740e91ca748de2d1c5b7b52c921
|
||||||
DIST ansible-core-2.11.3.tar.gz 6841255 BLAKE2B fde1143515d04121de79ddb2c14bf326f9efa596c39418b9def1679539dd144551b64dff83c66795e44f48e776dbc60bc456125904bbb64970f8c44e072b5abf SHA512 93a28200dd0ab289cc05add5fbe46a1cfbbd4ba91fc7d7e95ee4060dc4f126bf4bd4affce5e44dac9cf2c12792b2a2a10b97d96b795f5bed579959391b7c4a65
|
DIST ansible-core-2.11.3.tar.gz 6841255 BLAKE2B fde1143515d04121de79ddb2c14bf326f9efa596c39418b9def1679539dd144551b64dff83c66795e44f48e776dbc60bc456125904bbb64970f8c44e072b5abf SHA512 93a28200dd0ab289cc05add5fbe46a1cfbbd4ba91fc7d7e95ee4060dc4f126bf4bd4affce5e44dac9cf2c12792b2a2a10b97d96b795f5bed579959391b7c4a65
|
||||||
|
@ -1,63 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8..9} )
|
|
||||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
|
||||||
HOMEPAGE="https://www.ansible.com/"
|
|
||||||
|
|
||||||
if [[ ${PV} == 9999 ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/ansible/ansible.git"
|
|
||||||
EGIT_BRANCH="devel"
|
|
||||||
else
|
|
||||||
MY_PN="${PN/-base/-core}"
|
|
||||||
MY_P="${MY_PN}-${PV}"
|
|
||||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~x64-macos"
|
|
||||||
S="${WORKDIR}"/${MY_P}
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
|
||||||
dev-python/jinja[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
|
||||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
|
||||||
dev-python/six[${PYTHON_USEDEP}]
|
|
||||||
dev-python/netaddr[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/resolvelib-0.5.3[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/resolvelib-0.6.0[${PYTHON_USEDEP}]
|
|
||||||
net-misc/sshpass
|
|
||||||
virtual/ssh
|
|
||||||
"
|
|
||||||
DEPEND="
|
|
||||||
>=dev-python/packaging-16.6[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
${RDEPEND}
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
|
|
||||||
dev-python/passlib[${PYTHON_USEDEP}]
|
|
||||||
dev-python/coverage[${PYTHON_USEDEP}]
|
|
||||||
dev-vcs/git
|
|
||||||
)"
|
|
||||||
|
|
||||||
python_compile() {
|
|
||||||
export ANSIBLE_SKIP_CONFLICT_CHECK=1
|
|
||||||
distutils-r1_python_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die
|
|
||||||
}
|
|
@ -0,0 +1,58 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="7"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit bash-completion-r1 distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||||
|
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||||
|
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/aws-cli-${PV}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
|
|
||||||
|
# botocore is x.(y+1).z
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
dev-python/colorama[${PYTHON_USEDEP}]
|
||||||
|
dev-python/docutils[${PYTHON_USEDEP}]
|
||||||
|
dev-python/rsa[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests --install nose
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/awscli-1.19.47-py39.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
distutils_install_for_testing
|
||||||
|
# integration tests require AWS credentials and Internet access
|
||||||
|
nosetests -v tests/{functional,unit} ||
|
||||||
|
die "Tests failed for ${EPYTHON}"
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
newbashcomp bin/aws_bash_completer aws
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins bin/aws_zsh_completer.sh _aws
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,2 +1,3 @@
|
|||||||
DIST puppet-agent_6.19.1-1focal_amd64.deb 22221600 BLAKE2B 22b03ef1f86b34955e8bad7c63a2022d2832dadd554316baf75419d6543e8a569902fb92a81a3dcc817401f06aa7dd47143a6cbd383f0e531c465cd3203dc4ed SHA512 4819a3509066516b0be76bc0f2afe94611405f7ac52fe50890d57c86a8a9c6c70787d46cb4b77085666f3e74bcb83a11acf1fef5d1e6ed3151ea06cbb8df3170
|
DIST puppet-agent_6.19.1-1focal_amd64.deb 22221600 BLAKE2B 22b03ef1f86b34955e8bad7c63a2022d2832dadd554316baf75419d6543e8a569902fb92a81a3dcc817401f06aa7dd47143a6cbd383f0e531c465cd3203dc4ed SHA512 4819a3509066516b0be76bc0f2afe94611405f7ac52fe50890d57c86a8a9c6c70787d46cb4b77085666f3e74bcb83a11acf1fef5d1e6ed3151ea06cbb8df3170
|
||||||
DIST puppet-agent_7.8.0-1focal_amd64.deb 20931500 BLAKE2B 3c521631fb96440e51ad82c3665f07a5ee9cba1d978fccbe9388684ad0c211138f022017ff49b92818cfc8f50ebed0a996c9321918413e4a1c7ca0f5a2f68f8a SHA512 f0cd9951b54bc9aacce987ea10e9257db9432620f50657ca220ea8b7b4aad1c5ddebd6f5e89c5bdee837b0f928bbebe375afdb72652eb33ee22e3778498aafa1
|
DIST puppet-agent_7.8.0-1focal_amd64.deb 20931500 BLAKE2B 3c521631fb96440e51ad82c3665f07a5ee9cba1d978fccbe9388684ad0c211138f022017ff49b92818cfc8f50ebed0a996c9321918413e4a1c7ca0f5a2f68f8a SHA512 f0cd9951b54bc9aacce987ea10e9257db9432620f50657ca220ea8b7b4aad1c5ddebd6f5e89c5bdee837b0f928bbebe375afdb72652eb33ee22e3778498aafa1
|
||||||
|
DIST puppet-agent_7.9.0-1focal_amd64.deb 20934808 BLAKE2B 4b5c529e1a5cb5877a753b09a477fc08e7ca7a93c3b1dae5062864d2887adea584075f4ca6b963e01cb5121ce06008182cfc39124b9e22559899beb03855240f SHA512 b6c94b65febd6b76f1ab7af5f4f5238fb314b2abb226dd5828f09ca46fdf4cd22641f765ea338b3aeb7ccf6e0fe37d5682586fbef7dc27b51a654ded6f774495
|
||||||
|
@ -0,0 +1,74 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
inherit systemd unpacker tmpfiles
|
||||||
|
|
||||||
|
DESCRIPTION="general puppet client utils along with hiera and facter"
|
||||||
|
HOMEPAGE="https://puppetlabs.com/"
|
||||||
|
SRC_URI="http://apt.puppetlabs.com/pool/focal/puppet/${PN:0:1}/${PN}/${PN}_${PV}-1focal_amd64.deb"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="puppetdb selinux"
|
||||||
|
RESTRICT="strip"
|
||||||
|
|
||||||
|
CDEPEND="!app-admin/puppet
|
||||||
|
!dev-ruby/hiera
|
||||||
|
!dev-ruby/facter
|
||||||
|
app-emulation/virt-what
|
||||||
|
acct-user/puppet
|
||||||
|
acct-group/puppet"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
${CDEPEND}
|
||||||
|
app-admin/augeas"
|
||||||
|
RDEPEND="${CDEPEND}
|
||||||
|
app-portage/eix
|
||||||
|
sys-apps/dmidecode
|
||||||
|
sys-libs/libselinux
|
||||||
|
sys-libs/glibc
|
||||||
|
sys-libs/readline:0/8
|
||||||
|
sys-libs/libxcrypt[compat]
|
||||||
|
sys-libs/ncurses:0[tinfo]
|
||||||
|
selinux? (
|
||||||
|
sys-libs/libselinux[ruby]
|
||||||
|
sec-policy/selinux-puppet
|
||||||
|
)
|
||||||
|
puppetdb? ( >=dev-ruby/puppetdb-termini-5.0.1 )"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
QA_PREBUILT="*"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# conf.d
|
||||||
|
doconfd etc/default/puppet
|
||||||
|
doconfd etc/default/pxp-agent
|
||||||
|
# logrotate.d
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
doins etc/logrotate.d/pxp-agent
|
||||||
|
# puppet itself
|
||||||
|
insinto /etc/puppetlabs
|
||||||
|
doins -r etc/puppetlabs/*
|
||||||
|
# logdir for systemd
|
||||||
|
keepdir var/log/puppetlabs/puppet/
|
||||||
|
chmod 0750 var/log/puppetlabs/puppet/
|
||||||
|
# the rest
|
||||||
|
insinto /opt
|
||||||
|
dodir opt/puppetlabs/puppet/cache
|
||||||
|
doins -r opt/*
|
||||||
|
fperms 0750 /opt/puppetlabs/puppet/cache
|
||||||
|
# init
|
||||||
|
newinitd "${FILESDIR}/puppet.initd2" puppet
|
||||||
|
systemd_dounit lib/systemd/system/puppet.service
|
||||||
|
systemd_dounit lib/systemd/system/pxp-agent.service
|
||||||
|
newtmpfiles usr/lib/tmpfiles.d/puppet-agent.conf puppet-agent.conf
|
||||||
|
# symlinks
|
||||||
|
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
|
||||||
|
dosym ../../opt/puppetlabs/bin/facter /usr/bin/facter
|
||||||
|
dosym ../../opt/puppetlabs/bin/hiera /usr/bin/hiera
|
||||||
|
dosym ../../opt/puppetlabs/bin/puppet /usr/bin/puppet
|
||||||
|
dosym ../../../../lib/libcrypt.so.1 /opt/puppetlabs/puppet/lib/libcrypt.so.1
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST puppet-5.5.22.tar.gz 2998132 BLAKE2B 8662c89190d0904fe44ffeca1cf9a9ddca40d57ba6fb2d1e644ca353ceb55b1ca3a91416f1eef2975233c9c4498784e7d7280c111ea0cc070870cadc69341d99 SHA512 5332b084a63bdf244672cc4751022c84a1cc50d3f394a13bdcbccf7fcf4ebea67953e88957f23046608bf25e9182548449be824c18289cb2bf1e3ed29b40dc58
|
DIST puppet-5.5.22.tar.gz 2998132 BLAKE2B 8662c89190d0904fe44ffeca1cf9a9ddca40d57ba6fb2d1e644ca353ceb55b1ca3a91416f1eef2975233c9c4498784e7d7280c111ea0cc070870cadc69341d99 SHA512 5332b084a63bdf244672cc4751022c84a1cc50d3f394a13bdcbccf7fcf4ebea67953e88957f23046608bf25e9182548449be824c18289cb2bf1e3ed29b40dc58
|
||||||
DIST puppet-7.8.0.tar.gz 2893281 BLAKE2B cef1d56048a72ffa18c9fe2917e4f616dd4d778eddc91c88becf06a418471af1e2cf1688aa05ad3e71f24d5bb1923eaf35b8a1419ed05a72b299af970d1427e6 SHA512 189fabe199afefc77951ee3f2bf20c749f6efe290cc3a76f5ba58892c80cc76082b1ce77c23bca87f57f62816410bc5536e4206806fe31517915c72046ace08d
|
DIST puppet-7.8.0.tar.gz 2893281 BLAKE2B cef1d56048a72ffa18c9fe2917e4f616dd4d778eddc91c88becf06a418471af1e2cf1688aa05ad3e71f24d5bb1923eaf35b8a1419ed05a72b299af970d1427e6 SHA512 189fabe199afefc77951ee3f2bf20c749f6efe290cc3a76f5ba58892c80cc76082b1ce77c23bca87f57f62816410bc5536e4206806fe31517915c72046ace08d
|
||||||
|
DIST puppet-7.9.0.tar.gz 2899891 BLAKE2B 06f675fc9eaac4ddfa7957847abe33928f0779f3c18dbf339067525ec69b6b87d274294a1133ec8332fbbed6111b568c63478493f3de467c63e2948bcf446b71 SHA512 6329d89530d2cb008e28116de655024e9bf944b3f41d086e0e47c41c74af3da51c283a912ac966cf7bac52f86e54304df6cf31477a5663cae09fb4d18f958cf2
|
||||||
|
@ -0,0 +1,132 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
|
||||||
|
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||||
|
RUBY_FAKEGEM_TASK_DOC="doc:all"
|
||||||
|
RUBY_FAKEGEM_EXTRAINSTALL="locales"
|
||||||
|
|
||||||
|
inherit ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="A system automation and configuration management software."
|
||||||
|
HOMEPAGE="https://puppet.com/"
|
||||||
|
SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0 GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
ruby_add_rdepend "
|
||||||
|
dev-ruby/hiera
|
||||||
|
dev-ruby/json:=
|
||||||
|
dev-ruby/semantic_puppet
|
||||||
|
>=dev-ruby/facter-3.0.0
|
||||||
|
dev-ruby/concurrent-ruby
|
||||||
|
augeas? ( dev-ruby/ruby-augeas )
|
||||||
|
diff? ( dev-ruby/diff-lcs )
|
||||||
|
doc? ( dev-ruby/rdoc )
|
||||||
|
ldap? ( dev-ruby/ruby-ldap )
|
||||||
|
shadow? ( dev-ruby/ruby-shadow )
|
||||||
|
sqlite? ( dev-ruby/sqlite3 )
|
||||||
|
virtual/ruby-ssl
|
||||||
|
dev-ruby/hocon"
|
||||||
|
|
||||||
|
ruby_add_bdepend "
|
||||||
|
doc? ( dev-ruby/yard )
|
||||||
|
test? (
|
||||||
|
dev-ruby/mocha
|
||||||
|
dev-ruby/rack
|
||||||
|
dev-ruby/rspec-its
|
||||||
|
)"
|
||||||
|
# this should go in the above lists, but isn't because of test deps not being keyworded
|
||||||
|
# dev-ruby/rspec-collection_matchers
|
||||||
|
|
||||||
|
RDEPEND+=" ${RDEPEND}
|
||||||
|
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
|
||||||
|
selinux? (
|
||||||
|
sys-libs/libselinux[ruby]
|
||||||
|
sec-policy/selinux-puppet
|
||||||
|
)
|
||||||
|
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
|
||||||
|
>=app-portage/eix-0.18.0
|
||||||
|
acct-user/puppet
|
||||||
|
acct-group/puppet"
|
||||||
|
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
# Avoid spec that require unpackaged json-schema.
|
||||||
|
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
|
||||||
|
|
||||||
|
# fix systemd path
|
||||||
|
eapply -p0 "${FILESDIR}/puppet-systemd.patch"
|
||||||
|
|
||||||
|
# Avoid specs that can only run in the puppet.git repository. This
|
||||||
|
# should be narrowed down to the specific specs.
|
||||||
|
rm spec/integration/parser/compiler_spec.rb || die
|
||||||
|
|
||||||
|
# Avoid failing spec that need further investigation.
|
||||||
|
rm spec/unit/module_tool/metadata_spec.rb || die
|
||||||
|
}
|
||||||
|
|
||||||
|
each_ruby_install() {
|
||||||
|
each_fakegem_install
|
||||||
|
# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
|
||||||
|
}
|
||||||
|
|
||||||
|
all_ruby_install() {
|
||||||
|
all_fakegem_install
|
||||||
|
|
||||||
|
# systemd stuffs
|
||||||
|
insinto /usr/lib/systemd/system
|
||||||
|
doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||||
|
|
||||||
|
# tmpfiles stuff
|
||||||
|
insinto /usr/lib/tmpfiles.d
|
||||||
|
newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||||
|
|
||||||
|
# openrc init stuff
|
||||||
|
newinitd "${FILESDIR}"/puppet.init-4.x puppet
|
||||||
|
|
||||||
|
keepdir /etc/puppetlabs/puppet/ssl
|
||||||
|
|
||||||
|
keepdir /var/lib/puppet/facts
|
||||||
|
keepdir /var/lib/puppet/files
|
||||||
|
fowners -R puppet:puppet /var/lib/puppet
|
||||||
|
|
||||||
|
fperms 0750 /var/lib/puppet
|
||||||
|
|
||||||
|
fperms 0750 /etc/puppetlabs
|
||||||
|
fperms 0750 /etc/puppetlabs/puppet
|
||||||
|
fperms 0750 /etc/puppetlabs/puppet/ssl
|
||||||
|
fowners -R :puppet /etc/puppetlabs
|
||||||
|
fowners -R :puppet /var/lib/puppet
|
||||||
|
|
||||||
|
if use ldap ; then
|
||||||
|
insinto /etc/openldap/schema
|
||||||
|
doins ext/ldap/puppet.schema
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ext and examples files
|
||||||
|
for f in $(find ext examples -type f) ; do
|
||||||
|
docinto "$(dirname ${f})"
|
||||||
|
dodoc "${f}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog
|
||||||
|
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
|
||||||
|
elog "cause puppet to hang while installing packages."
|
||||||
|
elog
|
||||||
|
elog "Portage Puppet module with Gentoo-specific resources:"
|
||||||
|
elog "http://forge.puppetlabs.com/gentoo/portage"
|
||||||
|
elog
|
||||||
|
elog "If updating from puppet 5 to 6, keep in mind that webrick (server/master)"
|
||||||
|
elog "suppert was removed for >=6.x, please migrate to puppetserver if you have"
|
||||||
|
elog "not already done so."
|
||||||
|
elog
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST puppetdb-7.4.1.tar.gz 47409868 BLAKE2B 0ac4234547b27e9ad12c9c008d76be8fff7f724d93acc2ca26700d18ac2e30bf9689c46550a8976b90e662d7af97994d7e299b94e2d68e5b5f7d1166a54d4ff8 SHA512 64c42477554039991b35dfd2d29f4fa507226cc3256b07ff3524cd287c1dbf09bdf60116dd12288d1340ca74ced2872ac886f4eadde8bd83965976579e99738d
|
DIST puppetdb-7.4.1.tar.gz 47409868 BLAKE2B 0ac4234547b27e9ad12c9c008d76be8fff7f724d93acc2ca26700d18ac2e30bf9689c46550a8976b90e662d7af97994d7e299b94e2d68e5b5f7d1166a54d4ff8 SHA512 64c42477554039991b35dfd2d29f4fa507226cc3256b07ff3524cd287c1dbf09bdf60116dd12288d1340ca74ced2872ac886f4eadde8bd83965976579e99738d
|
||||||
|
DIST puppetdb-7.5.0.tar.gz 47469411 BLAKE2B 98bf574e8b4edba47f58b899bdc3b6037a3ae79a2a8d8b3f69a108c416648fdc35f804d71fc412bcc257f7609be9b4d706af7e28d2fd05d3768a02e9efd95841 SHA512 94bf5bc9a95cacb1a3a7f0fb5b04a05eab5ded7d18c2fb396e616b44e429a4a6299e6802fc0fd72aa832a6d8181a7ecf6ef6aff4696d4c9bc16a1954aee6f77c
|
||||||
|
@ -0,0 +1,87 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit multilib systemd tmpfiles
|
||||||
|
|
||||||
|
DESCRIPTION="PuppetDB collects data generated by Puppet."
|
||||||
|
HOMEPAGE="http://docs.puppetlabs.com/puppetdb/"
|
||||||
|
SRC_URI="https://downloads.puppetlabs.com/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE=""
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
RDEPEND+=">=virtual/jdk-1.8.0"
|
||||||
|
DEPEND+="acct-user/puppetdb
|
||||||
|
acct-group/puppetdb"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -i 's/sysconfig/conf\.d/g' ext/redhat/puppetdb.service || die
|
||||||
|
sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetdb || die
|
||||||
|
sed -i 's/sysconfig/conf\.d/g' install.sh || die
|
||||||
|
sed -i 's/var\/run/run/g' ext/puppetdb.tmpfiles.conf || die
|
||||||
|
sed -i 's/var\/run/run/g' install.sh || die
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
einfo "not compiling"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dodir /opt/puppetlabs/server/data/puppetdb
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetdb
|
||||||
|
insopts -m0744
|
||||||
|
doins ext/ezbake-functions.sh
|
||||||
|
insopts -m0644
|
||||||
|
doins ext/ezbake.manifest
|
||||||
|
doins puppetdb.jar
|
||||||
|
insinto /etc/puppetlabs/puppetdb
|
||||||
|
doins ext/config/logback.xml
|
||||||
|
doins ext/config/bootstrap.cfg
|
||||||
|
doins ext/config/request-logging.xml
|
||||||
|
insinto /etc/puppetlabs/puppetdb/conf.d
|
||||||
|
doins ext/config/conf.d/jetty.ini
|
||||||
|
doins ext/config/conf.d/repl.ini
|
||||||
|
doins ext/config/conf.d/database.ini
|
||||||
|
doins ext/config/conf.d/config.ini
|
||||||
|
insopts -m0755
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetdb/scripts
|
||||||
|
doins install.sh
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetdb/cli/apps
|
||||||
|
doins ext/cli/foreground
|
||||||
|
doins ext/cli/ssl-setup
|
||||||
|
doins ext/cli/config-migration
|
||||||
|
doins ext/cli/foreground
|
||||||
|
doins ext/cli/anonymize
|
||||||
|
doins ext/cli/reload
|
||||||
|
doins ext/cli/start
|
||||||
|
doins ext/cli/stop
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetdb/bin
|
||||||
|
doins ext/bin/puppetdb
|
||||||
|
insopts -m0644
|
||||||
|
dodir /opt/puppetlabs/server/bin
|
||||||
|
dosym ../apps/puppetdb/bin/puppetdb /opt/puppetlabs/server/bin/puppetdb
|
||||||
|
dodir /opt/puppetlabs/bin
|
||||||
|
dosym ../server/apps/puppetdb/bin/puppetdb /opt/puppetlabs/bin/puppetdb
|
||||||
|
dosym ../../opt/puppetlabs/server/apps/puppetdb/bin/puppetdb /usr/bin/puppetdb
|
||||||
|
# init type tasks
|
||||||
|
newconfd ext/default puppetdb
|
||||||
|
systemd_dounit ext/redhat/puppetdb.service
|
||||||
|
newtmpfiles ext/puppetdb.tmpfiles.conf puppetdb.conf
|
||||||
|
newinitd "${FILESDIR}/puppetdb.initd-r2" puppetdb
|
||||||
|
# misc
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
newins ext/puppetdb.logrotate.conf puppetdb
|
||||||
|
fowners -R puppetdb:puppetdb /opt/puppetlabs/server/data/puppetdb
|
||||||
|
fperms -R 770 /opt/puppetlabs/server/data/puppetdb
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "to install please run '/opt/puppetlabs/server/bin/puppetdb ssl-setup'"
|
||||||
|
elog
|
||||||
|
elog "to upgrade please run '/opt/puppetlabs/server/bin/puppetdb config-migration'"
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST puppetserver-7.2.0.tar.gz 62897576 BLAKE2B 63a8a7ea001757e15224ec819d9a23e23d3e568832421009118c1c4c3880564f614afcfa593e7c0c580cd2890ab653f5692cfc7fb23992ca7674cd5a56fa3f50 SHA512 ec90220abf4901ad98e1e07f65cdc25f09b62fda22f915260519d6fc599d36ea3a5ec2bfd5787cc9459d3c25753ff5eded2c09a67a614da1d6dda0881262b3b9
|
DIST puppetserver-7.2.0.tar.gz 62897576 BLAKE2B 63a8a7ea001757e15224ec819d9a23e23d3e568832421009118c1c4c3880564f614afcfa593e7c0c580cd2890ab653f5692cfc7fb23992ca7674cd5a56fa3f50 SHA512 ec90220abf4901ad98e1e07f65cdc25f09b62fda22f915260519d6fc599d36ea3a5ec2bfd5787cc9459d3c25753ff5eded2c09a67a614da1d6dda0881262b3b9
|
||||||
|
DIST puppetserver-7.2.1.tar.gz 62917686 BLAKE2B 2a77423a932d7c75a164818d011feee1b789759046551be0d0275436295c47af6398222a223409a28b83c8186caf0d9f6e2d9ab4fc606214119bf0b56dc4d4d0 SHA512 ac960b756e6cbf32e70d1d209c6202973ffec17b553a68eaf9c0580ff4925656ae1a7616e45bee11f2a06544157d61e58b94bf700d39affd5d0116840c3fc10f
|
||||||
|
@ -0,0 +1,131 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit multilib systemd
|
||||||
|
|
||||||
|
DESCRIPTION="Puppet Server is the next-generation application for managing Puppet agents."
|
||||||
|
HOMEPAGE="http://docs.puppetlabs.com/puppetserver/"
|
||||||
|
SRC_URI="https://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="puppetdb"
|
||||||
|
# will need the same keywords as puppet
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND+="
|
||||||
|
>=virtual/jdk-1.8.0
|
||||||
|
app-admin/puppet-agent[puppetdb?]"
|
||||||
|
DEPEND+="acct-user/puppet
|
||||||
|
acct-group/puppet"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' ext/redhat/puppetserver.service || die
|
||||||
|
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' ext/bin/puppetserver || die
|
||||||
|
sed -i 's/sysconfig\/puppetserver/default\/puppetserver/g' install.sh || die
|
||||||
|
sed -i 's/var\/run/run/g' ext/config/conf.d/puppetserver.conf || die
|
||||||
|
sed -i 's/var\/run/run/g' ext/redhat/puppetserver.service || die
|
||||||
|
sed -i 's/var\/run/run/g' install.sh || die
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
einfo "not compiling"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetserver
|
||||||
|
insopts -m0774
|
||||||
|
doins ext/ezbake-functions.sh
|
||||||
|
insopts -m0644
|
||||||
|
doins ext/ezbake.manifest
|
||||||
|
doins puppet-server-release.jar
|
||||||
|
insinto /etc/puppetlabs/puppetserver
|
||||||
|
doins ext/config/logback.xml
|
||||||
|
doins ext/config/request-logging.xml
|
||||||
|
insinto /etc/puppetlabs/puppetserver/services.d
|
||||||
|
doins ext/system-config/services.d/bootstrap.cfg
|
||||||
|
doins ext/config/services.d/ca.cfg
|
||||||
|
insinto /etc/puppetlabs/puppetserver/conf.d
|
||||||
|
doins ext/config/conf.d/puppetserver.conf
|
||||||
|
doins ext/config/conf.d/auth.conf
|
||||||
|
doins ext/config/conf.d/global.conf
|
||||||
|
doins ext/config/conf.d/web-routes.conf
|
||||||
|
doins ext/config/conf.d/metrics.conf
|
||||||
|
doins ext/config/conf.d/webserver.conf
|
||||||
|
insopts -m0755
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetserver/scripts
|
||||||
|
doins install.sh
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetserver/cli/apps
|
||||||
|
doins ext/cli/ca
|
||||||
|
doins ext/cli/irb
|
||||||
|
doins ext/cli/foreground
|
||||||
|
doins ext/cli/gem
|
||||||
|
doins ext/cli/ruby
|
||||||
|
doins ext/cli/reload
|
||||||
|
doins ext/cli/start
|
||||||
|
doins ext/cli/stop
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetserver/cli
|
||||||
|
doins ext/cli_defaults/cli-defaults.sh
|
||||||
|
insinto /opt/puppetlabs/server/apps/puppetserver/bin
|
||||||
|
doins ext/bin/puppetserver
|
||||||
|
insopts -m0644
|
||||||
|
dodir /opt/puppetlabs/server/bin
|
||||||
|
dosym ../apps/puppetserver/bin/puppetserver /opt/puppetlabs/server/bin/puppetserver
|
||||||
|
dodir /opt/puppetlabs/bin
|
||||||
|
dosym ../server/apps/puppetserver/bin/puppetserver /opt/puppetlabs/bin/puppetserver
|
||||||
|
dosym ../../opt/puppetlabs/server/apps/puppetserver/bin/puppetserver /usr/bin/puppetserver
|
||||||
|
dodir /opt/puppetlabs/server/apps/puppetserver/config/services.d
|
||||||
|
# other sys stuff
|
||||||
|
dodir /etc/puppetlabs/code
|
||||||
|
# needed for systemd
|
||||||
|
keepdir /var/log/puppetlabs/puppetserver
|
||||||
|
dodir /etc/puppetlabs/puppet/ssl
|
||||||
|
fowners -R puppet:puppet /etc/puppetlabs/puppet/ssl
|
||||||
|
fperms -R 771 /etc/puppetlabs/puppet/ssl
|
||||||
|
# systemd type things
|
||||||
|
insinto /etc/systemd/system/puppetserver.service.d/
|
||||||
|
systemd_dounit ext/redhat/puppetserver.service
|
||||||
|
insinto /etc/default
|
||||||
|
newins ext/default puppetserver
|
||||||
|
# normal init type tasks
|
||||||
|
dosym ../default/puppetserver /etc/conf.d/puppetserver
|
||||||
|
newinitd "${FILESDIR}/puppetserver.init-r1" puppetserver
|
||||||
|
# misc
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
newins ext/puppetserver.logrotate.conf puppetserver
|
||||||
|
# cleanup
|
||||||
|
dodir /opt/puppetlabs/server/data/puppetserver/jruby-gems
|
||||||
|
fowners -R puppet:puppet /opt/puppetlabs/server/data
|
||||||
|
fperms -R 775 /opt/puppetlabs/server/data/puppetserver
|
||||||
|
fperms -R 700 /var/log/puppetlabs/puppetserver
|
||||||
|
insinto /opt/puppetlabs/server/data
|
||||||
|
doins ext/build-scripts/jruby-gem-list.txt
|
||||||
|
doins ext/build-scripts/mri-gem-list-no-dependencies.txt
|
||||||
|
insopts -m 0644
|
||||||
|
insinto /usr/lib/tmpfiles.d
|
||||||
|
newins ext/puppetserver.tmpfiles.conf puppetserver.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "to install you may want to run the following:"
|
||||||
|
elog
|
||||||
|
elog "puppet config set --section master vardir /opt/puppetlabs/server/data/puppetserver"
|
||||||
|
elog "puppet config set --section master logdir /var/log/puppetlabs/puppetserver"
|
||||||
|
elog "puppet config set --section master rundir /run/puppetlabs/puppetserver"
|
||||||
|
elog "puppet config set --section master pidfile /run/puppetlabs/puppetserver/puppetserver.pid"
|
||||||
|
elog "puppet config set --section master codedir /etc/puppetlabs/code"
|
||||||
|
elog
|
||||||
|
elog "# install puppetserver gems"
|
||||||
|
elog "cd /opt/puppetlabs/server/apps/puppetserver"
|
||||||
|
elog "echo \"jruby-puppet: { gem-home: ${DESTDIR}/opt/puppetlabs/server/data/puppetserver/vendored-jruby-gems }\" > jruby.conf"
|
||||||
|
elog "while read LINE; do"
|
||||||
|
elog " java -cp puppet-server-release.jar:jruby-9k.jar clojure.main -m puppetlabs.puppetserver.cli.gem --config jruby.conf -- install --no-document \$(echo \$LINE |awk '{print \$1}') --version \$(echo \$LINE |awk '{print \$2}')"
|
||||||
|
elog "done < /opt/puppetlabs/server/data/jruby-gem-list.txt"
|
||||||
|
elog "echo \"jruby-puppet: { gem-home: ${DESTDIR}/opt/puppetlabs/puppet/lib/ruby/vendor_gems }\" > jruby.conf"
|
||||||
|
elog "while read LINE; do"
|
||||||
|
elog " java -cp puppet-server-release.jar:jruby-9k.jar clojure.main -m puppetlabs.puppetserver.cli.gem --config jruby.conf -- install --no-document --ignore-dependencies \$(echo \$LINE |awk '{print \$1}') --version \$(echo \$LINE |awk '{print \$2}')"
|
||||||
|
elog "done < /opt/puppetlabs/server/data/mri-gem-list-no-dependencies.txt"
|
||||||
|
}
|
@ -1,78 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit fcaps go-module systemd
|
|
||||||
|
|
||||||
DESCRIPTION="A tool for managing secrets"
|
|
||||||
HOMEPAGE="https://vaultproject.io/"
|
|
||||||
VAULT_WEBUI_ARCHIVE="${P}-webui.tar.xz"
|
|
||||||
SRC_URI="https://github.com/hashicorp/vault/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
|
||||||
webui? (
|
|
||||||
https://dev.gentoo.org/~zmedico/dist/${VAULT_WEBUI_ARCHIVE}
|
|
||||||
)"
|
|
||||||
|
|
||||||
LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
IUSE="+webui"
|
|
||||||
|
|
||||||
BDEPEND="dev-go/gox
|
|
||||||
>=dev-lang/go-1.14.7"
|
|
||||||
COMMON_DEPEND="acct-group/vault
|
|
||||||
acct-user/vault"
|
|
||||||
DEPEND="${COMMON_DEPEND}"
|
|
||||||
RDEPEND="${COMMON_DEPEND}"
|
|
||||||
|
|
||||||
FILECAPS=(
|
|
||||||
-m 755 'cap_ipc_lock=+ep' usr/bin/${PN}
|
|
||||||
)
|
|
||||||
|
|
||||||
RESTRICT+=" test"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
# Avoid the need to have a git checkout
|
|
||||||
sed -e 's:^\(GIT_COMMIT=\).*:\1:' \
|
|
||||||
-e 's:^\(GIT_DIRTY=\).*:\1:' \
|
|
||||||
-e s:\'\${GIT_COMMIT}\${GIT_DIRTY}\':: \
|
|
||||||
-i scripts/build.sh || die
|
|
||||||
sed -e "/hooks/d" \
|
|
||||||
-e 's|^\([[:space:]]*\)goimports .*)|\1true|' \
|
|
||||||
-i Makefile || die
|
|
||||||
if [[ -f "${WORKDIR}/http/bindata_assetfs.go" ]]; then
|
|
||||||
mv "${WORKDIR}/http/bindata_assetfs.go" "${S}/http" ||
|
|
||||||
die "mv failed"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
mkdir "${T}"/bin || die
|
|
||||||
BUILD_TAGS="$(usex webui ui '')" \
|
|
||||||
GOFLAGS="-mod=vendor" \
|
|
||||||
GOPATH="${T}" \
|
|
||||||
XC_ARCH=$(go env GOARCH) \
|
|
||||||
XC_OS=$(go env GOOS) \
|
|
||||||
XC_OSARCH=$(go env GOOS)/$(go env GOARCH) \
|
|
||||||
emake
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin bin/${PN}
|
|
||||||
dodoc CHANGELOG.md CONTRIBUTING.md README.md
|
|
||||||
insinto /etc/${PN}.d
|
|
||||||
doins "${FILESDIR}/"*.json.example
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
|
||||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
|
||||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
|
||||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
|
||||||
keepdir /var/log/${PN}
|
|
||||||
fowners ${PN}:${PN} /var/log/${PN}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
fcaps_pkg_postinst
|
|
||||||
go-module_pkg_postinst
|
|
||||||
}
|
|
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST gnome-autoar-0.3.2.tar.xz 298656 BLAKE2B d56498f2798b838729056f5d2194dc628de8cfd3e8964a718982cfd464e3e6848152624b2cbbe5377d813183eebae1f212bc56c1a8df2ea119af264786151670 SHA512 6685e44ed61388759ff820b7cd403304f32d47fab4e2f66f5571a5cc6d01c1287bda851f230b3782bb1beff6ef784c25434930f15ef6ed32d788db4b89435968
|
|
||||||
DIST gnome-autoar-0.3.3.tar.xz 298536 BLAKE2B effbd3c15ab851c97f3c69f96bbf806f3639ce4865161df99b7f84ec2c4c8a3df9381517227d9a475b1006d88ac21eb02b4b474fd8bd27524959b56cf486e888 SHA512 41cda2670506e9b3f79c4995d2fdfbd5024777d8f8b3f85a2010af4e5f4303743d26ad9cad787c995362f83b65617ed5773d972c8aa2c7bdcd358d873cb86ec4
|
DIST gnome-autoar-0.3.3.tar.xz 298536 BLAKE2B effbd3c15ab851c97f3c69f96bbf806f3639ce4865161df99b7f84ec2c4c8a3df9381517227d9a475b1006d88ac21eb02b4b474fd8bd27524959b56cf486e888 SHA512 41cda2670506e9b3f79c4995d2fdfbd5024777d8f8b3f85a2010af4e5f4303743d26ad9cad787c995362f83b65617ed5773d972c8aa2c7bdcd358d873cb86ec4
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
VALA_USE_DEPEND="vapigen"
|
|
||||||
|
|
||||||
inherit gnome2 vala
|
|
||||||
|
|
||||||
DESCRIPTION="Automatic archives creating and extracting library"
|
|
||||||
HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-autoar"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1+"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="gtk +introspection vala"
|
|
||||||
REQUIRED_USE="vala? ( introspection )"
|
|
||||||
|
|
||||||
KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~sparc x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=app-arch/libarchive-3.4.0
|
|
||||||
>=dev-libs/glib-2.35.6:2
|
|
||||||
gtk? ( >=x11-libs/gtk+-3.2:3[introspection?] )
|
|
||||||
introspection? ( >=dev-libs/gobject-introspection-1.30.0:= )
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
>=dev-util/gtk-doc-am-1.14
|
|
||||||
virtual/pkgconfig
|
|
||||||
vala? ( $(vala_depend) )
|
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
use vala && vala_src_prepare
|
|
||||||
gnome2_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
gnome2_src_configure \
|
|
||||||
--disable-static \
|
|
||||||
$(use_enable introspection) \
|
|
||||||
$(use_enable vala) \
|
|
||||||
$(use_enable gtk)
|
|
||||||
}
|
|
@ -1,3 +1 @@
|
|||||||
DIST rpm-4.14.2.1.tar.bz2 4156574 BLAKE2B 2eb0cf621eecef7d8977d28d52be922156ceb64b14d2aefda0f5a927b90cf3d3e9c055d773e05ed52422254397153b79557dc94bdb43ca28a2ea126153a43c1f SHA512 0aad457f91918904c15649a1764ce7cbfaf38e083678031286e866f7997be0435a6b7b73596706d97e9263cff7b4df4a3150b142d81e6e3fddbfcf67bd83f990
|
|
||||||
DIST rpm-4.16.0.tar.bz2 4341683 BLAKE2B 5161e5dcc6d9a1f1d4b8e44740fb368050b808fd9e8b8276fb17b530a4642e1b9ad104b5a30c0071215aef7f823eeab10988dd41f73af1c52d575529c374b5eb SHA512 177119c3ac3d48980db55bb4ba0fdbb2a911968e5efc690bfa8cc343f850fc90531cc0dee6dd8e45d2b14f0d951ced35bd8893d24011b7f270745d281ddf4e3d
|
|
||||||
DIST rpm-4.16.1.3.tar.bz2 4354652 BLAKE2B 10013014bdeaf908b64c90f8e76f1d4b0cd0e8cb926f0cd979d7b1e1963b9a25c5b98531deea7e74e00168e2e6349f443fa4578c69c717ca1ab5e6b79d801f3a SHA512 54e503b32dffaa73d6168f26a00220d9d9124082d8a1eb1ddf34ce32a482f07cb06ec654cf065fca1607cc37b13fa7d4fa9895553541d7cfddecf68c9eb96f2e
|
DIST rpm-4.16.1.3.tar.bz2 4354652 BLAKE2B 10013014bdeaf908b64c90f8e76f1d4b0cd0e8cb926f0cd979d7b1e1963b9a25c5b98531deea7e74e00168e2e6349f443fa4578c69c717ca1ab5e6b79d801f3a SHA512 54e503b32dffaa73d6168f26a00220d9d9124082d8a1eb1ddf34ce32a482f07cb06ec654cf065fca1607cc37b13fa7d4fa9895553541d7cfddecf68c9eb96f2e
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
diff -urN rpm-4.11.0.1.old/configure.ac rpm-4.11.0.1/configure.ac
|
|
||||||
--- rpm-4.11.0.1.old/configure.ac 2013-03-26 18:38:35.137667450 +0100
|
|
||||||
+++ rpm-4.11.0.1/configure.ac 2013-03-26 18:44:08.632673258 +0100
|
|
||||||
@@ -824,10 +810,6 @@
|
|
||||||
|
|
||||||
AC_SUBST(OBJDUMP)
|
|
||||||
|
|
||||||
-if test "$with_external_db" = no; then
|
|
||||||
- AC_CONFIG_SUBDIRS(db3)
|
|
||||||
-fi
|
|
||||||
-
|
|
||||||
AM_CONDITIONAL([WITH_INTERNAL_DB],[test "$with_external_db" = no])
|
|
||||||
AM_CONDITIONAL([DOXYGEN],[test "$DOXYGEN" != no])
|
|
||||||
AM_CONDITIONAL([HACKINGDOCS],[test "$with_hackingdocs" = yes])
|
|
@ -1,34 +0,0 @@
|
|||||||
diff -uNr rpm-4.16.0.ORIG/configure.ac rpm-4.16.0/configure.ac
|
|
||||||
--- rpm-4.16.0.ORIG/configure.ac 2020-10-01 11:08:43.780842602 +0100
|
|
||||||
+++ rpm-4.16.0/configure.ac 2020-10-01 11:09:03.533705353 +0100
|
|
||||||
@@ -935,13 +935,7 @@
|
|
||||||
AC_DEFINE_UNQUOTED([RUNDIR],["${RUNDIR}"],[run-time variable directory])
|
|
||||||
AC_SUBST(RUNDIR)
|
|
||||||
|
|
||||||
-if test X"$prefix" = XNONE ; then
|
|
||||||
- usrprefix="$ac_default_prefix"
|
|
||||||
-else
|
|
||||||
- usrprefix=$prefix
|
|
||||||
-fi
|
|
||||||
-
|
|
||||||
-RPMCONFIGDIR="`echo ${usrprefix}/lib/rpm`"
|
|
||||||
+RPMCONFIGDIR="`echo ${libexecdir}/rpm/`"
|
|
||||||
AC_SUBST(RPMCONFIGDIR)
|
|
||||||
|
|
||||||
AC_SUBST(OBJDUMP)
|
|
||||||
diff -uNr rpm-4.16.0.ORIG/rpm.am rpm-4.16.0/rpm.am
|
|
||||||
--- rpm-4.16.0.ORIG/rpm.am 2020-10-01 11:08:43.743842859 +0100
|
|
||||||
+++ rpm-4.16.0/rpm.am 2020-10-01 11:09:03.533705353 +0100
|
|
||||||
@@ -1,10 +1,8 @@
|
|
||||||
# Internal binaries
|
|
||||||
-## HACK: It probably should be $(libexecdir)/rpm or $(libdir)/rpm
|
|
||||||
-rpmlibexecdir = $(prefix)/lib/rpm
|
|
||||||
+rpmlibexecdir = $(pkglibexecdir)
|
|
||||||
|
|
||||||
# Host independent config files
|
|
||||||
-## HACK: it probably should be $(datadir)/rpm
|
|
||||||
-rpmconfigdir = $(prefix)/lib/rpm
|
|
||||||
+rpmconfigdir = $(pkglibexecdir)
|
|
||||||
|
|
||||||
# Libtool version (current-revision-age) for all our libraries
|
|
||||||
rpm_version_info = 10:0:1
|
|
@ -1,31 +0,0 @@
|
|||||||
diff -urN rpm-4.9.1.2.old/configure.ac rpm-4.9.1.2/configure.ac
|
|
||||||
--- rpm-4.9.1.2.old/configure.ac 2012-04-19 12:18:27.584725220 +0200
|
|
||||||
+++ rpm-4.9.1.2/configure.ac 2012-04-19 12:34:50.302722933 +0200
|
|
||||||
@@ -846,13 +846,7 @@
|
|
||||||
AC_SUBST(RPMCANONGNU)
|
|
||||||
AC_DEFINE_UNQUOTED([RPMCANONVENDOR],["${RPMCANONVENDOR}"],[canonical vendor])
|
|
||||||
|
|
||||||
-if test X"$prefix" = XNONE ; then
|
|
||||||
- usrprefix="$ac_default_prefix"
|
|
||||||
-else
|
|
||||||
- usrprefix=$prefix
|
|
||||||
-fi
|
|
||||||
-
|
|
||||||
-RPMCONFIGDIR="`echo ${usrprefix}/lib/rpm`"
|
|
||||||
+RPMCONFIGDIR="`echo ${libexecdir}/rpm/`"
|
|
||||||
AC_SUBST(RPMCONFIGDIR)
|
|
||||||
|
|
||||||
AC_SUBST(OBJDUMP)
|
|
||||||
diff -urN rpm-4.9.1.2.old/rpm.am rpm-4.9.1.2/rpm.am
|
|
||||||
--- rpm-4.9.1.2.old/rpm.am 2012-04-19 12:18:27.584725220 +0200
|
|
||||||
+++ rpm-4.9.1.2/rpm.am 2012-04-19 12:24:49.035724332 +0200
|
|
||||||
@@ -1,7 +1,5 @@
|
|
||||||
# Internal binaries
|
|
||||||
-## HACK: It probably should be $(libexecdir)/rpm or $(libdir)/rpm
|
|
||||||
-rpmlibexecdir = $(prefix)/lib/rpm
|
|
||||||
+rpmlibexecdir = $(pkglibexecdir)
|
|
||||||
|
|
||||||
# Host independent config files
|
|
||||||
-## HACK: it probably should be $(datadir)/rpm
|
|
||||||
-rpmconfigdir = $(prefix)/lib/rpm
|
|
||||||
+rpmconfigdir = $(pkglibexecdir)
|
|
@ -1,141 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
|
||||||
|
|
||||||
inherit autotools flag-o-matic perl-module python-single-r1 eapi7-ver
|
|
||||||
|
|
||||||
DESCRIPTION="Red Hat Package Management Utils"
|
|
||||||
HOMEPAGE="https://rpm.org
|
|
||||||
https://github.com/rpm-software-management/rpm"
|
|
||||||
SRC_URI="http://ftp.rpm.org/releases/rpm-$(ver_cut 1-2).x/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="GPL-2 LGPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
# Tests are broken. See bug 657500
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
IUSE="acl caps doc dbus lua nls python selinux test zstd"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
CDEPEND="!app-arch/rpm5
|
|
||||||
app-arch/libarchive
|
|
||||||
>=sys-libs/db-4.5:*
|
|
||||||
>=sys-libs/zlib-1.2.3-r1
|
|
||||||
>=app-arch/bzip2-1.0.1
|
|
||||||
>=dev-libs/popt-1.7
|
|
||||||
>=app-crypt/gnupg-1.2
|
|
||||||
dbus? ( sys-apps/dbus )
|
|
||||||
dev-libs/elfutils
|
|
||||||
virtual/libintl
|
|
||||||
>=dev-lang/perl-5.8.8
|
|
||||||
dev-libs/nss
|
|
||||||
python? ( ${PYTHON_DEPS} )
|
|
||||||
nls? ( virtual/libintl )
|
|
||||||
lua? ( dev-lang/lua:5.1=[deprecated] )
|
|
||||||
acl? ( virtual/acl )
|
|
||||||
caps? ( >=sys-libs/libcap-2.0 )
|
|
||||||
zstd? ( app-arch/zstd )
|
|
||||||
"
|
|
||||||
DEPEND="${CDEPEND}
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
doc? ( app-doc/doxygen )
|
|
||||||
virtual/pkgconfig
|
|
||||||
test? ( sys-apps/fakechroot )
|
|
||||||
"
|
|
||||||
RDEPEND="${CDEPEND}
|
|
||||||
selinux? ( sec-policy/selinux-rpm )
|
|
||||||
"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
use python && python-single-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
eapply "${FILESDIR}"/${PN}-4.11.0-autotools.patch
|
|
||||||
eapply "${FILESDIR}"/${PN}-4.8.1-db-path.patch
|
|
||||||
eapply "${FILESDIR}"/${PN}-4.9.1.2-libdir.patch
|
|
||||||
|
|
||||||
# fix #356769
|
|
||||||
sed -i 's:%{_var}/tmp:/var/tmp:' macros.in || die "Fixing tmppath failed"
|
|
||||||
# fix #492642
|
|
||||||
sed -i "s:@__PYTHON@:${PYTHON}:" macros.in || die "Fixing %__python failed"
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
|
|
||||||
# Prevent automake maintainer mode from kicking in (#450448).
|
|
||||||
touch -r Makefile.am preinstall.am
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
append-cppflags -I"${EPREFIX}/usr/include/nss" -I"${EPREFIX}/usr/include/nspr"
|
|
||||||
econf \
|
|
||||||
--without-selinux \
|
|
||||||
--with-external-db \
|
|
||||||
--with-crypto=nss \
|
|
||||||
$(use_enable python) \
|
|
||||||
$(use_with doc hackingdocs) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable dbus inhibit-plugin) \
|
|
||||||
$(use_with lua) \
|
|
||||||
$(use_with caps cap) \
|
|
||||||
$(use_with acl) \
|
|
||||||
$(use_enable zstd zstd $(usex zstd yes no))
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# remove la files
|
|
||||||
find "${ED}" -name '*.la' -delete || die
|
|
||||||
|
|
||||||
# fix symlinks to /bin/rpm (#349840)
|
|
||||||
for binary in rpmquery rpmverify;do
|
|
||||||
ln -sf rpm "${ED}"/usr/bin/${binary} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
if ! use nls; then
|
|
||||||
rm -rf "${ED}"/usr/share/man/?? || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
keepdir /usr/src/rpm/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
|
|
||||||
|
|
||||||
dodoc CREDITS README*
|
|
||||||
if use doc; then
|
|
||||||
for docname in hacking librpm; do
|
|
||||||
docinto "html/${docname}"
|
|
||||||
dodoc -r "doc/${docname}/html/."
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Fix perllocal.pod file collision
|
|
||||||
perl_delete_localpod
|
|
||||||
|
|
||||||
use python && python_optimize
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# Known to fail with FEATURES=usersandbox (bug #657500):
|
|
||||||
if has usersandbox $FEATURES ; then
|
|
||||||
ewarn "You are emerging ${P} with 'usersandbox' enabled." \
|
|
||||||
"Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ -f "${EROOT}"/var/lib/rpm/Packages ]] ; then
|
|
||||||
einfo "RPM database found... Rebuilding database (may take a while)..."
|
|
||||||
"${EROOT}"/usr/bin/rpmdb --rebuilddb --root="${EROOT}" || die
|
|
||||||
else
|
|
||||||
einfo "No RPM database found... Creating database..."
|
|
||||||
"${EROOT}"/usr/bin/rpmdb --initdb --root="${EROOT}" || die
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,153 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
LUA_COMPAT=( lua5-{2..4} )
|
|
||||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
|
||||||
|
|
||||||
inherit autotools flag-o-matic lua-single perl-module python-single-r1 toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="Red Hat Package Management Utils"
|
|
||||||
HOMEPAGE="https://rpm.org
|
|
||||||
https://github.com/rpm-software-management/rpm"
|
|
||||||
SRC_URI="http://ftp.rpm.org/releases/rpm-$(ver_cut 1-2).x/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="GPL-2 LGPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
# Tests are broken. See bug 657500
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
IUSE="acl caps doc dbus lua nls openmp python selinux test +zstd"
|
|
||||||
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
|
|
||||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
CDEPEND="!app-arch/rpm5
|
|
||||||
app-arch/libarchive
|
|
||||||
>=sys-libs/db-4.5:*
|
|
||||||
>=sys-libs/zlib-1.2.3-r1
|
|
||||||
>=app-arch/bzip2-1.0.1
|
|
||||||
>=dev-libs/popt-1.7
|
|
||||||
>=app-crypt/gnupg-1.2
|
|
||||||
dbus? ( sys-apps/dbus )
|
|
||||||
dev-libs/elfutils
|
|
||||||
virtual/libintl
|
|
||||||
>=dev-lang/perl-5.8.8
|
|
||||||
dev-libs/nss
|
|
||||||
python? ( ${PYTHON_DEPS} )
|
|
||||||
nls? ( virtual/libintl )
|
|
||||||
lua? ( ${LUA_DEPS} )
|
|
||||||
acl? ( virtual/acl )
|
|
||||||
caps? ( >=sys-libs/libcap-2.0 )
|
|
||||||
zstd? ( app-arch/zstd )
|
|
||||||
"
|
|
||||||
DEPEND="${CDEPEND}
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
doc? ( app-doc/doxygen )
|
|
||||||
virtual/pkgconfig
|
|
||||||
test? ( sys-apps/fakechroot )
|
|
||||||
"
|
|
||||||
RDEPEND="${CDEPEND}
|
|
||||||
selinux? ( sec-policy/selinux-rpm )
|
|
||||||
"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
use lua && lua-single_pkg_setup
|
|
||||||
use python && python-single-r1_pkg_setup
|
|
||||||
|
|
||||||
# Added USE=openmp and this check for bug #779769
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
eapply "${FILESDIR}"/${P}-autotools.patch
|
|
||||||
eapply "${FILESDIR}"/${PN}-4.8.1-db-path.patch
|
|
||||||
eapply "${FILESDIR}"/${P}-libdir.patch
|
|
||||||
|
|
||||||
# fix #356769
|
|
||||||
sed -i 's:%{_var}/tmp:/var/tmp:' macros.in || die "Fixing tmppath failed"
|
|
||||||
# fix #492642
|
|
||||||
sed -i "s:@__PYTHON@:${PYTHON}:" macros.in || die "Fixing %__python failed"
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
eautoreconf
|
|
||||||
|
|
||||||
# Prevent automake maintainer mode from kicking in (#450448).
|
|
||||||
touch -r Makefile.am preinstall.am
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
append-cppflags -I"${EPREFIX}/usr/include/nss" -I"${EPREFIX}/usr/include/nspr"
|
|
||||||
# NOTE: 4.16.0 warns:
|
|
||||||
# "configure: WARNING: Using the nss library with rpm is deprecated and support will be removed in a future release!"
|
|
||||||
# Only libgcrypt (default) and openssl are not deprecated. We should consider this.
|
|
||||||
# bug #780684
|
|
||||||
econf \
|
|
||||||
--without-selinux \
|
|
||||||
--with-crypto=nss \
|
|
||||||
$(use_enable python) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable openmp) \
|
|
||||||
$(use_enable dbus inhibit-plugin) \
|
|
||||||
$(use_with lua) \
|
|
||||||
$(use_with caps cap) \
|
|
||||||
$(use_with acl) \
|
|
||||||
$(use_enable zstd zstd $(usex zstd yes no))
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# remove la files
|
|
||||||
find "${ED}" -name '*.la' -delete || die
|
|
||||||
|
|
||||||
# fix symlinks to /bin/rpm (#349840)
|
|
||||||
for binary in rpmquery rpmverify;do
|
|
||||||
ln -sf rpm "${ED}"/usr/bin/${binary} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
if ! use nls; then
|
|
||||||
rm -rf "${ED}"/usr/share/man/?? || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
keepdir /usr/src/rpm/{SRPMS,SPECS,SOURCES,RPMS,BUILD}
|
|
||||||
|
|
||||||
dodoc CREDITS README*
|
|
||||||
if use doc; then
|
|
||||||
for docname in librpm; do
|
|
||||||
docinto "html/${docname}"
|
|
||||||
dodoc -r "doc/${docname}/html/."
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Fix perllocal.pod file collision
|
|
||||||
perl_delete_localpod
|
|
||||||
|
|
||||||
use python && python_optimize
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# Known to fail with FEATURES=usersandbox (bug #657500):
|
|
||||||
if has usersandbox $FEATURES ; then
|
|
||||||
ewarn "You are emerging ${P} with 'usersandbox' enabled." \
|
|
||||||
"Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ -f "${EROOT}"/var/lib/rpm/Packages ]] ; then
|
|
||||||
einfo "RPM database found... Rebuilding database (may take a while)..."
|
|
||||||
"${EROOT}"/usr/bin/rpmdb --rebuilddb --root="${EROOT}/" || die
|
|
||||||
else
|
|
||||||
einfo "No RPM database found... Creating database..."
|
|
||||||
"${EROOT}"/usr/bin/rpmdb --initdb --root="${EROOT}/" || die
|
|
||||||
fi
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,356 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools elisp-common flag-o-matic readme.gentoo-r1
|
||||||
|
|
||||||
|
DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
|
||||||
|
HOMEPAGE="https://www.gnu.org/software/emacs/"
|
||||||
|
SRC_URI="mirror://gnu/emacs/${P}.tar.xz
|
||||||
|
https://dev.gentoo.org/~ulm/emacs/${P}-patches-3.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
|
||||||
|
SLOT="25"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||||
|
IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif gpm gsettings gtk gui gzip-el imagemagick +inotify jpeg kerberos libxml2 livecd m17n-lib motif png selinux sound source ssl svg tiff toolkit-scroll-bars wide-int Xaw3d xft +xpm zlib"
|
||||||
|
|
||||||
|
RDEPEND="acct-group/mail
|
||||||
|
app-emacs/emacs-common[games?,gui(-)?]
|
||||||
|
net-libs/liblockfile
|
||||||
|
sys-libs/ncurses:0=
|
||||||
|
acl? ( virtual/acl )
|
||||||
|
alsa? ( media-libs/alsa-lib )
|
||||||
|
dbus? ( sys-apps/dbus )
|
||||||
|
games? ( acct-group/gamestat )
|
||||||
|
gpm? ( sys-libs/gpm )
|
||||||
|
!inotify? ( gfile? ( >=dev-libs/glib-2.28.6 ) )
|
||||||
|
kerberos? ( virtual/krb5 )
|
||||||
|
libxml2? ( >=dev-libs/libxml2-2.2.0 )
|
||||||
|
selinux? ( sys-libs/libselinux )
|
||||||
|
ssl? ( net-libs/gnutls:0= )
|
||||||
|
zlib? ( sys-libs/zlib )
|
||||||
|
gui? ( !aqua? (
|
||||||
|
x11-libs/libICE
|
||||||
|
x11-libs/libSM
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXinerama
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libxcb
|
||||||
|
x11-misc/xbitmaps
|
||||||
|
gconf? ( >=gnome-base/gconf-2.26.2 )
|
||||||
|
gsettings? ( >=dev-libs/glib-2.28.6 )
|
||||||
|
gif? ( media-libs/giflib:0= )
|
||||||
|
jpeg? ( virtual/jpeg:0= )
|
||||||
|
png? ( >=media-libs/libpng-1.4:0= )
|
||||||
|
svg? ( >=gnome-base/librsvg-2.0 )
|
||||||
|
tiff? ( media-libs/tiff:0 )
|
||||||
|
xpm? ( x11-libs/libXpm )
|
||||||
|
imagemagick? ( >=media-gfx/imagemagick-6.6.2:0= )
|
||||||
|
xft? (
|
||||||
|
media-libs/fontconfig
|
||||||
|
media-libs/freetype
|
||||||
|
x11-libs/libXft
|
||||||
|
x11-libs/libXrender
|
||||||
|
cairo? ( >=x11-libs/cairo-1.12.18 )
|
||||||
|
m17n-lib? (
|
||||||
|
>=dev-libs/libotf-0.9.4
|
||||||
|
>=dev-libs/m17n-lib-1.5.1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
gtk? ( x11-libs/gtk+:3 )
|
||||||
|
!gtk? (
|
||||||
|
motif? (
|
||||||
|
>=x11-libs/motif-2.3:0
|
||||||
|
x11-libs/libXpm
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
)
|
||||||
|
!motif? (
|
||||||
|
Xaw3d? (
|
||||||
|
x11-libs/libXaw3d
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
)
|
||||||
|
!Xaw3d? ( athena? (
|
||||||
|
x11-libs/libXaw
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
) )
|
||||||
|
)
|
||||||
|
)
|
||||||
|
) )"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
gui? ( !aqua? ( x11-base/xorg-proto ) )"
|
||||||
|
|
||||||
|
BDEPEND="virtual/pkgconfig
|
||||||
|
gzip-el? ( app-arch/gzip )"
|
||||||
|
|
||||||
|
IDEPEND="app-eselect/eselect-emacs"
|
||||||
|
|
||||||
|
RDEPEND+=" ${IDEPEND}"
|
||||||
|
|
||||||
|
EMACS_SUFFIX="emacs-${SLOT}"
|
||||||
|
SITEFILE="20${EMACS_SUFFIX}-gentoo.el"
|
||||||
|
# FULL_VERSION keeps the full version number, which is needed in
|
||||||
|
# order to determine some path information correctly for copy/move
|
||||||
|
# operations later on
|
||||||
|
FULL_VERSION="${PV%%_*}"
|
||||||
|
S="${WORKDIR}/emacs-${FULL_VERSION}"
|
||||||
|
PATCHES=("${WORKDIR}/patch")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Fix filename reference in redirected man page
|
||||||
|
sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 \
|
||||||
|
|| die "unable to sed ctags.1"
|
||||||
|
|
||||||
|
AT_M4DIR=m4 eautoreconf
|
||||||
|
touch src/stamp-h.in || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
strip-flags
|
||||||
|
filter-flags -pie #526948
|
||||||
|
|
||||||
|
if use ia64; then
|
||||||
|
replace-flags "-O[2-9]" -O1 #325373
|
||||||
|
else
|
||||||
|
replace-flags "-O[3-9]" -O2
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Don't trigger a floating point exception for NaNs on alpha
|
||||||
|
use alpha && append-flags -mieee
|
||||||
|
|
||||||
|
local myconf
|
||||||
|
|
||||||
|
if use alsa; then
|
||||||
|
use sound || ewarn \
|
||||||
|
"USE flag \"alsa\" overrides \"-sound\"; enabling sound support."
|
||||||
|
myconf+=" --with-sound=alsa"
|
||||||
|
else
|
||||||
|
myconf+=" --with-sound=$(usex sound oss)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use gui; then
|
||||||
|
einfo "Configuring to build without window system support"
|
||||||
|
myconf+=" --without-x --without-ns"
|
||||||
|
elif use aqua; then
|
||||||
|
einfo "Configuring to build with Nextstep (Macintosh Cocoa) support"
|
||||||
|
myconf+=" --with-ns --disable-ns-self-contained"
|
||||||
|
myconf+=" --without-x"
|
||||||
|
else
|
||||||
|
myconf+=" --with-x --without-ns"
|
||||||
|
myconf+=" $(use_with gconf)"
|
||||||
|
myconf+=" $(use_with gsettings)"
|
||||||
|
myconf+=" $(use_with toolkit-scroll-bars)"
|
||||||
|
myconf+=" $(use_with gif)"
|
||||||
|
myconf+=" $(use_with jpeg)"
|
||||||
|
myconf+=" $(use_with png)"
|
||||||
|
myconf+=" $(use_with svg rsvg)"
|
||||||
|
myconf+=" $(use_with tiff)"
|
||||||
|
myconf+=" $(use_with xpm)"
|
||||||
|
myconf+=" $(use_with imagemagick)"
|
||||||
|
|
||||||
|
if use xft; then
|
||||||
|
myconf+=" --with-xft"
|
||||||
|
myconf+=" $(use_with cairo)"
|
||||||
|
myconf+=" $(use_with m17n-lib libotf)"
|
||||||
|
myconf+=" $(use_with m17n-lib m17n-flt)"
|
||||||
|
else
|
||||||
|
myconf+=" --without-xft"
|
||||||
|
myconf+=" --without-cairo"
|
||||||
|
myconf+=" --without-libotf --without-m17n-flt"
|
||||||
|
use cairo && ewarn \
|
||||||
|
"USE flag \"cairo\" has no effect if \"xft\" is not set."
|
||||||
|
use m17n-lib && ewarn \
|
||||||
|
"USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
|
||||||
|
fi
|
||||||
|
|
||||||
|
local f line
|
||||||
|
if use gtk; then
|
||||||
|
einfo "Configuring to build with GIMP Toolkit (GTK+)"
|
||||||
|
while read line; do ewarn "${line}"; done <<-EOF
|
||||||
|
Your version of GTK+ will have problems with closing open
|
||||||
|
displays. This is no problem if you just use one display, but
|
||||||
|
if you use more than one and close one of them Emacs may crash.
|
||||||
|
See <https://gitlab.gnome.org/GNOME/gtk/-/issues/221> and
|
||||||
|
<https://gitlab.gnome.org/GNOME/gtk/-/issues/2315>.
|
||||||
|
If you intend to use more than one display, then it is strongly
|
||||||
|
recommended that you compile Emacs with the Athena/Lucid or the
|
||||||
|
Motif toolkit instead.
|
||||||
|
EOF
|
||||||
|
myconf+=" --with-x-toolkit=gtk3"
|
||||||
|
myconf+=" --without-xwidgets"
|
||||||
|
for f in motif Xaw3d athena; do
|
||||||
|
use ${f} && ewarn \
|
||||||
|
"USE flag \"${f}\" has no effect if \"gtk\" is set."
|
||||||
|
done
|
||||||
|
elif use motif; then
|
||||||
|
einfo "Configuring to build with Motif toolkit"
|
||||||
|
myconf+=" --with-x-toolkit=motif"
|
||||||
|
for f in Xaw3d athena; do
|
||||||
|
use ${f} && ewarn \
|
||||||
|
"USE flag \"${f}\" has no effect if \"motif\" is set."
|
||||||
|
done
|
||||||
|
elif use athena || use Xaw3d; then
|
||||||
|
einfo "Configuring to build with Athena/Lucid toolkit"
|
||||||
|
myconf+=" --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
|
||||||
|
else
|
||||||
|
einfo "Configuring to build with no toolkit"
|
||||||
|
myconf+=" --with-x-toolkit=no"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--program-suffix="-${EMACS_SUFFIX}" \
|
||||||
|
--infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
|
||||||
|
--localstatedir="${EPREFIX}"/var \
|
||||||
|
--enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
|
||||||
|
--with-gameuser=":gamestat" \
|
||||||
|
--without-compress-install \
|
||||||
|
--without-hesiod \
|
||||||
|
--with-file-notification=$(usev inotify || usev gfile || echo no) \
|
||||||
|
$(use_enable acl) \
|
||||||
|
$(use_with dbus) \
|
||||||
|
$(use_with dynamic-loading modules) \
|
||||||
|
$(use_with gpm) \
|
||||||
|
$(use_with kerberos) $(use_with kerberos kerberos5) \
|
||||||
|
$(use_with libxml2 xml2) \
|
||||||
|
$(use_with selinux) \
|
||||||
|
$(use_with ssl gnutls) \
|
||||||
|
$(use_with wide-int) \
|
||||||
|
$(use_with zlib) \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# Disable sandbox when dumping. For the unbelievers, see bug #131505
|
||||||
|
emake RUN_TEMACS="SANDBOX_ON=0 LD_PRELOAD= env ./temacs"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
|
||||||
|
|
||||||
|
mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} \
|
||||||
|
|| die "moving emacs executable failed"
|
||||||
|
mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 \
|
||||||
|
|| die "moving emacs man page failed"
|
||||||
|
|
||||||
|
# move info dir to avoid collisions with the dir file generated by portage
|
||||||
|
mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
|
||||||
|
|| die "moving info dir failed"
|
||||||
|
touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
|
||||||
|
docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
|
||||||
|
|
||||||
|
# movemail must be setgid mail
|
||||||
|
fowners root:mail /usr/libexec/emacs/${FULL_VERSION}/${CHOST}/movemail
|
||||||
|
fperms 2751 /usr/libexec/emacs/${FULL_VERSION}/${CHOST}/movemail
|
||||||
|
|
||||||
|
# avoid collision between slots, see bug #169033 e.g.
|
||||||
|
rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el || die
|
||||||
|
rm -rf "${ED}"/usr/share/{appdata,applications,icons} || die
|
||||||
|
rm -rf "${ED}"/var || die
|
||||||
|
|
||||||
|
# remove unused <version>/site-lisp dir
|
||||||
|
rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp || die
|
||||||
|
|
||||||
|
# remove COPYING file (except for etc/COPYING used by describe-copying)
|
||||||
|
rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING || die
|
||||||
|
|
||||||
|
if use gzip-el; then
|
||||||
|
# compress .el files when a corresponding .elc exists
|
||||||
|
find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \
|
||||||
|
-name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n
|
||||||
|
assert "gzip .el failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local cdir
|
||||||
|
if use source; then
|
||||||
|
cdir="/usr/share/emacs/${FULL_VERSION}/src"
|
||||||
|
insinto "${cdir}"
|
||||||
|
# This is not meant to install all the source -- just the
|
||||||
|
# C source you might find via find-function
|
||||||
|
doins src/*.{c,h,m}
|
||||||
|
elif has installsources ${FEATURES}; then
|
||||||
|
cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF || die
|
||||||
|
X
|
||||||
|
;;; ${EMACS_SUFFIX} site-lisp configuration
|
||||||
|
X
|
||||||
|
(when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
|
||||||
|
Y (setq find-function-C-source-directory
|
||||||
|
Y "${EPREFIX}${cdir}")
|
||||||
|
X (let ((path (getenv "INFOPATH"))
|
||||||
|
X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
|
||||||
|
X (re "\\\\\`${EPREFIX}/usr/share\\\\>"))
|
||||||
|
X (and path
|
||||||
|
X ;; move Emacs Info dir before anything else in /usr/share
|
||||||
|
X (let* ((p (cons nil (split-string path ":" t))) (q p))
|
||||||
|
X (while (and (cdr q) (not (string-match re (cadr q))))
|
||||||
|
X (setq q (cdr q)))
|
||||||
|
X (setcdr q (cons dir (delete dir (cdr q))))
|
||||||
|
X (setq Info-directory-list (prune-directory-list (cdr p)))))))
|
||||||
|
EOF
|
||||||
|
elisp-site-file-install "${T}/${SITEFILE}" || die
|
||||||
|
|
||||||
|
dodoc README BUGS CONTRIBUTE
|
||||||
|
|
||||||
|
if use gui && use aqua; then
|
||||||
|
dodir /Applications/Gentoo
|
||||||
|
rm -rf "${ED}"/Applications/Gentoo/${EMACS_SUFFIX^}.app || die
|
||||||
|
mv nextstep/Emacs.app \
|
||||||
|
"${ED}"/Applications/Gentoo/${EMACS_SUFFIX^}.app || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
local DOC_CONTENTS="You can set the version to be started by
|
||||||
|
/usr/bin/emacs through the Emacs eselect module, which also
|
||||||
|
redirects man and info pages. Therefore, several Emacs versions can
|
||||||
|
be installed at the same time. \"man emacs.eselect\" for details.
|
||||||
|
\\n\\nIf you upgrade from a previous major version of Emacs, then
|
||||||
|
it is strongly recommended that you use app-admin/emacs-updater
|
||||||
|
to rebuild all byte-compiled elisp files of the installed Emacs
|
||||||
|
packages."
|
||||||
|
if use gui; then
|
||||||
|
DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
|
||||||
|
Installing media-fonts/font-adobe-{75,100}dpi on the X server's
|
||||||
|
machine would satisfy basic Emacs requirements under X11.
|
||||||
|
See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs
|
||||||
|
for how to enable anti-aliased fonts."
|
||||||
|
use aqua && DOC_CONTENTS+="\\n\\n${EMACS_SUFFIX^}.app is in
|
||||||
|
\"${EPREFIX}/Applications/Gentoo\". You may want to copy or
|
||||||
|
symlink it into /Applications by yourself."
|
||||||
|
fi
|
||||||
|
readme.gentoo_create_doc
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
# move Info dir file to correct name
|
||||||
|
if [[ -d ${ED}/usr/share/info ]]; then
|
||||||
|
mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{.orig,} || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elisp-site-regen
|
||||||
|
readme.gentoo_print_elog
|
||||||
|
|
||||||
|
if use livecd; then
|
||||||
|
# force an update of the emacs symlink for the livecd/dvd,
|
||||||
|
# because some microemacs packages set it with USE=livecd
|
||||||
|
eselect emacs update
|
||||||
|
else
|
||||||
|
eselect emacs update ifunset
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
elisp-site-regen
|
||||||
|
eselect emacs update ifunset
|
||||||
|
}
|
@ -0,0 +1,376 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools elisp-common flag-o-matic readme.gentoo-r1
|
||||||
|
|
||||||
|
DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
|
||||||
|
HOMEPAGE="https://www.gnu.org/software/emacs/"
|
||||||
|
SRC_URI="mirror://gnu/emacs/${P}.tar.xz
|
||||||
|
https://dev.gentoo.org/~ulm/emacs/${P}-patches-1.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
|
||||||
|
SLOT="26"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||||
|
IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif gpm gsettings gtk gui gzip-el imagemagick +inotify jpeg kerberos lcms libxml2 livecd m17n-lib mailutils motif png selinux sound source ssl svg systemd +threads tiff toolkit-scroll-bars wide-int Xaw3d xft +xpm xwidgets zlib"
|
||||||
|
|
||||||
|
RDEPEND="app-emacs/emacs-common[games?,gui(-)?]
|
||||||
|
sys-libs/ncurses:0=
|
||||||
|
acl? ( virtual/acl )
|
||||||
|
alsa? ( media-libs/alsa-lib )
|
||||||
|
dbus? ( sys-apps/dbus )
|
||||||
|
games? ( acct-group/gamestat )
|
||||||
|
gpm? ( sys-libs/gpm )
|
||||||
|
!inotify? ( gfile? ( >=dev-libs/glib-2.28.6 ) )
|
||||||
|
kerberos? ( virtual/krb5 )
|
||||||
|
lcms? ( media-libs/lcms:2 )
|
||||||
|
libxml2? ( >=dev-libs/libxml2-2.2.0 )
|
||||||
|
mailutils? ( net-mail/mailutils[clients] )
|
||||||
|
!mailutils? ( acct-group/mail net-libs/liblockfile )
|
||||||
|
selinux? ( sys-libs/libselinux )
|
||||||
|
ssl? ( net-libs/gnutls:0= )
|
||||||
|
systemd? ( sys-apps/systemd )
|
||||||
|
zlib? ( sys-libs/zlib )
|
||||||
|
gui? ( !aqua? (
|
||||||
|
x11-libs/libICE
|
||||||
|
x11-libs/libSM
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXinerama
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libxcb
|
||||||
|
x11-misc/xbitmaps
|
||||||
|
gconf? ( >=gnome-base/gconf-2.26.2 )
|
||||||
|
gsettings? ( >=dev-libs/glib-2.28.6 )
|
||||||
|
gif? ( media-libs/giflib:0= )
|
||||||
|
jpeg? ( virtual/jpeg:0= )
|
||||||
|
png? ( >=media-libs/libpng-1.4:0= )
|
||||||
|
svg? ( >=gnome-base/librsvg-2.0 )
|
||||||
|
tiff? ( media-libs/tiff:0 )
|
||||||
|
xpm? ( x11-libs/libXpm )
|
||||||
|
imagemagick? ( >=media-gfx/imagemagick-6.6.2:0= )
|
||||||
|
xft? (
|
||||||
|
media-libs/fontconfig
|
||||||
|
media-libs/freetype
|
||||||
|
x11-libs/libXft
|
||||||
|
x11-libs/libXrender
|
||||||
|
cairo? ( >=x11-libs/cairo-1.12.18 )
|
||||||
|
m17n-lib? (
|
||||||
|
>=dev-libs/libotf-0.9.4
|
||||||
|
>=dev-libs/m17n-lib-1.5.1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
gtk? (
|
||||||
|
x11-libs/gtk+:3
|
||||||
|
xwidgets? (
|
||||||
|
net-libs/webkit-gtk:4=
|
||||||
|
x11-libs/libXcomposite
|
||||||
|
)
|
||||||
|
)
|
||||||
|
!gtk? (
|
||||||
|
motif? (
|
||||||
|
>=x11-libs/motif-2.3:0
|
||||||
|
x11-libs/libXpm
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
)
|
||||||
|
!motif? (
|
||||||
|
Xaw3d? (
|
||||||
|
x11-libs/libXaw3d
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
)
|
||||||
|
!Xaw3d? ( athena? (
|
||||||
|
x11-libs/libXaw
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
) )
|
||||||
|
)
|
||||||
|
)
|
||||||
|
) )"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
gui? ( !aqua? ( x11-base/xorg-proto ) )"
|
||||||
|
|
||||||
|
BDEPEND="virtual/pkgconfig
|
||||||
|
gzip-el? ( app-arch/gzip )"
|
||||||
|
|
||||||
|
IDEPEND="app-eselect/eselect-emacs"
|
||||||
|
|
||||||
|
RDEPEND+=" ${IDEPEND}"
|
||||||
|
|
||||||
|
EMACS_SUFFIX="emacs-${SLOT}"
|
||||||
|
SITEFILE="20${EMACS_SUFFIX}-gentoo.el"
|
||||||
|
# FULL_VERSION keeps the full version number, which is needed in
|
||||||
|
# order to determine some path information correctly for copy/move
|
||||||
|
# operations later on
|
||||||
|
FULL_VERSION="${PV%%_*}"
|
||||||
|
S="${WORKDIR}/emacs-${FULL_VERSION}"
|
||||||
|
PATCHES=("${WORKDIR}/patch")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Fix filename reference in redirected man page
|
||||||
|
sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 || die
|
||||||
|
|
||||||
|
#AT_M4DIR=m4 eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
strip-flags
|
||||||
|
filter-flags -pie #526948
|
||||||
|
|
||||||
|
if use ia64; then
|
||||||
|
replace-flags "-O[2-9]" -O1 #325373
|
||||||
|
else
|
||||||
|
replace-flags "-O[3-9]" -O2
|
||||||
|
fi
|
||||||
|
|
||||||
|
local myconf
|
||||||
|
|
||||||
|
if use alsa; then
|
||||||
|
use sound || ewarn \
|
||||||
|
"USE flag \"alsa\" overrides \"-sound\"; enabling sound support."
|
||||||
|
myconf+=" --with-sound=alsa"
|
||||||
|
else
|
||||||
|
myconf+=" --with-sound=$(usex sound oss)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use gui; then
|
||||||
|
einfo "Configuring to build without window system support"
|
||||||
|
myconf+=" --without-x --without-ns"
|
||||||
|
elif use aqua; then
|
||||||
|
einfo "Configuring to build with Nextstep (Macintosh Cocoa) support"
|
||||||
|
myconf+=" --with-ns --disable-ns-self-contained"
|
||||||
|
myconf+=" --without-x"
|
||||||
|
else
|
||||||
|
myconf+=" --with-x --without-ns"
|
||||||
|
myconf+=" $(use_with gconf)"
|
||||||
|
myconf+=" $(use_with gsettings)"
|
||||||
|
myconf+=" $(use_with toolkit-scroll-bars)"
|
||||||
|
myconf+=" $(use_with gif)"
|
||||||
|
myconf+=" $(use_with jpeg)"
|
||||||
|
myconf+=" $(use_with png)"
|
||||||
|
myconf+=" $(use_with svg rsvg)"
|
||||||
|
myconf+=" $(use_with tiff)"
|
||||||
|
myconf+=" $(use_with xpm)"
|
||||||
|
myconf+=" $(use_with imagemagick)"
|
||||||
|
|
||||||
|
if use xft; then
|
||||||
|
myconf+=" --with-xft"
|
||||||
|
myconf+=" $(use_with cairo)"
|
||||||
|
myconf+=" $(use_with m17n-lib libotf)"
|
||||||
|
myconf+=" $(use_with m17n-lib m17n-flt)"
|
||||||
|
else
|
||||||
|
myconf+=" --without-xft"
|
||||||
|
myconf+=" --without-cairo"
|
||||||
|
myconf+=" --without-libotf --without-m17n-flt"
|
||||||
|
use cairo && ewarn \
|
||||||
|
"USE flag \"cairo\" has no effect if \"xft\" is not set."
|
||||||
|
use m17n-lib && ewarn \
|
||||||
|
"USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
|
||||||
|
fi
|
||||||
|
|
||||||
|
local f line
|
||||||
|
if use gtk; then
|
||||||
|
einfo "Configuring to build with GIMP Toolkit (GTK+)"
|
||||||
|
while read line; do ewarn "${line}"; done <<-EOF
|
||||||
|
Your version of GTK+ will have problems with closing open
|
||||||
|
displays. This is no problem if you just use one display, but
|
||||||
|
if you use more than one and close one of them Emacs may crash.
|
||||||
|
See <https://gitlab.gnome.org/GNOME/gtk/-/issues/221> and
|
||||||
|
<https://gitlab.gnome.org/GNOME/gtk/-/issues/2315>.
|
||||||
|
If you intend to use more than one display, then it is strongly
|
||||||
|
recommended that you compile Emacs with the Athena/Lucid or the
|
||||||
|
Motif toolkit instead.
|
||||||
|
EOF
|
||||||
|
myconf+=" --with-x-toolkit=gtk3 $(use_with xwidgets)"
|
||||||
|
for f in motif Xaw3d athena; do
|
||||||
|
use ${f} && ewarn \
|
||||||
|
"USE flag \"${f}\" has no effect if \"gtk\" is set."
|
||||||
|
done
|
||||||
|
elif use motif; then
|
||||||
|
einfo "Configuring to build with Motif toolkit"
|
||||||
|
myconf+=" --with-x-toolkit=motif"
|
||||||
|
for f in Xaw3d athena; do
|
||||||
|
use ${f} && ewarn \
|
||||||
|
"USE flag \"${f}\" has no effect if \"motif\" is set."
|
||||||
|
done
|
||||||
|
elif use athena || use Xaw3d; then
|
||||||
|
einfo "Configuring to build with Athena/Lucid toolkit"
|
||||||
|
myconf+=" --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
|
||||||
|
else
|
||||||
|
einfo "Configuring to build with no toolkit"
|
||||||
|
myconf+=" --with-x-toolkit=no"
|
||||||
|
fi
|
||||||
|
! use gtk && use xwidgets && ewarn \
|
||||||
|
"USE flag \"xwidgets\" has no effect if \"gtk\" is not set."
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--program-suffix="-${EMACS_SUFFIX}" \
|
||||||
|
--includedir="${EPREFIX}"/usr/include/${EMACS_SUFFIX} \
|
||||||
|
--infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
|
||||||
|
--localstatedir="${EPREFIX}"/var \
|
||||||
|
--enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
|
||||||
|
--without-compress-install \
|
||||||
|
--without-hesiod \
|
||||||
|
--without-pop \
|
||||||
|
--with-file-notification=$(usev inotify || usev gfile || echo no) \
|
||||||
|
$(use_enable acl) \
|
||||||
|
$(use_with dbus) \
|
||||||
|
$(use_with dynamic-loading modules) \
|
||||||
|
$(use_with games gameuser ":gamestat") \
|
||||||
|
$(use_with gpm) \
|
||||||
|
$(use_with kerberos) $(use_with kerberos kerberos5) \
|
||||||
|
$(use_with lcms lcms2) \
|
||||||
|
$(use_with libxml2 xml2) \
|
||||||
|
$(use_with mailutils) \
|
||||||
|
$(use_with selinux) \
|
||||||
|
$(use_with ssl gnutls) \
|
||||||
|
$(use_with systemd libsystemd) \
|
||||||
|
$(use_with threads) \
|
||||||
|
$(use_with wide-int) \
|
||||||
|
$(use_with zlib) \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# Disable sandbox when dumping. For the unbelievers, see bug #131505
|
||||||
|
emake RUN_TEMACS="SANDBOX_ON=0 LD_PRELOAD= env ./temacs"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
|
||||||
|
|
||||||
|
mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} || die
|
||||||
|
mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 || die
|
||||||
|
mv "${ED}"/usr/share/metainfo/{emacs-,}${EMACS_SUFFIX}.appdata.xml || die
|
||||||
|
|
||||||
|
# move info dir to avoid collisions with the dir file generated by portage
|
||||||
|
mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} || die
|
||||||
|
touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
|
||||||
|
docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
|
||||||
|
|
||||||
|
# movemail must be setgid mail
|
||||||
|
if ! use mailutils; then
|
||||||
|
fowners root:mail /usr/libexec/emacs/${FULL_VERSION}/${CHOST}/movemail
|
||||||
|
fperms 2751 /usr/libexec/emacs/${FULL_VERSION}/${CHOST}/movemail
|
||||||
|
fi
|
||||||
|
|
||||||
|
# avoid collision between slots, see bug #169033 e.g.
|
||||||
|
rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el || die
|
||||||
|
rm -rf "${ED}"/usr/share/{applications,icons} || die
|
||||||
|
rm -rf "${ED}/usr/$(get_libdir)" || die
|
||||||
|
rm -rf "${ED}"/var || die
|
||||||
|
|
||||||
|
# remove unused <version>/site-lisp dir
|
||||||
|
rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp || die
|
||||||
|
|
||||||
|
# remove COPYING file (except for etc/COPYING used by describe-copying)
|
||||||
|
rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING || die
|
||||||
|
|
||||||
|
if use systemd; then
|
||||||
|
insinto /usr/lib/systemd/user
|
||||||
|
sed -e "/^##/d" \
|
||||||
|
-e "/^ExecStart/s,emacs,${EPREFIX}/usr/bin/${EMACS_SUFFIX}," \
|
||||||
|
-e "/^ExecStop/s,emacsclient,${EPREFIX}/usr/bin/&-${EMACS_SUFFIX}," \
|
||||||
|
etc/emacs.service | newins - ${EMACS_SUFFIX}.service
|
||||||
|
assert
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use gzip-el; then
|
||||||
|
# compress .el files when a corresponding .elc exists
|
||||||
|
find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \
|
||||||
|
-name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n
|
||||||
|
assert "gzip .el failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local cdir
|
||||||
|
if use source; then
|
||||||
|
cdir="/usr/share/emacs/${FULL_VERSION}/src"
|
||||||
|
insinto "${cdir}"
|
||||||
|
# This is not meant to install all the source -- just the
|
||||||
|
# C source you might find via find-function
|
||||||
|
doins src/*.{c,h,m}
|
||||||
|
elif has installsources ${FEATURES}; then
|
||||||
|
cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF || die
|
||||||
|
X
|
||||||
|
;;; ${EMACS_SUFFIX} site-lisp configuration
|
||||||
|
X
|
||||||
|
(when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
|
||||||
|
Y (setq find-function-C-source-directory
|
||||||
|
Y "${EPREFIX}${cdir}")
|
||||||
|
X (let ((path (getenv "INFOPATH"))
|
||||||
|
X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
|
||||||
|
X (re "\\\\\`${EPREFIX}/usr/share\\\\>"))
|
||||||
|
X (and path
|
||||||
|
X ;; move Emacs Info dir before anything else in /usr/share
|
||||||
|
X (let* ((p (cons nil (split-string path ":" t))) (q p))
|
||||||
|
X (while (and (cdr q) (not (string-match re (cadr q))))
|
||||||
|
X (setq q (cdr q)))
|
||||||
|
X (setcdr q (cons dir (delete dir (cdr q))))
|
||||||
|
X (setq Info-directory-list (prune-directory-list (cdr p)))))))
|
||||||
|
EOF
|
||||||
|
elisp-site-file-install "${T}/${SITEFILE}" || die
|
||||||
|
|
||||||
|
dodoc README BUGS CONTRIBUTE
|
||||||
|
|
||||||
|
if use gui && use aqua; then
|
||||||
|
dodir /Applications/Gentoo
|
||||||
|
rm -rf "${ED}"/Applications/Gentoo/${EMACS_SUFFIX^}.app || die
|
||||||
|
mv nextstep/Emacs.app \
|
||||||
|
"${ED}"/Applications/Gentoo/${EMACS_SUFFIX^}.app || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
local DOC_CONTENTS="You can set the version to be started by
|
||||||
|
/usr/bin/emacs through the Emacs eselect module, which also
|
||||||
|
redirects man and info pages. Therefore, several Emacs versions can
|
||||||
|
be installed at the same time. \"man emacs.eselect\" for details.
|
||||||
|
\\n\\nIf you upgrade from a previous major version of Emacs, then
|
||||||
|
it is strongly recommended that you use app-admin/emacs-updater
|
||||||
|
to rebuild all byte-compiled elisp files of the installed Emacs
|
||||||
|
packages."
|
||||||
|
if use gui; then
|
||||||
|
DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
|
||||||
|
Installing media-fonts/font-adobe-{75,100}dpi on the X server's
|
||||||
|
machine would satisfy basic Emacs requirements under X11.
|
||||||
|
See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs
|
||||||
|
for how to enable anti-aliased fonts."
|
||||||
|
use aqua && DOC_CONTENTS+="\\n\\n${EMACS_SUFFIX^}.app is in
|
||||||
|
\"${EPREFIX}/Applications/Gentoo\". You may want to copy or
|
||||||
|
symlink it into /Applications by yourself."
|
||||||
|
fi
|
||||||
|
readme.gentoo_create_doc
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
# move Info dir file to correct name
|
||||||
|
if [[ -d ${ED}/usr/share/info ]]; then
|
||||||
|
mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{.orig,} || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elisp-site-regen
|
||||||
|
readme.gentoo_print_elog
|
||||||
|
|
||||||
|
if use livecd; then
|
||||||
|
# force an update of the emacs symlink for the livecd/dvd,
|
||||||
|
# because some microemacs packages set it with USE=livecd
|
||||||
|
eselect emacs update
|
||||||
|
else
|
||||||
|
eselect emacs update ifunset
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
elisp-site-regen
|
||||||
|
eselect emacs update ifunset
|
||||||
|
}
|
@ -0,0 +1,446 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools elisp-common flag-o-matic readme.gentoo-r1 toolchain-funcs
|
||||||
|
|
||||||
|
if [[ ${PV##*.} = 9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://git.savannah.gnu.org/git/emacs.git"
|
||||||
|
EGIT_BRANCH="emacs-27"
|
||||||
|
EGIT_CHECKOUT_DIR="${WORKDIR}/emacs"
|
||||||
|
S="${EGIT_CHECKOUT_DIR}"
|
||||||
|
SLOT="${PV%%.*}-vcs"
|
||||||
|
else
|
||||||
|
# FULL_VERSION keeps the full version number, which is needed in
|
||||||
|
# order to determine some path information correctly for copy/move
|
||||||
|
# operations later on
|
||||||
|
FULL_VERSION="${PV%%_*}"
|
||||||
|
SRC_URI="mirror://gnu/emacs/${P}.tar.xz"
|
||||||
|
S="${WORKDIR}/emacs-${FULL_VERSION}"
|
||||||
|
# PV can be in any of the following formats:
|
||||||
|
# 27.1 released version (slot 27)
|
||||||
|
# 27.1_rc1 upstream release candidate (27)
|
||||||
|
# 27.0.9999 live ebuild (slot 27-vcs)
|
||||||
|
# 27.0.90 upstream prerelease snapshot (27-vcs)
|
||||||
|
# 27.0.50_pre20191223 snapshot by Gentoo developer (27-vcs)
|
||||||
|
if [[ ${PV} == *_pre* ]]; then
|
||||||
|
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz"
|
||||||
|
S="${WORKDIR}/emacs"
|
||||||
|
elif [[ ${PV//[0-9]} != "." ]]; then
|
||||||
|
SRC_URI="https://alpha.gnu.org/gnu/emacs/pretest/${PN}-${PV/_/-}.tar.xz"
|
||||||
|
fi
|
||||||
|
# Patchset from proj/emacs-patches.git
|
||||||
|
SRC_URI+=" https://dev.gentoo.org/~ulm/emacs/${P}-patches-3.tar.xz"
|
||||||
|
PATCHES=("${WORKDIR}/patch")
|
||||||
|
SLOT="${PV%%.*}"
|
||||||
|
[[ ${PV} == *.*.* ]] && SLOT+="-vcs"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
|
||||||
|
HOMEPAGE="https://www.gnu.org/software/emacs/"
|
||||||
|
|
||||||
|
LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
|
||||||
|
IUSE="acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif +gmp gpm gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jpeg json kerberos lcms libxml2 livecd m17n-lib mailutils motif png selinux sound source ssl svg systemd +threads tiff toolkit-scroll-bars wide-int Xaw3d xft +xpm xwidgets zlib"
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
RDEPEND="app-emacs/emacs-common[games?,gui(-)?]
|
||||||
|
sys-libs/ncurses:0=
|
||||||
|
acl? ( virtual/acl )
|
||||||
|
alsa? ( media-libs/alsa-lib )
|
||||||
|
dbus? ( sys-apps/dbus )
|
||||||
|
games? ( acct-group/gamestat )
|
||||||
|
gmp? ( dev-libs/gmp:0= )
|
||||||
|
gpm? ( sys-libs/gpm )
|
||||||
|
!inotify? ( gfile? ( >=dev-libs/glib-2.28.6 ) )
|
||||||
|
json? ( dev-libs/jansson )
|
||||||
|
kerberos? ( virtual/krb5 )
|
||||||
|
lcms? ( media-libs/lcms:2 )
|
||||||
|
libxml2? ( >=dev-libs/libxml2-2.2.0 )
|
||||||
|
mailutils? ( net-mail/mailutils[clients] )
|
||||||
|
!mailutils? ( acct-group/mail net-libs/liblockfile )
|
||||||
|
selinux? ( sys-libs/libselinux )
|
||||||
|
ssl? ( net-libs/gnutls:0= )
|
||||||
|
systemd? ( sys-apps/systemd )
|
||||||
|
zlib? ( sys-libs/zlib )
|
||||||
|
gui? ( !aqua? (
|
||||||
|
x11-libs/libICE
|
||||||
|
x11-libs/libSM
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXinerama
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libxcb
|
||||||
|
x11-misc/xbitmaps
|
||||||
|
gconf? ( >=gnome-base/gconf-2.26.2 )
|
||||||
|
gsettings? ( >=dev-libs/glib-2.28.6 )
|
||||||
|
gif? ( media-libs/giflib:0= )
|
||||||
|
jpeg? ( virtual/jpeg:0= )
|
||||||
|
png? ( >=media-libs/libpng-1.4:0= )
|
||||||
|
svg? ( >=gnome-base/librsvg-2.0 )
|
||||||
|
tiff? ( media-libs/tiff:0 )
|
||||||
|
xpm? ( x11-libs/libXpm )
|
||||||
|
imagemagick? ( >=media-gfx/imagemagick-6.6.2:0= )
|
||||||
|
xft? (
|
||||||
|
media-libs/fontconfig
|
||||||
|
media-libs/freetype
|
||||||
|
x11-libs/libXft
|
||||||
|
x11-libs/libXrender
|
||||||
|
cairo? ( >=x11-libs/cairo-1.12.18 )
|
||||||
|
harfbuzz? ( media-libs/harfbuzz:0= )
|
||||||
|
m17n-lib? (
|
||||||
|
>=dev-libs/libotf-0.9.4
|
||||||
|
>=dev-libs/m17n-lib-1.5.1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
gtk? (
|
||||||
|
x11-libs/gtk+:3
|
||||||
|
xwidgets? (
|
||||||
|
net-libs/webkit-gtk:4=
|
||||||
|
x11-libs/libXcomposite
|
||||||
|
)
|
||||||
|
)
|
||||||
|
!gtk? (
|
||||||
|
motif? (
|
||||||
|
>=x11-libs/motif-2.3:0
|
||||||
|
x11-libs/libXpm
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
)
|
||||||
|
!motif? (
|
||||||
|
Xaw3d? (
|
||||||
|
x11-libs/libXaw3d
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
)
|
||||||
|
!Xaw3d? ( athena? (
|
||||||
|
x11-libs/libXaw
|
||||||
|
x11-libs/libXmu
|
||||||
|
x11-libs/libXt
|
||||||
|
) )
|
||||||
|
)
|
||||||
|
)
|
||||||
|
) )"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
gui? ( !aqua? ( x11-base/xorg-proto ) )"
|
||||||
|
|
||||||
|
BDEPEND="sys-apps/texinfo
|
||||||
|
virtual/pkgconfig
|
||||||
|
gzip-el? ( app-arch/gzip )"
|
||||||
|
|
||||||
|
IDEPEND="app-eselect/eselect-emacs"
|
||||||
|
|
||||||
|
RDEPEND+=" ${IDEPEND}
|
||||||
|
!app-editors/emacs-vcs:27"
|
||||||
|
|
||||||
|
EMACS_SUFFIX="emacs-${SLOT}"
|
||||||
|
SITEFILE="20${EMACS_SUFFIX}-gentoo.el"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if [[ ${PV##*.} = 9999 ]]; then
|
||||||
|
FULL_VERSION=$(sed -n 's/^AC_INIT([^,]*,[ \t]*\([^ \t,)]*\).*/\1/p' \
|
||||||
|
configure.ac)
|
||||||
|
[[ ${FULL_VERSION} ]] || die "Cannot determine current Emacs version"
|
||||||
|
einfo "Emacs branch: ${EGIT_BRANCH}"
|
||||||
|
einfo "Commit: ${EGIT_VERSION}"
|
||||||
|
einfo "Emacs version number: ${FULL_VERSION}"
|
||||||
|
[[ ${FULL_VERSION} =~ ^${PV%.*}(\..*)?$ ]] \
|
||||||
|
|| die "Upstream version number changed to ${FULL_VERSION}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
|
||||||
|
# Fix filename reference in redirected man page
|
||||||
|
sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 || die
|
||||||
|
|
||||||
|
#AT_M4DIR=m4 eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
strip-flags
|
||||||
|
filter-flags -pie #526948
|
||||||
|
|
||||||
|
if use ia64; then
|
||||||
|
replace-flags "-O[2-9]" -O1 #325373
|
||||||
|
else
|
||||||
|
replace-flags "-O[3-9]" -O2
|
||||||
|
fi
|
||||||
|
|
||||||
|
local myconf
|
||||||
|
|
||||||
|
if use alsa; then
|
||||||
|
use sound || ewarn \
|
||||||
|
"USE flag \"alsa\" overrides \"-sound\"; enabling sound support."
|
||||||
|
myconf+=" --with-sound=alsa"
|
||||||
|
else
|
||||||
|
myconf+=" --with-sound=$(usex sound oss)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use gui; then
|
||||||
|
einfo "Configuring to build without window system support"
|
||||||
|
myconf+=" --without-x --without-ns"
|
||||||
|
elif use aqua; then
|
||||||
|
einfo "Configuring to build with Nextstep (Macintosh Cocoa) support"
|
||||||
|
myconf+=" --with-ns --disable-ns-self-contained"
|
||||||
|
myconf+=" --without-x"
|
||||||
|
else
|
||||||
|
myconf+=" --with-x --without-ns"
|
||||||
|
myconf+=" $(use_with gconf)"
|
||||||
|
myconf+=" $(use_with gsettings)"
|
||||||
|
myconf+=" $(use_with toolkit-scroll-bars)"
|
||||||
|
myconf+=" $(use_with gif)"
|
||||||
|
myconf+=" $(use_with jpeg)"
|
||||||
|
myconf+=" $(use_with png)"
|
||||||
|
myconf+=" $(use_with svg rsvg)"
|
||||||
|
myconf+=" $(use_with tiff)"
|
||||||
|
myconf+=" $(use_with xpm)"
|
||||||
|
myconf+=" $(use_with imagemagick)"
|
||||||
|
|
||||||
|
if use xft; then
|
||||||
|
myconf+=" --with-xft"
|
||||||
|
myconf+=" $(use_with cairo)"
|
||||||
|
myconf+=" $(use_with harfbuzz)"
|
||||||
|
myconf+=" $(use_with m17n-lib libotf)"
|
||||||
|
myconf+=" $(use_with m17n-lib m17n-flt)"
|
||||||
|
else
|
||||||
|
myconf+=" --without-xft"
|
||||||
|
myconf+=" --without-cairo"
|
||||||
|
myconf+=" --without-libotf --without-m17n-flt"
|
||||||
|
use cairo && ewarn \
|
||||||
|
"USE flag \"cairo\" has no effect if \"xft\" is not set."
|
||||||
|
use m17n-lib && ewarn \
|
||||||
|
"USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
|
||||||
|
fi
|
||||||
|
|
||||||
|
local f line
|
||||||
|
if use gtk; then
|
||||||
|
einfo "Configuring to build with GIMP Toolkit (GTK+)"
|
||||||
|
while read line; do ewarn "${line}"; done <<-EOF
|
||||||
|
Your version of GTK+ will have problems with closing open
|
||||||
|
displays. This is no problem if you just use one display, but
|
||||||
|
if you use more than one and close one of them Emacs may crash.
|
||||||
|
See <https://gitlab.gnome.org/GNOME/gtk/-/issues/221> and
|
||||||
|
<https://gitlab.gnome.org/GNOME/gtk/-/issues/2315>.
|
||||||
|
If you intend to use more than one display, then it is strongly
|
||||||
|
recommended that you compile Emacs with the Athena/Lucid or the
|
||||||
|
Motif toolkit instead.
|
||||||
|
EOF
|
||||||
|
myconf+=" --with-x-toolkit=gtk3 $(use_with xwidgets)"
|
||||||
|
for f in motif Xaw3d athena; do
|
||||||
|
use ${f} && ewarn \
|
||||||
|
"USE flag \"${f}\" has no effect if \"gtk\" is set."
|
||||||
|
done
|
||||||
|
elif use motif; then
|
||||||
|
einfo "Configuring to build with Motif toolkit"
|
||||||
|
myconf+=" --with-x-toolkit=motif"
|
||||||
|
for f in Xaw3d athena; do
|
||||||
|
use ${f} && ewarn \
|
||||||
|
"USE flag \"${f}\" has no effect if \"motif\" is set."
|
||||||
|
done
|
||||||
|
elif use athena || use Xaw3d; then
|
||||||
|
einfo "Configuring to build with Athena/Lucid toolkit"
|
||||||
|
myconf+=" --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
|
||||||
|
else
|
||||||
|
einfo "Configuring to build with no toolkit"
|
||||||
|
myconf+=" --with-x-toolkit=no"
|
||||||
|
fi
|
||||||
|
! use gtk && use xwidgets && ewarn \
|
||||||
|
"USE flag \"xwidgets\" has no effect if \"gtk\" is not set."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if tc-is-cross-compiler; then
|
||||||
|
# Configure a CBUILD directory when cross-compiling to make tools
|
||||||
|
mkdir "${S}-build" && pushd "${S}-build" >/dev/null || die
|
||||||
|
ECONF_SOURCE="${S}" econf_build --without-all --without-x-toolkit
|
||||||
|
popd >/dev/null || die
|
||||||
|
# Don't try to execute the binary for dumping during the build
|
||||||
|
myconf+=" --with-dumping=none"
|
||||||
|
else
|
||||||
|
myconf+=" --with-dumping=pdumper"
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--program-suffix="-${EMACS_SUFFIX}" \
|
||||||
|
--includedir="${EPREFIX}"/usr/include/${EMACS_SUFFIX} \
|
||||||
|
--infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
|
||||||
|
--localstatedir="${EPREFIX}"/var \
|
||||||
|
--enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
|
||||||
|
--without-compress-install \
|
||||||
|
--without-hesiod \
|
||||||
|
--without-pop \
|
||||||
|
--with-file-notification=$(usev inotify || usev gfile || echo no) \
|
||||||
|
--with-pdumper \
|
||||||
|
$(use_enable acl) \
|
||||||
|
$(use_with dbus) \
|
||||||
|
$(use_with dynamic-loading modules) \
|
||||||
|
$(use_with games gameuser ":gamestat") \
|
||||||
|
$(use_with gmp libgmp) \
|
||||||
|
$(use_with gpm) \
|
||||||
|
$(use_with json) \
|
||||||
|
$(use_with kerberos) $(use_with kerberos kerberos5) \
|
||||||
|
$(use_with lcms lcms2) \
|
||||||
|
$(use_with libxml2 xml2) \
|
||||||
|
$(use_with mailutils) \
|
||||||
|
$(use_with selinux) \
|
||||||
|
$(use_with ssl gnutls) \
|
||||||
|
$(use_with systemd libsystemd) \
|
||||||
|
$(use_with threads) \
|
||||||
|
$(use_with wide-int) \
|
||||||
|
$(use_with zlib) \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
if tc-is-cross-compiler; then
|
||||||
|
# Build native tools for compiling lisp etc.
|
||||||
|
emake -C "${S}-build" src
|
||||||
|
emake lib # Cross-compile dependencies first for timestamps
|
||||||
|
# Save native build tools in the cross-directory
|
||||||
|
cp "${S}-build"/lib-src/make-{docfile,fingerprint} lib-src || die
|
||||||
|
# Specify the native Emacs to compile lisp
|
||||||
|
emake -C lisp all EMACS="${S}-build/src/emacs"
|
||||||
|
fi
|
||||||
|
|
||||||
|
emake
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" NO_BIN_LINK=t BLESSMAIL_TARGET= install
|
||||||
|
|
||||||
|
mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} || die
|
||||||
|
mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 || die
|
||||||
|
mv "${ED}"/usr/share/metainfo/{emacs-,}${EMACS_SUFFIX}.appdata.xml || die
|
||||||
|
|
||||||
|
# move info dir to avoid collisions with the dir file generated by portage
|
||||||
|
mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} || die
|
||||||
|
touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
|
||||||
|
docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
|
||||||
|
|
||||||
|
# movemail must be setgid mail
|
||||||
|
if ! use mailutils; then
|
||||||
|
fowners root:mail /usr/libexec/emacs/${FULL_VERSION}/${CHOST}/movemail
|
||||||
|
fperms 2751 /usr/libexec/emacs/${FULL_VERSION}/${CHOST}/movemail
|
||||||
|
fi
|
||||||
|
|
||||||
|
# avoid collision between slots, see bug #169033 e.g.
|
||||||
|
rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el || die
|
||||||
|
rm -rf "${ED}"/usr/share/{applications,icons} || die
|
||||||
|
rm -rf "${ED}/usr/$(get_libdir)" || die
|
||||||
|
rm -rf "${ED}"/var || die
|
||||||
|
|
||||||
|
# remove unused <version>/site-lisp dir
|
||||||
|
rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp || die
|
||||||
|
|
||||||
|
# remove COPYING file (except for etc/COPYING used by describe-copying)
|
||||||
|
rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING || die
|
||||||
|
|
||||||
|
if use systemd; then
|
||||||
|
insinto /usr/lib/systemd/user
|
||||||
|
sed -e "/^##/d" \
|
||||||
|
-e "/^ExecStart/s,emacs,${EPREFIX}/usr/bin/${EMACS_SUFFIX}," \
|
||||||
|
-e "/^ExecStop/s,emacsclient,${EPREFIX}/usr/bin/&-${EMACS_SUFFIX}," \
|
||||||
|
etc/emacs.service | newins - ${EMACS_SUFFIX}.service
|
||||||
|
assert
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use gzip-el; then
|
||||||
|
# compress .el files when a corresponding .elc exists
|
||||||
|
find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \
|
||||||
|
-name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n
|
||||||
|
assert "gzip .el failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local cdir
|
||||||
|
if use source; then
|
||||||
|
cdir="/usr/share/emacs/${FULL_VERSION}/src"
|
||||||
|
insinto "${cdir}"
|
||||||
|
# This is not meant to install all the source -- just the
|
||||||
|
# C source you might find via find-function
|
||||||
|
doins src/*.{c,h,m}
|
||||||
|
elif has installsources ${FEATURES}; then
|
||||||
|
cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF || die
|
||||||
|
X
|
||||||
|
;;; ${EMACS_SUFFIX} site-lisp configuration
|
||||||
|
X
|
||||||
|
(when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
|
||||||
|
Y (setq find-function-C-source-directory
|
||||||
|
Y "${EPREFIX}${cdir}")
|
||||||
|
X (let ((path (getenv "INFOPATH"))
|
||||||
|
X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
|
||||||
|
X (re "\\\\\`${EPREFIX}/usr/share\\\\>"))
|
||||||
|
X (and path
|
||||||
|
X ;; move Emacs Info dir before anything else in /usr/share
|
||||||
|
X (let* ((p (cons nil (split-string path ":" t))) (q p))
|
||||||
|
X (while (and (cdr q) (not (string-match re (cadr q))))
|
||||||
|
X (setq q (cdr q)))
|
||||||
|
X (setcdr q (cons dir (delete dir (cdr q))))
|
||||||
|
X (setq Info-directory-list (prune-directory-list (cdr p)))))))
|
||||||
|
EOF
|
||||||
|
elisp-site-file-install "${T}/${SITEFILE}" || die
|
||||||
|
|
||||||
|
dodoc README BUGS CONTRIBUTE
|
||||||
|
|
||||||
|
if use gui && use aqua; then
|
||||||
|
dodir /Applications/Gentoo
|
||||||
|
rm -rf "${ED}"/Applications/Gentoo/${EMACS_SUFFIX^}.app || die
|
||||||
|
mv nextstep/Emacs.app \
|
||||||
|
"${ED}"/Applications/Gentoo/${EMACS_SUFFIX^}.app || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
local DOC_CONTENTS="You can set the version to be started by
|
||||||
|
/usr/bin/emacs through the Emacs eselect module, which also
|
||||||
|
redirects man and info pages. Therefore, several Emacs versions can
|
||||||
|
be installed at the same time. \"man emacs.eselect\" for details.
|
||||||
|
\\n\\nIf you upgrade from a previous major version of Emacs, then
|
||||||
|
it is strongly recommended that you use app-admin/emacs-updater
|
||||||
|
to rebuild all byte-compiled elisp files of the installed Emacs
|
||||||
|
packages."
|
||||||
|
if use gui; then
|
||||||
|
DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
|
||||||
|
Installing media-fonts/font-adobe-{75,100}dpi on the X server's
|
||||||
|
machine would satisfy basic Emacs requirements under X11.
|
||||||
|
See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs
|
||||||
|
for how to enable anti-aliased fonts."
|
||||||
|
use aqua && DOC_CONTENTS+="\\n\\n${EMACS_SUFFIX^}.app is in
|
||||||
|
\"${EPREFIX}/Applications/Gentoo\". You may want to copy or
|
||||||
|
symlink it into /Applications by yourself."
|
||||||
|
fi
|
||||||
|
tc-is-cross-compiler && DOC_CONTENTS+="\\n\\nEmacs did not write
|
||||||
|
a portable dump file due to being cross-compiled.
|
||||||
|
To create this file at run time, execute the following command:
|
||||||
|
\\n${EMACS_SUFFIX} --batch -Q --eval='(dump-emacs-portable
|
||||||
|
\"/usr/libexec/emacs/${FULL_VERSION}/${CHOST}/emacs.pdmp\")'"
|
||||||
|
readme.gentoo_create_doc
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
# move Info dir file to correct name
|
||||||
|
if [[ -d ${ED}/usr/share/info ]]; then
|
||||||
|
mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{.orig,} || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elisp-site-regen
|
||||||
|
readme.gentoo_print_elog
|
||||||
|
|
||||||
|
if use livecd; then
|
||||||
|
# force an update of the emacs symlink for the livecd/dvd,
|
||||||
|
# because some microemacs packages set it with USE=livecd
|
||||||
|
eselect emacs update
|
||||||
|
else
|
||||||
|
eselect emacs update ifunset
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
elisp-site-regen
|
||||||
|
eselect emacs update ifunset
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST diskimage-builder-3.11.0.tar.gz 475123 BLAKE2B 2d286193c99077b943ddc2342871878d78380c27b247cca895d14e9ca1ca69c3d260fe0061e9f09a80156cee327234ce0a8c129f2008422d0db1bd736175f490 SHA512 083a3dff0ec32cd35cb5a95f25b115778aa4b74ab47796c13ac007fa6af5940140117eb4c2b5f44674316f65b0c0b53b6e077787e8018f6d7735906d333d2da0
|
DIST diskimage-builder-3.11.0.tar.gz 475123 BLAKE2B 2d286193c99077b943ddc2342871878d78380c27b247cca895d14e9ca1ca69c3d260fe0061e9f09a80156cee327234ce0a8c129f2008422d0db1bd736175f490 SHA512 083a3dff0ec32cd35cb5a95f25b115778aa4b74ab47796c13ac007fa6af5940140117eb4c2b5f44674316f65b0c0b53b6e077787e8018f6d7735906d333d2da0
|
||||||
DIST diskimage-builder-3.12.0.tar.gz 477540 BLAKE2B 9facf1d6ef9a38b960b7bcc8ee035d8f7ae6c5189d1de25e335d68a6e8389be0ab0f3b787e5d5112ee7ef508b583d1df612ca75149659f78685a2fdf6dee21a7 SHA512 edec229023673c48a3176b315c9d84067b4e7b4a30843839722a7ce300f898d92ee5f5146b6d92f2eda692bada4370b32f1b19f3b929a379b3e604b6e7ce29d6
|
DIST diskimage-builder-3.12.0.tar.gz 477540 BLAKE2B 9facf1d6ef9a38b960b7bcc8ee035d8f7ae6c5189d1de25e335d68a6e8389be0ab0f3b787e5d5112ee7ef508b583d1df612ca75149659f78685a2fdf6dee21a7 SHA512 edec229023673c48a3176b315c9d84067b4e7b4a30843839722a7ce300f898d92ee5f5146b6d92f2eda692bada4370b32f1b19f3b929a379b3e604b6e7ce29d6
|
||||||
|
DIST diskimage-builder-3.13.0.tar.gz 494027 BLAKE2B 27a88118d688018a5f842e0d483e3128b0715cdc21f33308de61ea5077ad1b824738363ae066463e84e7e3821a36085afc9985fde74883ab040c67a25073e5c0 SHA512 7b099811021f199ed0680e2dc4db6302b05dc6adf95ac96e890501cf92727dc319fbf96f9c68a8b9bca26ba54d7ff5e6a67f036a9d86a3ad1752d5cc4a8edbaf
|
||||||
|
@ -0,0 +1,39 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Golden Disk Image builder."
|
||||||
|
HOMEPAGE="http://docs.openstack.org/developer/diskimage-builder/"
|
||||||
|
if [[ ${PV} == 9999* ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://opendev.org/openstack/diskimage-builder.git"
|
||||||
|
else
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]"
|
||||||
|
DEPEND="${CDEPEND}"
|
||||||
|
RDEPEND="${CDEPEND}
|
||||||
|
>=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
|
||||||
|
!~dev-python/Babel-2.4.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/networkx-1.10[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyyaml-3.12[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
|
||||||
|
app-emulation/qemu
|
||||||
|
sys-block/parted
|
||||||
|
sys-fs/multipath-tools
|
||||||
|
sys-fs/dosfstools
|
||||||
|
sys-apps/gptfdisk
|
||||||
|
!dev-python/dib-utils[${PYTHON_USEDEP}]"
|
@ -0,0 +1,79 @@
|
|||||||
|
# Copyright 2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit linux-info
|
||||||
|
|
||||||
|
DESCRIPTION="Secure and fast microVMs for serverless computing (static build)"
|
||||||
|
HOMEPAGE="https://firecracker-microvm.github.io https://github.com/firecracker-microvm/firecracker"
|
||||||
|
SRC_URI="
|
||||||
|
amd64? (
|
||||||
|
https://github.com/firecracker-microvm/firecracker/releases/download/v${PV}/firecracker-v${PV}-x86_64.tgz
|
||||||
|
)
|
||||||
|
arm64? (
|
||||||
|
https://github.com/firecracker-microvm/firecracker/releases/download/v${PV}/firecracker-v${PV}-aarch64.tgz
|
||||||
|
)"
|
||||||
|
|
||||||
|
LICENSE="|| ( Apache-2.0 MIT Apache-2.0-with-LLVM-exceptions ) MPL-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64"
|
||||||
|
|
||||||
|
RESTRICT="test strip"
|
||||||
|
|
||||||
|
RDEPEND="!app-emulation/firecracker
|
||||||
|
acct-group/kvm"
|
||||||
|
|
||||||
|
QA_PREBUILT="/usr/bin/firecracker
|
||||||
|
/usr/bin/jailer"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if use kernel_linux && kernel_is lt 4 14; then
|
||||||
|
eerror "Firecracker requires a host kernel of 4.14 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 ~VHOST_VSOCK"
|
||||||
|
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"
|
||||||
|
ERROR_TUN+=" virtual network devices."
|
||||||
|
ERROR_BRIDGE="You will also need support for 802.1d"
|
||||||
|
ERROR_BRIDGE+=" Ethernet Bridging for some network configurations."
|
||||||
|
ERROR_VHOST_VSOCK="To use AF_VSOCK sockets for communication"
|
||||||
|
ERROR_VHOST_VSOCK+=" between host and guest, you will need to enable"
|
||||||
|
ERROR_VHOST_VSOCK+=" the vhost virtio-vsock driver in your kernel."
|
||||||
|
|
||||||
|
if use amd64 || use amd64-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
|
||||||
|
|
||||||
|
# Now do the actual checks setup above
|
||||||
|
check_extra_config
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() { :; }
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
if use amd64; then
|
||||||
|
my_arch=x86_64
|
||||||
|
elif use arm64; then
|
||||||
|
my_arch=aarch64
|
||||||
|
fi
|
||||||
|
|
||||||
|
newbin "release-v${PV}/firecracker-v${PV}-${my_arch}" firecracker
|
||||||
|
newbin "release-v${PV}/jailer-v${PV}-${my_arch}" jailer
|
||||||
|
}
|
@ -1,95 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{7,8} )
|
|
||||||
inherit autotools python-any-r1 readme.gentoo-r1 xdg-utils
|
|
||||||
|
|
||||||
DESCRIPTION="SPICE server"
|
|
||||||
HOMEPAGE="https://www.spice-space.org/"
|
|
||||||
SRC_URI="https://www.spice-space.org/download/releases/spice-server/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 arm64 ppc64 x86"
|
|
||||||
IUSE="lz4 sasl smartcard static-libs gstreamer"
|
|
||||||
|
|
||||||
# the libspice-server only uses the headers of libcacard
|
|
||||||
RDEPEND="
|
|
||||||
dev-lang/orc[static-libs(+)?]
|
|
||||||
>=dev-libs/glib-2.22:2[static-libs(+)?]
|
|
||||||
media-libs/opus[static-libs(+)?]
|
|
||||||
sys-libs/zlib[static-libs(+)?]
|
|
||||||
virtual/jpeg:0=[static-libs(+)?]
|
|
||||||
>=x11-libs/pixman-0.17.7[static-libs(+)?]
|
|
||||||
dev-libs/openssl:0=[static-libs(+)?]
|
|
||||||
lz4? ( app-arch/lz4:0=[static-libs(+)?] )
|
|
||||||
smartcard? ( >=app-emulation/libcacard-0.1.2 )
|
|
||||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)?] )
|
|
||||||
gstreamer? (
|
|
||||||
media-libs/gstreamer:1.0
|
|
||||||
media-libs/gst-plugins-base:1.0
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
>=app-emulation/spice-protocol-0.14.0
|
|
||||||
smartcard? ( app-emulation/qemu[smartcard] )"
|
|
||||||
BDEPEND="${PYTHON_DEPS}
|
|
||||||
virtual/pkgconfig
|
|
||||||
$(python_gen_any_dep '
|
|
||||||
>=dev-python/pyparsing-1.5.6-r2[${PYTHON_USEDEP}]
|
|
||||||
dev-python/six[${PYTHON_USEDEP}]
|
|
||||||
')"
|
|
||||||
|
|
||||||
python_check_deps() {
|
|
||||||
has_version -b ">=dev-python/pyparsing-1.5.6-r2[${PYTHON_USEDEP}]"
|
|
||||||
has_version -b "dev-python/six[${PYTHON_USEDEP}]"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && python-any-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Prevent sandbox violations, bug #586560
|
|
||||||
# https://bugzilla.gnome.org/show_bug.cgi?id=744134
|
|
||||||
# https://bugzilla.gnome.org/show_bug.cgi?id=744135
|
|
||||||
addpredict /dev
|
|
||||||
|
|
||||||
xdg_environment_reset
|
|
||||||
|
|
||||||
local myconf="
|
|
||||||
$(use_enable static-libs static)
|
|
||||||
$(use_enable lz4)
|
|
||||||
$(use_with sasl)
|
|
||||||
$(use_enable smartcard)
|
|
||||||
--enable-gstreamer=$(usex gstreamer "1.0" "no")
|
|
||||||
--disable-celt051
|
|
||||||
"
|
|
||||||
econf ${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# Prevent sandbox violations, bug #586560
|
|
||||||
# https://bugzilla.gnome.org/show_bug.cgi?id=744134
|
|
||||||
# https://bugzilla.gnome.org/show_bug.cgi?id=744135
|
|
||||||
addpredict /dev
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
use static-libs || find "${D}" -name '*.la' -type f -delete || die
|
|
||||||
readme.gentoo_create_doc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
readme.gentoo_print_elog
|
|
||||||
}
|
|
@ -1,41 +0,0 @@
|
|||||||
Index: /trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
|
|
||||||
===================================================================
|
|
||||||
--- trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp (revision 88530)
|
|
||||||
+++ trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp (revision 88643)
|
|
||||||
@@ -3678,8 +3678,6 @@
|
|
||||||
LogFlowFunc(("pThis=%#p\n", pThis));
|
|
||||||
|
|
||||||
- /* Clear everything first. */
|
|
||||||
AssertPtrReturnVoid(pThisCC->pConfigurationPages);
|
|
||||||
PMptConfigurationPagesSupported pPages = pThisCC->pConfigurationPages;
|
|
||||||
- memset(pPages, 0, sizeof(MptConfigurationPagesSupported));
|
|
||||||
|
|
||||||
/* Manufacturing Page 0. */
|
|
||||||
Index: /trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.h
|
|
||||||
===================================================================
|
|
||||||
--- trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.h (revision 82968)
|
|
||||||
+++ trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.h (revision 88643)
|
|
||||||
@@ -3327,13 +3327,17 @@
|
|
||||||
|
|
||||||
#define MPT_CONFIG_PAGE_HEADER_INIT_MANUFACTURING(pg, type, nr, flags) \
|
|
||||||
+ RT_ZERO(*pg); \
|
|
||||||
MPT_CONFIG_PAGE_HEADER_INIT(pg, type, nr, flags | MPT_CONFIGURATION_PAGE_TYPE_MANUFACTURING)
|
|
||||||
|
|
||||||
#define MPT_CONFIG_PAGE_HEADER_INIT_IO_UNIT(pg, type, nr, flags) \
|
|
||||||
+ RT_ZERO(*pg); \
|
|
||||||
MPT_CONFIG_PAGE_HEADER_INIT(pg, type, nr, flags | MPT_CONFIGURATION_PAGE_TYPE_IO_UNIT)
|
|
||||||
|
|
||||||
#define MPT_CONFIG_PAGE_HEADER_INIT_IOC(pg, type, nr, flags) \
|
|
||||||
+ RT_ZERO(*pg); \
|
|
||||||
MPT_CONFIG_PAGE_HEADER_INIT(pg, type, nr, flags | MPT_CONFIGURATION_PAGE_TYPE_IOC)
|
|
||||||
|
|
||||||
#define MPT_CONFIG_PAGE_HEADER_INIT_BIOS(pg, type, nr, flags) \
|
|
||||||
+ RT_ZERO(*pg); \
|
|
||||||
MPT_CONFIG_PAGE_HEADER_INIT(pg, type, nr, flags | MPT_CONFIGURATION_PAGE_TYPE_BIOS)
|
|
||||||
|
|
||||||
@@ -3342,4 +3346,5 @@
|
|
||||||
*/
|
|
||||||
#define MPT_CONFIG_EXTENDED_PAGE_HEADER_INIT(pg, cb, nr, flags, exttype) \
|
|
||||||
+ RT_BZERO(pg, cb); \
|
|
||||||
(pg)->u.fields.ExtHeader.u8PageType = (flags) | MPT_CONFIGURATION_PAGE_TYPE_EXTENDED; \
|
|
||||||
(pg)->u.fields.ExtHeader.u8PageNumber = (nr); \
|
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST zzuf-0.15.tar.bz2 394859 BLAKE2B a040bc0c43050d36b4dcc59ad49e42a81a0f944fdcaea537a33c925cc9a60cebe46bbd165df4a309204e4c125fb871e9aaaf532183cdb1101ac33230b83f5979 SHA512 7e5b55761c0f75af10920e1ffdde1564022b8d43ce8f59d6b0a27d2c59779ef98dd561cb26f781b8cee09016f08144439770ea2db250874d4bebd2443f592898
|
DIST zzuf-0.15.tar.bz2 394859 BLAKE2B a040bc0c43050d36b4dcc59ad49e42a81a0f944fdcaea537a33c925cc9a60cebe46bbd165df4a309204e4c125fb871e9aaaf532183cdb1101ac33230b83f5979 SHA512 7e5b55761c0f75af10920e1ffdde1564022b8d43ce8f59d6b0a27d2c59779ef98dd561cb26f781b8cee09016f08144439770ea2db250874d4bebd2443f592898
|
||||||
|
DIST zzuf-0.15_p20190208.tar.gz 140812 BLAKE2B 908661fdb51a5b2d5b188ac7df2731c5f069db8489651145f6d4a5cb0f02dc99fa10c3771a034645043f547ef92dfe9e3cfa3f1442dbad690d88ef620f2cfdd8 SHA512 e4d6b4356385642323520c1f1d476b572465881df539d0c6e7110ca7974da81b4b744896df7deac8b462707ca9e0db578ca0c118d6ba2da4bc78ffe31328f711
|
||||||
|
@ -0,0 +1,38 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools multilib-minimal
|
||||||
|
|
||||||
|
EGIT_COMMIT="e598eef77a98d77dc6aec6fd2c845e3cd07dc4fd"
|
||||||
|
DESCRIPTION="Transparent application input fuzzer"
|
||||||
|
HOMEPAGE="http://caca.zoy.org/wiki/zzuf"
|
||||||
|
SRC_URI="https://github.com/samhocevar/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="WTFPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~sparc ~x86"
|
||||||
|
|
||||||
|
# Uses dlopen hack to hijack many libc functions.
|
||||||
|
# Fails 2 tests with sandbox enabled: check-zzuf-A-autoinc check-utils
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DOCS=( AUTHORS COPYING TODO )
|
||||||
|
|
||||||
|
S="${WORKDIR}"/${PN}-${EGIT_COMMIT}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
ECONF_SOURCE="${S}" econf
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
default
|
||||||
|
|
||||||
|
find "${ED}" -name '*.la' -delete || die
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST gnote-40.1.tar.xz 3420216 BLAKE2B a84604b25301fb0332da161a7f1f258542f1dfa16a02f34e700280e87393a3eb6d9005a5ed18204b91d0fccea2f6e44738789ab57dae543707650bfce55165c8 SHA512 6f4286fef18b060bb46c1c9f43772df7d9d913d6d1e3e3801e38e277fa660aa213e46f4a825788795f153821f705bbea22df7d1ff90ee949752497274455ad37
|
|
||||||
DIST gnote-40.2.tar.xz 3422560 BLAKE2B d7d7fa862e02c1d889c736ae733db503a06db93cfc79c12bd1efa89acbe4a5825d0cf0cab00cfa916566002c1b838d118b37f5b0204f20ac9fcab2f892cccf52 SHA512 e1dc3ed4fb7b7c4f346a4a1e63a2e357b197375caf5d1d2026c159cfda012ace76ad598ecaf8e7d7649fb80abedc0cd4febd369160ddaf4510cfcc6b41185aed
|
DIST gnote-40.2.tar.xz 3422560 BLAKE2B d7d7fa862e02c1d889c736ae733db503a06db93cfc79c12bd1efa89acbe4a5825d0cf0cab00cfa916566002c1b838d118b37f5b0204f20ac9fcab2f892cccf52 SHA512 e1dc3ed4fb7b7c4f346a4a1e63a2e357b197375caf5d1d2026c159cfda012ace76ad598ecaf8e7d7649fb80abedc0cd4febd369160ddaf4510cfcc6b41185aed
|
||||||
|
@ -1,72 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit gnome2 readme.gentoo-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Desktop note-taking application"
|
|
||||||
HOMEPAGE="https://wiki.gnome.org/Apps/Gnote"
|
|
||||||
|
|
||||||
LICENSE="GPL-3+ FDL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE="debug"
|
|
||||||
|
|
||||||
# Automagic:
|
|
||||||
# glib-2.32 dep
|
|
||||||
# >=dev-libs/unittest++-1.5.1 (but not detected due to missing .pc)
|
|
||||||
DEPEND="
|
|
||||||
>=app-crypt/libsecret-0.8
|
|
||||||
>=app-text/gspell-1.6.0:=
|
|
||||||
>=dev-cpp/glibmm-2.62.0:2
|
|
||||||
>=dev-cpp/gtkmm-3.22.20:3.0
|
|
||||||
>=dev-libs/glib-2.32:2[dbus]
|
|
||||||
>=dev-libs/libxml2-2:2
|
|
||||||
dev-libs/libxslt
|
|
||||||
>=sys-apps/util-linux-2.16:=
|
|
||||||
>=x11-libs/gtk+-3.22.20:3
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
gnome-base/gsettings-desktop-schemas
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
app-text/docbook-xml-dtd:4.1.2
|
|
||||||
>=dev-util/intltool-0.35.0
|
|
||||||
dev-util/itstool
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=("${FILESDIR}"/${PN}-3.38.1-cstddef.patch)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Do not alter CFLAGS
|
|
||||||
sed 's/-DDEBUG -g/-DDEBUG/' -i configure.ac configure || die
|
|
||||||
|
|
||||||
gnome2_src_prepare
|
|
||||||
|
|
||||||
if has_version net-fs/wdfs; then
|
|
||||||
DOC_CONTENTS="You have net-fs/wdfs installed. app-misc/gnote will use it to
|
|
||||||
synchronize notes."
|
|
||||||
else
|
|
||||||
DOC_CONTENTS="Gnote can use net-fs/wdfs to synchronize notes.
|
|
||||||
If you want to use that functionality just emerge net-fs/wdfs.
|
|
||||||
Gnote will automatically detect that you did and let you use it."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
gnome2_src_configure \
|
|
||||||
--disable-static \
|
|
||||||
$(use_enable debug)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
gnome2_src_install
|
|
||||||
readme.gentoo_create_doc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_pkg_postinst
|
|
||||||
readme.gentoo_print_elog
|
|
||||||
}
|
|
@ -0,0 +1,105 @@
|
|||||||
|
From 391c081199f9cba5026460fbffba43c03602fa13 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Baier <jbaier@suse.cz>
|
||||||
|
Date: Mon, 22 Mar 2021 15:04:38 +0100
|
||||||
|
Subject: [PATCH] Switch from xdg to pyxdg
|
||||||
|
|
||||||
|
As both of them provides the xdg and cannot be installed at the same
|
||||||
|
time, pyxdg should be used as it is older, has more features (xdg is a
|
||||||
|
subset of pyxdg) and is more used. This change should resolve conflicts
|
||||||
|
like https://github.com/srstevenson/xdg/issues/35
|
||||||
|
|
||||||
|
Fixes #96
|
||||||
|
---
|
||||||
|
CHANGES.rst | 6 ++++++
|
||||||
|
Pipfile | 2 +-
|
||||||
|
goobook/config.py | 16 ++++++++--------
|
||||||
|
setup.py | 4 ++--
|
||||||
|
4 files changed, 17 insertions(+), 11 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/goobook/config.py b/goobook/config.py
|
||||||
|
index c948469..05589b1 100644
|
||||||
|
--- a/goobook/config.py
|
||||||
|
+++ b/goobook/config.py
|
||||||
|
@@ -10,7 +10,7 @@ import configparser
|
||||||
|
import logging
|
||||||
|
|
||||||
|
import oauth2client.client
|
||||||
|
-import xdg
|
||||||
|
+from xdg import BaseDirectory
|
||||||
|
|
||||||
|
from goobook.storage import Storage
|
||||||
|
|
||||||
|
@@ -61,8 +61,8 @@ def read_config(config_file=None):
|
||||||
|
if config_file: # config file explicitly given on the commandline
|
||||||
|
config_file = os.path.expanduser(config_file)
|
||||||
|
else: # search for goobookrc in XDG dirs and homedir
|
||||||
|
- config_files = [dir_ / "goobookrc" for dir_ in [xdg.XDG_CONFIG_HOME] +
|
||||||
|
- xdg.XDG_CONFIG_DIRS] + [LEGACY_CONFIG_FILE]
|
||||||
|
+ config_files = [dir_ / "goobookrc" for dir_ in [pathlib.Path(BaseDirectory.xdg_config_home)] +
|
||||||
|
+ [pathlib.Path(p) for p in BaseDirectory.xdg_config_dirs]] + [LEGACY_CONFIG_FILE]
|
||||||
|
log.debug("config file search path: %s", config_files)
|
||||||
|
for config_file_ in config_files:
|
||||||
|
if config_file_.exists():
|
||||||
|
@@ -93,7 +93,7 @@ def read_config(config_file=None):
|
||||||
|
if config.cache_filename: # If explicitly specified in config file
|
||||||
|
config.cache_filename = realpath(expanduser(config.cache_filename))
|
||||||
|
else: # search for goobook_cache in XDG dirs and homedir
|
||||||
|
- cache_files = [xdg.XDG_CACHE_HOME / "goobook_cache", LEGACY_CACHE_FILE]
|
||||||
|
+ cache_files = [pathlib.Path(BaseDirectory.xdg_cache_home) / "goobook_cache", LEGACY_CACHE_FILE]
|
||||||
|
log.debug("cache file search path: %s", cache_files)
|
||||||
|
for cache_file in cache_files:
|
||||||
|
cache_file = cache_file.resolve()
|
||||||
|
@@ -101,7 +101,7 @@ def read_config(config_file=None):
|
||||||
|
log.debug("found cache file: %s", cache_file)
|
||||||
|
break
|
||||||
|
else: # If there is none, create in XDG_CACHE_HOME
|
||||||
|
- cache_file = xdg.XDG_CACHE_HOME / "goobook_cache"
|
||||||
|
+ cache_file = pathlib.Path(BaseDirectory.xdg_cache_home) / "goobook_cache"
|
||||||
|
log.debug("no cache file found, will use %s", cache_file)
|
||||||
|
config.cache_filename = str(cache_file)
|
||||||
|
|
||||||
|
@@ -110,8 +110,8 @@ def read_config(config_file=None):
|
||||||
|
config.oauth_db_filename = realpath(expanduser(config.oauth_db_filename))
|
||||||
|
auth_file = pathlib.Path(config.oauth_db_filename)
|
||||||
|
else: # search for goobook_auth.json in XDG dirs and homedir
|
||||||
|
- auth_files = [dir_ / "goobook_auth.json" for dir_ in [xdg.XDG_DATA_HOME] +
|
||||||
|
- xdg.XDG_DATA_DIRS] + [LEGACY_AUTH_FILE]
|
||||||
|
+ auth_files = [dir_ / "goobook_auth.json" for dir_ in [pathlib.Path(BaseDirectory.xdg_data_home)] +
|
||||||
|
+ [pathlib.Path(p) for p in BaseDirectory.xdg_data_dirs]] + [LEGACY_AUTH_FILE]
|
||||||
|
log.debug("auth file search path: %s", auth_files)
|
||||||
|
for auth_file in auth_files:
|
||||||
|
auth_file = auth_file.resolve()
|
||||||
|
@@ -119,7 +119,7 @@ def read_config(config_file=None):
|
||||||
|
log.debug("found auth file: %s", auth_file)
|
||||||
|
break
|
||||||
|
else: # If there is none, create in XDG_DATA_HOME
|
||||||
|
- auth_file = xdg.XDG_DATA_HOME / "goobook_auth.json"
|
||||||
|
+ auth_file = pathlib.Path(BaseDirectory.xdg_data_home) / "goobook_auth.json"
|
||||||
|
log.debug("no auth file found, will use %s", auth_file)
|
||||||
|
config.oauth_db_filename = str(auth_file)
|
||||||
|
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index e2bed5c..4a6c764 100755
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -12,7 +12,7 @@ NEWS = open(os.path.join(HERE, 'CHANGES.rst')).read()
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
name='goobook',
|
||||||
|
- version='3.5.1',
|
||||||
|
+ version='3.6',
|
||||||
|
description='Search your google contacts from the command-line or mutt.',
|
||||||
|
long_description=README + '\n\n' + NEWS,
|
||||||
|
long_description_content_type="text/x-rst",
|
||||||
|
@@ -39,7 +39,7 @@ setuptools.setup(
|
||||||
|
'google-api-python-client>=1.7.12',
|
||||||
|
'simplejson>=3.16.0',
|
||||||
|
'oauth2client>=1.5.0,<5.0.0dev',
|
||||||
|
- 'xdg>=4.0.1'
|
||||||
|
+ 'pyxdg>=0.26'
|
||||||
|
],
|
||||||
|
extras_require={
|
||||||
|
},
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue