parent
7e337ade75
commit
2067acb8fa
@ -1,2 +1,3 @@
|
||||
DIST mcollective-2.10.0.tar.gz 1509016 SHA256 0a93c7c1c0f10d3e73ab3f255a542e170f7f9eed13ad56cc5cef883bac2e27b0 SHA512 021d52d299adba05c1960a242d7815b5fc3f763163c227d7b11b1bc48db40c147b7ab281a29f60c54f8049acfd8a3489ff837e8cf4a590e1450b2c53435124b1 WHIRLPOOL 67a39f6c82e81da1a90e8a2b02aa4101bcf821f833669715a701c075505501bc4706c68d1ed000d5a6c99c0258b16a2711a470f7145cc452c0780ca588c8ca7b
|
||||
DIST mcollective-2.8.8.tar.gz 1500476 SHA256 503b26cb0beeb505bf9cd2abbb8724c67bc743ffff4fbaddc321e2a4d663b133 SHA512 fad2a277bdcb06adb56e87f545c4b85a4b8039263e7230c7b386c561a04d6f3bf80923733e1087c8090b43da734d6b7efe02e52a757191c3cb3ecab50cc97bb6 WHIRLPOOL 3e7a52b1ce3b705ed6f705067a4ab900a2faa226d19a36f106e2c2c1e4c4fc3e631630c04012ca456f0230f8fcb47dd5bd97f1d2e849af6edde67fac129301d4
|
||||
DIST mcollective-2.9.1.tar.gz 1504607 SHA256 89bc9fbd72846b22220074a57d19bbfac56473649078fc3ac8182cc728159249 SHA512 29fedacb61084e1952afd3b9deb302abde3e763d13630d85dc70f78b0853f5b353fb44ccbd00e48e5864d04bf2c7568d7cbe21b06af31e1da72e52aeef3c04cf WHIRLPOOL 8affee96fa344d12b34b5a4e120029ab315133df6fd6cd456d840ab608ceb2027b9411a6a1a74bc5b9d0b029968255a926de888b7a2a1183d1c7aed195f65f7a
|
||||
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
inherit ruby-ng
|
||||
|
||||
DESCRIPTION="Framework to build server orchestration or parallel job execution
|
||||
systems"
|
||||
HOMEPAGE="http://marionette-collective.org/"
|
||||
SRC_URI="https://github.com/puppetlabs/marionette-collective/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/all/marionette-collective-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc +client"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="dev-ruby/stomp"
|
||||
|
||||
src_compile() {
|
||||
einfo "nothing to compile"
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
cd "marionette-collective-${PV}"
|
||||
doruby -r lib/*
|
||||
insinto /usr/share/mcollective
|
||||
use client && dosbin bin/mco
|
||||
dosbin bin/mcollectived
|
||||
if use doc ; then
|
||||
dohtml -r doc/*
|
||||
insinto /usr/share/doc/${P}/ext
|
||||
doins -r ext/*
|
||||
fi
|
||||
newinitd "${FILESDIR}"/mcollectived.initd mcollectived
|
||||
insinto /etc/mcollective
|
||||
cd etc
|
||||
for cfg in *.dist ; do
|
||||
newins "${cfg}" "${cfg%%.dist}"
|
||||
sed -i -e "s:^libdir.*:libdir = /usr/share/mcollective/plugins:" \
|
||||
"${D}"/etc/mcollective/${cfg%%.dist} || die "sed failed"
|
||||
done
|
||||
insinto /etc/mcollective/plugin.d
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "Mcollective requires a stomp server installed and functioning before"
|
||||
einfo "you can use it. The recommended server to use is ActiveMQ [1] but"
|
||||
einfo "any other stomp compatible server should work."
|
||||
einfo
|
||||
einfo "It is recommended you read the \'getting started\' guide [2] if this"
|
||||
einfo "is a new installation"
|
||||
einfo
|
||||
einfo "[1] http://activemq.apache.org/"
|
||||
einfo "[2] https://code.google.com/p/mcollective/wiki/GettingStarted"
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST BackupPC-3.3.0.tar.gz 554155 SHA256 8a9c1b6faa4502b4c40617be97e806813815d9e22544854d99983c3da7c1f69b SHA512 67ec1ca4d22ab1e81f9c0f409c758347a6c772e3d1aa39c93207f9d328176ac7b4e679d0b03972fc5870c37dde0480d28c61ae19975d54e144235ea0e84e9901 WHIRLPOOL 23a9ce5dd600843cea72354e1afe595e3779f883839f8d3feca7f1355ed20048026090097ddfbcf394632672b42bef4884bc6661203542d6fe2c6bc2e8ad7b96
|
||||
DIST BackupPC-3.3.1.tar.gz 556461 SHA256 c9cc4aec28a7474a68d40f4bc460ff15140e05c96900c7f98ff3ef06c4f6ae4c SHA512 b6bb9de3103c5062098d80755055b7461ae9133a4a46a66b3d0af89d081086571694db1898e7d85880defa15b030bad522812116ae5361c0fbde90b877d139c6 WHIRLPOOL 1d895f530932fc1287cde9db584befc6ca0850b5841cc4e60927442d0db662ec092bda4efa4953650d3bfa13deb6e9fafa25c10f82e19b39c67969bb4e143bac
|
||||
|
@ -1,223 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils systemd webapp user
|
||||
|
||||
MY_P="BackupPC-${PV}"
|
||||
|
||||
DESCRIPTION="A high-performance system for backing up computers to a server's disk"
|
||||
HOMEPAGE="http://backuppc.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 ~arm x86"
|
||||
|
||||
IUSE="rss samba"
|
||||
|
||||
DEPEND="dev-lang/perl
|
||||
app-admin/apache-tools
|
||||
app-admin/makepasswd"
|
||||
RDEPEND="${DEPEND}
|
||||
virtual/perl-IO-Compress
|
||||
dev-perl/Archive-Zip
|
||||
dev-perl/libwww-perl
|
||||
>=app-arch/tar-1.13.20
|
||||
app-arch/par2cmdline
|
||||
app-arch/gzip
|
||||
app-arch/bzip2
|
||||
virtual/mta
|
||||
www-apache/mod_perl
|
||||
www-servers/apache
|
||||
net-misc/rsync
|
||||
>=dev-perl/File-RsyncP-0.68
|
||||
rss? ( dev-perl/XML-RSS )
|
||||
samba? ( net-fs/samba )"
|
||||
|
||||
WEBAPP_MANUAL_SLOT="yes"
|
||||
SLOT="0"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
CONFDIR="/etc/BackupPC"
|
||||
DATADIR="/var/lib/backuppc"
|
||||
LOGDIR="/var/log/BackupPC"
|
||||
|
||||
pkg_setup() {
|
||||
webapp_pkg_setup
|
||||
enewgroup backuppc
|
||||
enewuser backuppc -1 /bin/bash /var/lib/backuppc backuppc
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/3.3.0/01-fix-configure.pl.patch"
|
||||
epatch "${FILESDIR}/3.3.0/02-fix-config.pl-formatting.patch"
|
||||
epatch "${FILESDIR}/3.3.0/03-reasonable-config.pl-defaults.patch"
|
||||
|
||||
# Fix the documentation location in the CGI interface
|
||||
epatch "${FILESDIR}/3.2.0/04-add-docdir-marker.patch"
|
||||
sed -i "s+__DOCDIR__+/usr/share/doc/${PF}+" "lib/BackupPC/CGI/View.pm"
|
||||
|
||||
epatch "${FILESDIR}/3.2.0/05-nicelevel.patch"
|
||||
sed -i -e 's/--chuid ${USER}//' "${S}"/init.d/src/gentoo-backuppc || die "Failed to fix the init script"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
webapp_src_preinst
|
||||
|
||||
local myconf
|
||||
myconf=""
|
||||
if use samba ; then
|
||||
myconf="--bin-path smbclient=$(type -p smbclient)"
|
||||
myconf="${myconf} --bin-path nmblookup=$(type -p nmblookup)"
|
||||
fi
|
||||
|
||||
/usr/bin/env perl ./configure.pl \
|
||||
--batch \
|
||||
--bin-path perl=$(type -p perl) \
|
||||
--bin-path tar=$(type -p tar) \
|
||||
--bin-path rsync=$(type -p rsync) \
|
||||
--bin-path ping=$(type -p ping) \
|
||||
--bin-path df=$(type -p df) \
|
||||
--bin-path ssh=$(type -p ssh) \
|
||||
--bin-path sendmail=$(type -p sendmail) \
|
||||
--bin-path hostname=$(type -p hostname) \
|
||||
--bin-path gzip=$(type -p gzip) \
|
||||
--bin-path bzip2=$(type -p bzip2) \
|
||||
--config-dir ${CONFDIR} \
|
||||
--install-dir /usr \
|
||||
--data-dir ${DATADIR} \
|
||||
--hostname $(hostname) \
|
||||
--uid-ignore \
|
||||
--dest-dir "${D%/}" \
|
||||
--html-dir ${MY_HTDOCSDIR}/image \
|
||||
--html-dir-url /image \
|
||||
--cgi-dir ${MY_HTDOCSDIR} \
|
||||
--fhs \
|
||||
${myconf} || die "failed the configure.pl script"
|
||||
|
||||
ebegin "Installing documentation"
|
||||
|
||||
pod2man \
|
||||
-errors=none \
|
||||
--section=8 \
|
||||
--center="BackupPC manual" \
|
||||
"${S}"/doc/BackupPC.pod backuppc.8 || die "failed to generate man page"
|
||||
|
||||
doman backuppc.8
|
||||
|
||||
# Place the documentation in the correct location
|
||||
dodoc "${D}/usr/doc/BackupPC.html"
|
||||
dodoc "${D}/usr/doc/BackupPC.pod"
|
||||
rm -rf "${D}/usr/doc"
|
||||
|
||||
eend 0
|
||||
|
||||
# Setup directories
|
||||
dodir ${CONFDIR}/pc
|
||||
|
||||
keepdir ${CONFDIR}
|
||||
keepdir ${CONFDIR}/pc
|
||||
keepdir ${DATADIR}/{trash,pool,pc,cpool}
|
||||
keepdir ${LOGDIR}
|
||||
|
||||
ebegin "Setting up init.d/conf.d/systemd scripts"
|
||||
newinitd "${S}"/init.d/gentoo-backuppc backuppc
|
||||
newconfd "${S}"/init.d/gentoo-backuppc.conf backuppc
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
eend 0
|
||||
|
||||
ebegin "Setting up an apache instance for backuppc"
|
||||
|
||||
cp "${FILESDIR}/apache2-backuppc."{conf,init} "${WORKDIR}/"
|
||||
cp "${FILESDIR}/httpd.conf" "${WORKDIR}/httpd.conf"
|
||||
sed -i -e "s+HTDOCSDIR+${MY_HTDOCSDIR}+g" "${WORKDIR}/httpd.conf"
|
||||
sed -i -e "s+AUTHFILE+${CONFDIR}/users.htpasswd+g" "${WORKDIR}/httpd.conf"
|
||||
|
||||
moduledir="/usr/lib/apache2/modules"
|
||||
|
||||
# Check if the Apache ServerRoot is real.
|
||||
# This is sometimes broken on older amd64 systems.
|
||||
# In this case we just patch our config file appropriately.
|
||||
if [[ ! -d "/usr/lib/apache2" ]]; then
|
||||
if [[ -d "/usr/lib64/apache2" ]]; then
|
||||
sed -i -e "s+/usr/lib/apache2+/usr/lib64/apache2+g" "${WORKDIR}/httpd.conf"
|
||||
sed -i -e "s+/usr/lib/apache2+/usr/lib64/apache2+g" "${WORKDIR}/apache2-backuppc.conf"
|
||||
moduledir="/usr/lib64/apache2/modules"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check if we're using mod_cgid instead of mod_cgi
|
||||
# This happens if you install apache with USE="threads"
|
||||
if [[ -f "${moduledir}/mod_cgid.so" ]]; then
|
||||
sed -i -e "s+mod_cgi+mod_cgid+g" "${WORKDIR}/httpd.conf"
|
||||
sed -i -e "s+cgi_module+cgid_module+g" "${WORKDIR}/httpd.conf"
|
||||
fi
|
||||
|
||||
# Install conf.d/init.d files for apache2-backuppc
|
||||
if [ -e /etc/init.d/apache2 ]; then
|
||||
newconfd "${WORKDIR}/apache2-backuppc.conf" apache2-backuppc
|
||||
newinitd /etc/init.d/apache2 apache2-backuppc
|
||||
else
|
||||
newconfd "${WORKDIR}/apache2-backuppc.conf" apache2-backuppc
|
||||
newinitd "${WORKDIR}/apache2-backuppc.init" apache2-backuppc
|
||||
fi
|
||||
|
||||
insopts -m 0644
|
||||
insinto ${CONFDIR}
|
||||
doins "${WORKDIR}/httpd.conf"
|
||||
|
||||
eend $?
|
||||
|
||||
webapp_src_install || die "webapp_src_install"
|
||||
|
||||
# Make sure that the ownership is correct
|
||||
chown -R backuppc:backuppc "${D}${CONFDIR}"
|
||||
chown -R backuppc:backuppc "${D}${DATADIR}"
|
||||
chown -R backuppc:backuppc "${D}${LOGDIR}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# This is disabled since BackupPC doesn't need it
|
||||
# webapp_pkg_postinst
|
||||
|
||||
elog "Installation finished, now may now start using BackupPC."
|
||||
elog ""
|
||||
elog "- Read the documentation in /usr/share/doc/${PF}/BackupPC.html"
|
||||
elog " Please pay special attention to the security section."
|
||||
elog ""
|
||||
elog "- You can launch backuppc and it's apache web interface by running:"
|
||||
elog " # /etc/init.d/backuppc start"
|
||||
elog " # /etc/init.d/apache2-backuppc start"
|
||||
|
||||
if [[ ! -e /etc/runlevels/default/backuppc ]]; then
|
||||
elog ""
|
||||
elog "- You also might want to add these scripts to your default runlevel:"
|
||||
elog " # rc-update add backuppc default"
|
||||
elog " # rc-update add apache2-backuppc default"
|
||||
fi
|
||||
|
||||
# Generate a new password if there's no auth file
|
||||
if [[ ! -f "${CONFDIR}/users.htpasswd" ]]; then
|
||||
adminuser="backuppc"
|
||||
adminpass=$( makepasswd --chars=12 )
|
||||
htpasswd -bc "${CONFDIR}/users.htpasswd" $adminuser $adminpass
|
||||
|
||||
elog ""
|
||||
elog "- Created admin user $adminuser with password $adminpass"
|
||||
elog " To add new users, run: "
|
||||
elog " # htpasswd ${CONFDIR}/users.htpasswd newUser"
|
||||
fi
|
||||
|
||||
if [[ -d "/etc/backuppc" ]]; then
|
||||
ewarn ""
|
||||
ewarn "Detected old config directory in /etc/backuppc"
|
||||
ewarn "Please migrate relevant config files to ${CONFDIR} before starting backuppc"
|
||||
fi
|
||||
}
|
@ -1,195 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit depend.apache eutils user systemd
|
||||
|
||||
MY_P="BackupPC-${PV}"
|
||||
|
||||
DESCRIPTION="High-performance backups to a server's disk"
|
||||
HOMEPAGE="http://backuppc.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="rss samba"
|
||||
|
||||
# The CGI modules are handled in $RDEPEND.
|
||||
APACHE_MODULES="apache2_modules_alias," # RedirectMatch
|
||||
APACHE_MODULES+="apache2_modules_authn_core," # AuthType
|
||||
APACHE_MODULES+="apache2_modules_authz_core," # Require
|
||||
APACHE_MODULES+="apache2_modules_authz_host," # Require host
|
||||
APACHE_MODULES+="apache2_modules_authz_user" # Require valid-user
|
||||
|
||||
DEPEND="dev-lang/perl
|
||||
app-admin/apache-tools
|
||||
app-admin/makepasswd"
|
||||
|
||||
# Older versions of mod_perl think they're compatibile with apache-2.4,
|
||||
# so we require the new one explicitly.
|
||||
RDEPEND="${DEPEND}
|
||||
virtual/perl-IO-Compress
|
||||
dev-perl/Archive-Zip
|
||||
dev-perl/libwww-perl
|
||||
app-arch/tar
|
||||
app-arch/par2cmdline
|
||||
app-arch/gzip
|
||||
app-arch/bzip2
|
||||
virtual/mta
|
||||
>=www-apache/mod_perl-2.0.9
|
||||
www-apache/mpm_itk
|
||||
|| ( >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_cgi]
|
||||
>=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_cgid]
|
||||
>=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_fcgid] )
|
||||
net-misc/rsync
|
||||
dev-perl/File-RsyncP
|
||||
rss? ( dev-perl/XML-RSS )
|
||||
samba? ( net-fs/samba )"
|
||||
|
||||
need_apache2_4
|
||||
|
||||
SLOT="0"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
CGIDIR="/usr/lib/backuppc/htdocs"
|
||||
CONFDIR="/etc/BackupPC"
|
||||
DATADIR="/var/lib/backuppc"
|
||||
DOCDIR="/usr/share/doc/${PF}"
|
||||
LOGDIR="/var/log/BackupPC"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup backuppc
|
||||
enewuser backuppc -1 /bin/bash /var/lib/backuppc backuppc
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/3.3.0/01-fix-configure.pl.patch"
|
||||
epatch "${FILESDIR}/3.3.0/02-fix-config.pl-formatting.patch"
|
||||
epatch "${FILESDIR}/3.3.0/03-reasonable-config.pl-defaults.patch"
|
||||
|
||||
epatch "${FILESDIR}/3.2.0/04-add-docdir-marker.patch"
|
||||
epatch "${FILESDIR}/3.2.0/05-nicelevel.patch"
|
||||
|
||||
# Fix docs location using the marker that we've patched in.
|
||||
sed -i "s+__DOCDIR__+${DOCDIR}+" "lib/BackupPC/CGI/View.pm" \
|
||||
|| die "failed to sed the documentation location"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myconf
|
||||
myconf=""
|
||||
if use samba ; then
|
||||
myconf="--bin-path smbclient=$(type -p smbclient)"
|
||||
myconf="${myconf} --bin-path nmblookup=$(type -p nmblookup)"
|
||||
fi
|
||||
|
||||
/usr/bin/env perl ./configure.pl \
|
||||
--batch \
|
||||
--bin-path perl=$(type -p perl) \
|
||||
--bin-path tar=$(type -p tar) \
|
||||
--bin-path rsync=$(type -p rsync) \
|
||||
--bin-path ping=$(type -p ping) \
|
||||
--bin-path df=$(type -p df) \
|
||||
--bin-path ssh=$(type -p ssh) \
|
||||
--bin-path sendmail=$(type -p sendmail) \
|
||||
--bin-path hostname=$(type -p hostname) \
|
||||
--bin-path gzip=$(type -p gzip) \
|
||||
--bin-path bzip2=$(type -p bzip2) \
|
||||
--config-dir "${CONFDIR}" \
|
||||
--install-dir /usr \
|
||||
--data-dir "${DATADIR}" \
|
||||
--hostname 127.0.0.1 \
|
||||
--uid-ignore \
|
||||
--dest-dir "${D%/}" \
|
||||
--html-dir "${CGIDIR}"/image \
|
||||
--html-dir-url /image \
|
||||
--cgi-dir "${CGIDIR}" \
|
||||
--fhs \
|
||||
${myconf} || die "failed the configure.pl script"
|
||||
|
||||
ebegin "Installing documentation"
|
||||
|
||||
pod2man \
|
||||
-errors=none \
|
||||
--section=8 \
|
||||
--center="BackupPC manual" \
|
||||
"${S}"/doc/BackupPC.pod backuppc.8 \
|
||||
|| die "failed to generate man page"
|
||||
|
||||
doman backuppc.8
|
||||
|
||||
# Place the documentation in the correct location
|
||||
dodoc "${D}/usr/doc/BackupPC.html"
|
||||
dodoc "${D}/usr/doc/BackupPC.pod"
|
||||
rm -rf "${D}/usr/doc" || die
|
||||
|
||||
eend 0
|
||||
|
||||
# Setup directories
|
||||
dodir "${CONFDIR}/pc"
|
||||
|
||||
keepdir "${CONFDIR}"
|
||||
keepdir "${CONFDIR}/pc"
|
||||
keepdir "${DATADIR}"/{trash,pool,pc,cpool}
|
||||
keepdir "${LOGDIR}"
|
||||
|
||||
ebegin "Setting up init.d/conf.d/systemd scripts"
|
||||
newinitd "${S}"/init.d/gentoo-backuppc backuppc
|
||||
newconfd "${S}"/init.d/gentoo-backuppc.conf backuppc
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
insinto "${APACHE_MODULES_CONFDIR}"
|
||||
doins "${FILESDIR}"/99_backuppc.conf
|
||||
|
||||
# Make sure that the ownership is correct
|
||||
chown -R backuppc:backuppc "${D}${CONFDIR}" || die
|
||||
chown -R backuppc:backuppc "${D}${DATADIR}" || die
|
||||
chown -R backuppc:backuppc "${D}${LOGDIR}" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Installation finished, you may now start using BackupPC."
|
||||
elog
|
||||
elog "- Read the documentation in /usr/share/doc/${PF}/BackupPC.html"
|
||||
elog " Please pay special attention to the security section."
|
||||
elog
|
||||
elog "- You can launch backuppc by running:"
|
||||
elog
|
||||
elog " # /etc/init.d/backuppc start"
|
||||
elog
|
||||
elog "- To enable the GUI, first edit ${ROOT}etc/conf.d/apache2 and add,"
|
||||
elog
|
||||
elog " \"-D BACKUPPC -D PERL -D MPM_ITK\""
|
||||
elog
|
||||
elog " to the APACHE2_OPTS line."
|
||||
elog
|
||||
elog " Then you must edit ${ROOT}etc/apache2/modules.d/00_mpm_itk.conf"
|
||||
elog " and adjust the values of LimitUIDRange/LimitGIDRange to include"
|
||||
elog " the UID and GID of the backuppc user."
|
||||
elog
|
||||
elog " Finally, start apache:"
|
||||
elog
|
||||
elog " # /etc/init.d/apache2 start"
|
||||
elog
|
||||
elog " The web interface should now be running on,"
|
||||
elog
|
||||
elog " http://127.0.0.1:8080/"
|
||||
elog
|
||||
|
||||
# Generate a new password if there's no auth file
|
||||
if [[ ! -f "${CONFDIR}/users.htpasswd" ]]; then
|
||||
adminuser="backuppc"
|
||||
adminpass=$( makepasswd --chars=12 )
|
||||
htpasswd -bc "${CONFDIR}/users.htpasswd" $adminuser $adminpass
|
||||
|
||||
elog ""
|
||||
elog "- Created admin user $adminuser with password $adminpass"
|
||||
elog " To add new users, run: "
|
||||
elog ""
|
||||
elog " # htpasswd ${CONFDIR}/users.htpasswd newUser"
|
||||
fi
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
--- configure.pl.orig 2010-07-31 20:52:58.000000000 +0300
|
||||
+++ configure.pl 2010-09-03 22:09:46.437788435 +0300
|
||||
@@ -158,7 +158,7 @@
|
||||
# config file to get all the defaults.
|
||||
#
|
||||
my $ConfigPath = "";
|
||||
-my $ConfigFileOK = 1;
|
||||
+my $ConfigFileOK = 0;
|
||||
while ( 1 ) {
|
||||
if ( $ConfigFileOK && -f "/etc/BackupPC/config.pl" ) {
|
||||
$ConfigPath = "/etc/BackupPC/config.pl";
|
||||
@@ -213,7 +213,8 @@
|
||||
$bpc->{LogDir} = $Conf{LogDir} = "$Conf{TopDir}/log"
|
||||
if ( $Conf{LogDir} eq '' );
|
||||
}
|
||||
- $bpc->{ConfDir} = $Conf{ConfDir} = $confDir;
|
||||
+ # Disable this as it's not really neccessary for this ebuild
|
||||
+ # $bpc->{ConfDir} = $Conf{ConfDir} = $confDir;
|
||||
my $err = $bpc->ServerConnect($Conf{ServerHost}, $Conf{ServerPort}, 1);
|
||||
if ( $err eq "" ) {
|
||||
print <<EOF;
|
||||
@@ -726,7 +727,7 @@
|
||||
if ( $Conf{CgiDir} =~ m{cgi-bin(/.*)} ) {
|
||||
$Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin$1/BackupPC_Admin'";
|
||||
} else {
|
||||
- $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'";
|
||||
+ $Conf{CgiURL} = "'http://$Conf{ServerHost}/BackupPC_Admin'";
|
||||
}
|
||||
}
|
||||
|
@ -1,47 +0,0 @@
|
||||
--- conf/config.pl.formatted 2010-09-03 23:09:13.035788559 +0300
|
||||
+++ conf/config.pl 2010-09-03 23:10:19.314788450 +0300
|
||||
@@ -1319,6 +1319,8 @@
|
||||
'--times',
|
||||
'--block-size=2048',
|
||||
'--recursive',
|
||||
+ '--specials',
|
||||
+ '--checksum-seed=32761',
|
||||
];
|
||||
|
||||
#
|
||||
@@ -1385,6 +1387,8 @@
|
||||
'--relative',
|
||||
'--ignore-times',
|
||||
'--recursive',
|
||||
+ '--specials',
|
||||
+ '--checksum-seed=32761',
|
||||
];
|
||||
|
||||
###########################################################################
|
||||
@@ -2015,7 +2019,7 @@
|
||||
# --> administrative users are only craig and celia'.
|
||||
#
|
||||
$Conf{CgiAdminUserGroup} = '';
|
||||
-$Conf{CgiAdminUsers} = '';
|
||||
+$Conf{CgiAdminUsers} = 'backuppc';
|
||||
|
||||
#
|
||||
# URL of the BackupPC_Admin CGI script. Used for email messages.
|
||||
@@ -2062,7 +2066,7 @@
|
||||
# dates (MM/DD), a value of 2 uses full YYYY-MM-DD format, and zero
|
||||
# for international dates (DD/MM).
|
||||
#
|
||||
-$Conf{CgiDateFormatMMDD} = 1;
|
||||
+$Conf{CgiDateFormatMMDD} = 2;
|
||||
|
||||
#
|
||||
# If set, the complete list of hosts appears in the left navigation
|
||||
@@ -2248,7 +2252,7 @@
|
||||
ClientTimeout => 1,
|
||||
MaxOldPerPCLogFiles => 1,
|
||||
CompressLevel => 1,
|
||||
- ClientNameAlias => 1,
|
||||
+ ClientNameAlias => 0,
|
||||
DumpPreUserCmd => 0,
|
||||
DumpPostUserCmd => 0,
|
||||
RestorePreUserCmd => 0,
|
@ -1,73 +0,0 @@
|
||||
# /etc/conf.d/apache2: config file for /etc/init.d/apache2
|
||||
|
||||
# When you install a module it is easy to activate or deactivate the modules
|
||||
# and other features of apache using the APACHE2_OPTS line. Every module should
|
||||
# install a configuration in /etc/apache2/modules.d. In that file will have an
|
||||
# <IfDefine NNN> directive where NNN is the option to enable that module.
|
||||
#
|
||||
# Here are the options available in the default configuration:
|
||||
#
|
||||
# AUTH_DIGEST Enables mod_auth_digest
|
||||
# AUTHNZ_LDAP Enables authentication through mod_ldap (available if USE=ldap)
|
||||
# CACHE Enables mod_cache
|
||||
# DAV Enables mod_dav
|
||||
# ERRORDOCS Enables default error documents for many languages.
|
||||
# INFO Enables mod_info, a useful module for debugging
|
||||
# LANGUAGE Enables content-negotiation based on language and charset.
|
||||
# LDAP Enables mod_ldap (available if USE=ldap)
|
||||
# MANUAL Enables /manual/ to be the apache manual (available if USE=docs)
|
||||
# MEM_CACHE Enables default configuration mod_mem_cache
|
||||
# PROXY Enables mod_proxy
|
||||
# SSL Enables SSL (available if USE=ssl)
|
||||
# SUEXEC Enables running CGI scripts (in USERDIR) through suexec.
|
||||
# USERDIR Enables /~username mapping to /home/username/public_html
|
||||
#
|
||||
#
|
||||
# The following two options provide the default virtual host for the HTTP and
|
||||
# HTTPS protocol. YOU NEED TO ENABLE AT LEAST ONE OF THEM, otherwise apache
|
||||
# will not listen for incomming connections on the approriate port.
|
||||
#
|
||||
# DEFAULT_VHOST Enables name-based virtual hosts, with the default
|
||||
# virtual host being in /var/www/localhost/htdocs
|
||||
# SSL_DEFAULT_VHOST Enables default vhost for SSL (you should enable this
|
||||
# when you enable SSL)
|
||||
#
|
||||
APACHE2_OPTS="-D LANGUAGE -D PERL -D BACKUPPC_VHOST"
|
||||
|
||||
# Extended options for advanced uses of Apache ONLY
|
||||
# You don't need to edit these unless you are doing crazy Apache stuff
|
||||
# As not having them set correctly, or feeding in an incorrect configuration
|
||||
# via them will result in Apache failing to start
|
||||
# YOU HAVE BEEN WARNED.
|
||||
|
||||
# PID file
|
||||
PIDFILE=/var/run/apache-backuppc.pid
|
||||
|
||||
# timeout for startup/shutdown checks
|
||||
#TIMEOUT=10
|
||||
|
||||
# ServerRoot setting
|
||||
SERVERROOT=/usr/lib/apache2
|
||||
|
||||
# Configuration file location
|
||||
# - If this does NOT start with a '/', then it is treated relative to
|
||||
# $SERVERROOT by Apache
|
||||
CONFIGFILE=/etc/BackupPC/httpd.conf
|
||||
|
||||
# Location to log startup errors to
|
||||
# They are normally dumped to your terminal.
|
||||
#STARTUPERRORLOG="/var/log/apache2/startuperror.log"
|
||||
|
||||
# A command that outputs a formatted text version of the HTML at the URL
|
||||
# of the command line. Designed for lynx, however other programs may work.
|
||||
#LYNX="lynx -dump"
|
||||
|
||||
# The URL to your server's mod_status status page.
|
||||
# Required for status and fullstatus
|
||||
#STATUSURL="http://localhost/server-status"
|
||||
|
||||
# Method to use when reloading the server
|
||||
# Valid options are 'restart' and 'graceful'
|
||||
# See https://httpd.apache.org/docs/2.2/stopping.html for information on
|
||||
# what they do and how they differ.
|
||||
#RELOAD_TYPE="graceful"
|
@ -1,170 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
opts="configdump configtest fullstatus graceful gracefulstop modules reload virtualhosts"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use mysql dns logger netmount postgresql
|
||||
after sshd
|
||||
}
|
||||
|
||||
configtest() {
|
||||
ebegin "Checking ${SVCNAME} configuration"
|
||||
checkconfig
|
||||
eend $?
|
||||
}
|
||||
|
||||
checkconfd() {
|
||||
PIDFILE="${PIDFILE:-/var/run/apache2-backuppc.pid}"
|
||||
TIMEOUT=${TIMEOUT:-10}
|
||||
|
||||
SERVERROOT="${SERVERROOT:-/usr/lib/apache2}"
|
||||
if [ ! -d ${SERVERROOT} ]; then
|
||||
eerror "SERVERROOT does not exist: ${SERVERROOT}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
CONFIGFILE="${CONFIGFILE:-/etc/BackupPC/httpd.conf}"
|
||||
[ "${CONFIGFILE#/}" = "${CONFIGFILE}" ] && CONFIGFILE="${SERVERROOT}/${CONFIGFILE}"
|
||||
if [ ! -r "${CONFIGFILE}" ]; then
|
||||
eerror "Unable to read configuration file: ${CONFIGFILE}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
APACHE2_OPTS="${APACHE2_OPTS} -d ${SERVERROOT}"
|
||||
APACHE2_OPTS="${APACHE2_OPTS} -f ${CONFIGFILE}"
|
||||
[ -n "${STARTUPERRORLOG}" ] && APACHE2_OPTS="${APACHE2_OPTS} -E ${STARTUPERRORLOG}"
|
||||
|
||||
APACHE2="/usr/sbin/apache2"
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
checkconfd || return 1
|
||||
|
||||
${APACHE2} ${APACHE2_OPTS} -t 1>/dev/null 2>&1
|
||||
ret=$?
|
||||
if [ $ret -ne 0 ]; then
|
||||
eerror "${SVCNAME} has detected a syntax error in your configuration files:"
|
||||
${APACHE2} ${APACHE2_OPTS} -t
|
||||
fi
|
||||
|
||||
return $ret
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return 1
|
||||
|
||||
[ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache
|
||||
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
${APACHE2} ${APACHE2_OPTS} -k start
|
||||
|
||||
let i=0
|
||||
while [ ! -e "${PIDFILE}" ] && [ $i -lt ${TIMEOUT} ]; do
|
||||
sleep 1 && i=$(expr $i + 1)
|
||||
done
|
||||
|
||||
test $i -le ${TIMEOUT}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
checkconfd || return 1
|
||||
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
${APACHE2} ${APACHE2_OPTS} -k stop
|
||||
|
||||
let i=0
|
||||
while pidof "${APACHE2}" >/dev/null && [ $i -lt ${TIMEOUT} ]; do
|
||||
sleep 1 && i=$(expr $i + 1)
|
||||
done
|
||||
|
||||
test $i -le ${TIMEOUT}
|
||||
eend $?
|
||||
}
|
||||
|
||||
reload() {
|
||||
RELOAD_TYPE="${RELOAD_TYPE:-graceful}"
|
||||
|
||||
checkconfig || return 1
|
||||
service_started "${SVCNAME}" || return
|
||||
|
||||
if [ "${RELOAD_TYPE}" = "restart" ]; then
|
||||
ebegin "Restarting ${SVCNAME}"
|
||||
${APACHE2} ${APACHE2_OPTS} -k restart
|
||||
eend $?
|
||||
elif [ "${RELOAD_TYPE}" = "graceful" ]; then
|
||||
ebegin "Gracefully restarting ${SVCNAME}"
|
||||
${APACHE2} ${APACHE2_OPTS} -k graceful
|
||||
eend $?
|
||||
else
|
||||
eerror "${RELOAD_TYPE} is not a valid RELOAD_TYPE. Please edit /etc/conf.d/${SVCNAME}"
|
||||
fi
|
||||
}
|
||||
|
||||
graceful() {
|
||||
checkconfig || return 1
|
||||
service_started "${SVCNAME}" || return
|
||||
ebegin "Gracefully restarting ${SVCNAME}"
|
||||
${APACHE2} ${APACHE2_OPTS} -k graceful
|
||||
eend $?
|
||||
}
|
||||
|
||||
gracefulstop() {
|
||||
checkconfig || return 1
|
||||
|
||||
# zap!
|
||||
if service_started "${SVCNAME}"; then
|
||||
mark_service_stopped "${SVCNAME}"
|
||||
fi
|
||||
|
||||
ebegin "Gracefully stopping ${SVCNAME}"
|
||||
${APACHE2} ${APACHE2_OPTS} -k graceful-stop
|
||||
eend $?
|
||||
}
|
||||
|
||||
modules() {
|
||||
checkconfig || return 1
|
||||
|
||||
${APACHE2} ${APACHE2_OPTS} -M 2>&1
|
||||
}
|
||||
|
||||
fullstatus() {
|
||||
LYNX="${LYNX:-lynx -dump}"
|
||||
STATUSURL="${STATUSURL:-http://localhost/server-status}"
|
||||
|
||||
if ! service_started "${SVCNAME}"; then
|
||||
eerror "${SVCNAME} not started"
|
||||
elif ! type -p ${LYNX} 2>&1 >/dev/null; then
|
||||
eerror "lynx not found! you need to emerge www-client/lynx"
|
||||
else
|
||||
${LYNX} ${STATUSURL}
|
||||
fi
|
||||
}
|
||||
|
||||
virtualhosts() {
|
||||
checkconfd || return 1
|
||||
${APACHE2} ${APACHE2_OPTS} -S
|
||||
}
|
||||
|
||||
configdump() {
|
||||
LYNX="${LYNX:-lynx -dump}"
|
||||
INFOURL="${INFOURL:-http://localhost/server-info}"
|
||||
|
||||
checkconfd || return 1
|
||||
|
||||
if ! service_started "${SVCNAME}"; then
|
||||
eerror "${SVCNAME} not started"
|
||||
elif ! type -p ${LYNX} 2>&1 >/dev/null; then
|
||||
eerror "lynx not found! you need to emerge www-client/lynx"
|
||||
else
|
||||
echo "${APACHE2} started with '${APACHE2_OPTS}'"
|
||||
for i in config server list; do
|
||||
${LYNX} "${INFOURL}/?${i}" | sed '/Apache Server Information/d;/^[[:space:]]\+[_]\+$/Q'
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
# vim: ts=4 filetype=gentoo-init-d
|
@ -1,332 +0,0 @@
|
||||
# This is a modification of the default Apache 2.2 configuration file
|
||||
# for Gentoo Linux.
|
||||
#
|
||||
# Support:
|
||||
# http://www.gentoo.org/main/en/lists.xml [mailing lists]
|
||||
# http://forums.gentoo.org/ [web forums]
|
||||
# irc://irc.freenode.net#gentoo-apache [irc chat]
|
||||
#
|
||||
# Bug Reports:
|
||||
# http://bugs.gentoo.org [gentoo related bugs]
|
||||
# https://httpd.apache.org/bug_report.html [apache httpd related bugs]
|
||||
#
|
||||
#
|
||||
# This is the main Apache HTTP server configuration file. It contains the
|
||||
# configuration directives that give the server its instructions.
|
||||
# See <URL:https://httpd.apache.org/docs/2.2> for detailed information.
|
||||
# In particular, see
|
||||
# <URL:https://httpd.apache.org/docs/2.2/mod/directives.html>
|
||||
# for a discussion of each configuration directive.
|
||||
#
|
||||
# Do NOT simply read the instructions in here without understanding
|
||||
# what they do. They're here only as hints or reminders. If you are unsure
|
||||
# consult the online docs. You have been warned.
|
||||
#
|
||||
# Configuration and logfile names: If the filenames you specify for many
|
||||
# of the server's control files begin with "/" (or "drive:/" for Win32), the
|
||||
# server will use that explicit path. If the filenames do *not* begin
|
||||
# with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log"
|
||||
# with ServerRoot set to "/usr" will be interpreted by the
|
||||
# server as "/usr/var/log/apache2/foo.log".
|
||||
|
||||
# ServerRoot: The top of the directory tree under which the server's
|
||||
# configuration, error, and log files are kept.
|
||||
#
|
||||
# Do not add a slash at the end of the directory path. If you point
|
||||
# ServerRoot at a non-local disk, be sure to point the LockFile directive
|
||||
# at a local disk. If you wish to share the same ServerRoot for multiple
|
||||
# httpd daemons, you will need to change at least LockFile and PidFile.
|
||||
ServerRoot "/usr/lib/apache2"
|
||||
|
||||
# Dynamic Shared Object (DSO) Support
|
||||
#
|
||||
# To be able to use the functionality of a module which was built as a DSO you
|
||||
# have to place corresponding `LoadModule' lines at this location so the
|
||||
# directives contained in it are actually available _before_ they are used.
|
||||
# Statically compiled modules (those listed by `httpd -l') do not need
|
||||
# to be loaded here.
|
||||
#
|
||||
# Example:
|
||||
# LoadModule foo_module modules/mod_foo.so
|
||||
#
|
||||
# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.
|
||||
# Do not change manually, it will be overwritten on upgrade.
|
||||
#
|
||||
# The following modules are considered as the default configuration.
|
||||
# If you wish to disable one of them, you may have to alter other
|
||||
# configuration directives.
|
||||
#
|
||||
# Change these at your own risk!
|
||||
|
||||
LoadModule actions_module modules/mod_actions.so
|
||||
LoadModule alias_module modules/mod_alias.so
|
||||
LoadModule auth_basic_module modules/mod_auth_basic.so
|
||||
<IfDefine AUTH_DIGEST>
|
||||
LoadModule auth_digest_module modules/mod_auth_digest.so
|
||||
</IfDefine>
|
||||
LoadModule authn_anon_module modules/mod_authn_anon.so
|
||||
LoadModule authn_dbm_module modules/mod_authn_dbm.so
|
||||
LoadModule authn_default_module modules/mod_authn_default.so
|
||||
LoadModule authn_file_module modules/mod_authn_file.so
|
||||
LoadModule authz_dbm_module modules/mod_authz_dbm.so
|
||||
LoadModule authz_default_module modules/mod_authz_default.so
|
||||
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
|
||||
LoadModule authz_host_module modules/mod_authz_host.so
|
||||
LoadModule authz_owner_module modules/mod_authz_owner.so
|
||||
LoadModule authz_user_module modules/mod_authz_user.so
|
||||
LoadModule autoindex_module modules/mod_autoindex.so
|
||||
<IfDefine CACHE>
|
||||
LoadModule cache_module modules/mod_cache.so
|
||||
</IfDefine>
|
||||
LoadModule cgi_module modules/mod_cgi.so
|
||||
LoadModule deflate_module modules/mod_deflate.so
|
||||
LoadModule dir_module modules/mod_dir.so
|
||||
<IfDefine CACHE>
|
||||
LoadModule disk_cache_module modules/mod_disk_cache.so
|
||||
</IfDefine>
|
||||
LoadModule env_module modules/mod_env.so
|
||||
LoadModule expires_module modules/mod_expires.so
|
||||
LoadModule ext_filter_module modules/mod_ext_filter.so
|
||||
<IfDefine CACHE>
|
||||
LoadModule file_cache_module modules/mod_file_cache.so
|
||||
</IfDefine>
|
||||
LoadModule filter_module modules/mod_filter.so
|
||||
LoadModule headers_module modules/mod_headers.so
|
||||
LoadModule include_module modules/mod_include.so
|
||||
<IfDefine INFO>
|
||||
LoadModule info_module modules/mod_info.so
|
||||
</IfDefine>
|
||||
LoadModule log_config_module modules/mod_log_config.so
|
||||
LoadModule logio_module modules/mod_logio.so
|
||||
<IfDefine CACHE>
|
||||
LoadModule mem_cache_module modules/mod_mem_cache.so
|
||||
</IfDefine>
|
||||
LoadModule mime_module modules/mod_mime.so
|
||||
LoadModule mime_magic_module modules/mod_mime_magic.so
|
||||
LoadModule negotiation_module modules/mod_negotiation.so
|
||||
<IfDefine PROXY>
|
||||
LoadModule proxy_module modules/mod_proxy.so
|
||||
</IfDefine>
|
||||
<IfDefine PROXY>
|
||||
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
|
||||
</IfDefine>
|
||||
<IfDefine PROXY>
|
||||
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
|
||||
</IfDefine>
|
||||
<IfDefine PROXY>
|
||||
LoadModule proxy_connect_module modules/mod_proxy_connect.so
|
||||
</IfDefine>
|
||||
<IfDefine PROXY>
|
||||
LoadModule proxy_http_module modules/mod_proxy_http.so
|
||||
</IfDefine>
|
||||
LoadModule rewrite_module modules/mod_rewrite.so
|
||||
LoadModule setenvif_module modules/mod_setenvif.so
|
||||
LoadModule speling_module modules/mod_speling.so
|
||||
<IfDefine SSL>
|
||||
LoadModule ssl_module modules/mod_ssl.so
|
||||
</IfDefine>
|
||||
<IfDefine STATUS>
|
||||
LoadModule status_module modules/mod_status.so
|
||||
</IfDefine>
|
||||
<IfDefine SUEXEC>
|
||||
LoadModule suexec_module modules/mod_suexec.so
|
||||
</IfDefine>
|
||||
LoadModule unique_id_module modules/mod_unique_id.so
|
||||
<IfDefine USERDIR>
|
||||
LoadModule userdir_module modules/mod_userdir.so
|
||||
</IfDefine>
|
||||
LoadModule usertrack_module modules/mod_usertrack.so
|
||||
LoadModule vhost_alias_module modules/mod_vhost_alias.so
|
||||
|
||||
#
|
||||
# HostnameLookups: Log the names of clients or just their IP addresses
|
||||
# e.g., www.apache.org (on) or 204.62.129.132 (off).
|
||||
# The default is off because it'd be overall better for the net if people
|
||||
# had to knowingly turn this feature on, since enabling it means that
|
||||
# each client request will result in AT LEAST one lookup request to the
|
||||
# nameserver.
|
||||
#
|
||||
HostnameLookups Off
|
||||
|
||||
# If you wish httpd to run as a different user or group, you must run
|
||||
# httpd as root initially and it will switch.
|
||||
#
|
||||
# User/Group: The name (or #number) of the user/group to run httpd as.
|
||||
# It is usually good practice to create a dedicated user and group for
|
||||
# running httpd, as with most system services.
|
||||
User backuppc
|
||||
Group backuppc
|
||||
|
||||
# Supplemental configuration
|
||||
#
|
||||
# Most of the configuration files in the /etc/apache2/modules.d/ directory can
|
||||
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features
|
||||
# or to modify the default configuration of the server.
|
||||
#
|
||||
# To know which flag to add to APACHE2_OPTS, look at the first line of the
|
||||
# the file, which will usually be an <IfDefine OPTION> where OPTION is the
|
||||
# flag to use.
|
||||
|
||||
Include /etc/apache2/modules.d/*.conf
|
||||
|
||||
# Unique lock file
|
||||
LockFile /var/lock/apache-backuppc.lock
|
||||
|
||||
# Very important for init script
|
||||
# Unique process ID file
|
||||
PidFile /var/run/apache-backuppc.pid
|
||||
|
||||
# Unique scoreboard file
|
||||
ScoreBoardFile /var/run/apache-backuppc.scoreboard
|
||||
|
||||
# Common document root
|
||||
<IfDefine BACKUPPC_VHOST>
|
||||
|
||||
|
||||
# Common document root
|
||||
DocumentRoot HTDOCSDIR
|
||||
# see bug #178966 why this is in here
|
||||
|
||||
# Listen: Allows you to bind Apache to specific IP addresses and/or
|
||||
# ports, instead of the default. See also the <VirtualHost>
|
||||
# directive.
|
||||
#
|
||||
# Change this to Listen on specific IP addresses as shown below to
|
||||
# prevent Apache from glomming onto all bound IP addresses.
|
||||
#
|
||||
#Listen 12.34.56.78:80
|
||||
Listen 80
|
||||
|
||||
# Use name-based virtual hosting.
|
||||
NameVirtualHost *:80
|
||||
|
||||
# When virtual hosts are enabled, the main host defined in the default
|
||||
# httpd.conf configuration will go away. We redefine it here so that it is
|
||||
# still available.
|
||||
#
|
||||
# If you disable this vhost by removing -D DEFAULT_VHOST from
|
||||
# /etc/conf.d/apache2, the first defined virtual host elsewhere will be
|
||||
# the default.
|
||||
<VirtualHost *:80>
|
||||
ServerName backuppc
|
||||
|
||||
# Redirect requests to "/" to the CGI script
|
||||
RedirectMatch "^/$" /BackupPC_Admin
|
||||
|
||||
<IfDefine SSL>
|
||||
<IfModule ssl_module>
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
|
||||
|
||||
## SSL Engine Switch:
|
||||
# Enable/Disable SSL for this virtual host.
|
||||
SSLEngine on
|
||||
SSLOptions +StrictRequire
|
||||
|
||||
## SSL Cipher Suite:
|
||||
# List the ciphers that the client is permitted to negotiate.
|
||||
# See the mod_ssl documentation for a complete list.
|
||||
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
|
||||
|
||||
## Server Certificate:
|
||||
# Point SSLCertificateFile at a PEM encoded certificate. If the certificate
|
||||
# is encrypted, then you will be prompted for a pass phrase. Note that a
|
||||
# kill -HUP will prompt again. Keep in mind that if you have both an RSA
|
||||
# and a DSA certificate you can configure both in parallel (to also allow
|
||||
# the use of DSA ciphers, etc.)
|
||||
SSLCertificateFile /etc/ssl/apache2/server.crt
|
||||
|
||||
## Server Private Key:
|
||||
# If the key is not combined with the certificate, use this directive to
|
||||
# point at the key file. Keep in mind that if you've both a RSA and a DSA
|
||||
# private key you can configure both in parallel (to also allow the use of
|
||||
# DSA ciphers, etc.)
|
||||
SSLCertificateKeyFile /etc/ssl/apache2/server.key
|
||||
<FilesMatch "\.(cgi|shtml|phtml|php)$">
|
||||
SSLOptions +StdEnvVars
|
||||
</FilesMatch>
|
||||
|
||||
## ssl-accurate-shutdown:
|
||||
# This forces an accurate shutdown when the connection is closed, i.e. a
|
||||
# SSL close notify alert is send and mod_ssl waits for the close notify
|
||||
# alert of the client. This is 100% SSL/TLS standard compliant, but in
|
||||
# practice often causes hanging connections with brain-dead browsers. Use
|
||||
# this only for browsers where you know that their SSL implementation works
|
||||
# correctly.
|
||||
# Notice: Most problems of broken clients are also related to the HTTP
|
||||
# keep-alive facility, so you usually additionally want to disable
|
||||
# keep-alive for those clients, too. Use variable "nokeepalive" for this.
|
||||
# Similarly, one has to force some clients to use HTTP/1.0 to workaround
|
||||
# their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
|
||||
# "force-response-1.0" for this.
|
||||
<IfModule setenvif_module>
|
||||
BrowserMatch ".*MSIE.*" \
|
||||
nokeepalive ssl-unclean-shutdown \
|
||||
downgrade-1.0 force-response-1.0
|
||||
</IfModule>
|
||||
|
||||
## Per-Server Logging:
|
||||
# The home of a custom SSL log file. Use this when you want a compact
|
||||
# non-error SSL logfile on a virtual host basis.
|
||||
<IfModule log_config_module>
|
||||
CustomLog /var/log/apache2/ssl_request_log \
|
||||
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
</IfDefine>
|
||||
|
||||
<Directory "HTDOCSDIR">
|
||||
# Possible values for the Options directive are "None", "All",
|
||||
# or any combination of:
|
||||
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
|
||||
#
|
||||
# Note that "MultiViews" must be named *explicitly* --- "Options All"
|
||||
# doesn't give it to you.
|
||||
#
|
||||
# The Options directive is both complicated and important. Please see
|
||||
# https://httpd.apache.org/docs/2.2/mod/core.html#options
|
||||
# for more information.
|
||||
Options Indexes FollowSymLinks
|
||||
|
||||
# AllowOverride controls what directives may be placed in .htaccess files.
|
||||
# It can be "All", "None", or any combination of the keywords:
|
||||
# Options FileInfo AuthConfig Limit
|
||||
AllowOverride None
|
||||
|
||||
<IfDefine SSL>
|
||||
<IfModule ssl_module>
|
||||
SSLOptions +StdEnvVars
|
||||
</IfModule>
|
||||
</IfDefine>
|
||||
|
||||
SetHandler perl-script
|
||||
PerlResponseHandler ModPerl::Registry
|
||||
PerlOptions +ParseHeaders
|
||||
Options +ExecCGI
|
||||
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
|
||||
AuthName "Backup Admin"
|
||||
AuthType Basic
|
||||
AuthUserFile AUTHFILE
|
||||
Require valid-user
|
||||
</Directory>
|
||||
|
||||
<Directory "HTDOCSDIR/image">
|
||||
SetHandler None
|
||||
Options Indexes FollowSymLinks
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
|
||||
<IfModule mpm_peruser_module>
|
||||
ServerEnvironment backuppc backuppc
|
||||
</IfModule>
|
||||
</VirtualHost>
|
||||
</IfDefine>
|
||||
|
||||
|
||||
# vim: ts=4 filetype=apache
|
@ -0,0 +1 @@
|
||||
DIST nitrokey-app-0.6.3.tar.gz 769503 SHA256 6ab756ca34e0deedfe5e99eeb5763a68adc9bafad78ee94b3b9aad2d28fed8c8 SHA512 23960b0ca740a4c9520a3d7043f396ffb6fb730ef28ad44b299aadbb0b7d2fa1a182c38a88fd684fe664c2079c5a03c5a6b8e6ceb7f8ca69a37fb64ef64237a6 WHIRLPOOL 07df2f16ef99b62c2c77ada77a51fed1709da3ec2ebfe95b41ca7ea025be0ba2293cfef1665aab777a30908c95c69cd5e265f17e90719386f059f2cddeb7e2a9
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>soap@gentoo.org</email>
|
||||
<name>David Seifert</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">Nitrokey/nitrokey-app</remote-id>
|
||||
<bugs-to>https://github.com/Nitrokey/nitrokey-app/issues</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils udev
|
||||
|
||||
DESCRIPTION="Cross platform personalization tool for the Nitrokey"
|
||||
HOMEPAGE="https://github.com/Nitrokey/nitrokey-app"
|
||||
SRC_URI="https://github.com/Nitrokey/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
mycmakeargs=( -DHAVE_LIBAPPINDICATOR=NO )
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
sed -i "s:DESTINATION lib/udev/rules.d:DESTINATION $(get_udevdir)/rules.d:" \
|
||||
CMakeLists.txt || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
}
|
@ -1,6 +1,4 @@
|
||||
DIST layman-2.0.0.tar.gz 81184 SHA256 5843035ae4cc069693c05cf9821dae3d89d3ea7e2115b8137ea5a4a6c2807f33 SHA512 30756464d71ab1e047036550b6500d7e57999d808ebe3efba1d1ae6c037f8ca777ba704a4981d75a90285133635027a7bc13f1890f34823de33ae991ed99e2da WHIRLPOOL ec362189c4757ee032dc93e079ea0f5b291d5652231a84f1175fb308ca5622882d5008f23fd6a3d5143ff0dc98c91632d19c2e6604dcaa9b6a550bc902d79c1a
|
||||
DIST layman-2.1.0.tar.gz 94150 SHA256 cb96306c84da1d49ff54a31f7511c62c859565361bd59164516cd2812c439987 SHA512 1fa21392157c811c7751b8e3a11b858308c48720e377871bdd5afc525ebb50a92772064aa1148a4c20e3019f77b676ff65552439a71361d498952e362398c67f WHIRLPOOL 77643bedb4167eb371357444328d439c8b433cfc22a8bf9e39693feb68b701ec158064db8d22da0e6eb5260f27d5604d8b252a67930b38d8bed5921822f71c29
|
||||
DIST layman-2.2.0.tar.gz 116210 SHA256 4a10cfd3eb354e993886369995ae9b1243418e0370c6aabd4d0ef6c5b387b7a2 SHA512 34cac041d7b64274debdbc42cab079fd3bb3aee511ea9e80db726df0f828207d79a5262788483ced5cbf49924e3aa4f19fe21439c98dceea973d8f83473c2e41 WHIRLPOOL 8c5d3cbbfef35c6294dfac899cb42f49e0761745573721e38b7d6c9ac48031f95bbb961c9d8dd9d309e4672cc1e5b050107ba025a9f28127e5d7d6d9a73a6e9a
|
||||
DIST layman-2.3.0.tar.gz 119223 SHA256 76559b8e202c012d124deac01b92bbe70b550afe711144a3b1e301c5d8bbd0f2 SHA512 d110fb1781017d87e995098ecb48c4223347323d67534b584a393dc4354b761a6d960fd31e6e6787b5f37fa7e63b357c49486042c7cb527f78dd5beb5373627d WHIRLPOOL 76c82f08b18830e925ffd4c97b490753de2e7d0b3c71a82a0a75fd776ed3af84d2ba2fe06dab25e5e4d2ea400b0f0b66eda65f1f4eded0521ec579a1a0c1b17f
|
||||
DIST layman-2.4.0.tar.gz 130052 SHA256 0dd9dbcd05b5bf062139308cb812507b2c3310dd81f25c9cdc4c8f643b3f74c8 SHA512 011ac0e7dfed8415b875898ff1eecfe77ba5a68ccac208d8f5c693b9b880355ffef572490bb98ede62092bea1a84298bbd72e6c93a234fdfa319e96551e7eb07 WHIRLPOOL 0fdcd09ef4347f9450897237befd6fa73187a3e5ed0eff6b08345846ff270cd9751a3f38277f7b53baffb3b9a3e18e10f08ebe33c228ed7f7ccd01ce81d05a76
|
||||
DIST layman-2.4.1.tar.gz 130388 SHA256 545792a15a0a2514c79f1b3090aceef15e413c656f294b6ff84f8a36da7aa2da SHA512 bdb713d4c7d3773129b45a385068278958040759bb564e48cfda4dda9da5224ccaa7833fce3d06151ed1fecddbb6f1a059db6e71534d0e887dff12640af6c806 WHIRLPOOL b6ef18f8f3633e9bb2a08df620306441f8352174dc66f2bbb68613cff0796e0914f7008de4f185167815ba3267c3b63a4fe22d2bcd794f70cd78bc20e706d7d8
|
||||
DIST layman-2.4.2.tar.gz 137893 SHA256 e84f8b745dd160bacf7b08dfd95b5c6d117dc8721edca370600f29ef0676ff92 SHA512 9d32269f51f896c554e6cbf8a674c50009bce48dd83dfe773b08b75bafd567eb75c26c227ab3a60bc83c1ed511862a3979b8d851befe8ad16fd0847eb91337cf WHIRLPOOL eba1844f2279071947601a8baa9424db24e5bd1ba2d9ac14f90e4ae2c3e0b566dabf10378cf6286225d85d11940add45239df8cb5b150eea227b47223ce65485
|
||||
|
@ -1,29 +0,0 @@
|
||||
From 8f6005fcfb9d2012bba428863f89b6b9168c8226 Mon Sep 17 00:00:00 2001
|
||||
From: Devan Franchini <twitch153@gentoo.org>
|
||||
Date: Thu, 22 May 2014 22:57:08 -0400
|
||||
Subject: [PATCH] updater.py: Fixes incorrect import for make.conf class
|
||||
|
||||
X-Gentoo-Bug: 521724
|
||||
X-Gentoo-Bug-URL: https://bugs.gentoo.org/521724
|
||||
---
|
||||
layman/updater.py | 4 ++--
|
||||
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/layman/updater.py b/layman/updater.py
|
||||
index 26aeed2..b2187e3 100644
|
||||
--- a/layman/updater.py
|
||||
+++ b/layman/updater.py
|
||||
@@ -155,8 +155,8 @@ class Main(object):
|
||||
self.output.info(" Creating layman's make.conf file")
|
||||
# create layman's %(storage)s/make.conf
|
||||
# so portage won't error
|
||||
- from layman.makeconf import MakeConf
|
||||
- maker = MakeConf(self.config, None)
|
||||
+ from layman.makeconf import ConfigHandler
|
||||
+ maker = ConfigHandler(self.config, None)
|
||||
maker.write()
|
||||
|
||||
|
||||
--
|
||||
1.8.5.5
|
||||
|
@ -1,27 +0,0 @@
|
||||
From d0e5d9120c27f678e9039bb2f65cfc0e457be6c7 Mon Sep 17 00:00:00 2001
|
||||
From: Douglas Freed <dwfreed@mtu.edu>
|
||||
Date: Sat, 26 Jul 2014 15:54:11 -0700
|
||||
Subject: [PATCH] Fix a bug when an overlay isn't in the remote list
|
||||
|
||||
If the overlay isn't in the remote list, it obviously isn't a different
|
||||
type, nor has its URL changed, so just init those to False so we can
|
||||
sync the overlay without hitting UnboundLocalError.
|
||||
---
|
||||
layman/api.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/layman/api.py b/layman/api.py
|
||||
index a86970f..930f449 100755
|
||||
--- a/layman/api.py
|
||||
+++ b/layman/api.py
|
||||
@@ -426,6 +426,7 @@ class LaymanAPI(object):
|
||||
message = 'Overlay "%s" could not be found in the remote lists.\n' \
|
||||
'Please check if it has been renamed and re-add if necessary.' % ovl
|
||||
warnings.append((ovl, message))
|
||||
+ (diff_type, update_url) = (False, False)
|
||||
else:
|
||||
self.output.debug("API.sync(); else: self._get_remote_db().select(ovl)", 5)
|
||||
|
||||
--
|
||||
1.8.5.5
|
||||
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} pypy )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit eutils distutils-r1 prefix
|
||||
|
||||
DESCRIPTION="Tool to manage Gentoo overlays"
|
||||
HOMEPAGE="http://layman.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="bazaar cvs darcs +git mercurial subversion test"
|
||||
|
||||
DEPEND="test? ( dev-vcs/subversion )"
|
||||
|
||||
RDEPEND="
|
||||
bazaar? ( dev-vcs/bzr )
|
||||
cvs? ( dev-vcs/cvs )
|
||||
darcs? ( dev-vcs/darcs )
|
||||
git? ( dev-vcs/git )
|
||||
mercurial? ( dev-vcs/mercurial )
|
||||
subversion? (
|
||||
|| (
|
||||
>=dev-vcs/subversion-1.5.4[http]
|
||||
>=dev-vcs/subversion-1.5.4[webdav-neon]
|
||||
>=dev-vcs/subversion-1.5.4[webdav-serf]
|
||||
)
|
||||
)
|
||||
sys-apps/portage[${PYTHON_USEDEP}]
|
||||
>=dev-python/ssl-fetch-0.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
epatch "${FILESDIR}"/${P}-local_overlay.patch
|
||||
epatch "${FILESDIR}"/${P}-incorrect-import-make-conf-fix.patch
|
||||
eprefixify etc/layman.cfg layman/config.py
|
||||
}
|
||||
|
||||
python_test() {
|
||||
for suite in layman/tests/{dtest,external}.py ; do
|
||||
PYTHONPATH="." "${PYTHON}" ${suite} \
|
||||
|| die "test suite '${suite}' failed"
|
||||
done
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
insinto /etc/layman
|
||||
doins etc/layman.cfg
|
||||
|
||||
doman doc/layman.8
|
||||
dohtml doc/layman.8.html
|
||||
|
||||
keepdir /var/lib/layman
|
||||
keepdir /etc/layman/overlays
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# now run layman's update utility
|
||||
einfo "Running layman-updater..."
|
||||
"${EROOT}"/usr/bin/layman-updater
|
||||
einfo
|
||||
}
|
@ -1,93 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit eutils distutils-r1 linux-info prefix
|
||||
|
||||
DESCRIPTION="Tool to manage Gentoo overlays"
|
||||
HOMEPAGE="http://layman.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~x86"
|
||||
IUSE="bazaar cvs darcs +git gpg g-sorcery mercurial squashfs subversion sync-plugin-portage test"
|
||||
|
||||
DEPEND="test? ( dev-vcs/subversion )
|
||||
>=dev-python/ssl-fetch-0.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
bazaar? ( dev-vcs/bzr )
|
||||
cvs? ( dev-vcs/cvs )
|
||||
darcs? ( dev-vcs/darcs )
|
||||
git? ( dev-vcs/git )
|
||||
mercurial? ( dev-vcs/mercurial )
|
||||
g-sorcery? ( app-portage/g-sorcery )
|
||||
subversion? (
|
||||
|| (
|
||||
>=dev-vcs/subversion-1.5.4[http]
|
||||
>=dev-vcs/subversion-1.5.4[webdav-neon]
|
||||
>=dev-vcs/subversion-1.5.4[webdav-serf]
|
||||
)
|
||||
)
|
||||
sync-plugin-portage? ( >=sys-apps/portage-2.2.16[${PYTHON_USEDEP}] )
|
||||
!sync-plugin-portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
||||
gpg? ( dev-python/pyGPG )
|
||||
>=dev-python/ssl-fetch-0.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
layman_check_kernel_config() {
|
||||
local CONFIG_CHECK
|
||||
use squashfs && CONFIG_CHECK+=" ~BLK_DEV_LOOP ~SQUASHFS"
|
||||
[[ -n ${CONFIG_CHECK} ]] && check_extra_config
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
layman_check_kernel_config
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
layman_check_kernel_config
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
python_setup
|
||||
esetup.py setup_plugins
|
||||
distutils-r1_python_prepare_all
|
||||
#rm "${S}"/"${PN}"/tests/dtest.py
|
||||
epatch "${FILESDIR}"/${P}-dir_check.patch
|
||||
eprefixify etc/layman.cfg layman/config.py
|
||||
}
|
||||
|
||||
python_test() {
|
||||
for suite in layman/tests/external.py ; do
|
||||
PYTHONPATH="." "${PYTHON}" ${suite} \
|
||||
|| die "test suite '${suite}' failed"
|
||||
done
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
insinto /etc/layman
|
||||
doins etc/layman.cfg
|
||||
|
||||
doman doc/layman.8
|
||||
dohtml doc/layman.8.html
|
||||
|
||||
keepdir /var/lib/layman
|
||||
keepdir /etc/layman/overlays
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# now run layman's update utility
|
||||
einfo "Running layman-updater..."
|
||||
"${EROOT}"/usr/bin/layman-updater
|
||||
einfo
|
||||
}
|
@ -0,0 +1,116 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
FORTRAN_NEEDED="test"
|
||||
|
||||
inherit cmake-utils cuda fortran-2
|
||||
|
||||
DESCRIPTION="C++ template library for linear algebra"
|
||||
HOMEPAGE="http://eigen.tuxfamily.org/"
|
||||
SRC_URI="https://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2 GPL-3"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="altivec c++11 cuda debug doc neon openmp test" #zvector vsx
|
||||
|
||||
IUSE_CPU_FLAGS=" avx avx2 f16c fma3 sse2 sse3 sse4_1 sse4_2 ssse3" #x87
|
||||
IUSE+=" ${IUSE_CPU_FLAGS// / cpu_flags_x86_}"
|
||||
|
||||
RDEPEND="!dev-cpp/eigen:0"
|
||||
DEPEND="
|
||||
doc? ( app-doc/doxygen[dot,latex] )
|
||||
test? (
|
||||
dev-libs/gmp:0
|
||||
dev-libs/mpfr:0
|
||||
media-libs/freeglut
|
||||
media-libs/glew
|
||||
sci-libs/adolc
|
||||
sci-libs/cholmod
|
||||
sci-libs/fftw:3.0
|
||||
sci-libs/pastix
|
||||
sci-libs/umfpack
|
||||
sci-libs/scotch
|
||||
sci-libs/spqr
|
||||
sci-libs/superlu
|
||||
dev-qt/qtcore:4
|
||||
virtual/opengl
|
||||
virtual/pkgconfig
|
||||
cuda? ( dev-util/nvidia-cuda-toolkit )
|
||||
)
|
||||
"
|
||||
# Missing:
|
||||
# METIS-5
|
||||
# GOOGLEHASH
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
mv ${PN}* ${P} || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed \
|
||||
-e 's:-g2::g' \
|
||||
-i cmake/EigenConfigureTesting.cmake || die
|
||||
|
||||
sed -i CMakeLists.txt \
|
||||
-e "/add_subdirectory(demos/d" \
|
||||
|| die "sed disable unused bundles failed"
|
||||
|
||||
if ! use test; then
|
||||
sed -i CMakeLists.txt \
|
||||
-e "/add_subdirectory(test/d" \
|
||||
|| die "sed disable tests failed"
|
||||
|
||||
sed -i CMakeLists.txt \
|
||||
-e "/add_subdirectory(blas/d" \
|
||||
-e "/add_subdirectory(lapack/d" \
|
||||
|| die "sed disable unused bundles failed"
|
||||
fi
|
||||
|
||||
sed -i -e "/Unknown build type/d" CMakeLists.txt || die
|
||||
|
||||
use cuda && cuda_src_prepare
|
||||
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
use doc && cmake-utils_src_compile doc
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local mycmakeargs=(
|
||||
-DEIGEN_TEST_ALTIVEC="$(usex altivec)"
|
||||
-DEIGEN_TEST_CXX11="$(usex c++11)"
|
||||
-DEIGEN_TEST_CUDA="$(usex cuda)"
|
||||
-DEIGEN_TEST_OPENMP="$(usex openmp)"
|
||||
-DEIGEN_TEST_AVX="$(usex cpu_flags_x86_avx)"
|
||||
-DEIGEN_TEST_AVX512="$(usex cpu_flags_x86_avx2)"
|
||||
-DEIGEN_TEST_F16C="$(usex cpu_flags_x86_f16c)"
|
||||
-DEIGEN_TEST_FMA="$(usex cpu_flags_x86_fma3)"
|
||||
-DEIGEN_TEST_SSE3="$(usex cpu_flags_x86_sse3)"
|
||||
-DEIGEN_TEST_SSE4_1="$(usex cpu_flags_x86_sse4_1)"
|
||||
-DEIGEN_TEST_SSE4_2="$(usex cpu_flags_x86_sse4_2)"
|
||||
-DEIGEN_TEST_SSSE3="$(usex cpu_flags_x86_ssse3)"
|
||||
-DEIGEN_TEST_NEON64="$(usex neon)"
|
||||
# -DEIGEN_TEST_X87="$(usex cpu_flags_x86_x87)"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
cmake-utils_src_compile blas
|
||||
cmake-utils_src_compile buildtests
|
||||
cmake-utils_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
use doc && dodoc -r "${BUILD_DIR}"/doc/html
|
||||
|
||||
# Debian installs it and some projects started using it.
|
||||
insinto /usr/share/cmake/Modules/
|
||||
doins "${S}/cmake/FindEigen3.cmake"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST tbb2017_20161128oss_src.tgz 2965854 SHA256 c009166233c8ea0e34530a1c5f870b79314316d19e6876b37a7e7c854080a540 SHA512 3c48ce196d2d3557e86cea7ede9dea456bbaeb29dbed34210f99c6f380406403a6056ccfa3d5befe6b29c4f8a9ee58ca6da545249cf4ec4ec85b463e04e4518c WHIRLPOOL d1ce8d07ac002c617afa7c0aa1d5cad41928a6eefd064a744b4efdd0192dd310ad8cb32b949858a7c2c44211477deffc05dbd65e8101184d4cae26744143b922
|
||||
DIST tbb43_20150611oss_src.tgz 2757631 SHA256 221f85fe64e11c9638e43b3c57d5750c26683905fc90827c0bcfefdb286e79c9 SHA512 83d5d827706b774ef5cd6df8082e5d7f48683388684423bb40565dfc25892fc2e57c382f719b78087d83e51edb3f7f7215f33d8b5039b55c32788d80efa6e0b8 WHIRLPOOL 8e98162b2307c759fb26923d76ab784dea81e166c8bf5323869d234da59641c333e5ae30b4a224bccbf20d4f5f6b75c658589f519a165ea3ad7658322f148c72
|
||||
|
@ -0,0 +1,193 @@
|
||||
diff --git a/build/FreeBSD.gcc.inc b/build/FreeBSD.gcc.inc
|
||||
index e93f8f4..2b43c51 100644
|
||||
--- a/build/FreeBSD.gcc.inc
|
||||
+++ b/build/FreeBSD.gcc.inc
|
||||
@@ -28,8 +28,8 @@ WARNING_KEY = -Wall
|
||||
DYLIB_KEY = -shared
|
||||
WARNING_SUPPRESS = -Wno-parentheses
|
||||
|
||||
-CPLUS = g++
|
||||
-CONLY = gcc
|
||||
+CPLUS = $(CXX)
|
||||
+CONLY = $(CC)
|
||||
LIB_LINK_FLAGS = -shared
|
||||
LIBS = -lpthread
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
@@ -42,7 +42,7 @@ ifneq (,$(shell gcc -dumpversion | egrep "^([6-9])"))
|
||||
endif
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
- CPLUS_FLAGS = -g -O2 -DUSE_PTHREAD
|
||||
+ CPLUS_FLAGS = -g -DUSE_PTHREAD
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD
|
||||
@@ -59,22 +59,12 @@ ifeq (ia64,$(arch))
|
||||
CPLUS_FLAGS += $(PIC_KEY)
|
||||
endif
|
||||
|
||||
-ifeq (intel64,$(arch))
|
||||
- CPLUS_FLAGS += -m64
|
||||
- LIB_LINK_FLAGS += -m64
|
||||
-endif
|
||||
-
|
||||
-ifeq (ia32,$(arch))
|
||||
- CPLUS_FLAGS += -m32
|
||||
- LIB_LINK_FLAGS += -m32
|
||||
-endif
|
||||
-
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
ifeq (ia64,$(arch))
|
||||
- ASM=as
|
||||
+ ASM=$(AS)
|
||||
TBB_ASM.OBJ = atomic_support.o lock_byte.o log2.o pause.o
|
||||
MALLOC_ASM.OBJ = atomic_support.o lock_byte.o pause.o
|
||||
endif
|
||||
diff --git a/build/linux.clang.inc b/build/linux.clang.inc
|
||||
index 237caae..8d6914e 100644
|
||||
--- a/build/linux.clang.inc
|
||||
+++ b/build/linux.clang.inc
|
||||
@@ -31,15 +31,15 @@ DYLIB_KEY = -shared
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBDL = -ldl
|
||||
|
||||
-CPLUS = clang++
|
||||
-CONLY = clang
|
||||
+CPLUS := $(CXX)
|
||||
+CONLY := $(CC)
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
||||
LIBS += -lpthread -lrt
|
||||
LINK_FLAGS = -Wl,-rpath-link=. -rdynamic
|
||||
C_FLAGS = $(CPLUS_FLAGS)
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
- CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD
|
||||
+ CPLUS_FLAGS = $(ITT_NOTIFY) -g -DUSE_PTHREAD
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD
|
||||
@@ -60,24 +60,10 @@ MALLOC_ASM.OBJ=
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
- CPLUS_FLAGS += -m64
|
||||
- LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
- CPLUS_FLAGS += -m32 -march=pentium4
|
||||
- LIB_LINK_FLAGS += -m32
|
||||
-endif
|
||||
-
|
||||
-ifeq (ppc64,$(arch))
|
||||
- CPLUS_FLAGS += -m64
|
||||
- LIB_LINK_FLAGS += -m64
|
||||
-endif
|
||||
-
|
||||
-ifeq (ppc32,$(arch))
|
||||
- CPLUS_FLAGS += -m32
|
||||
- LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (bg,$(arch))
|
||||
@@ -89,12 +75,6 @@ endif
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASM = as
|
||||
-ifeq (intel64,$(arch))
|
||||
- ASM_FLAGS += --64
|
||||
-endif
|
||||
-ifeq (ia32,$(arch))
|
||||
- ASM_FLAGS += --32
|
||||
-endif
|
||||
ifeq ($(cfg),debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
diff --git a/build/linux.gcc.inc b/build/linux.gcc.inc
|
||||
index b7ed0c5..a8e8f85 100644
|
||||
--- a/build/linux.gcc.inc
|
||||
+++ b/build/linux.gcc.inc
|
||||
@@ -32,12 +32,12 @@ DYLIB_KEY = -shared
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBDL = -ldl
|
||||
|
||||
-CPLUS = g++
|
||||
-CONLY = gcc
|
||||
+CPLUS := $(CXX)
|
||||
+CONLY := $(CC)
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
||||
LIBS += -lpthread -lrt
|
||||
LINK_FLAGS = -Wl,-rpath-link=. -rdynamic
|
||||
-C_FLAGS = $(CPLUS_FLAGS)
|
||||
+C_FLAGS := $(CPLUS_FLAGS)
|
||||
|
||||
# gcc 4.2 and higher support OpenMP
|
||||
ifneq (,$(shell gcc -dumpversion | egrep "^(4\.[2-9]|[5-9])"))
|
||||
@@ -68,7 +68,7 @@ ifneq (,$(shell gcc -dumpversion | egrep "^([6-9])"))
|
||||
endif
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
- CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD
|
||||
+ CPLUS_FLAGS = $(ITT_NOTIFY) -g -DUSE_PTHREAD
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD
|
||||
@@ -84,24 +84,12 @@ endif
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
- CPLUS_FLAGS += -m64 $(RTM_KEY)
|
||||
- LIB_LINK_FLAGS += -m64
|
||||
+ CPLUS_FLAGS += $(RTM_KEY)
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
- CPLUS_FLAGS += -m32 -march=pentium4 $(RTM_KEY)
|
||||
- LIB_LINK_FLAGS += -m32
|
||||
-endif
|
||||
-
|
||||
-ifeq (ppc64,$(arch))
|
||||
- CPLUS_FLAGS += -m64
|
||||
- LIB_LINK_FLAGS += -m64
|
||||
-endif
|
||||
-
|
||||
-ifeq (ppc32,$(arch))
|
||||
- CPLUS_FLAGS += -m32
|
||||
- LIB_LINK_FLAGS += -m32
|
||||
+ CPLUS_FLAGS += $(RTM_KEY)
|
||||
endif
|
||||
|
||||
ifeq (bg,$(arch))
|
||||
@@ -109,12 +97,6 @@ ifeq (bg,$(arch))
|
||||
CONLY = $(firstword $(notdir $(shell which powerpc{64,32,}-bg{z..a}-linux-gcc 2>/dev/null)))
|
||||
endif
|
||||
|
||||
-# for some gcc versions on Solaris, -m64 may imply V9, but perhaps not everywhere (TODO: verify)
|
||||
-ifeq (sparc,$(arch))
|
||||
- CPLUS_FLAGS += -mcpu=v9 -m64
|
||||
- LIB_LINK_FLAGS += -mcpu=v9 -m64
|
||||
-endif
|
||||
-
|
||||
# automatically generate "IT" instructions when compiling for Thumb ISA
|
||||
ifeq (armv7,$(arch))
|
||||
CPLUS_FLAGS += -Wa,-mimplicit-it=thumb
|
||||
@@ -123,13 +105,7 @@ endif
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
-ASM = as
|
||||
-ifeq (intel64,$(arch))
|
||||
- ASM_FLAGS += --64
|
||||
-endif
|
||||
-ifeq (ia32,$(arch))
|
||||
- ASM_FLAGS += --32
|
||||
-endif
|
||||
+ASM := $(AS)
|
||||
ifeq ($(cfg),debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
@ -0,0 +1,15 @@
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=418447
|
||||
|
||||
--- a/build/Makefile.test
|
||||
+++ b/build/Makefile.test
|
||||
@@ -44,8 +44,8 @@
|
||||
USE_PROXY_FLAG = $(DEFINE_KEY)HARNESS_USE_PROXY
|
||||
CPLUS_FLAGS += $(USE_PROXY_FLAG)
|
||||
LINK_TBB.LIB = $(PROXY.LIB)
|
||||
- LIBS += $(LIBDL)
|
||||
-endif
|
||||
+endif
|
||||
+LIBS += $(LIBDL)
|
||||
|
||||
TEST_SUFFIXES=secondary compiler_builtins pic
|
||||
include $(tbb_root)/build/common_rules.inc
|
@ -0,0 +1,145 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils flag-o-matic multilib-minimal toolchain-funcs versionator
|
||||
|
||||
PV1="$(get_version_component_range 1)"
|
||||
PV2="$(get_version_component_range 2)"
|
||||
MYP="${PN}${PV1}_${PV2}oss"
|
||||
|
||||
DESCRIPTION="High level abstract threading library"
|
||||
HOMEPAGE="http://www.threadingbuildingblocks.org/"
|
||||
SRC_URI="http://threadingbuildingblocks.org/sites/default/files/software_releases/source/${MYP}_src.tgz"
|
||||
LICENSE="GPL-2-with-exceptions"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE="debug doc examples"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
S="${WORKDIR}/${MYP}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-underlinking.patch
|
||||
"${FILESDIR}"/${P}-build.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
find include -name \*.html -delete || die
|
||||
|
||||
# Give it a soname on FreeBSD
|
||||
echo 'LIB_LINK_FLAGS += -Wl,-soname=$(BUILDING_LIBRARY)' >> build/FreeBSD.gcc.inc
|
||||
# Set proper versionning on FreeBSD
|
||||
sed -i -e '/.DLL =/s/$/.1/' build/FreeBSD.inc || die
|
||||
|
||||
use debug || sed -i -e '/_debug/d' Makefile
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# pc files are for debian and fedora compatibility
|
||||
# some deps use them
|
||||
cat <<-EOF > ${PN}.pc.template
|
||||
prefix=${EPREFIX}/usr
|
||||
libdir=\${prefix}/$(get_libdir)
|
||||
includedir=\${prefix}/include
|
||||
Name: ${PN}
|
||||
Description: ${DESCRIPTION}
|
||||
Version: ${PV}
|
||||
URL: ${HOMEPAGE}
|
||||
Cflags: -I\${includedir}
|
||||
EOF
|
||||
cp ${PN}.pc.template ${PN}.pc || die
|
||||
cat <<-EOF >> ${PN}.pc
|
||||
Libs: -L\${libdir} -ltbb
|
||||
Libs.private: -lm -lrt
|
||||
EOF
|
||||
cp ${PN}.pc.template ${PN}malloc.pc || die
|
||||
cat <<-EOF >> ${PN}malloc.pc
|
||||
Libs: -L\${libdir} -ltbbmalloc
|
||||
Libs.private: -lm -lrt
|
||||
EOF
|
||||
cp ${PN}.pc.template ${PN}malloc_proxy.pc || die
|
||||
cat <<-EOF >> ${PN}malloc_proxy.pc
|
||||
Libs: -L\${libdir} -ltbbmalloc_proxy
|
||||
Libs.private: -lrt
|
||||
Requires: tbbmalloc
|
||||
EOF
|
||||
}
|
||||
|
||||
local_src_compile() {
|
||||
cd "${S}"
|
||||
|
||||
local comp arch
|
||||
|
||||
case ${MULTILIB_ABI_FLAG} in
|
||||
abi_x86_64) arch=x86_64 ;;
|
||||
abi_x86_32) arch=ia32 ;;
|
||||
abi_ppc_64) arch=ppc64 ;;
|
||||
abi_ppc_32) arch=ppc32 ;;
|
||||
esac
|
||||
|
||||
case "$(tc-getCXX)" in
|
||||
*g++*) comp="gcc" ;;
|
||||
*ic*c) comp="icc" ;;
|
||||
*clang*) comp="clang" ;;
|
||||
*) die "compiler $(tc-getCXX) not supported by build system" ;;
|
||||
esac
|
||||
|
||||
CXX="$(tc-getCXX)" \
|
||||
CC="$(tc-getCC)" \
|
||||
AS="$(tc-getAS)" \
|
||||
arch=${arch} \
|
||||
CPLUS_FLAGS="${CXXFLAGS}" \
|
||||
emake compiler=${comp} work_dir="${BUILD_DIR}" tbb_root="${S}" $@
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
local_src_compile tbb tbbmalloc
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
CXXFLAGS="${CXXFLAGS} -fabi-version=4" \
|
||||
local_src_compile -j1 test
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
local bt
|
||||
local buildtypes
|
||||
if use debug ; then
|
||||
buildtypes="release debug"
|
||||
else
|
||||
buildtypes="release"
|
||||
fi
|
||||
for bt in ${buildtypes}; do
|
||||
cd "${BUILD_DIR}_${bt}" || die
|
||||
local l
|
||||
for l in $(find . -name lib\*.so.\*); do
|
||||
dolib.so ${l}
|
||||
local bl=$(basename ${l})
|
||||
dosym ${bl} /usr/$(get_libdir)/${bl%.*}
|
||||
done
|
||||
done
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins *.pc
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
doheader -r include/*
|
||||
|
||||
dodoc README CHANGES doc/Release_Notes.txt
|
||||
use doc && dohtml -r doc/html/*
|
||||
|
||||
if use examples ; then
|
||||
insinto /usr/share/doc/${PF}/examples/build
|
||||
doins build/*.inc
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
@ -0,0 +1,222 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
export CBUILD=${CBUILD:-${CHOST}}
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
|
||||
SRC_URI="!gccgo? (
|
||||
kernel_Darwin? (
|
||||
x64-macos? ( ${BOOTSTRAP_DIST}/go-darwin-amd64-bootstrap.tbz )
|
||||
)
|
||||
kernel_FreeBSD? (
|
||||
amd64-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-amd64-bootstrap.tbz )
|
||||
x86-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-386-bootstrap-1.tbz )
|
||||
)
|
||||
kernel_linux? (
|
||||
amd64? ( ${BOOTSTRAP_DIST}/go-linux-amd64-bootstrap.tbz )
|
||||
arm? ( ${BOOTSTRAP_DIST}/go-linux-arm-bootstrap.tbz )
|
||||
arm64? ( ${BOOTSTRAP_DIST}/go-linux-arm64-bootstrap.tbz )
|
||||
ppc64? (
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64-bootstrap.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64le-bootstrap.tbz
|
||||
)
|
||||
s390? ( ${BOOTSTRAP_DIST}/go-linux-s390x-bootstrap.tbz )
|
||||
x86? ( ${BOOTSTRAP_DIST}/go-linux-386-bootstrap-1.tbz )
|
||||
)
|
||||
kernel_SunOS? (
|
||||
x64-solaris? ( ${BOOTSTRAP_DIST}/go-solaris-amd64-bootstrap.tbz )
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
if [[ ${PV} = 9999 ]]; then
|
||||
EGIT_REPO_URI="git://github.com/golang/go.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI+="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz"
|
||||
case ${PV} in
|
||||
*9999*|*_rc*) ;;
|
||||
*)
|
||||
KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x64-solaris"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="http://www.golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="gccgo"
|
||||
|
||||
DEPEND="gccgo? ( >=sys-devel/gcc-5[go] )"
|
||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||
|
||||
# These test data objects have writable/executable stacks.
|
||||
QA_EXECSTACK="usr/lib/go/src/debug/elf/testdata/*.obj"
|
||||
|
||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
REQUIRES_EXCLUDE="/usr/lib/go/src/debug/elf/testdata/*"
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||
|
||||
# The go language uses *.a files which are _NOT_ libraries and should not be
|
||||
# stripped. The test data objects should also be left alone and unstripped.
|
||||
STRIP_MASK="/usr/lib/go/pkg/*.a
|
||||
/usr/lib/go/src/debug/elf/testdata/*
|
||||
/usr/lib/go/src/debug/dwarf/testdata/*
|
||||
/usr/lib/go/src/runtime/race/*.syso"
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
S="${WORKDIR}"/go
|
||||
fi
|
||||
|
||||
go_arch()
|
||||
{
|
||||
# By chance most portage arch names match Go
|
||||
local portage_arch=$(tc-arch $@)
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
s390) echo s390x ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
||||
go_arm()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
armv5*) echo 5;;
|
||||
armv6*) echo 6;;
|
||||
armv7*) echo 7;;
|
||||
*)
|
||||
die "unknown GOARM for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_os()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
*-linux*) echo linux;;
|
||||
*-darwin*) echo darwin;;
|
||||
*-freebsd*) echo freebsd;;
|
||||
*-netbsd*) echo netbsd;;
|
||||
*-openbsd*) echo openbsd;;
|
||||
*-solaris*) echo solaris;;
|
||||
*-cygwin*|*-interix*|*-winnt*)
|
||||
echo windows
|
||||
;;
|
||||
*)
|
||||
die "unknown GOOS for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_tuple()
|
||||
{
|
||||
echo "$(go_os $@)_$(go_arch $@)"
|
||||
}
|
||||
|
||||
go_cross_compile()
|
||||
{
|
||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||
}
|
||||
|
||||
pkg_pretend()
|
||||
{
|
||||
# make.bash does not understand cross-compiling a cross-compiler
|
||||
if [[ $(go_tuple) != $(go_tuple ${CTARGET}) ]]; then
|
||||
die "CHOST CTARGET pair unsupported: CHOST=${CHOST} CTARGET=${CTARGET}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack()
|
||||
{
|
||||
if [[ ${PV} = 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
fi
|
||||
default
|
||||
}
|
||||
|
||||
src_compile()
|
||||
{
|
||||
export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os)-$(go_arch)-bootstrap
|
||||
if use gccgo; then
|
||||
mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die
|
||||
local go_binary=$(gcc-config --get-bin-path)/go-5
|
||||
[[ -x ${go_binary} ]] || go_binary=$(
|
||||
find "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-5 | sort -V | tail -n1)
|
||||
[[ -x ${go_binary} ]] || die "go-5: command not found"
|
||||
ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die
|
||||
fi
|
||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
|
||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||
export GOHOSTOS=$(go_os ${CBUILD})
|
||||
export CC=$(tc-getBUILD_CC)
|
||||
|
||||
export GOARCH=$(go_arch)
|
||||
export GOOS=$(go_os)
|
||||
export CC_FOR_TARGET=$(tc-getCC)
|
||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||
if [[ ${ARCH} == arm ]]; then
|
||||
export GOARM=$(go_arm)
|
||||
fi
|
||||
elog "GOROOT_BOOTSTRAP is ${GOROOT_BOOTSTRAP}"
|
||||
|
||||
cd src
|
||||
./make.bash || die "build failed"
|
||||
}
|
||||
|
||||
src_test()
|
||||
{
|
||||
go_cross_compile && return 0
|
||||
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash -no-rebuild || die "tests failed"
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
local bin_path f x
|
||||
|
||||
dodir /usr/lib/go
|
||||
insinto /usr/lib/go
|
||||
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# [1] https://golang.org/issue/2775
|
||||
doins -r bin doc lib pkg src
|
||||
fperms -R +x /usr/lib/go/bin /usr/lib/go/pkg/tool
|
||||
|
||||
cp -a misc "${D}"/usr/lib/go/misc
|
||||
|
||||
if go_cross_compile; then
|
||||
bin_path="bin/$(go_tuple)"
|
||||
else
|
||||
bin_path=bin
|
||||
fi
|
||||
for x in ${bin_path}/*; do
|
||||
f=${x##*/}
|
||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||
done
|
||||
dodoc AUTHORS CONTRIBUTORS PATENTS README.md
|
||||
}
|
@ -1,7 +1,5 @@
|
||||
DIST libressl-2.3.7.tar.gz 3013807 SHA256 f59f5d859ce4867cc4761a13d02024f699491e277d54a9fe76e053e5b5f70860 SHA512 5774ab7aa0e4c8f7c61c01192d6c5a782cef57022fcdc64cc61180b4f2ae483145c2e91d56eae78db27dfce04a7ca67fb63e6ce8a8b84b4bc961f65a2a108747 WHIRLPOOL e68251d15a9a2dc9d35b3a4bfd092f7e030d0ba03339f000f201bd297190538368b12324336e5437800bf3b2f481ff739027d30f3f26367ddd48937f35a8f4a3
|
||||
DIST libressl-2.3.8.tar.gz 3013999 SHA256 ae6aa4ed2c7d201310fef184310a85c88a315506f633e93fcdeaaec0d5a54fc2 SHA512 5cd99e740894afffa6803087dde4e4207e035bf6f440904fcd4439ca1f63f22bdfe367423b2e95264bef06d1a0f929526d90e623864d0f7e99250a4f825bf282 WHIRLPOOL e4afccd135d0f5cda295e9fe06d81eb0f5fcfb3ffaa18ed2d9a06e5d2fe1c196dc7912eac7e5427f6aa62564f7e6432f00154d5fc11de207da91c6c9d334a254
|
||||
DIST libressl-2.3.10.tar.gz 3015911 SHA256 2d0b5aade0c5ed31a3c194fad5f8dd71cdd218b70205342739d24a625a54c4d3 SHA512 c783a1923a03a9c7c5d77a16dd4f9c798374c50e332ee7bc94ad6d5c2e112fb3db1de987ce84b3aaf822a1f68f4385270fafd687870bc8b275cc581619cb1d1e WHIRLPOOL cbfb31375b767f74e73ff04078cd2ef0b23501900269770e9b540d9ee58714e1f87068b8c11799e62d78edc22eeb4e535c61c6db4a63f3f3b30ae90871a2269c
|
||||
DIST libressl-2.3.9.tar.gz 3014155 SHA256 a6ff13664eb13af6dba00259cfb55a306b32b7688feef520a52fc0f60b8196fc SHA512 3b0f27d419bc6f69d6fbde8f3b6e6abcda86591c0400e49e2d4327b834a3996fd7838a2cfa3a999c4e949e29f7d1ee319e26ee4c2b1a25b3fb4f07fe15345810 WHIRLPOOL 26dd4c09f114bc533aad6845bc2110d1aa400032dc20f0f496bc049e8866acb6b5157973f62fcd4047c742247aedc9f28ea2ee346ab19a07395ef27202422e44
|
||||
DIST libressl-2.4.2.tar.gz 3021644 SHA256 5f87d778e5d62822d60e38fa9621c1c5648fc559d198ba314bd9d89cbf67d9e3 SHA512 abacecb318a787f5ef9d8469638b7485fe237d4d993f410d7da8c0773ab8eff8c7da988fe965f793b268711afe599dc28f994eedeaa2aafebeb40faa30af38db WHIRLPOOL a2cdd3109dd200fa9dc4ae0f47f536b2b6d68fd2e53901d4f90a8f39e71af41010d925cd408616f8e5da56f7a8b0397ab21cccca5bfd32ac68ee9bf48ccbb99a
|
||||
DIST libressl-2.4.3.tar.gz 3014721 SHA256 bd5726f3e247e7a7d30ce69946d174b8fb92d999d22710c65f176c969812960e SHA512 db3b585ca727eb3e5c5929200c8c86e01559f0d23edcddd6715141e596a3a72a9dd1a69fafda10239def92b586fc582578ecc0bf12bdfbaf083d18e0d3fe5300 WHIRLPOOL eb38d65066e007b7dc88eb26a634c8e45045a8c8a2b5ec19e082607e894b509d1ce93297b77313b1a4f6b12146a22397881e0af78a4e1bff79bfbab55c583c71
|
||||
DIST libressl-2.4.4.tar.gz 3014463 SHA256 6fcfaf6934733ea1dcb2f6a4d459d9600e2f488793e51c2daf49b70518eebfd1 SHA512 3999e1a61d3e5f14fbce72fdb0089eaf1481fb20f8675a56b2ce8b5388cf7e1ef7d2f66d9593960b708037537053b47f87b2a7f820504213a756b21c34584fe4 WHIRLPOOL 8c3f2b78a31243f49a2e44ad2e43db6637465886652d164e290344fbe207479913a20d857514fd88cf0429131fb64ef2d31eefb178c362d779c400110e9605f1
|
||||
DIST libressl-2.5.0.tar.gz 3012855 SHA256 8652bf6b55ab51fb37b686a3f604a2643e0e8fde2c56e6a936027d12afda6eae SHA512 6372b27f1696e957389646a05b0572ad6936443b34fee0e57153b063831e00318fa1b434e3e0369f0c3df872e15ad3bee2f85db0851021444612f2a6f266a332 WHIRLPOOL 9b145915734a1914f0d36df04a8b35aa2ce2c91f7d6b3a978c5c6845314c56c61718fce6c471ba1a03f3d1ff052246c3db767adee99bc3d38a6bd692b9086ad0
|
||||
DIST libressl-2.4.5.tar.gz 3016462 SHA256 d300c4e358aee951af6dfd1684ef0c034758b47171544230f3ccf6ce24fe4347 SHA512 bdbd0fcb868e77e5fba26da7653fe6e7f7b5017455e1beb13e11b42b8db0742b9ca6442f0949adc91ddc1f53fb93549a6c0529795cd34db2bf887cbca2d33070 WHIRLPOOL 1caa2e18304ec86f15f73e935a586d774aaa3c4248970596a7fa869f718ef9d12f6211e2abdbee90af4e4f83dfba77b45b3529dcc1077fe71e26e3beecf38bbf
|
||||
DIST libressl-2.5.1.tar.gz 3266271 SHA256 f71ae0a824b78fb1a47ffa23c9c26e9d96c5c9b29234eacedce6b4c7740287cd SHA512 44557c7c3e6bc9c0af9ae83b26765be9707d53708a32a5a945108a49ea20503afa4197919801830d27821c069b87e0e0edd284bd1b8a85340dbc0da2c162c2f9 WHIRLPOOL e31b487e9e88f372cd22db05e54e74900181120cf8c6105f5531658e7b467722680921f3630b8943ee0ec5f5777cb76a7ddc64e4d43f166903928aaa4f98509c
|
||||
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib-minimal
|
||||
|
||||
DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
|
||||
HOMEPAGE="http://www.libressl.org/"
|
||||
SRC_URI="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC openssl"
|
||||
# Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
|
||||
# we'll try to use the max of either. However, if either change between
|
||||
# versions, we have to change the subslot to trigger rebuild of consumers.
|
||||
SLOT="0/38"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
|
||||
IUSE="+asm static-libs"
|
||||
|
||||
RDEPEND="!dev-libs/openssl:0"
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="app-misc/ca-certificates"
|
||||
|
||||
src_prepare() {
|
||||
touch crypto/Makefile.in
|
||||
|
||||
sed -i \
|
||||
-e '/^[ \t]*CFLAGS=/s#-g ##' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-g"#"#' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-O2 ##' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
|
||||
-e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
|
||||
-e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
|
||||
configure || die "fixing CFLAGS failed"
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
$(use_enable asm) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake check
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
prune_libtool_files
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib-minimal
|
||||
|
||||
DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
|
||||
HOMEPAGE="http://www.libressl.org/"
|
||||
SRC_URI="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC openssl"
|
||||
# Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
|
||||
# we'll try to use the max of either. However, if either change between
|
||||
# versions, we have to change the subslot to trigger rebuild of consumers.
|
||||
SLOT="0/39"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
|
||||
IUSE="+asm static-libs"
|
||||
|
||||
RDEPEND="!dev-libs/openssl:0"
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="app-misc/ca-certificates"
|
||||
|
||||
src_prepare() {
|
||||
touch crypto/Makefile.in
|
||||
|
||||
sed -i \
|
||||
-e '/^[ \t]*CFLAGS=/s#-g ##' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-g"#"#' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-O2 ##' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
|
||||
-e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
|
||||
-e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
|
||||
configure || die "fixing CFLAGS failed"
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
$(use_enable asm) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake check
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
prune_libtool_files
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=MSCHOUT
|
||||
DIST_VERSION=3.26
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Perl Authentication and Authorization via cookies"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=www-apache/mod_perl-2
|
||||
virtual/perl-Carp
|
||||
>=dev-perl/Class-Load-0.30.0
|
||||
virtual/perl-Encode
|
||||
dev-perl/HTTP-Body
|
||||
dev-perl/Hash-MultiValue
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/perl-ExtUtils-MakeMaker
|
||||
test? (
|
||||
>=dev-perl/Apache-Test-1.390.0
|
||||
>=dev-perl/URI-1.310.0
|
||||
>=virtual/perl-Test-Simple-0.940.0
|
||||
!www-apache/mpm_itk
|
||||
)
|
||||
"
|
||||
src_test() {
|
||||
perl_rm_files t/author-* t/signature.t
|
||||
perl-module_src_test
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST Apache-AuthCookie-3.23.tar.gz 45053 SHA256 c40c7f28447ad1e17f00ac63c0855d0af41b31d212fcc72ae91cc284e5aee9a7 SHA512 e8948725c1f2ae3631004ec666ecd20b9c3b5fda86408b980e5d0a3e0d36a8780d905718b1c7b5ca117fc15e130bf35f59ef83c598870dc5b874ee362a4fdcb7 WHIRLPOOL 016a518371301209d4c81370e95afb071e013b4b85ad26b6b544f0a9e7383aae3b23fbfb0de446f84d55cf928eda7c64ab705698b636710bdd1460d53f5b7e13
|
||||
DIST Apache-AuthCookie-3.24.tar.gz 48349 SHA256 af153ba6ad362d5834565b4484b0e06e2eca64a5d3e8d83eda6be03e23f9b5f9 SHA512 023cc9c695d5b43a92a46b80a2c8ce556d89f0f3ed83d05cb068db5b50d96e1a0e4cd52491d2eb5f0e680e073bc16b36c214b2527a5c5d31eee1a37ed6cd2f60 WHIRLPOOL f8f024bf663ad420057897763d034680366eeefe856b3512189dfbe1fea72c511c303b1adda01c84b934563980395520b7474a8cbddd15247da1478645456c05
|
||||
DIST Apache-AuthCookie-3.25.tar.gz 50318 SHA256 30e8066eed5518fd7f686c621aefb2db0c7d22221a6d7e2b926dcf8f2a20d008 SHA512 73eb4c20170629e71663df7ef0cf9bcf780d25795e007674e797e78de2540a2eef04e9afa6e31cc1d372348c23af718750d610f67851ef17c8d39e8d6ae6ca42 WHIRLPOOL 9b749e631c811003f2f8318128eb05267a0f2187ce0cff5860c0d4382092dd1cc8b492eaa91736d441ad6ff4f315f3c9fd047ad3eca2a8590f91914b7ca0d360
|
||||
DIST Apache-AuthCookie-3.26.tar.gz 57062 SHA256 2a37c984a470c69ca28c74bd23a8b7c8629fc728d1af36071796f2c478fb348a SHA512 afb156f305b1accfc796516238d68eb2c4d270e0ff0cf592ef11f93f476e4c7ecd7c93366447cf547abd5aa7d5b390800b24a7065552336a6647cefa2ff9f5ed WHIRLPOOL 0949e3b11dd0a6b7cc2b5c52459c86b6b663f8ff9f3d84bea85e0dfba123ea7976c179eee01eaf3710416fa6c15047b06ecd848cea2ae45960af67df24f638b4
|
||||
|
@ -0,0 +1 @@
|
||||
DIST WWW-Form-UrlEncoded-0.23.tar.gz 15068 SHA256 c87de2c895cf8a526bf5d3a231e6ca0e6d4cfdca72f8840b3fb039dbde478852 SHA512 1570edff2b2eaa8fb9a918ebb33ea8d4a26f883ad66093f291370ae96fcc1f06bf45b1c08f6099bff4064cbd20942f50f94d0455bf49a135373a3bffc5a2c50d WHIRLPOOL 07a4cca601c7189fdcd3940323485ae0648f9112c5c5ae20ddd54ee1cc0cc25c99c4ed8ac1425d96bca74dfb42a23be2043b9d9c5eff7f79883832d1a3c121fe
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=KAZEBURO
|
||||
DIST_VERSION=0.23
|
||||
DIST_EXAMPLES=( "eg/*" )
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="parser and builder for application/x-www-form-urlencoded"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
virtual/perl-Exporter
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-perl/Module-Build-0.380.0
|
||||
test? (
|
||||
>=dev-perl/JSON-2.0.0
|
||||
>=virtual/perl-Test-Simple-0.980.0
|
||||
)
|
||||
"
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>perl@gentoo.org</email>
|
||||
<name>Gentoo Perl Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="cpan">WWW-Form-UrlEncoded</remote-id>
|
||||
<remote-id type="cpan-module">WWW::Form::UrlEncoded</remote-id>
|
||||
<remote-id type="cpan-module">WWW::Form::UrlEncoded::PP</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST keystonemiddleware-4.4.1.tar.gz 194711 SHA256 dff35f0e4acb77f34c9c880bd4f456bbe26a1c4701815d82e8c27ff74a5dfb52 SHA512 c04383836740222d49324cb5f25f8b156424abaa74ac9482a2deb2e1d54cc6d990a864451a075bc12c3d7d38da7235f236e8a8cfb4c3748953c14a4505eeb99f WHIRLPOOL 76a96e6140752cd8eb1d060591c5dec1181abf873c82595be89d9597e3c3e5d3344739fab6b8d0058ae2ab47863e5169d4bbcb4a83f46a24dea042c0ccfac8d0
|
||||
DIST keystonemiddleware-4.9.0.tar.gz 198244 SHA256 5d92ef9321a49f06c59d53a92fecc572c559d054abd7f5b7ce5945916770b993 SHA512 0b8870e93bfba3c385cac4515f86a15cc72371f1274db284560d4ecb0e6f4f50064b093a91060728051a2d0732ae7c40a9d2d2dd8b0cfa29ca527b6dceba9e80 WHIRLPOOL 6fd48a653bbe6d5d7d2c40a97dd46310489a153a55e5096d007a54dfd944e22c0f758715e100138f46fbbada241cce5da94338c89be3b293c2142f6cc328ac54
|
||||
DIST keystonemiddleware-4.9.1.tar.gz 196430 SHA256 93fa012c70b2ac5773ecf7185ef94a224ca70a32728ad7d07cf12540f507043b SHA512 baff23d86e8157a465646a23fba873739fe019319873d7385ba5ef843c4546d14919913648075122e56a3805f03b91b2a1b03c3206bcbd05a3540a58925a1d01 WHIRLPOOL 6103d6621bce0020672ef7a04d5191be9eb876ae0fc279e83402655136f8e132fa4aaaffcab06f789dbd73a3f9246ef567d6c5dc77b7c3b14e6760a3cf857f2f
|
||||
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A middleware for the OpenStack Keystone API"
|
||||
HOMEPAGE="https://github.com/openstack/keystonemiddleware"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc examples test"
|
||||
|
||||
CDEPEND=">=dev-python/pbr-1.6[${PYTHON_USEDEP}]"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
${CDEPEND}
|
||||
test? (
|
||||
>=dev-python/coverage-3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/oslo-sphinx-3.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslotest-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/reno-1.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-mock-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
!~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
|
||||
<dev-python/sphinx-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/testresources-0.2.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-memcached-1.56[${PYTHON_USEDEP}]
|
||||
>=dev-python/bandit-1.1.0[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=dev-python/keystoneauth-2.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-2.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-3.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/positional-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycadf-1.1.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/pycadf-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-keystoneclient-2.0.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/python-keystoneclient-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.2.3[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i '/^hacking/d' test-requirements.txt || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
testr init
|
||||
testr run || die "testsuite failed under python2.7"
|
||||
flake8 ${PN/python-/}/tests || die "run over tests folder by flake8 drew error"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
use examples && local EXAMPLES=( examples/.)
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
DESCRIPTION="HTML documentation for Python"
|
||||
HOMEPAGE="http://www.python.org/doc/"
|
||||
SRC_URI="mirror://gentoo/python-${PV}-docs-html.tar.bz2"
|
||||
# The upstream digest is unstable, see https://bugs.python.org/issue25170
|
||||
#SRC_URI="https://docs.python.org/${PV%.*}/archives/python-${PV}-docs-html.tar.bz2"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="3.6"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/python-${PV}-docs-html"
|
||||
|
||||
src_install() {
|
||||
dohtml -A xml -A inv -r ./
|
||||
echo "PYTHONDOCS_${SLOT//./_}=\"${EPREFIX}/usr/share/doc/${PF}/html/library\"" > "60python-docs-${SLOT}"
|
||||
doenvd "60python-docs-${SLOT}"
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby21 ruby22"
|
||||
|
||||
inherit cmake-utils multilib ruby-ng
|
||||
|
||||
DESCRIPTION="A cross-platform ruby library for retrieving facts from operating systems"
|
||||
HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
|
||||
SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${S}/all/${P}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="debug test"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
|
||||
|
||||
BDEPEND="
|
||||
>=sys-devel/gcc-4.8:*
|
||||
>=dev-libs/boost-1.54[nls]
|
||||
>=dev-libs/leatherman-0.9.3
|
||||
>=dev-cpp/yaml-cpp-0.5.1
|
||||
dev-cpp/cpp-hocon"
|
||||
CDEPEND="
|
||||
dev-libs/openssl:*
|
||||
sys-apps/util-linux
|
||||
app-emulation/virt-what
|
||||
net-misc/curl
|
||||
!<app-admin/puppet-4.0.0"
|
||||
|
||||
RDEPEND="${CDEPEND}"
|
||||
DEPEND="${BDEPEND}
|
||||
${CDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# Remove the code that installs facter.rb to the wrong directory.
|
||||
sed -i '/install(.*facter\.rb/d' lib/CMakeLists.txt || die
|
||||
sed -i '/install(.*facter\.jar/d' lib/CMakeLists.txt || die
|
||||
# make it support multilib
|
||||
sed -i "s/\ lib)/\ $(get_libdir))/g" lib/CMakeLists.txt || die
|
||||
sed -i "s/lib\")/$(get_libdir)\")/g" CMakeLists.txt || die
|
||||
# patches
|
||||
epatch "${FILESDIR}/facter-3.5.0-jar.patch"
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON
|
||||
-DCMAKE_BUILD_TYPE=None
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR=/var
|
||||
-DUSE_JRUBY_SUPPORT=FALSE
|
||||
-DBLKID_LIBRARY=/$(get_libdir)/libblkid.so.1
|
||||
)
|
||||
if use debug; then
|
||||
mycmakeargs+=(
|
||||
-DCMAKE_BUILD_TYPE=Debug
|
||||
)
|
||||
fi
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
doruby "${BUILD_DIR}"/lib/facter.rb
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cmake-utils_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
ruby-ng_src_install
|
||||
if [[ $(get_libdir) == lib64 ]]; then
|
||||
dodir /usr/lib64
|
||||
mv "${D}/usr/lib/"* "${D}/usr/lib64/"
|
||||
rmdir "${D}/usr/lib"
|
||||
fi
|
||||
doenvd "${FILESDIR}"/00facterdir
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST buildbot-console-view-0.9.0.post1.tar.gz 630459 SHA256 1415fb5afaa5a450a38349ce799190de34749449f1147ae42b6adf5ccfca8735 SHA512 c209c8dd320df2a7a9ab8bd8276a081c981981645ca85511320e5dc755957623cc051feb57904c5208e6f7e2b9f7c4ac6f204c574445cdff643685a2d5dafe17 WHIRLPOOL c81860f92bc6d55a5fa925d2b415ad640f4150573abfde878cf3e02c8f7cecba60de6e8d87571b8dd8f6d0d7ae24fcf29afbce532bb517e90f93644f4c80ec57
|
||||
DIST buildbot-console-view-0.9.1.tar.gz 630486 SHA256 028288d2ba8f7c79043c8b0751a53cfedf50f3134dbf57740d310dc708f71cef SHA512 d5936c0494e626ad8db5b1f75994978805d0e65d57b9c4bcce7b1584f32699b4ca2023504b647b54f91ab669e084b7d18973060b512a316808cd892aca2e8fdd WHIRLPOOL 7476cb96e63da87953a6602ceca3aa75eaa0cb6d10e3d49871d333c476b185a068a0fe17ed07d9715ad7c148d686701a702a5366fdf05d96149a6ffb49ae5839
|
||||
DIST buildbot-console-view-0.9.2.tar.gz 630903 SHA256 a5acb36e20410bd8fe7a6a34c3afd83115e80651f92f1705a0641e526344e74a SHA512 6b1e05b7b846ecd5cd0d1f091c5cb2f3fe9a7cb6db5651ad406cf7f62fc04ebe68390b459fab78c166b864305135dee7f982f1fbc02ec67060ac3d64c0b90edc WHIRLPOOL c3796d9b60149592d2c0c1c92f91c11039f47fb0260e3ce549b48f251637c0a49a6b83c69b71383838984fdf6b4aeab3508a93b8303c14bada2de0d87cc4d4e7
|
||||
DIST buildbot-console-view-0.9.3.tar.gz 631462 SHA256 b389b4024e52824463e696d3ed9a56de8ea5de60abb01ddbb6e2f402ea547fe6 SHA512 0fc51252e323917f64f175ee2cfd46bdab7dc07a921d0fb74c0b5828cc5212ef5f5d2ae43c1f1fe5e2c32a0dab19a52d6bb7c7bb3ce50bdfdb18af02eaf4de82 WHIRLPOOL 63ad18e39c228226ce2ab5441785b013051c732738e54190c214a0a35476fc78e0f5b3c731ecce520f5920777bf728f20e2f0a42615ea9a4049c6f7fab4956df
|
||||
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
EGIT_REPO_URI="git://github.com/buildbot/buildbot.git"
|
||||
|
||||
[[ ${PV} == *9999 ]] && inherit git-r3
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Buildbot console-view plugin"
|
||||
HOMEPAGE="http://trac.buildbot.net/ https://github.com/buildbot/buildbot http://pypi.python.org/pypi/buildbot"
|
||||
|
||||
MY_V="0.9.0.post1"
|
||||
MY_P="${PN}-${MY_V}"
|
||||
[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
#[[ ${PV} == *9999 ]] && S=${S}/www/base
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST buildbot-pkg-0.9.0.post1.tar.gz 3369 SHA256 7149d8f4d906914b77375855c3de30ec2c9edb26f5da6c654dcceb360eb3353b SHA512 decef481958f4f85797260e00a501a55e6c8f0b3938ca9d8b98f773481a7484f221ceb5eb4e45ed7efc32e88bb16a4431ae0c2e7a8203c384915beea2f32f295 WHIRLPOOL d33a88b2c8ee8f21a62d46eaa8099fb3b579ba9c1c21cbf1cdc8569840cf66f4b8415c7a662344d3a2e472947984bb248c81e761df73d8aa2bb8ee471bc5e8d7
|
||||
DIST buildbot-pkg-0.9.1.tar.gz 3800 SHA256 6dab917d6bc689fef1c6bc30d6af041ce4fc56c3dacd0378957c3d606094f3a3 SHA512 28b644c64a38d53305c6955a45596c6a27f988363a0d0bd980922842f3d6712b6ee35d74f7124eae5269b95c8755eb4922546d1ea9237b93f8694f4993baa1e8 WHIRLPOOL 09fed25389b43f2688db2e60b0ea7ad73fabd5acca893f2ed958214ccc5449373e950bacc297e403560ae0cabf9f588dae63763e3d8204b955d0705ecc6f2230
|
||||
DIST buildbot-pkg-0.9.2.tar.gz 3803 SHA256 7c9c8e0e9c85d129e2147c596588df81f29aec72411b7284a57ebb7cfdba1a6e SHA512 b64f48fe2fe645282856ac5e720490cdb9af7b0a4763eeeb95777d652d46b8cb5f2b904b8c109ab6bc18a3f9fb01292a3ddc106ef1e89b84059c7ec025bcdda6 WHIRLPOOL 58765b2ef28d774d7b862f240017fe90ca1f519fee61e3f33045569418777c6ffe2c48f1bea0affb7b60846c1b139856857bce10b09ce23416dc6be33c8f03ed
|
||||
DIST buildbot-pkg-0.9.3.tar.gz 3799 SHA256 d240d342be4ca01c4597bda039133af8db713ba7b7c2104718d0c357374b2409 SHA512 64fbcd8afee051afe9b76afec63eb463cf7cd2c89c320dafca2f024923a1dbc49fd67dd9f514d8108b85990ca2981be36ed650fcf37486c7b909bd1329efd832 WHIRLPOOL 2bb200ba9b703cec056f3fc1e92130881164193e46a170315bca84b0fac8d743a40e12b0005764b0517133bee973059ce5731a0eb1d5343c28a5bc20556365b1
|
||||
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
EGIT_REPO_URI="git://github.com/buildbot/buildbot.git"
|
||||
|
||||
[[ ${PV} == *9999 ]] && inherit git-r3
|
||||
inherit distutils-r1
|
||||
|
||||
MY_V="0.9.0.post1"
|
||||
MY_P="${PN}-${MY_V}"
|
||||
|
||||
DESCRIPTION="BuildBot common www build tools for packaging releases"
|
||||
HOMEPAGE="http://trac.buildbot.net/ https://github.com/buildbot/buildbot http://pypi.python.org/pypi/buildbot"
|
||||
[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST buildbot-waterfall-view-0.9.0.post1.tar.gz 704789 SHA256 0f5469dfa30572b5f8f12588003188d68c9541c80876860727f2fd5f02df3b75 SHA512 45e055f694f208f97d11c20db56a107eae3ee7c6308e4e74b5569b46baeb0a24bc3a2d99a30f28c3231570f2bbb3c492d503e7128a569d9d33ec684f8f59b72f WHIRLPOOL bc8ba2e309a6674c0afbb8781e1038d2b693217a45fd8cbdbaceda8cf9fefc705fea23c21ac74c23e87866676df0323e5a3eac4504da91df53dd108a044910b6
|
||||
DIST buildbot-waterfall-view-0.9.1.tar.gz 704434 SHA256 b5026f746a0bea9af544f4ad46b21781e4dccaf64bf645ee5dc747e442100fbb SHA512 f97d974aee73cc84c4f9699a1bf4765434e31ed3b6ad2da58fff1da13a59f4cd327b736da19018c7e5ad609da5a3ba87ab9f4f11c28e8d3120d3c1a2796673ef WHIRLPOOL c481e3b8afe3ef7ea071b2259ea5df02e569e468043de58e1dc2eb34a827be8e99eb46bd1f9f9f22b75c2ee9068917b5ecf588c8b06124251b08ba4713dd8b67
|
||||
DIST buildbot-waterfall-view-0.9.2.tar.gz 704942 SHA256 1be89234e8555c7c058a4b176e19e751edcbca4e0e415f09bec492668ac0da1e SHA512 b7c20175da7746ea650507dc79eb64fdb8d601ccfa7778120e9aa4653ae14f951d80fa79d016a77d0259ac56a3acb0326dad1325150e5db88bad044c31d79d74 WHIRLPOOL bb3b6560e55c9e4a4b146b8e9bc27e6bf2560b972dfd14fd75ed823cc33250fbf3bcd2e8b86b54ffdbde82010de0d0d1753c72620befef285a24501304473dcc
|
||||
DIST buildbot-waterfall-view-0.9.3.tar.gz 705482 SHA256 cf3c83a3bc5682d235800c17dc5cf0fe54c165b5c7004e810c13da0f34137d0c SHA512 8eda91f327c73b674bc474bdd2139e9565482e59b4acc9ee9eb6d940ba8606c1f2985bce53511a827974552708ab1c6e31e64a5874deb4d16dea434c0b11067e WHIRLPOOL 3c57366b27f26b554762eb056ea938384572c0975a873582f54545d5e53d78e3d3d7ed7de1b88a0f5b68ab7fae93e7e59b0c3568e0f346b62a79e8eb1c0a6c09
|
||||
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
EGIT_REPO_URI="git://github.com/buildbot/buildbot.git"
|
||||
|
||||
[[ ${PV} == *9999 ]] && inherit git-r3
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Buildbot waterfall-view plugin"
|
||||
HOMEPAGE="http://trac.buildbot.net/ https://github.com/buildbot/buildbot http://pypi.python.org/pypi/buildbot"
|
||||
|
||||
MY_V="0.9.0.post1"
|
||||
MY_P="${PN}-${MY_V}"
|
||||
[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
#[[ ${PV} == *9999 ]] && S=${S}/www/base
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
|
||||
|
||||
[[ ${PV} == *9999 ]] && inherit git-r3
|
||||
inherit readme.gentoo user distutils-r1
|
||||
|
||||
DESCRIPTION="BuildBot Slave Daemon"
|
||||
HOMEPAGE="http://trac.buildbot.net/ http://code.google.com/p/buildbot/ http://pypi.python.org/pypi/buildbot-slave"
|
||||
|
||||
MY_V="0.9.0.post1"
|
||||
MY_P="${PN}-${MY_V}"
|
||||
[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
|
||||
|| ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/twisted-core-8.0.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
dev-python/future[${PYTHON_USEDEP}]
|
||||
!<dev-util/buildbot-0.9.0_rc1"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/mock[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
[[ ${PV} == *9999 ]] && S=${S}/slave
|
||||
|
||||
pkg_setup() {
|
||||
enewuser buildbot
|
||||
|
||||
DOC_CONTENTS="The \"buildbot\" user and the \"buildbot_worker\" init script has been added
|
||||
to support starting buildbot_worker through Gentoo's init system. To use this,
|
||||
set up your build worker following the documentation, make sure the
|
||||
resulting directories are owned by the \"buildbot\" user and point
|
||||
\"${ROOT}etc/conf.d/buildbot_worker\" at the right location. The scripts can
|
||||
run as a different user if desired. If you need to run more than one
|
||||
build worker, just copy the scripts."
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doman docs/buildbot-worker.1
|
||||
|
||||
newconfd "${FILESDIR}/buildbot_worker.confd" buildbot_worker
|
||||
newinitd "${FILESDIR}/buildbot_worker.initd" buildbot_worker
|
||||
systemd_dounit "${FILESDIR}/buildbot_worker.service"
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST buildbot-www-0.9.0.post1.tar.gz 687998 SHA256 54b6438d46001b97c09b37490e0359d4515357574a9f3f83b796ce4b74897c11 SHA512 e1ed618c7467ac8d3620a9ab1ff14010ed6826562ef117c893cecaab18c06cc4619d9883a45f85ea22b76259bdc1a5bba050afe112aba9449917b7f4c3b3f5ef WHIRLPOOL 870d349a9a52fc9d12a162cd0b5fa94cb9b44c7aacfbaa1d148151e753c11b9fa906f92b85f2858cdc796a2573694c93f560a5fd99ecd19adaed9be68342ed8e
|
||||
DIST buildbot-www-0.9.1.tar.gz 686034 SHA256 795a951f62d5313543d6cdb848dfd6c658cf58871021ac7b33a153b76de773b6 SHA512 0700d73f1b039571082e9209db09d4faa5ffeeff50db5ac1da9cfade70594b680b083d7421244a0d111b80b36699fee4eb01a9fbbd06248e22c1a38d17b8dc11 WHIRLPOOL fcc86e430918876dc45aa12b5d17e976171eb25a1473e18acd91ec045bbc54eeddd2d5e5917b05bde743241560597243ae246173c1be1ac81d086c5cc6fcef18
|
||||
DIST buildbot-www-0.9.2.tar.gz 689448 SHA256 063660ff23874e24b713d16d966beaaff5e0d67c437e3627db834f0631c49f82 SHA512 a5edf4da2a7e626b329b75242a5f1588c6ee95f4f242f155e23c4fd4c4ea4e372ba74cd23508f1ff4a3105f8086ed6171f9631d96cffbe8c7216a3ead9ac2320 WHIRLPOOL 58f2273dc425e6c1219a7dfdc25dcd647a7a94aada970777dd97c5607249ace710fda5c8c728feff703fa7976ac14873595ec4497ff1ddccfd958eecf66d74b4
|
||||
DIST buildbot-www-0.9.3.tar.gz 690646 SHA256 ff0edacd78702f3b2a2052dc2a51c60eaf5859dd0f1aed17fa5ae91579fafa0e SHA512 3f4d1992ea9da7789a7dbeb06d500e8129d285146ef90e868da2cfc88bdab3de8342befdfd222f0641688353a9dc0a3aedd5324dfd39d1fbca96326176bd9651 WHIRLPOOL 17a0acbca3e1d8333772a8a4567e41851901c0f72ffee451d868756f3a3635aa3f88e6dccf1e3a7f83c1daa6c853caed1bd67eeab4f8479b898bab59059d90e3
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
EGIT_REPO_URI="git://github.com/buildbot/buildbot.git"
|
||||
|
||||
[[ ${PV} == *9999 ]] && inherit git-r3
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="BuildBot base web interface, use with buildbot-{console-view,waterfall-view}..."
|
||||
HOMEPAGE="http://trac.buildbot.net/ https://github.com/buildbot/buildbot http://pypi.python.org/pypi/buildbot"
|
||||
|
||||
MY_V="0.9.0.post1"
|
||||
MY_P="${PN}-${MY_V}"
|
||||
[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
RDEPEND=""
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
|
||||
~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
|
||||
~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
#[[ ${PV} == *9999 ]] && S=${S}/www/base
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,200 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
EGIT_REPO_URI="https://github.com/buildbot/${PN}.git"
|
||||
|
||||
[[ ${PV} == *9999 ]] && inherit git-r3
|
||||
inherit readme.gentoo-r1 user systemd distutils-r1
|
||||
|
||||
MY_V="0.9.0.post1"
|
||||
MY_P="${PN}-${MY_V}"
|
||||
|
||||
DESCRIPTION="BuildBot build automation system"
|
||||
HOMEPAGE="http://trac.buildbot.net/ https://github.com/buildbot/buildbot http://pypi.python.org/pypi/buildbot"
|
||||
[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
IUSE="crypt doc examples irc mail manhole test"
|
||||
|
||||
RDEPEND=">=dev-python/jinja-2.1[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
>=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
>=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
|
||||
crypt? (
|
||||
>=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
|
||||
dev-python/idna[${PYTHON_USEDEP}]
|
||||
dev-python/service_identity[${PYTHON_USEDEP}]
|
||||
)
|
||||
irc? (
|
||||
dev-python/txrequests[${PYTHON_USEDEP}]
|
||||
|| ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
)
|
||||
mail? (
|
||||
|| ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
)
|
||||
manhole? (
|
||||
|| ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/twisted-conch-14.0.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
)
|
||||
dev-python/future[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/txaio-2.2.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
|
||||
doc? ( >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
>=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
>=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
|
||||
(
|
||||
>=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
)
|
||||
dev-python/moto[${PYTHON_USEDEP}]
|
||||
dev-python/boto3[${PYTHON_USEDEP}]
|
||||
dev-python/ramlfications[${PYTHON_USEDEP}]
|
||||
dev-python/pyjade[${PYTHON_USEDEP}]
|
||||
dev-python/txgithub[${PYTHON_USEDEP}]
|
||||
dev-python/txrequests[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
# still yet to be added deps
|
||||
# doc? ( 'sphinxcontrib-blockdiag',
|
||||
# 'sphinxcontrib-spelling',
|
||||
# 'pyenchant',
|
||||
# 'docutils>=0.8',
|
||||
# 'sphinx-jinja',)
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
[[ ${PV} == *9999 ]] && S=${S}/master
|
||||
|
||||
pkg_setup() {
|
||||
enewuser buildbot
|
||||
|
||||
DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
|
||||
to support starting buildbot through Gentoo's init system. To use this,
|
||||
execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
|
||||
The scripts can run as a different user if desired."
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils-r1_src_compile
|
||||
|
||||
if use doc; then
|
||||
einfo "Generation of documentation"
|
||||
pushd docs > /dev/null
|
||||
#'man' target is currently broken
|
||||
emake html
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
doman docs/buildbot.1
|
||||
|
||||
if use doc; then
|
||||
dohtml -r docs/_build/html/
|
||||
# TODO: install man pages
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r contrib docs/examples
|
||||
fi
|
||||
|
||||
newconfd "${FILESDIR}/buildmaster.confd" buildmaster
|
||||
newinitd "${FILESDIR}/buildmaster.initd" buildmaster
|
||||
systemd_dounit "${FILESDIR}/buildmaster.target"
|
||||
systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
|
||||
systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
ewarn
|
||||
ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
|
||||
ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
|
||||
ewarn "is now the common base directory for all instances. If you are migrating from an older"
|
||||
ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
|
||||
ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
|
||||
ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
|
||||
ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
|
||||
ewarn " rc-update add buildmaster.myinstance default"
|
||||
ewarn " /etc/init.d/buildmaster.myinstance start"
|
||||
ewarn "Systems using systemd can do the following:"
|
||||
ewarn " systemctl enable buildmaster@myinstance.service"
|
||||
ewarn " systemctl enable buildmaster.target"
|
||||
ewarn " systemctl start buildmaster.target"
|
||||
elog
|
||||
elog "Upstream recommends the following when upgrading:"
|
||||
elog "Each time you install a new version of Buildbot, you should run the"
|
||||
elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
|
||||
elog "This will add files and fix (or at least detect) incompatibilities between"
|
||||
elog "your old config and the new code."
|
||||
fi
|
||||
elog
|
||||
elog "In order to create a new instance of buildmaster, execute:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local buildmaster_path="/var/lib/buildmaster"
|
||||
einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
|
||||
einfo "Press Control-C to abort."
|
||||
|
||||
einfo "Enter the name for the new instance: "
|
||||
read instance_name
|
||||
[[ -z "${instance_name}" ]] && die "Invalid instance name"
|
||||
|
||||
local instance_path="${buildmaster_path}/${instance_name}"
|
||||
if [[ -e "${instance_path}" ]]; then
|
||||
eerror "The instance with the specified name already exists:"
|
||||
eerror "${instance_path}"
|
||||
die "Instance already exists"
|
||||
fi
|
||||
|
||||
local buildbot="/usr/bin/buildbot"
|
||||
if [[ ! -d "${buildmaster_path}" ]]; then
|
||||
mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
|
||||
fi
|
||||
"${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
|
||||
chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
|
||||
mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
|
||||
|| die "Moving sample configuration failed"
|
||||
ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
|
||||
|| die "Unable to create link to init file"
|
||||
|
||||
einfo "Successfully created a buildmaster instance at ${instance_path}."
|
||||
einfo "To change the default settings edit the master.cfg file in this directory."
|
||||
}
|
@ -0,0 +1,135 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="threads"
|
||||
|
||||
inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic
|
||||
|
||||
DESCRIPTION="Scalable distributed SCM"
|
||||
HOMEPAGE="https://www.mercurial-scm.org/"
|
||||
SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="bugzilla emacs gpg test tk"
|
||||
|
||||
RDEPEND="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
gpg? ( app-crypt/gnupg )
|
||||
tk? ( dev-lang/tk )
|
||||
app-misc/ca-certificates"
|
||||
DEPEND="emacs? ( virtual/emacs )
|
||||
test? ( app-arch/unzip
|
||||
dev-python/pygments[${PYTHON_USEDEP}] )"
|
||||
|
||||
SITEFILE="70${PN}-gentoo.el"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-3.0.1-po_fixes.patch" )
|
||||
|
||||
python_prepare_all() {
|
||||
# fix up logic that won't work in Gentoo Prefix (also won't outside in
|
||||
# certain cases), bug #362891
|
||||
sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
strip-flags -ftracer -ftree-vectorize
|
||||
# Note: make it impl-conditional if py3 is supported
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
"${PYTHON}" setup.py build_mo || die
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
rm -r contrib/{win32,macosx} || die
|
||||
if use emacs; then
|
||||
cd contrib || die
|
||||
elisp-compile mercurial.el || die "elisp-compile failed!"
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
newbashcomp contrib/bash_completion hg
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins contrib/zsh_completion _hg
|
||||
|
||||
rm -f doc/*.?.txt
|
||||
dodoc CONTRIBUTORS
|
||||
cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
|
||||
|
||||
dobin hgeditor
|
||||
dobin contrib/hgk
|
||||
python_foreach_impl python_doscript contrib/hg-ssh
|
||||
|
||||
if use emacs; then
|
||||
elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
|
||||
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
|
||||
fi
|
||||
|
||||
local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix buildrpm plan9
|
||||
*.el mercurial.spec)
|
||||
for f in ${RM_CONTRIB[@]}; do
|
||||
rm -r contrib/$f || die
|
||||
done
|
||||
|
||||
dodoc -r contrib
|
||||
docompress -x /usr/share/doc/${PF}/contrib
|
||||
doman doc/*.?
|
||||
|
||||
insinto /etc/mercurial/hgrc.d
|
||||
doins "${FILESDIR}/cacerts.rc"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
pushd tests &>/dev/null || die
|
||||
rm -rf *svn* # Subversion tests fail with 1.5
|
||||
rm -f test-archive* # Fails due to verbose tar output changes
|
||||
rm -f test-convert-baz* # GNU Arch baz
|
||||
rm -f test-convert-cvs* # CVS
|
||||
rm -f test-convert-darcs* # Darcs
|
||||
rm -f test-convert-git* # git
|
||||
rm -f test-convert-mtn* # monotone
|
||||
rm -f test-convert-tla* # GNU Arch tla
|
||||
#rm -f test-doctest* # doctest always fails with python 2.5.x
|
||||
rm -f test-largefiles* # tends to time out
|
||||
|
||||
popd &>/dev/null || die
|
||||
distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local TEST_DIR
|
||||
|
||||
rm -rf "${TMPDIR}"/test
|
||||
distutils_install_for_testing
|
||||
cd tests || die
|
||||
"${PYTHON}" run-tests.py --verbose \
|
||||
--tmpdir="${TMPDIR}"/test \
|
||||
--with-hg="${TEST_DIR}"/scripts/hg \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
|
||||
elog "If you want to convert repositories from other tools using convert"
|
||||
elog "extension please install correct tool:"
|
||||
elog " dev-vcs/cvs"
|
||||
elog " dev-vcs/darcs"
|
||||
elog " dev-vcs/git"
|
||||
elog " dev-vcs/monotone"
|
||||
elog " dev-vcs/subversion"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST kodi-peripheral-joystick-1.2.1.tar.gz 83344 SHA256 e0230e846d444ff5092c6b2d18c8773ac3330dcc1647626b5da3aaf46e02e982 SHA512 af86bf8c7e8f7a975f5282a4b4c1d36027552857b31f28bbed03eac0b8e1059bb46f284bf5461c261f0f8be56e2e5a221eb9f916aeff6567fcebc459e34398d6 WHIRLPOOL 5d823d27265966e5e2ab88660158919e2d648184d827d545111945f85ba84937dc7c095dc45ff9eaffa87c521ef396f61aa3a605401e2515d052e3ce1f3b3160
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils kodi-addon
|
||||
|
||||
DESCRIPTION="Libretro compatibility layer for the Kodi Game API"
|
||||
HOMEPAGE="https://github.com/xbmc/peripheral.joystick"
|
||||
SRC_URI=""
|
||||
|
||||
case ${PV} in
|
||||
9999)
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="git://github.com/xbmc/peripheral.joystick.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SRC_URI="https://github.com/xbmc/peripheral.joystick/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/peripheral.joystick-${PV}"
|
||||
;;
|
||||
esac
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
=media-tv/kodi-17*
|
||||
=media-libs/kodi-platform-17*
|
||||
=dev-libs/libplatform-2*
|
||||
dev-libs/libpcre
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
@ -1 +1 @@
|
||||
DIST kodi-pvr-dvbviewer-2.4.6.tar.gz 92951 SHA256 7d8cf9b49cc05e7077b78c36ebc57b6d9517b66a8ac7d25547b1c0b948260315 SHA512 52f737c78ad7bb07bdcc2b0162127663b1fb58eb1f364de034197036ed1e176a6b9feac90847d9b3e0f13cb7119649e66625a514e679a17984f5e1d5e0ddaceb WHIRLPOOL ea675f9455d3d9efe2ee480c093bb8e10d14a9a804f5c86784f83176719d75db30639851524d4fa053fde370fe56ef7e1f6c0ba3e7f2a26491801a726cc6b3ce
|
||||
DIST kodi-pvr-dvbviewer-2.4.6-Krypton.tar.gz 92982 SHA256 8b4eb77a7848c634ba3e214de85c46cc9b34d2dd411d7bc133169a04168adf5a SHA512 7253c977432617b73d63d9b923b8dc094342202103e6307c65abccea0b12e76e06fb85562cc1c1297e5ececc902932544c9e156a3c2c43f60b583d9c69610352 WHIRLPOOL 4d7a018e82031ac075e1d200fa9bd3944d18661da008864baeccb464480f1efdedd3c53261c810482c3ec3868b90e46bd7208f2adc0782ded049960a1e3142dc
|
||||
|
@ -0,0 +1 @@
|
||||
DIST kodi-pvr-filmon-1.4.7.tar.gz 103691 SHA256 87ad3adc22ec64be15b9408c51388bb7d12b0089dd466aae73ae082d0576320c SHA512 86bbfbe56607888983e7b80800680c2b955a743def3aedd9ba1a4cee8543af327b737b1c9a04dc03b09a950774a31c0ce9af8a0431103fca937b6f0fa7b76280 WHIRLPOOL a96f1afcaf856fdf23cf78d691f53fb5a02a51a355313a268d442329ff816ed63bfc6bae43c1536e61b6a02c6732ee8d68e517412b8986664084d3cf9a8975bb
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils kodi-addon
|
||||
|
||||
DESCRIPTION="Kodi's Filmon client addon"
|
||||
HOMEPAGE="https://github.com/kodi-pvr/pvr.filmon"
|
||||
SRC_URI=""
|
||||
|
||||
case ${PV} in
|
||||
9999)
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="git://github.com/kodi-pvr/pvr.filmon.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
CODENAME="Krypton"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SRC_URI="https://github.com/kodi-pvr/pvr.filmon/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/pvr.filmon-${PV}-${CODENAME}"
|
||||
;;
|
||||
esac
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
=media-tv/kodi-17*
|
||||
=media-libs/kodi-platform-17*
|
||||
dev-libs/jsoncpp
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
@ -0,0 +1 @@
|
||||
DIST kodi-pvr-iptvsimple-2.4.8.tar.gz 159663 SHA256 077f57a147d0036a0a6cfee1a2c53cd384c2cc7d29942dcc5d4c715943f7cd8b SHA512 da4e287f8c72b014b36fe2379f85568551e4d479a311479347de36aa7f4f497f344b0d8443c5646a0cfbe20db0ec25c90a653e6030c59faee7040f8c8341cbf7 WHIRLPOOL 3d97bc19adc2811df60e7b56630fe0cf8f6a0eec85e0c71fef287773cbe51a5a45679c6a007b8da7c36ae4c4b870da424feafbd6ebeda9938360a2fdf8622a92
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils kodi-addon
|
||||
|
||||
DESCRIPTION="Kodi's IPTVSimple client addon"
|
||||
HOMEPAGE="https://github.com/kodi-pvr/pvr.iptvsimple"
|
||||
SRC_URI=""
|
||||
|
||||
case ${PV} in
|
||||
9999)
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="git://github.com/kodi-pvr/pvr.iptvsimple.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
CODENAME="Krypton"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SRC_URI="https://github.com/kodi-pvr/pvr.iptvsimple/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/pvr.iptvsimple-${PV}-${CODENAME}"
|
||||
;;
|
||||
esac
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
=dev-libs/libplatform-2*
|
||||
=media-tv/kodi-17*
|
||||
=media-libs/kodi-platform-17*
|
||||
sys-libs/zlib
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
@ -1 +1 @@
|
||||
DIST kodi-pvr-mediaportal-tvserver-2.4.14.tar.gz 386766 SHA256 d17bbc3723f19e630407b0c8b66a639317c1524b0df9517f9e1b18497baa5f5e SHA512 58ef9cfa4b7901c1def48fd6c0a840c63b40a15cd15c9ced2f9133c499d3268d3d92a6cbc7871eb400e87e9585b010e4be73ed9bd78546284dea86207c1dec23 WHIRLPOOL 768ac9e5f60bc2c7b48eef7d9fc393b7904e84f0b7aaa654630bc193b8df6ae0d2963db0b9c113a7680166648888fe32c80fedb42756de10f4b46029d414582b
|
||||
DIST kodi-pvr-mediaportal-tvserver-2.4.16.tar.gz 385817 SHA256 59264354c79eaf1658755cb5bc05efc8bca581ed8fb762e82665ec128453e648 SHA512 f59e1fdcaaa1179452efa4226f780172a34602848ac6dc1d6c563c7baf72f8025fd1e418c33dc93d5bdac7d477e46702731aa1e8892207a47b6a07199cec3757 WHIRLPOOL 6a948d28a2635beff0d8f1ceb64484e500532290b626b25df8d1fcfd0dabf84f862619198b2c4e4930335d8328954b128a84ab69997d630f7d38930c6cf61ed8
|
||||
|
@ -0,0 +1 @@
|
||||
DIST kodi-pvr-nextpvr-2.4.11.tar.gz 111677 SHA256 5b0839141c9bdd1150442ef06974755bccb381b2998ddffa584eb234a83b7af5 SHA512 2c9e98cb6b99aca8c582d4751096c7ef445f97b09fb6d51c798767c7a7b54632bd4e5c7fb2d723b023eeb335daa73e53ba455156bd8e8ea863c3a98659e5e906 WHIRLPOOL b4af07be4e8e0dc17dbf32d2f8120a248d26ee3370de89315f77d6c195d76ecbc36344b055d63689e80b5713b06831910ae1f2d9cc7374a21b6ca3841fd8156b
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils kodi-addon
|
||||
|
||||
DESCRIPTION="Kodi's NextPVR client addon"
|
||||
HOMEPAGE="https://github.com/kodi-pvr/pvr.nextpvr"
|
||||
SRC_URI=""
|
||||
|
||||
case ${PV} in
|
||||
9999)
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="git://github.com/kodi-pvr/pvr.nextpvr.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
CODENAME="Krypton"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SRC_URI="https://github.com/kodi-pvr/pvr.nextpvr/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/pvr.nextpvr-${PV}-${CODENAME}"
|
||||
;;
|
||||
esac
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
=media-tv/kodi-17*
|
||||
=media-libs/kodi-platform-17*
|
||||
dev-libs/tinyxml
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue