parent
284f7f050f
commit
b2579325e2
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST exo-1.5.0.tar.gz 3806818 BLAKE2B fe817962ebcebfbe37c0ec884b127144fca4d85bf985f3f6d98bf154a1bb17b49d8b7de7ece6fb71ae3b2793969fdae8bf0ad0f2031cc11943c714e27ef1a63d SHA512 3fab4c57d55d0058a4e1191d97ac04de45052e5f9c25bea0d4408df48c648e28804842d8989700daf36c6657023b99a63a4dd77a1991689abecdb11afa4e6a09
|
||||
DIST exo-1.5.1.tar.gz 3806840 BLAKE2B 4a99fd15049ece0349ce427beb923e8ecf7ad47980412a9aced9f7ccbb340c2e95d08045fd553967f5c428d46505ff48e4eccca442cb796d845c6174a68a8b5b SHA512 2db42813446e79a4bd06048706f4a775c435c33fe7f9bf82c260623c0b09ad28e9090cf11b52b5d1c7b2a4ef693af6cede0a2470b3d8213fb655c27cc6d1f58d
|
||||
DIST exo-1.6.0.tar.gz 3754205 BLAKE2B 9dc109ec33e9a11199f49adc45b388e1c3c62ebc060b300568fd42c5b6457b1c0373939b325c0b0be462dfacf3d842a7eca66a01efd8685d6f621401423448ed SHA512 8d00dd24ef8098c156e756d082c039e9753fefc11b415435725f536faa5fa8e4eb652ff8c0c82452ab84512f7491aee970d425910bfcb2529568589e5dc9c6d2
|
||||
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Command-line tool for everything at Exoscale: compute, storage, dns."
|
||||
HOMEPAGE="https://exoscale.github.io/cli"
|
||||
SRC_URI="https://github.com/exoscale/cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE=""
|
||||
DEPEND="dev-lang/go:="
|
||||
RESTRICT="strip"
|
||||
|
||||
S="${WORKDIR}/cli-${PV}"
|
||||
|
||||
src_compile() {
|
||||
go build -mod vendor -o ${PN} || die "build failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST keepassxc-2.4.3-src.tar.xz 3301944 BLAKE2B ba95d5d48049367e7d3c39b5fdc9fc9816dfe2b257530068f229d1b5bd4eb9c137607f63bcce0aac4bc67ed41ee00c0385be800720acfdc3920c44444cade180 SHA512 893f1d18ab8051143d29c568ba87adcc42a13d28d0c3a7af04396cd91d6724f8a98d76d2e20ca15138c4642ec060d48b9e957857251f3a0df6066af08cd0765d
|
||||
DIST keepassxc-2.5.0-src.tar.xz 6752776 BLAKE2B 90c82d6a3c8144797fc0cd379bbb7e6745cd4512a47bd04eb61b52205b6efe3ad8036a0f2c0012de4e710b6184526916ac4a4453bca90e18ccd9e6db1b86e9e3 SHA512 45f76491892ee5377eb803079ee6db2987d66e569c8c53ebc706cb51a4b8f37675801df484f03d486803de2675a3a46bed5d2b211ff7be0b83daf9c2f8607d00
|
||||
DIST keepassxc-2.5.1-src.tar.xz 6798880 BLAKE2B 428b5fb381c4a4c6f3b291ac203530a0ed07224edc10f55caaab243797a6c89cafcd08a9dcfcfad1dda2f73812397a4d7d6e26ef675627f29f7d4d7925a1aeb4 SHA512 5500a0e697758e7616754d1b612ad7a64485d9efa1aeb0c3714060db50ffd39ea0aaa0c42d86d17044b834f32e99172ea94bc2485d396a381c8e9212d8be8b37
|
||||
|
@ -0,0 +1,102 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake-utils xdg
|
||||
|
||||
DESCRIPTION="KeePassXC - KeePass Cross-platform Community Edition"
|
||||
HOMEPAGE="https://keepassxc.org"
|
||||
|
||||
if [[ "${PV}" != 9999 ]] ; then
|
||||
if [[ "${PV}" == *_beta* ]] ; then
|
||||
SRC_URI="https://github.com/keepassxreboot/keepassxc/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${P/_/-}"
|
||||
else
|
||||
#SRC_URI="https://github.com/keepassxreboot/keepassxc/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/keepassxreboot/keepassxc/releases/download/${PV}/${P}-src.tar.xz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/keepassxreboot/${PN}"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2.1 GPL-2 GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="autotype browser debug keeshare +network test yubikey"
|
||||
|
||||
RDEPEND="
|
||||
app-crypt/argon2:=
|
||||
dev-libs/libgcrypt:=
|
||||
>=dev-libs/libsodium-1.0.12:=
|
||||
dev-qt/qtconcurrent:5
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtsvg:5
|
||||
dev-qt/qtwidgets:5
|
||||
media-gfx/qrencode:=
|
||||
sys-libs/readline:0=
|
||||
sys-libs/zlib:=
|
||||
autotype? (
|
||||
dev-qt/qtx11extras:5
|
||||
x11-libs/libX11
|
||||
x11-libs/libXi
|
||||
x11-libs/libXtst
|
||||
)
|
||||
keeshare? ( dev-libs/quazip )
|
||||
yubikey? ( sys-auth/ykpers )
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-qt/linguist-tools:5
|
||||
dev-qt/qttest:5
|
||||
"
|
||||
|
||||
# Not a runtime dependency but still needed (see bug #667092)
|
||||
PDEPEND="
|
||||
x11-misc/xsel
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_prepare() {
|
||||
use test || \
|
||||
sed -e "/^find_package(Qt5Test/d" -i CMakeLists.txt || die
|
||||
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DWITH_GUI_TESTS=OFF
|
||||
-DWITH_TESTS="$(usex test)"
|
||||
-DWITH_XC_AUTOTYPE="$(usex autotype)"
|
||||
-DWITH_XC_BROWSER="$(usex browser)"
|
||||
-DWITH_XC_FDOSECRETS=ON
|
||||
-DWITH_XC_KEESHARE="$(usex keeshare)"
|
||||
-DWITH_XC_NETWORKING="$(usex network)"
|
||||
-DWITH_XC_SSHAGENT=ON
|
||||
-DWITH_XC_UPDATECHECK=OFF
|
||||
-DWITH_XC_YUBIKEY="$(usex yubikey)"
|
||||
)
|
||||
if [[ "${PV}" == *_beta* ]] ; then
|
||||
mycmakeargs+=( -DOVERRIDE_VERSION="${PV/_/-}" )
|
||||
fi
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
xdg_pkg_preinst
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
}
|
@ -0,0 +1,462 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
|
||||
|
||||
inherit autotools eutils linux-info python-any-r1 systemd
|
||||
|
||||
DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
|
||||
HOMEPAGE="https://www.rsyslog.com/"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git"
|
||||
|
||||
DOC_REPO_URI="https://github.com/rsyslog/${PN}-doc.git"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86"
|
||||
|
||||
SRC_URI="
|
||||
https://www.rsyslog.com/files/download/${PN}/${P}.tar.gz
|
||||
doc? ( https://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz )
|
||||
"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3 LGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="curl dbi debug doc elasticsearch +gcrypt gnutls jemalloc kafka kerberos kubernetes libressl mdblookup"
|
||||
IUSE+=" mongodb mysql normalize clickhouse omhttp omhttpfs omudpspoof openssl postgres"
|
||||
IUSE+=" rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd test usertools +uuid xxhash zeromq"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libfastjson-0.99.8:=
|
||||
>=dev-libs/libestr-0.1.9
|
||||
>=sys-libs/zlib-1.2.5
|
||||
curl? ( >=net-misc/curl-7.35.0 )
|
||||
dbi? ( >=dev-db/libdbi-0.8.3 )
|
||||
elasticsearch? ( >=net-misc/curl-7.35.0 )
|
||||
gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.3.1:= )
|
||||
kafka? ( >=dev-libs/librdkafka-0.9.0.99:= )
|
||||
kerberos? ( virtual/krb5 )
|
||||
kubernetes? ( >=net-misc/curl-7.35.0 )
|
||||
mdblookup? ( dev-libs/libmaxminddb:= )
|
||||
mongodb? ( >=dev-libs/mongo-c-driver-1.1.10:= )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
normalize? (
|
||||
>=dev-libs/liblognorm-2.0.3:=
|
||||
)
|
||||
clickhouse? ( >=net-misc/curl-7.35.0 )
|
||||
omhttpfs? ( >=net-misc/curl-7.35.0 )
|
||||
omudpspoof? ( >=net-libs/libnet-1.1.6 )
|
||||
postgres? ( >=dev-db/postgresql-8.4.20:= )
|
||||
rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0:= )
|
||||
redis? ( >=dev-libs/hiredis-0.11.0:= )
|
||||
relp? ( >=dev-libs/librelp-1.2.17:= )
|
||||
rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] )
|
||||
rfc5424hmac? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.8y:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
snmp? ( >=net-analyzer/net-snmp-5.7.2 )
|
||||
ssl? (
|
||||
gnutls? ( >=net-libs/gnutls-2.12.23:0= )
|
||||
openssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
)
|
||||
systemd? ( >=sys-apps/systemd-234 )
|
||||
uuid? ( sys-apps/util-linux:0= )
|
||||
xxhash? ( dev-libs/xxhash:= )
|
||||
zeromq? (
|
||||
>=net-libs/czmq-3.0.2
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/autoconf-archive-2015.02.24
|
||||
virtual/pkgconfig
|
||||
elibc_musl? ( sys-libs/queue-standalone )
|
||||
test? (
|
||||
>=dev-libs/liblogging-1.0.1[stdlog]
|
||||
jemalloc? ( <sys-libs/libfaketime-0.9.7 )
|
||||
!jemalloc? ( sys-libs/libfaketime )
|
||||
${PYTHON_DEPS}
|
||||
)"
|
||||
|
||||
REQUIRED_USE="
|
||||
kubernetes? ( normalize )
|
||||
ssl? ( || ( gnutls openssl ) )
|
||||
"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
|
||||
DEPEND+=" >=sys-devel/flex-2.5.39-r1"
|
||||
DEPEND+=" >=sys-devel/bison-2.4.3"
|
||||
DEPEND+=" >=dev-python/docutils-0.12"
|
||||
fi
|
||||
|
||||
CONFIG_CHECK="~INOTIFY_USER"
|
||||
WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!"
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
git-r3_fetch
|
||||
git-r3_checkout
|
||||
else
|
||||
unpack ${P}.tar.gz
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
local _EGIT_BRANCH=
|
||||
if [[ -n "${EGIT_BRANCH}" ]]; then
|
||||
# Cannot use rsyslog commits/branches for documentation repository
|
||||
_EGIT_BRANCH=${EGIT_BRANCH}
|
||||
unset EGIT_BRANCH
|
||||
fi
|
||||
|
||||
git-r3_fetch "${DOC_REPO_URI}"
|
||||
git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs
|
||||
|
||||
if [[ -n "${_EGIT_BRANCH}" ]]; then
|
||||
# Restore previous EGIT_BRANCH information
|
||||
EGIT_BRANCH=${_EGIT_BRANCH}
|
||||
fi
|
||||
else
|
||||
cd "${S}" || die "Cannot change dir into '${S}'"
|
||||
mkdir docs || die "Failed to create docs directory"
|
||||
cd docs || die "Failed to change dir into '${S}/docs'"
|
||||
unpack ${PN}-doc-${PV}.tar.gz
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# https://github.com/rsyslog/rsyslog/issues/3626
|
||||
sed -i \
|
||||
-e '\|^#!/bin/bash$|a exit 77' \
|
||||
tests/mmkubernetes-cache-expir*.sh \
|
||||
|| die "Failed to disabled known test failure mmkubernetes-cache-expir*.sh"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Maintainer notes:
|
||||
# * Guardtime support is missing because libgt isn't yet available
|
||||
# in portage.
|
||||
# * Hadoop's HDFS file system output module is currently not
|
||||
# supported in Gentoo because nobody is able to test it
|
||||
# (JAVA dependency).
|
||||
# * dev-libs/hiredis doesn't provide pkg-config (see #504614,
|
||||
# upstream PR 129 and 136) so we need to export HIREDIS_*
|
||||
# variables because rsyslog's build system depends on pkg-config.
|
||||
|
||||
if use redis; then
|
||||
export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis"
|
||||
export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include"
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
--disable-debug-symbols
|
||||
--disable-generate-man-pages
|
||||
--without-valgrind-testbench
|
||||
--disable-liblogging-stdlog
|
||||
$(use_enable test testbench)
|
||||
$(use_enable test libfaketime)
|
||||
$(use_enable test extended-tests)
|
||||
# Input Plugins without depedencies
|
||||
--enable-imdiag
|
||||
--enable-imfile
|
||||
--enable-impstats
|
||||
--enable-imptcp
|
||||
# Message Modificiation Plugins without depedencies
|
||||
--enable-mmanon
|
||||
--enable-mmaudit
|
||||
--enable-mmcount
|
||||
--enable-mmfields
|
||||
--enable-mmjsonparse
|
||||
--enable-mmpstrucdata
|
||||
--enable-mmrm1stspace
|
||||
--enable-mmsequence
|
||||
--enable-mmutf8fix
|
||||
# Output Modification Plugins without dependencies
|
||||
--enable-mail
|
||||
--enable-omprog
|
||||
--enable-omruleset
|
||||
--enable-omstdout
|
||||
--enable-omuxsock
|
||||
# Misc
|
||||
--enable-fmhash
|
||||
$(use_enable xxhash fmhash-xxhash)
|
||||
--enable-pmaixforwardedfrom
|
||||
--enable-pmciscoios
|
||||
--enable-pmcisconames
|
||||
--enable-pmlastmsg
|
||||
$(use_enable normalize pmnormalize)
|
||||
--enable-pmnull
|
||||
--enable-pmpanngfw
|
||||
--enable-pmsnare
|
||||
# DB
|
||||
$(use_enable dbi libdbi)
|
||||
$(use_enable mongodb ommongodb)
|
||||
$(use_enable mysql)
|
||||
$(use_enable postgres pgsql)
|
||||
$(use_enable redis omhiredis)
|
||||
# Debug
|
||||
$(use_enable debug)
|
||||
$(use_enable debug diagtools)
|
||||
$(use_enable debug valgrind)
|
||||
# Misc
|
||||
$(use_enable clickhouse)
|
||||
$(use_enable curl fmhttp)
|
||||
$(use_enable elasticsearch)
|
||||
$(use_enable gcrypt libgcrypt)
|
||||
$(use_enable jemalloc)
|
||||
$(use_enable kafka imkafka)
|
||||
$(use_enable kafka omkafka)
|
||||
$(use_enable kerberos gssapi-krb5)
|
||||
$(use_enable kubernetes mmkubernetes)
|
||||
$(use_enable normalize mmnormalize)
|
||||
$(use_enable mdblookup mmdblookup)
|
||||
$(use_enable omhttp)
|
||||
$(use_enable omhttpfs)
|
||||
$(use_enable omudpspoof)
|
||||
$(use_enable rabbitmq omrabbitmq)
|
||||
$(use_enable relp)
|
||||
$(use_enable rfc3195)
|
||||
$(use_enable rfc5424hmac mmrfc5424addhmac)
|
||||
$(use_enable snmp)
|
||||
$(use_enable snmp mmsnmptrapd)
|
||||
$(use_enable gnutls)
|
||||
$(use_enable openssl)
|
||||
$(use_enable systemd imjournal)
|
||||
$(use_enable systemd omjournal)
|
||||
$(use_enable usertools)
|
||||
$(use_enable uuid)
|
||||
$(use_enable zeromq imczmq)
|
||||
$(use_enable zeromq omczmq)
|
||||
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use doc && [[ "${PV}" == "9999" ]]; then
|
||||
einfo "Building documentation ..."
|
||||
local doc_dir="${S}/docs"
|
||||
cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
|
||||
sphinx-build -b html source build || die "Building documentation failed!"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local _has_increased_ulimit=
|
||||
|
||||
# Sometimes tests aren't executable (i.e. when added via patch)
|
||||
einfo "Adjusting permissions of test scripts ..."
|
||||
find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \
|
||||
die "Failed to adjust test scripts permission"
|
||||
|
||||
if ulimit -n 3072; then
|
||||
_has_increased_ulimit="true"
|
||||
fi
|
||||
|
||||
if ! emake --jobs 1 check; then
|
||||
eerror "Test suite failed! :("
|
||||
|
||||
if [[ -z "${_has_increased_ulimit}" ]]; then
|
||||
eerror "Probably because open file limit couldn't be set to 3072."
|
||||
fi
|
||||
|
||||
if has userpriv ${FEATURES}; then
|
||||
eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \
|
||||
"before you submit a bug report."
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=(
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
"${FILESDIR}"/README.gentoo
|
||||
)
|
||||
|
||||
use doc && local HTML_DOCS=( "${S}/docs/build/." )
|
||||
|
||||
default
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
||||
|
||||
keepdir /var/empty/dev
|
||||
keepdir /var/spool/${PN}
|
||||
keepdir /etc/ssl/${PN}
|
||||
keepdir /etc/${PN}.d
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf" ${PN}.conf
|
||||
|
||||
insinto /etc/rsyslog.d/
|
||||
newins "${FILESDIR}/50-default-r1.conf" 50-default.conf
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}-r1.logrotate" ${PN}
|
||||
|
||||
if use mysql; then
|
||||
insinto /usr/share/doc/${PF}/scripts/mysql
|
||||
doins plugins/ommysql/createDB.sql
|
||||
fi
|
||||
|
||||
if use postgres; then
|
||||
insinto /usr/share/doc/${PF}/scripts/pgsql
|
||||
doins plugins/ompgsql/createDB.sql
|
||||
fi
|
||||
|
||||
prune_libtool_files --modules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local advertise_readme=0
|
||||
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
# This is a new installation
|
||||
|
||||
advertise_readme=1
|
||||
|
||||
if use mysql || use postgres; then
|
||||
echo
|
||||
elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:"
|
||||
elog " /usr/share/doc/${PF}/scripts"
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
echo
|
||||
elog "To create a default CA and certificates for your server and clients, run:"
|
||||
elog " emerge --config =${PF}"
|
||||
elog "on your logging server. You can run it several times,"
|
||||
elog "once for each logging client. The client certificates will be signed"
|
||||
elog "using the CA certificate generated during the first run."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${advertise_readme} -gt 0 ]]; then
|
||||
# We need to show the README file location
|
||||
|
||||
echo ""
|
||||
elog "Please read"
|
||||
elog ""
|
||||
elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*"
|
||||
elog ""
|
||||
elog "for more details."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
if ! use ssl ; then
|
||||
einfo "There is nothing to configure for rsyslog unless you"
|
||||
einfo "used USE=ssl to build it."
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Make sure the certificates directory exists
|
||||
local CERTDIR="${EROOT}/etc/ssl/${PN}"
|
||||
if [[ ! -d "${CERTDIR}" ]]; then
|
||||
mkdir "${CERTDIR}" || die
|
||||
fi
|
||||
einfo "Your certificates will be stored in ${CERTDIR}"
|
||||
|
||||
# Create a default CA if needed
|
||||
if [[ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]]; then
|
||||
einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = Portage automated CA
|
||||
ca
|
||||
cert_signing_key
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-self-signed \
|
||||
--load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--outfile "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
# Create the server certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the SERVER you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for server ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_server
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
else
|
||||
einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation."
|
||||
fi
|
||||
|
||||
# Create a client certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for client ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_client
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
rm -f "${T}/${PF}.$$"
|
||||
|
||||
echo
|
||||
einfo "Here is the documentation on how to encrypt your log traffic:"
|
||||
einfo " https://www.rsyslog.com/doc/rsyslog_tls.html"
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
diff --git a/syslog-summary b/syslog-summary
|
||||
index abf6381..65608cb 100755
|
||||
--- a/syslog-summary
|
||||
+++ b/syslog-summary
|
||||
@@ -198,6 +198,7 @@ def summarize(filename, states):
|
||||
if DEBUG:
|
||||
print "Ignoring: %s" % line
|
||||
line = file.readline()
|
||||
+ continue
|
||||
|
||||
date, rest = split_date(line)
|
||||
if date:
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="Summarizes the contents of a syslog log file"
|
||||
HOMEPAGE="https://github.com/dpaleino/syslog-summary"
|
||||
SRC_URI="https://github.com/downloads/dpaleino/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-ignore-code.patch" )
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang -f syslog-summary
|
||||
|
||||
sed -i -e 's:python-magic:sys-apps/file[python]:' "syslog-summary" || die
|
||||
|
||||
# Sadly, the makefile is useless for us.
|
||||
rm Makefile || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin syslog-summary
|
||||
einstalldocs
|
||||
doman syslog-summary.1
|
||||
|
||||
insinto /etc/syslog-summary
|
||||
doins ignore.rules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "install sys-apps/file[python] to enable processing"
|
||||
elog "of gzip compressed logfiles"
|
||||
}
|
Binary file not shown.
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit autotools eutils flag-o-matic
|
||||
|
||||
MY_P=${PN}-1.14i-ac20050924p1
|
||||
|
||||
DESCRIPTION="Utility for creating and opening lzh archives"
|
||||
HOMEPAGE="http://lha.sourceforge.jp"
|
||||
SRC_URI="mirror://sourceforge.jp/${PN}/22231/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="lha"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~m68k-mint"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-file-list-from-stdin.patch
|
||||
|
||||
sed -i -e '/^AM_C_PROTOTYPES/d' configure.ac || die #423125
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags -DPROTOTYPES #423125
|
||||
|
||||
if [[ ${CHOST} == *-interix* ]]; then
|
||||
export ac_cv_header_inttypes_h=no
|
||||
export ac_cv_func_iconv=no
|
||||
fi
|
||||
|
||||
econf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
mandir="${EPREFIX}"/usr/share/man/ja \
|
||||
install
|
||||
|
||||
dodoc ChangeLog Hacking_of_LHa
|
||||
}
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils flag-o-matic
|
||||
|
||||
MY_P=${PN}-1.14i-ac20050924p1
|
||||
|
||||
DESCRIPTION="Utility for creating and opening lzh archives"
|
||||
HOMEPAGE="http://lha.sourceforge.jp"
|
||||
SRC_URI="mirror://sourceforge.jp/${PN}/22231/${MY_P}.tar.gz"
|
||||
LICENSE="lha"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~m68k-mint"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-file-list-from-stdin.patch
|
||||
"${FILESDIR}"/${P}-fix-getopt_long-declaration.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
epatch "${PATCHES[@]}"
|
||||
|
||||
sed -e '/^AM_C_PROTOTYPES/d' \
|
||||
-e 's/^AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \
|
||||
-i configure.ac || die #423125, 467544
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags -DPROTOTYPES #423125
|
||||
|
||||
if [[ ${CHOST} == *-interix* ]]; then
|
||||
export ac_cv_header_inttypes_h=no
|
||||
export ac_cv_func_iconv=no
|
||||
fi
|
||||
|
||||
econf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
mandir="${EPREFIX}"/usr/share/man/ja \
|
||||
install
|
||||
|
||||
dodoc ChangeLog Hacking_of_LHa
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
DIST eqe-1.3.0.tar.bz2 98707 BLAKE2B 1cae6eba7875251dd39d86cae1e4ee93fd7e94e239173a9a70941cf1bf9dc7e2ed364d2c9708ff7beb5ff897b1e8f487a1f384d8e10e4a29dbe799e6dbe6dceb SHA512 6a1ffc1e9f4ec72ebeeb402f35857050b8f64b6fa60d9658667bad70047300c3331a1ac1ea0f0541dca9814bf55ed6e7cdd85513a24625f7cdddf3005b0a5d3d
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=0
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="A small LaTeX editor that produces images, with drag and drop support"
|
||||
HOMEPAGE="http://rlehy.free.fr/"
|
||||
SRC_URI="http://rlehy.free.fr/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-perl/Gtk2
|
||||
dev-perl/File-Slurp
|
||||
dev-perl/Template-Toolkit
|
||||
media-gfx/imagemagick
|
||||
virtual/latex-base"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
# Fix install loction and conform to the Gentoo way
|
||||
epatch "${FILESDIR}"/${P}-Makefile.patch || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
}
|
@ -1,42 +0,0 @@
|
||||
diff -urN eqe-1.3.0.old/Makefile eqe-1.3.0/Makefile
|
||||
--- eqe-1.3.0.old/Makefile 2006-02-04 15:54:54.000000000 +0100
|
||||
+++ eqe-1.3.0/Makefile 2006-02-14 10:52:04.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
# Ronan Le Hy, 2005
|
||||
# eqe installer
|
||||
|
||||
-PREFIX=/usr/local
|
||||
+PREFIX=/usr
|
||||
DESTDIR=
|
||||
PACKAGE_NAME=eqe
|
||||
VERSION=1.3.0
|
||||
@@ -21,19 +21,17 @@
|
||||
pod2man doc/eqedit.pod $(DESTDIR)/$(PREFIX)/share/man/man1/eqedit.1
|
||||
gzip -f --best $(DESTDIR)/$(PREFIX)/share/man/man1/eqe.1
|
||||
gzip -f --best $(DESTDIR)/$(PREFIX)/share/man/man1/eqedit.1
|
||||
- mkdir -p $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/
|
||||
- cp changelog $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/changelog
|
||||
- gzip -f --best $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/changelog
|
||||
- cp README $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/README
|
||||
- gzip -f --best $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/README
|
||||
- cp FAQ $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/FAQ
|
||||
- gzip -f --best $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/FAQ
|
||||
- cp TODO $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/TODO
|
||||
- cp copyright $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/copyright
|
||||
- cp GPL.txt $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/GPL.txt
|
||||
+ mkdir -p $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/
|
||||
+ cp changelog $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/changelog
|
||||
+ gzip -f --best $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/changelog
|
||||
+ cp README $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/README
|
||||
+ gzip -f --best $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/README
|
||||
+ cp FAQ $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/FAQ
|
||||
+ gzip -f --best $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/FAQ
|
||||
+ cp TODO $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/TODO
|
||||
+ gzip -f --best $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/TODO
|
||||
chmod 644 $(DESTDIR)/$(PREFIX)/share/man/man1/eqe.1.gz $(DESTDIR)/$(PREFIX)/share/man/man1/eqedit.1.gz
|
||||
- chmod 644 $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/README.gz $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/changelog.gz $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/TODO $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/copyright
|
||||
- chmod 644 $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)/GPL.txt
|
||||
+ chmod 644 $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/README.gz $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/changelog.gz $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/TODO.gz $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE_NAME)-$(VERSION)/FAQ.gz
|
||||
|
||||
install-templates:
|
||||
mkdir -p $(DESTDIR)/$(PREFIX)/share/eqe/
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>tex@gentoo.org</email>
|
||||
<name>Gentoo TeX Project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Binary file not shown.
Binary file not shown.
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=0
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Text to Morse Code converter"
|
||||
HOMEPAGE="http://cwtext.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE=""
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
# change install directory to ${S}
|
||||
sed -i -e "/^PREFIX/ s:=.*:=\"${S}\":" makefile || \
|
||||
die "sed makefile failed"
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-0.94-asneeded.patch
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin cwtext cwpcm cwmm || die "dobin failed"
|
||||
|
||||
dodoc Changes README TODO
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
DIST libbegemot-1.11.tar.gz 266310 BLAKE2B c76b2b5e6fe6af0b55da779d6a98d52f1f519b717472338ce17bd2fd709bf397b3801782e1be89dbe2ba289ba9fe19c5527f544f1709770f019f2ad745ffbbd1 SHA512 ea5b0b548ad4240aa945ee9376e13a8ec5848bd9675f7fdc57c3daf1e79735e442c44a550430617a1048d5a0cef06adc9b48d45f42cca9f6049e3f3d0571e627
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit libtool
|
||||
|
||||
DESCRIPTION="begemot utility function library"
|
||||
HOMEPAGE="http://people.freebsd.org/~harti/"
|
||||
SRC_URI="http://people.freebsd.org/~harti/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
Binary file not shown.
Binary file not shown.
@ -1,2 +0,0 @@
|
||||
DIST cgkit-2.0.0-py2k.tar.gz 885682 BLAKE2B f32eb8f05197ae44b3a1d5bf734d779c6e7f53af526f1686348e977f55bc584f565eea9e3831f562dae6aa6715d732465e0d37b07746065e965f945ee1152d18 SHA512 44e57cafc3ba3aa824c44fe4ad04f350dfe053cafa09523acab220e8a5db45dde042b4fcc3e444dc3c248a43ddd94faac6875f579c2063e6c8feba7841472f7c
|
||||
DIST cgkit-2.0.0-py3k.tar.gz 885012 BLAKE2B fe48d57ec01ee286c0974b53e088f74db73a19d6cdf9ebde43f3190a46994c803f870f2546583cf6d4bce984895469f61a82e99e6bf98da77443b3857b70b60e SHA512 0c721d728e2cacb3a5518bfdf49810793a7e4a7efdec54a95d9b8b64099996452a08193c90e1b76f57852c3593bf07e4361ba20c17ea3565413d4997e9cf6c2e
|
@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_5} )
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
inherit distutils-r1 scons-utils toolchain-funcs
|
||||
|
||||
MY_P="${P/_/}"
|
||||
|
||||
DESCRIPTION="Python library for creating 3D images"
|
||||
HOMEPAGE="http://cgkit.sourceforge.net"
|
||||
SRC_URI="
|
||||
$(python_gen_cond_dep mirror://sourceforge/${PN}/${PN}/${P}/${P}-py2k.tar.gz 'python2*')
|
||||
$(python_gen_cond_dep mirror://sourceforge/${PN}/${PN}/${P}/${P}-py3k.tar.gz 'python3*')"
|
||||
|
||||
LICENSE="LGPL-2.1 MPL-1.1 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE="3ds"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/boost-1.48[python,${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/pyprotocols[${PYTHON_USEDEP}]' 'python2*')
|
||||
dev-python/pyopengl[${PYTHON_USEDEP}]
|
||||
dev-python/pygame[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
3ds? ( ~media-libs/lib3ds-1.3.0 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
cgkit_unpack() {
|
||||
local tarball
|
||||
if python_is_python3; then
|
||||
tarball=${P}-py3k.tar.gz
|
||||
else
|
||||
tarball=${P}-py2k.tar.gz
|
||||
fi
|
||||
mkdir "${BUILD_DIR}" || die
|
||||
tar -C "${BUILD_DIR}" -x --strip-components 1 -f "${DISTDIR}/${tarball}" || die
|
||||
}
|
||||
python_foreach_impl cgkit_unpack
|
||||
mkdir "${S}" || die
|
||||
}
|
||||
|
||||
python_prepare() {
|
||||
eapply \
|
||||
"${FILESDIR}"/${PN}-2.0.0-fix-build-system.patch \
|
||||
"${FILESDIR}"/${PN}-2.0.0-fix-c++14.patch
|
||||
if python_is_python3; then
|
||||
eapply "${FILESDIR}"/${PN}-py3k-pillow.patch
|
||||
else
|
||||
eapply "${FILESDIR}"/${PN}-py2k-pillow.patch
|
||||
fi
|
||||
|
||||
cp config_template.cfg config.cfg || die
|
||||
cat >> config.cfg <<- _EOF_ || die
|
||||
BOOST_LIB = 'boost_python-${EPYTHON#python}'
|
||||
LIBS += ['GL', 'GLU', 'glut']
|
||||
LIB3DS_AVAILABLE = $(usex 3ds True False)
|
||||
_EOF_
|
||||
|
||||
# Remove invalid test
|
||||
rm -f unittests/test_pointcloud.py || die
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
tc-export AR CXX
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
pushd supportlib >/dev/null || die
|
||||
CXXFLAGS="${CXXFLAGS} -fPIC" escons
|
||||
popd >/dev/null || die
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
pushd unittests >/dev/null || die
|
||||
mkdir tmp || die
|
||||
"${EPYTHON}" all.py || die "Testing failed with ${EPYTHON}"
|
||||
popd >/dev/null || die
|
||||
}
|
@ -1,92 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
inherit distutils-r1 scons-utils toolchain-funcs
|
||||
|
||||
MY_P="${P/_/}"
|
||||
|
||||
DESCRIPTION="Python library for creating 3D images"
|
||||
HOMEPAGE="http://cgkit.sourceforge.net"
|
||||
SRC_URI="
|
||||
$(python_gen_cond_dep mirror://sourceforge/${PN}/${PN}/${P}/${P}-py2k.tar.gz 'python2*')
|
||||
$(python_gen_cond_dep mirror://sourceforge/${PN}/${PN}/${P}/${P}-py3k.tar.gz 'python3*')"
|
||||
|
||||
LICENSE="LGPL-2.1 MPL-1.1 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE="3ds"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/boost-1.48[python,${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/pyprotocols[${PYTHON_USEDEP}]' 'python2*')
|
||||
dev-python/pyopengl[${PYTHON_USEDEP}]
|
||||
dev-python/pygame[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
3ds? ( ~media-libs/lib3ds-1.3.0 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
cgkit_unpack() {
|
||||
local tarball
|
||||
if python_is_python3; then
|
||||
tarball=${P}-py3k.tar.gz
|
||||
else
|
||||
tarball=${P}-py2k.tar.gz
|
||||
fi
|
||||
mkdir "${BUILD_DIR}" || die
|
||||
tar -C "${BUILD_DIR}" -x --strip-components 1 -f "${DISTDIR}/${tarball}" || die
|
||||
}
|
||||
python_foreach_impl cgkit_unpack
|
||||
mkdir "${S}" || die
|
||||
}
|
||||
|
||||
python_prepare() {
|
||||
eapply \
|
||||
"${FILESDIR}"/${PN}-2.0.0-fix-build-system.patch \
|
||||
"${FILESDIR}"/${PN}-2.0.0-fix-c++14.patch
|
||||
if python_is_python3; then
|
||||
eapply "${FILESDIR}"/${PN}-py3k-pillow.patch
|
||||
else
|
||||
eapply "${FILESDIR}"/${PN}-py2k-pillow.patch
|
||||
fi
|
||||
|
||||
local boostpy_ver="${EPYTHON#python}"
|
||||
if has_version ">=dev-libs/boost-1.70"; then
|
||||
boostpy_ver="${boostpy_ver/\.}"
|
||||
else
|
||||
boostpy_ver="-${boostpy_ver}"
|
||||
fi
|
||||
|
||||
cp config_template.cfg config.cfg || die
|
||||
cat >> config.cfg <<- _EOF_ || die
|
||||
BOOST_LIB = 'boost_python${boostpy_ver}'
|
||||
LIBS += ['GL', 'GLU', 'glut']
|
||||
LIB3DS_AVAILABLE = $(usex 3ds True False)
|
||||
_EOF_
|
||||
|
||||
# Remove invalid test
|
||||
rm -f unittests/test_pointcloud.py || die
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
tc-export AR CXX
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
pushd supportlib >/dev/null || die
|
||||
CXXFLAGS="${CXXFLAGS} -fPIC" escons
|
||||
popd >/dev/null || die
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
pushd unittests >/dev/null || die
|
||||
mkdir tmp || die
|
||||
"${EPYTHON}" all.py || die "Testing failed with ${EPYTHON}"
|
||||
popd >/dev/null || die
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
Make scons respect user variables
|
||||
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -214,7 +214,7 @@
|
||||
|
||||
# The following variables are used to customize the compile process
|
||||
|
||||
-INC_DIRS = []
|
||||
+INC_DIRS = ['/usr/include']
|
||||
LIB_DIRS = []
|
||||
LIBS = []
|
||||
CC_ARGS = []
|
||||
--- a/supportlib/SConstruct
|
||||
+++ b/supportlib/SConstruct
|
||||
@@ -30,19 +30,11 @@
|
||||
# Add the local 'include' directory...
|
||||
env.Append(CPPPATH = ["include"])
|
||||
|
||||
-# Do platform specific stuff...
|
||||
-if sys.platform=="win32":
|
||||
- env.Append(CCFLAGS = ["/GX", "/GR", "/MD", "/W3"])
|
||||
- env.Append(CPPDEFINES = ["WIN32", "_LIB"])
|
||||
-elif sys.platform=="darwin":
|
||||
- env.Append(CCFLAGS = ["-arch", "x86_64"])
|
||||
- env.Append(CCFLAGS = ["-arch", "i386"])
|
||||
-# env.Append(CCFLAGS = ["-arch", "ppc"])
|
||||
- env.Append(CPPPATH = ["/opt/local/include"])
|
||||
- env.Append(CCFLAGS = ["-fPIC"])
|
||||
-else:
|
||||
- env.Append(CPPPATH = ["/opt/local/include"])
|
||||
- env.Append(CCFLAGS = ["-fPIC"])
|
||||
+env.Append(CPPPATH = ['/usr/include'])
|
||||
+env['AR'] = os.environ.get('AR', 'ar')
|
||||
+env['CXX'] = os.environ.get('CXX', 'g++')
|
||||
+env['CXXFLAGS'] = os.environ.get('CXXFLAGS', '-fPIC')
|
||||
+env['CPPFLAGS'] = os.environ.get('CPPFLAGS', '')
|
||||
|
||||
# Setup the help message
|
||||
Help(vars.GenerateHelpText(env))
|
@ -1,33 +0,0 @@
|
||||
Fix building in C++14 mode
|
||||
|
||||
--- a/wrappers/py_geoms1.cpp
|
||||
+++ b/wrappers/py_geoms1.cpp
|
||||
@@ -142,7 +142,7 @@
|
||||
string name = it->first;
|
||||
const PrimVarInfo& info = it->second;
|
||||
it++;
|
||||
- return make_tuple(name, info.storage, info.type, info.multiplicity);
|
||||
+ return boost::python::make_tuple(name, info.storage, info.type, info.multiplicity);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
- return make_tuple(name, info->storage, info->type, info->multiplicity);
|
||||
+ return boost::python::make_tuple(name, info->storage, info->type, info->multiplicity);
|
||||
}
|
||||
}
|
||||
|
||||
--- a/wrappers/py_slot.h
|
||||
+++ b/wrappers/py_slot.h
|
||||
@@ -40,7 +40,7 @@
|
||||
// .def("onValueChanged", &Slot<double>::onValueChanged, &SlotWrapper<double>::base_onValueChanged)
|
||||
|
||||
// This macro can be used to create a new Python array slot type
|
||||
-#define ARRAYSLOT(sname,stype) class_<_ArraySlotIterator<stype> >("_"sname"_Iterator", init<ArraySlot<stype>&>()) \
|
||||
+#define ARRAYSLOT(sname,stype) class_<_ArraySlotIterator<stype> >("_" sname "_Iterator", init<ArraySlot<stype>&>()) \
|
||||
.def("__iter__", &_ArraySlotIterator<stype>::__iter__) \
|
||||
.def("next", &_ArraySlotIterator<stype>::next) \
|
||||
; \
|
@ -1,82 +0,0 @@
|
||||
From 83cb693954f6f56e50a1aa90d935e94e9e8bac8e Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gilbert <floppym@gentoo.org>
|
||||
Date: Wed, 5 Jun 2013 20:39:05 -0400
|
||||
Subject: [PATCH] Update PIL imports for compatibility with Pillow
|
||||
|
||||
---
|
||||
cgkit/_Image.py | 2 +-
|
||||
cgkit/_ImageDraw.py | 2 +-
|
||||
cgkit/riutil.py | 2 +-
|
||||
utilities/checkenv.py | 2 +-
|
||||
utilities/postbake.py | 3 ++-
|
||||
5 files changed, 6 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/cgkit/_Image.py b/cgkit/_Image.py
|
||||
index 7266d4b..0122cd2 100644
|
||||
--- a/cgkit/_Image.py
|
||||
+++ b/cgkit/_Image.py
|
||||
@@ -38,7 +38,7 @@
|
||||
try:
|
||||
|
||||
# Try to import the original module...
|
||||
- from Image import *
|
||||
+ from PIL.Image import *
|
||||
|
||||
except ImportError:
|
||||
|
||||
diff --git a/cgkit/_ImageDraw.py b/cgkit/_ImageDraw.py
|
||||
index dfd6cf8..d1d3cff 100644
|
||||
--- a/cgkit/_ImageDraw.py
|
||||
+++ b/cgkit/_ImageDraw.py
|
||||
@@ -38,7 +38,7 @@
|
||||
try:
|
||||
|
||||
# Try to import the original module...
|
||||
- from ImageDraw import *
|
||||
+ from PIL.ImageDraw import *
|
||||
|
||||
except ImportError:
|
||||
|
||||
diff --git a/cgkit/riutil.py b/cgkit/riutil.py
|
||||
index 301e0f6..ae373c3 100644
|
||||
--- a/cgkit/riutil.py
|
||||
+++ b/cgkit/riutil.py
|
||||
@@ -38,7 +38,7 @@ import types, sys, getpass
|
||||
from cgtypes import vec3
|
||||
from ri import *
|
||||
try:
|
||||
- import Image
|
||||
+ from PIL import Image
|
||||
_PIL_installed = 1
|
||||
except ImportError:
|
||||
_PIL_installed = 0
|
||||
diff --git a/utilities/checkenv.py b/utilities/checkenv.py
|
||||
index b95dbf7..c93235e 100644
|
||||
--- a/utilities/checkenv.py
|
||||
+++ b/utilities/checkenv.py
|
||||
@@ -96,7 +96,7 @@ visualize them. You can obtain PyOpenGL at http://pyopengl.sourceforge.net/
|
||||
# Check PIL
|
||||
chkmsg("PIL")
|
||||
try:
|
||||
- import Image
|
||||
+ from PIL import Image
|
||||
print "is installed"
|
||||
except:
|
||||
print "missing"
|
||||
diff --git a/utilities/postbake.py b/utilities/postbake.py
|
||||
index cadd11d..74f894a 100644
|
||||
--- a/utilities/postbake.py
|
||||
+++ b/utilities/postbake.py
|
||||
@@ -34,7 +34,8 @@
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
-import sys, optparse, Image
|
||||
+import sys, optparse
|
||||
+from PIL import Image
|
||||
|
||||
# shift
|
||||
def shift(img, dx, dy):
|
||||
--
|
||||
1.8.2.1
|
||||
|
@ -1,82 +0,0 @@
|
||||
From 1953081269ce1cfdf29023a8590db40312c43194 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gilbert <floppym@gentoo.org>
|
||||
Date: Wed, 5 Jun 2013 20:39:05 -0400
|
||||
Subject: [PATCH] Update PIL imports for compatibility with Pillow
|
||||
|
||||
---
|
||||
cgkit/_Image.py | 2 +-
|
||||
cgkit/_ImageDraw.py | 2 +-
|
||||
cgkit/riutil.py | 2 +-
|
||||
utilities/checkenv.py | 2 +-
|
||||
utilities/postbake.py | 3 ++-
|
||||
5 files changed, 6 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/cgkit/_Image.py b/cgkit/_Image.py
|
||||
index 7266d4b..0122cd2 100644
|
||||
--- a/cgkit/_Image.py
|
||||
+++ b/cgkit/_Image.py
|
||||
@@ -38,7 +38,7 @@
|
||||
try:
|
||||
|
||||
# Try to import the original module...
|
||||
- from Image import *
|
||||
+ from PIL.Image import *
|
||||
|
||||
except ImportError:
|
||||
|
||||
diff --git a/cgkit/_ImageDraw.py b/cgkit/_ImageDraw.py
|
||||
index dfd6cf8..d1d3cff 100644
|
||||
--- a/cgkit/_ImageDraw.py
|
||||
+++ b/cgkit/_ImageDraw.py
|
||||
@@ -38,7 +38,7 @@
|
||||
try:
|
||||
|
||||
# Try to import the original module...
|
||||
- from ImageDraw import *
|
||||
+ from PIL.ImageDraw import *
|
||||
|
||||
except ImportError:
|
||||
|
||||
diff --git a/cgkit/riutil.py b/cgkit/riutil.py
|
||||
index b51f192..ae0fba2 100644
|
||||
--- a/cgkit/riutil.py
|
||||
+++ b/cgkit/riutil.py
|
||||
@@ -38,7 +38,7 @@ import types, sys, getpass
|
||||
from .cgtypes import vec3
|
||||
from .ri import *
|
||||
try:
|
||||
- import Image
|
||||
+ from PIL import Image
|
||||
_PIL_installed = 1
|
||||
except ImportError:
|
||||
_PIL_installed = 0
|
||||
diff --git a/utilities/checkenv.py b/utilities/checkenv.py
|
||||
index dda600f..8b6f74e 100644
|
||||
--- a/utilities/checkenv.py
|
||||
+++ b/utilities/checkenv.py
|
||||
@@ -96,7 +96,7 @@ visualize them. You can obtain PyOpenGL at http://pyopengl.sourceforge.net/
|
||||
# Check PIL
|
||||
chkmsg("PIL")
|
||||
try:
|
||||
- import Image
|
||||
+ from PIL import Image
|
||||
print("is installed")
|
||||
except:
|
||||
print("missing")
|
||||
diff --git a/utilities/postbake.py b/utilities/postbake.py
|
||||
index 90e3140..27728c2 100644
|
||||
--- a/utilities/postbake.py
|
||||
+++ b/utilities/postbake.py
|
||||
@@ -34,7 +34,8 @@
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
-import sys, optparse, Image
|
||||
+import sys, optparse
|
||||
+from PIL import Image
|
||||
|
||||
# shift
|
||||
def shift(img, dx, dy):
|
||||
--
|
||||
1.8.2.1
|
||||
|
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="3ds">Enable support for importing 3D Studio models</flag>
|
||||
</use>
|
||||
<longdescription>Python library for creating 3D images</longdescription>
|
||||
<longdescription lang="ja">
|
||||
3D画像を作成するためのPython言語ライブラリです。
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">cgkit</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +1,2 @@
|
||||
DIST deprecated-1.2.6.gh.tar.gz 5043633 BLAKE2B cc72838dc772db62ca75637268d09cbab4c9acb84b42bd1d2d76397d43b81781cfcef075a9a6e6ca2ab55eda19acae95cdfbdd820c1363e7ea4841fb1cb61b7b SHA512 fcef322c6d9c317081dae365d469d4b26b0d23d8290e7aa0ca18592fb098ae7f535cb5e898cc81e5c734e7e211c847cdd9d5430c1999a4b9612f30934243ee9e
|
||||
DIST deprecated-1.2.7.gh.tar.gz 5044697 BLAKE2B 5e295ce21a3e536e08b6e57d78d3682b31e9041f4c53d97c06af03f8272a5b729c892449210471b80500ce499fe9e6af22df8ac0aeec5ac774fd74590ebdfc3b SHA512 da99a22410fdcc2a96cb5b15c489971078ce34e251406ae3dce6b3f97e284a4f09aaf1c5702407abe85a94cb6c8d9237f373a3096d6182e4a9cd1990be2817f1
|
||||
|
@ -0,0 +1,20 @@
|
||||
# Copyright 2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python @deprecated decorator to deprecate old API"
|
||||
HOMEPAGE="https://github.com/tantale/deprecated"
|
||||
SRC_URI="https://github.com/tantale/deprecated/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="dev-python/wrapt[${PYTHON_USEDEP}]"
|
||||
BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
distutils_enable_tests pytest
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue