parent
17214d1e2d
commit
ff6633d8ac
@ -1,264 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/webmin-1.560-r1.ebuild,v 1.3 2012/07/22 19:47:28 hwoarang Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils pam ssl-cert
|
||||
|
||||
DESCRIPTION="A web-based Unix systems administration interface"
|
||||
HOMEPAGE="http://www.webmin.com/"
|
||||
SRC_URI="minimal? ( mirror://sourceforge/webadmin/${P}-minimal.tar.gz )
|
||||
!minimal? ( mirror://sourceforge/webadmin/${P}.tar.gz )"
|
||||
|
||||
LICENSE="BSD GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
# NOTE: The ssl flag auto added by ssl-cert eclass is not used actually
|
||||
# because openssl is forced by dev-perl/Net-SSLeay
|
||||
IUSE="minimal +ssl mysql postgres ldap"
|
||||
|
||||
# All the required perl modules can be found easily using (in Webmin's root src dir):
|
||||
# find . -name cpan_modules.pl -exec grep "::" {} \;
|
||||
# NOTE: If Webmin doesn't find the required perl modules, it offers(runtime) the user
|
||||
# to install them using the in-built cpan module, and this will mess up perl on the system
|
||||
# That's why some modules are forced without a use flag
|
||||
# NOTE: pam and ssl deps are forced for security and Gentoo compliance installation reasons
|
||||
DEPEND="virtual/perl-Sys-Syslog
|
||||
virtual/perl-Time-HiRes
|
||||
virtual/perl-Time-Local
|
||||
dev-perl/Authen-Libwrap
|
||||
dev-perl/IO-Tty
|
||||
dev-perl/MD5
|
||||
dev-perl/Net-SSLeay
|
||||
dev-perl/Authen-PAM
|
||||
dev-perl/Sys-Hostname-Long
|
||||
!minimal? (
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
ldap? ( dev-perl/perl-ldap )
|
||||
dev-perl/XML-Generator
|
||||
dev-perl/XML-Parser
|
||||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
local perl="$( which perl )"
|
||||
|
||||
# Remove the unnecessary and incompatible files
|
||||
rm -rf acl/Authen-SolarisRBAC-0.1*
|
||||
if ! use minimal ; then
|
||||
rm -rf {format,{bsd,hpux,sgi}exports,zones,rbac}
|
||||
rm -f mount/{free,net,open}bsd-mounts*
|
||||
rm -f mount/macos-mounts*
|
||||
fi
|
||||
|
||||
# For security reasons remove the SSL certificate that comes with Webmin
|
||||
# We will create our own later
|
||||
rm -f miniserv.pem
|
||||
|
||||
# Remove the Webmin setup scripts to avoid Webmin in runtime to mess up config
|
||||
# We will use our own later
|
||||
rm -f setup.{sh,pl}
|
||||
|
||||
# Fix the permissions of the install files
|
||||
chmod -R og-w "${S}"
|
||||
|
||||
# Since we should not modify any files after install
|
||||
# we set the perl path in all cgi and pl files here using Webmin's routines
|
||||
# The pl file is Prefix safe and works only on provided input, no other filesystem files
|
||||
ebegin "Fixing perl path in source files"
|
||||
(find "${S}" -name '*.cgi' -print ; find "${S}" -name '*.pl' -print) | $perl "${S}"/perlpath.pl $perl -
|
||||
eend $?
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Create config dir and keep
|
||||
diropts -m0755
|
||||
dodir /etc/webmin
|
||||
keepdir /etc/webmin
|
||||
|
||||
# Create install dir
|
||||
# Third party modules installed through Webmin go here too, so keep
|
||||
dodir /usr/libexec/webmin
|
||||
keepdir /usr/libexec/webmin
|
||||
|
||||
# Copy our own setup script to installation folder
|
||||
insinto /usr/libexec/webmin
|
||||
newins "${FILESDIR}"/gentoo-setup gentoo-setup.sh
|
||||
fperms 0744 /usr/libexec/webmin/gentoo-setup.sh
|
||||
|
||||
# This is here if we ever want in future ebuilds to add some specific
|
||||
# config values in the /etc/webmin/miniserv.conf
|
||||
# The format of this file should be the same as the one of miniserv.conf:
|
||||
# var=value
|
||||
#
|
||||
# Uncomment it if you use such file. Before that check if upstream
|
||||
# has this file in root dir too.
|
||||
#newins "${FILESDIR}/miniserv-conf" miniserv-conf
|
||||
|
||||
# Create the log dir and keep
|
||||
diropts -m0700
|
||||
dodir /var/log/webmin
|
||||
keepdir /var/log/webmin
|
||||
|
||||
# Create the init.d file and put the neccessary variables there
|
||||
newinitd "${FILESDIR}"/init.d.webmin webmin
|
||||
sed -i \
|
||||
-e "s:%exe%:${EROOT}usr/libexec/webmin/miniserv.pl:" \
|
||||
-e "s:%pid%:${EROOT}var/run/webmin.pid:" \
|
||||
-e "s:%conf%:${EROOT}etc/webmin/miniserv.conf:" \
|
||||
-e "s:%perllib%:${EROOT}usr/libexec/webmin:" \
|
||||
"${ED}etc/init.d/webmin" \
|
||||
|| die "Failed to patch the webmin init file"
|
||||
|
||||
# Setup pam
|
||||
pamd_mimic system-auth webmin auth account session
|
||||
|
||||
# Copy files to installation folder
|
||||
ebegin "Copying install files to destination"
|
||||
cp -pPR "${S}"/* "${ED}usr/libexec/webmin"
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# First stop service if running so Webmin to not messup our config
|
||||
ebegin "Stopping any running Webmin instance prior merging"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Run pkg_config phase first - non interactively
|
||||
export INTERACTIVE="no"
|
||||
pkg_config
|
||||
# Every next time pkg_config should be interactive
|
||||
INTERACTIVE="yes"
|
||||
|
||||
ewarn
|
||||
ewarn "Bare in mind that not all Webmin modules are Gentoo tweaked and may have some issues."
|
||||
ewarn "Always be careful when using modules that modify init entries, do update of webmin, install CPAN modules etc."
|
||||
ewarn "To avoid problems, please before using any module, look at its configuration options first."
|
||||
ewarn "(Usually there is a link at top in the right pane of Webmin for configuring the module.)"
|
||||
ewarn
|
||||
elog "- To make Webmin start at boot time, run: 'rc-update add webmin default'"
|
||||
elog "- The default URL to connect to Webmin is: https://localhost:10000"
|
||||
elog "- The default user that can login is: root"
|
||||
elog "- To reconfigure Webmin in case of problems run 'emerge --config app-admin/webmin'"
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
# First stop service if running - we do not want Webmin to mess up config
|
||||
ebegin "Stopping any running Webmin instance prior unmerging"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
ewarn
|
||||
ewarn "You have uninstalled Webmin, so have in mind that all cron jobs scheduled"
|
||||
ewarn "by Webmin for its own modules, are left active and they will fail when Webmin is missing."
|
||||
ewarn "To fix this just disable them if you intend to use Webmin again,"
|
||||
ewarn "OR delete them if not."
|
||||
ewarn
|
||||
}
|
||||
|
||||
pkg_config(){
|
||||
# First stop service if running
|
||||
ebegin "Stopping any running Webmin instance"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
|
||||
# Next set the default reset variable to 'none'
|
||||
# reset/_reset can be:
|
||||
# 'none' - does not reset anything, just upgrades if a conf is present
|
||||
# OR installs new conf if a conf is missing
|
||||
# 'soft' - deletes only $config_dir/config file and thus resetting most
|
||||
# conf values to their defaults. Keeps the specific Webmin cron jobs
|
||||
# 'hard' - deletes all files in $config_dir (keeping the .keep_* Gentoo file)
|
||||
# and thus resetting all Webmin. Deletes the specific Webmin cron jobs too.
|
||||
local _reset="none"
|
||||
|
||||
# If in interactive mode ask user what should we do
|
||||
if [[ "${INTERACTIVE}" = "yes" ]]; then
|
||||
einfo
|
||||
einfo "Please enter the number of the action you would like to perform?"
|
||||
einfo
|
||||
einfo "1. Update configuration"
|
||||
einfo " (keeps old config options and adds the new ones)"
|
||||
einfo "2. Soft reset configuration"
|
||||
einfo " (keeps some old config options, the other options are set to default)"
|
||||
ewarn " All Webmin users will be reset"
|
||||
einfo "3. Hard reset configuration"
|
||||
einfo " (all options including module options are set to default)"
|
||||
ewarn " You will lose all Webmin configuration options you have done till now"
|
||||
einfo "4. Exit this configuration utility (default)"
|
||||
while [ "$correct" != "true" ] ; do
|
||||
read answer
|
||||
if [[ "$answer" = "1" ]] ; then
|
||||
_reset="none"
|
||||
correct="true"
|
||||
elif [[ "$answer" = "2" ]] ; then
|
||||
_reset="soft"
|
||||
correct="true"
|
||||
elif [[ "$answer" = "3" ]] ; then
|
||||
_reset="hard"
|
||||
correct="true"
|
||||
elif [ "$answer" = "4" -o "$answer" = "" ] ; then
|
||||
die "User aborted configuration."
|
||||
else
|
||||
echo "Answer not recognized. Enter a number from 1 to 4"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ "$_reset" = "hard" ]]; then
|
||||
while [ "$sure" != "true" ] ; do
|
||||
ewarn "You will lose all Webmin configuration options you have done till now."
|
||||
ewarn "Are you sure you want to do this? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
sure="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "User aborted configuration."
|
||||
else
|
||||
echo "Answer not recognized. Enter 'y' or 'n'"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
export reset=$_reset
|
||||
|
||||
# Create ssl certificate for Webmin if there is not one in the proper place
|
||||
if [[ ! -e "${EROOT}etc/ssl/webmin/server.pem" ]]; then
|
||||
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Webmin Server}"
|
||||
SSL_COMMONNAME="${SSL_COMMONNAME:-*}"
|
||||
install_cert "${EROOT}/etc/ssl/webmin/server"
|
||||
fi
|
||||
|
||||
# Ensure all paths passed to the setup script use EROOT
|
||||
export wadir="${EROOT}usr/libexec/webmin"
|
||||
export config_dir="${EROOT}etc/webmin"
|
||||
export var_dir="${EROOT}var/log/webmin"
|
||||
export tempdir="${T}"
|
||||
export pidfile="${EROOT}var/run/webmin.pid"
|
||||
export perl="$( which perl )"
|
||||
export os_type='gentoo-linux'
|
||||
export os_version='*'
|
||||
export real_os_type='Gentoo Linux'
|
||||
export real_os_version='Any version'
|
||||
# Forcing 'ssl' and 'ssl_redirect' for tightening security
|
||||
export ssl=1
|
||||
export ssl_redirect=1
|
||||
export keyfile="${EROOT}etc/ssl/webmin/server.pem"
|
||||
export port=10000
|
||||
|
||||
export atboot=0
|
||||
|
||||
einfo "Executing Webmin's configure script"
|
||||
$wadir/gentoo-setup.sh
|
||||
|
||||
einfo "Configuration of Webmin done"
|
||||
}
|
@ -1,264 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/webmin-1.570-r1.ebuild,v 1.3 2012/07/22 19:47:28 hwoarang Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils pam ssl-cert
|
||||
|
||||
DESCRIPTION="A web-based Unix systems administration interface"
|
||||
HOMEPAGE="http://www.webmin.com/"
|
||||
SRC_URI="minimal? ( mirror://sourceforge/webadmin/${P}-minimal.tar.gz )
|
||||
!minimal? ( mirror://sourceforge/webadmin/${P}.tar.gz )"
|
||||
|
||||
LICENSE="BSD GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
# NOTE: The ssl flag auto added by ssl-cert eclass is not used actually
|
||||
# because openssl is forced by dev-perl/Net-SSLeay
|
||||
IUSE="minimal +ssl mysql postgres ldap"
|
||||
|
||||
# All the required perl modules can be found easily using (in Webmin's root src dir):
|
||||
# find . -name cpan_modules.pl -exec grep "::" {} \;
|
||||
# NOTE: If Webmin doesn't find the required perl modules, it offers(runtime) the user
|
||||
# to install them using the in-built cpan module, and this will mess up perl on the system
|
||||
# That's why some modules are forced without a use flag
|
||||
# NOTE: pam and ssl deps are forced for security and Gentoo compliance installation reasons
|
||||
DEPEND="virtual/perl-Sys-Syslog
|
||||
virtual/perl-Time-HiRes
|
||||
virtual/perl-Time-Local
|
||||
dev-perl/Authen-Libwrap
|
||||
dev-perl/IO-Tty
|
||||
dev-perl/MD5
|
||||
dev-perl/Net-SSLeay
|
||||
dev-perl/Authen-PAM
|
||||
dev-perl/Sys-Hostname-Long
|
||||
!minimal? (
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
ldap? ( dev-perl/perl-ldap )
|
||||
dev-perl/XML-Generator
|
||||
dev-perl/XML-Parser
|
||||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
local perl="$( which perl )"
|
||||
|
||||
# Remove the unnecessary and incompatible files
|
||||
rm -rf acl/Authen-SolarisRBAC-0.1*
|
||||
if ! use minimal ; then
|
||||
rm -rf {format,{bsd,hpux,sgi}exports,zones,rbac}
|
||||
rm -f mount/{free,net,open}bsd-mounts*
|
||||
rm -f mount/macos-mounts*
|
||||
fi
|
||||
|
||||
# For security reasons remove the SSL certificate that comes with Webmin
|
||||
# We will create our own later
|
||||
rm -f miniserv.pem
|
||||
|
||||
# Remove the Webmin setup scripts to avoid Webmin in runtime to mess up config
|
||||
# We will use our own later
|
||||
rm -f setup.{sh,pl}
|
||||
|
||||
# Fix the permissions of the install files
|
||||
chmod -R og-w "${S}"
|
||||
|
||||
# Since we should not modify any files after install
|
||||
# we set the perl path in all cgi and pl files here using Webmin's routines
|
||||
# The pl file is Prefix safe and works only on provided input, no other filesystem files
|
||||
ebegin "Fixing perl path in source files"
|
||||
(find "${S}" -name '*.cgi' -print ; find "${S}" -name '*.pl' -print) | $perl "${S}"/perlpath.pl $perl -
|
||||
eend $?
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Create config dir and keep
|
||||
diropts -m0755
|
||||
dodir /etc/webmin
|
||||
keepdir /etc/webmin
|
||||
|
||||
# Create install dir
|
||||
# Third party modules installed through Webmin go here too, so keep
|
||||
dodir /usr/libexec/webmin
|
||||
keepdir /usr/libexec/webmin
|
||||
|
||||
# Copy our own setup script to installation folder
|
||||
insinto /usr/libexec/webmin
|
||||
newins "${FILESDIR}"/gentoo-setup gentoo-setup.sh
|
||||
fperms 0744 /usr/libexec/webmin/gentoo-setup.sh
|
||||
|
||||
# This is here if we ever want in future ebuilds to add some specific
|
||||
# config values in the /etc/webmin/miniserv.conf
|
||||
# The format of this file should be the same as the one of miniserv.conf:
|
||||
# var=value
|
||||
#
|
||||
# Uncomment it if you use such file. Before that check if upstream
|
||||
# has this file in root dir too.
|
||||
#newins "${FILESDIR}/miniserv-conf" miniserv-conf
|
||||
|
||||
# Create the log dir and keep
|
||||
diropts -m0700
|
||||
dodir /var/log/webmin
|
||||
keepdir /var/log/webmin
|
||||
|
||||
# Create the init.d file and put the neccessary variables there
|
||||
newinitd "${FILESDIR}"/init.d.webmin webmin
|
||||
sed -i \
|
||||
-e "s:%exe%:${EROOT}usr/libexec/webmin/miniserv.pl:" \
|
||||
-e "s:%pid%:${EROOT}var/run/webmin.pid:" \
|
||||
-e "s:%conf%:${EROOT}etc/webmin/miniserv.conf:" \
|
||||
-e "s:%perllib%:${EROOT}usr/libexec/webmin:" \
|
||||
"${ED}etc/init.d/webmin" \
|
||||
|| die "Failed to patch the webmin init file"
|
||||
|
||||
# Setup pam
|
||||
pamd_mimic system-auth webmin auth account session
|
||||
|
||||
# Copy files to installation folder
|
||||
ebegin "Copying install files to destination"
|
||||
cp -pPR "${S}"/* "${ED}usr/libexec/webmin"
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# First stop service if running so Webmin to not messup our config
|
||||
ebegin "Stopping any running Webmin instance prior merging"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Run pkg_config phase first - non interactively
|
||||
export INTERACTIVE="no"
|
||||
pkg_config
|
||||
# Every next time pkg_config should be interactive
|
||||
INTERACTIVE="yes"
|
||||
|
||||
ewarn
|
||||
ewarn "Bare in mind that not all Webmin modules are Gentoo tweaked and may have some issues."
|
||||
ewarn "Always be careful when using modules that modify init entries, do update of webmin, install CPAN modules etc."
|
||||
ewarn "To avoid problems, please before using any module, look at its configuration options first."
|
||||
ewarn "(Usually there is a link at top in the right pane of Webmin for configuring the module.)"
|
||||
ewarn
|
||||
elog "- To make Webmin start at boot time, run: 'rc-update add webmin default'"
|
||||
elog "- The default URL to connect to Webmin is: https://localhost:10000"
|
||||
elog "- The default user that can login is: root"
|
||||
elog "- To reconfigure Webmin in case of problems run 'emerge --config app-admin/webmin'"
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
# First stop service if running - we do not want Webmin to mess up config
|
||||
ebegin "Stopping any running Webmin instance prior unmerging"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
ewarn
|
||||
ewarn "You have uninstalled Webmin, so have in mind that all cron jobs scheduled"
|
||||
ewarn "by Webmin for its own modules, are left active and they will fail when Webmin is missing."
|
||||
ewarn "To fix this just disable them if you intend to use Webmin again,"
|
||||
ewarn "OR delete them if not."
|
||||
ewarn
|
||||
}
|
||||
|
||||
pkg_config(){
|
||||
# First stop service if running
|
||||
ebegin "Stopping any running Webmin instance"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
|
||||
# Next set the default reset variable to 'none'
|
||||
# reset/_reset can be:
|
||||
# 'none' - does not reset anything, just upgrades if a conf is present
|
||||
# OR installs new conf if a conf is missing
|
||||
# 'soft' - deletes only $config_dir/config file and thus resetting most
|
||||
# conf values to their defaults. Keeps the specific Webmin cron jobs
|
||||
# 'hard' - deletes all files in $config_dir (keeping the .keep_* Gentoo file)
|
||||
# and thus resetting all Webmin. Deletes the specific Webmin cron jobs too.
|
||||
local _reset="none"
|
||||
|
||||
# If in interactive mode ask user what should we do
|
||||
if [[ "${INTERACTIVE}" = "yes" ]]; then
|
||||
einfo
|
||||
einfo "Please enter the number of the action you would like to perform?"
|
||||
einfo
|
||||
einfo "1. Update configuration"
|
||||
einfo " (keeps old config options and adds the new ones)"
|
||||
einfo "2. Soft reset configuration"
|
||||
einfo " (keeps some old config options, the other options are set to default)"
|
||||
ewarn " All Webmin users will be reset"
|
||||
einfo "3. Hard reset configuration"
|
||||
einfo " (all options including module options are set to default)"
|
||||
ewarn " You will lose all Webmin configuration options you have done till now"
|
||||
einfo "4. Exit this configuration utility (default)"
|
||||
while [ "$correct" != "true" ] ; do
|
||||
read answer
|
||||
if [[ "$answer" = "1" ]] ; then
|
||||
_reset="none"
|
||||
correct="true"
|
||||
elif [[ "$answer" = "2" ]] ; then
|
||||
_reset="soft"
|
||||
correct="true"
|
||||
elif [[ "$answer" = "3" ]] ; then
|
||||
_reset="hard"
|
||||
correct="true"
|
||||
elif [ "$answer" = "4" -o "$answer" = "" ] ; then
|
||||
die "User aborted configuration."
|
||||
else
|
||||
echo "Answer not recognized. Enter a number from 1 to 4"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ "$_reset" = "hard" ]]; then
|
||||
while [ "$sure" != "true" ] ; do
|
||||
ewarn "You will lose all Webmin configuration options you have done till now."
|
||||
ewarn "Are you sure you want to do this? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
sure="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "User aborted configuration."
|
||||
else
|
||||
echo "Answer not recognized. Enter 'y' or 'n'"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
export reset=$_reset
|
||||
|
||||
# Create ssl certificate for Webmin if there is not one in the proper place
|
||||
if [[ ! -e "${EROOT}etc/ssl/webmin/server.pem" ]]; then
|
||||
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Webmin Server}"
|
||||
SSL_COMMONNAME="${SSL_COMMONNAME:-*}"
|
||||
install_cert "${EROOT}/etc/ssl/webmin/server"
|
||||
fi
|
||||
|
||||
# Ensure all paths passed to the setup script use EROOT
|
||||
export wadir="${EROOT}usr/libexec/webmin"
|
||||
export config_dir="${EROOT}etc/webmin"
|
||||
export var_dir="${EROOT}var/log/webmin"
|
||||
export tempdir="${T}"
|
||||
export pidfile="${EROOT}var/run/webmin.pid"
|
||||
export perl="$( which perl )"
|
||||
export os_type='gentoo-linux'
|
||||
export os_version='*'
|
||||
export real_os_type='Gentoo Linux'
|
||||
export real_os_version='Any version'
|
||||
# Forcing 'ssl' and 'ssl_redirect' for tightening security
|
||||
export ssl=1
|
||||
export ssl_redirect=1
|
||||
export keyfile="${EROOT}etc/ssl/webmin/server.pem"
|
||||
export port=10000
|
||||
|
||||
export atboot=0
|
||||
|
||||
einfo "Executing Webmin's configure script"
|
||||
$wadir/gentoo-setup.sh
|
||||
|
||||
einfo "Configuration of Webmin done"
|
||||
}
|
@ -1,264 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/webmin-1.580.ebuild,v 1.4 2012/07/22 19:47:28 hwoarang Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils pam ssl-cert
|
||||
|
||||
DESCRIPTION="A web-based Unix systems administration interface"
|
||||
HOMEPAGE="http://www.webmin.com/"
|
||||
SRC_URI="minimal? ( mirror://sourceforge/webadmin/${P}-minimal.tar.gz )
|
||||
!minimal? ( mirror://sourceforge/webadmin/${P}.tar.gz )"
|
||||
|
||||
LICENSE="BSD GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
# NOTE: The ssl flag auto added by ssl-cert eclass is not used actually
|
||||
# because openssl is forced by dev-perl/Net-SSLeay
|
||||
IUSE="minimal +ssl mysql postgres ldap"
|
||||
|
||||
# All the required perl modules can be found easily using (in Webmin's root src dir):
|
||||
# find . -name cpan_modules.pl -exec grep "::" {} \;
|
||||
# NOTE: If Webmin doesn't find the required perl modules, it offers(runtime) the user
|
||||
# to install them using the in-built cpan module, and this will mess up perl on the system
|
||||
# That's why some modules are forced without a use flag
|
||||
# NOTE: pam and ssl deps are forced for security and Gentoo compliance installation reasons
|
||||
DEPEND="virtual/perl-Sys-Syslog
|
||||
virtual/perl-Time-HiRes
|
||||
virtual/perl-Time-Local
|
||||
dev-perl/Authen-Libwrap
|
||||
dev-perl/IO-Tty
|
||||
dev-perl/MD5
|
||||
dev-perl/Net-SSLeay
|
||||
dev-perl/Authen-PAM
|
||||
dev-perl/Sys-Hostname-Long
|
||||
!minimal? (
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
ldap? ( dev-perl/perl-ldap )
|
||||
dev-perl/XML-Generator
|
||||
dev-perl/XML-Parser
|
||||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
local perl="$( which perl )"
|
||||
|
||||
# Remove the unnecessary and incompatible files
|
||||
rm -rf acl/Authen-SolarisRBAC-0.1*
|
||||
if ! use minimal ; then
|
||||
rm -rf {format,{bsd,hpux,sgi}exports,zones,rbac}
|
||||
rm -f mount/{free,net,open}bsd-mounts*
|
||||
rm -f mount/macos-mounts*
|
||||
fi
|
||||
|
||||
# For security reasons remove the SSL certificate that comes with Webmin
|
||||
# We will create our own later
|
||||
rm -f miniserv.pem
|
||||
|
||||
# Remove the Webmin setup scripts to avoid Webmin in runtime to mess up config
|
||||
# We will use our own later
|
||||
rm -f setup.{sh,pl}
|
||||
|
||||
# Fix the permissions of the install files
|
||||
chmod -R og-w "${S}"
|
||||
|
||||
# Since we should not modify any files after install
|
||||
# we set the perl path in all cgi and pl files here using Webmin's routines
|
||||
# The pl file is Prefix safe and works only on provided input, no other filesystem files
|
||||
ebegin "Fixing perl path in source files"
|
||||
(find "${S}" -name '*.cgi' -print ; find "${S}" -name '*.pl' -print) | $perl "${S}"/perlpath.pl $perl -
|
||||
eend $?
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Create config dir and keep
|
||||
diropts -m0755
|
||||
dodir /etc/webmin
|
||||
keepdir /etc/webmin
|
||||
|
||||
# Create install dir
|
||||
# Third party modules installed through Webmin go here too, so keep
|
||||
dodir /usr/libexec/webmin
|
||||
keepdir /usr/libexec/webmin
|
||||
|
||||
# Copy our own setup script to installation folder
|
||||
insinto /usr/libexec/webmin
|
||||
newins "${FILESDIR}"/gentoo-setup gentoo-setup.sh
|
||||
fperms 0744 /usr/libexec/webmin/gentoo-setup.sh
|
||||
|
||||
# This is here if we ever want in future ebuilds to add some specific
|
||||
# config values in the /etc/webmin/miniserv.conf
|
||||
# The format of this file should be the same as the one of miniserv.conf:
|
||||
# var=value
|
||||
#
|
||||
# Uncomment it if you use such file. Before that check if upstream
|
||||
# has this file in root dir too.
|
||||
#newins "${FILESDIR}/miniserv-conf" miniserv-conf
|
||||
|
||||
# Create the log dir and keep
|
||||
diropts -m0700
|
||||
dodir /var/log/webmin
|
||||
keepdir /var/log/webmin
|
||||
|
||||
# Create the init.d file and put the neccessary variables there
|
||||
newinitd "${FILESDIR}"/init.d.webmin webmin
|
||||
sed -i \
|
||||
-e "s:%exe%:${EROOT}usr/libexec/webmin/miniserv.pl:" \
|
||||
-e "s:%pid%:${EROOT}var/run/webmin.pid:" \
|
||||
-e "s:%conf%:${EROOT}etc/webmin/miniserv.conf:" \
|
||||
-e "s:%perllib%:${EROOT}usr/libexec/webmin:" \
|
||||
"${ED}etc/init.d/webmin" \
|
||||
|| die "Failed to patch the webmin init file"
|
||||
|
||||
# Setup pam
|
||||
pamd_mimic system-auth webmin auth account session
|
||||
|
||||
# Copy files to installation folder
|
||||
ebegin "Copying install files to destination"
|
||||
cp -pPR "${S}"/* "${ED}usr/libexec/webmin"
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# First stop service if running so Webmin to not messup our config
|
||||
ebegin "Stopping any running Webmin instance prior merging"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Run pkg_config phase first - non interactively
|
||||
export INTERACTIVE="no"
|
||||
pkg_config
|
||||
# Every next time pkg_config should be interactive
|
||||
INTERACTIVE="yes"
|
||||
|
||||
ewarn
|
||||
ewarn "Bare in mind that not all Webmin modules are Gentoo tweaked and may have some issues."
|
||||
ewarn "Always be careful when using modules that modify init entries, do update of webmin, install CPAN modules etc."
|
||||
ewarn "To avoid problems, please before using any module, look at its configuration options first."
|
||||
ewarn "(Usually there is a link at top in the right pane of Webmin for configuring the module.)"
|
||||
ewarn
|
||||
elog "- To make Webmin start at boot time, run: 'rc-update add webmin default'"
|
||||
elog "- The default URL to connect to Webmin is: https://localhost:10000"
|
||||
elog "- The default user that can login is: root"
|
||||
elog "- To reconfigure Webmin in case of problems run 'emerge --config app-admin/webmin'"
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
# First stop service if running - we do not want Webmin to mess up config
|
||||
ebegin "Stopping any running Webmin instance prior unmerging"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
ewarn
|
||||
ewarn "You have uninstalled Webmin, so have in mind that all cron jobs scheduled"
|
||||
ewarn "by Webmin for its own modules, are left active and they will fail when Webmin is missing."
|
||||
ewarn "To fix this just disable them if you intend to use Webmin again,"
|
||||
ewarn "OR delete them if not."
|
||||
ewarn
|
||||
}
|
||||
|
||||
pkg_config(){
|
||||
# First stop service if running
|
||||
ebegin "Stopping any running Webmin instance"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
|
||||
# Next set the default reset variable to 'none'
|
||||
# reset/_reset can be:
|
||||
# 'none' - does not reset anything, just upgrades if a conf is present
|
||||
# OR installs new conf if a conf is missing
|
||||
# 'soft' - deletes only $config_dir/config file and thus resetting most
|
||||
# conf values to their defaults. Keeps the specific Webmin cron jobs
|
||||
# 'hard' - deletes all files in $config_dir (keeping the .keep_* Gentoo file)
|
||||
# and thus resetting all Webmin. Deletes the specific Webmin cron jobs too.
|
||||
local _reset="none"
|
||||
|
||||
# If in interactive mode ask user what should we do
|
||||
if [[ "${INTERACTIVE}" = "yes" ]]; then
|
||||
einfo
|
||||
einfo "Please enter the number of the action you would like to perform?"
|
||||
einfo
|
||||
einfo "1. Update configuration"
|
||||
einfo " (keeps old config options and adds the new ones)"
|
||||
einfo "2. Soft reset configuration"
|
||||
einfo " (keeps some old config options, the other options are set to default)"
|
||||
ewarn " All Webmin users will be reset"
|
||||
einfo "3. Hard reset configuration"
|
||||
einfo " (all options including module options are set to default)"
|
||||
ewarn " You will lose all Webmin configuration options you have done till now"
|
||||
einfo "4. Exit this configuration utility (default)"
|
||||
while [ "$correct" != "true" ] ; do
|
||||
read answer
|
||||
if [[ "$answer" = "1" ]] ; then
|
||||
_reset="none"
|
||||
correct="true"
|
||||
elif [[ "$answer" = "2" ]] ; then
|
||||
_reset="soft"
|
||||
correct="true"
|
||||
elif [[ "$answer" = "3" ]] ; then
|
||||
_reset="hard"
|
||||
correct="true"
|
||||
elif [ "$answer" = "4" -o "$answer" = "" ] ; then
|
||||
die "User aborted configuration."
|
||||
else
|
||||
echo "Answer not recognized. Enter a number from 1 to 4"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ "$_reset" = "hard" ]]; then
|
||||
while [ "$sure" != "true" ] ; do
|
||||
ewarn "You will lose all Webmin configuration options you have done till now."
|
||||
ewarn "Are you sure you want to do this? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
sure="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "User aborted configuration."
|
||||
else
|
||||
echo "Answer not recognized. Enter 'y' or 'n'"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
export reset=$_reset
|
||||
|
||||
# Create ssl certificate for Webmin if there is not one in the proper place
|
||||
if [[ ! -e "${EROOT}etc/ssl/webmin/server.pem" ]]; then
|
||||
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Webmin Server}"
|
||||
SSL_COMMONNAME="${SSL_COMMONNAME:-*}"
|
||||
install_cert "${EROOT}/etc/ssl/webmin/server"
|
||||
fi
|
||||
|
||||
# Ensure all paths passed to the setup script use EROOT
|
||||
export wadir="${EROOT}usr/libexec/webmin"
|
||||
export config_dir="${EROOT}etc/webmin"
|
||||
export var_dir="${EROOT}var/log/webmin"
|
||||
export tempdir="${T}"
|
||||
export pidfile="${EROOT}var/run/webmin.pid"
|
||||
export perl="$( which perl )"
|
||||
export os_type='gentoo-linux'
|
||||
export os_version='*'
|
||||
export real_os_type='Gentoo Linux'
|
||||
export real_os_version='Any version'
|
||||
# Forcing 'ssl' and 'ssl_redirect' for tightening security
|
||||
export ssl=1
|
||||
export ssl_redirect=1
|
||||
export keyfile="${EROOT}etc/ssl/webmin/server.pem"
|
||||
export port=10000
|
||||
|
||||
export atboot=0
|
||||
|
||||
einfo "Executing Webmin's configure script"
|
||||
$wadir/gentoo-setup.sh
|
||||
|
||||
einfo "Configuration of Webmin done"
|
||||
}
|
@ -1,264 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/webmin-1.590.ebuild,v 1.4 2012/07/22 19:47:28 hwoarang Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils pam ssl-cert
|
||||
|
||||
DESCRIPTION="A web-based Unix systems administration interface"
|
||||
HOMEPAGE="http://www.webmin.com/"
|
||||
SRC_URI="minimal? ( mirror://sourceforge/webadmin/${P}-minimal.tar.gz )
|
||||
!minimal? ( mirror://sourceforge/webadmin/${P}.tar.gz )"
|
||||
|
||||
LICENSE="BSD GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
# NOTE: The ssl flag auto added by ssl-cert eclass is not used actually
|
||||
# because openssl is forced by dev-perl/Net-SSLeay
|
||||
IUSE="minimal +ssl mysql postgres ldap"
|
||||
|
||||
# All the required perl modules can be found easily using (in Webmin's root src dir):
|
||||
# find . -name cpan_modules.pl -exec grep "::" {} \;
|
||||
# NOTE: If Webmin doesn't find the required perl modules, it offers(runtime) the user
|
||||
# to install them using the in-built cpan module, and this will mess up perl on the system
|
||||
# That's why some modules are forced without a use flag
|
||||
# NOTE: pam and ssl deps are forced for security and Gentoo compliance installation reasons
|
||||
DEPEND="virtual/perl-Sys-Syslog
|
||||
virtual/perl-Time-HiRes
|
||||
virtual/perl-Time-Local
|
||||
dev-perl/Authen-Libwrap
|
||||
dev-perl/IO-Tty
|
||||
dev-perl/MD5
|
||||
dev-perl/Net-SSLeay
|
||||
dev-perl/Authen-PAM
|
||||
dev-perl/Sys-Hostname-Long
|
||||
!minimal? (
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
ldap? ( dev-perl/perl-ldap )
|
||||
dev-perl/XML-Generator
|
||||
dev-perl/XML-Parser
|
||||
)"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
local perl="$( which perl )"
|
||||
|
||||
# Remove the unnecessary and incompatible files
|
||||
rm -rf acl/Authen-SolarisRBAC-0.1*
|
||||
if ! use minimal ; then
|
||||
rm -rf {format,{bsd,hpux,sgi}exports,zones,rbac}
|
||||
rm -f mount/{free,net,open}bsd-mounts*
|
||||
rm -f mount/macos-mounts*
|
||||
fi
|
||||
|
||||
# For security reasons remove the SSL certificate that comes with Webmin
|
||||
# We will create our own later
|
||||
rm -f miniserv.pem
|
||||
|
||||
# Remove the Webmin setup scripts to avoid Webmin in runtime to mess up config
|
||||
# We will use our own later
|
||||
rm -f setup.{sh,pl}
|
||||
|
||||
# Fix the permissions of the install files
|
||||
chmod -R og-w "${S}"
|
||||
|
||||
# Since we should not modify any files after install
|
||||
# we set the perl path in all cgi and pl files here using Webmin's routines
|
||||
# The pl file is Prefix safe and works only on provided input, no other filesystem files
|
||||
ebegin "Fixing perl path in source files"
|
||||
(find "${S}" -name '*.cgi' -print ; find "${S}" -name '*.pl' -print) | $perl "${S}"/perlpath.pl $perl -
|
||||
eend $?
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Create config dir and keep
|
||||
diropts -m0755
|
||||
dodir /etc/webmin
|
||||
keepdir /etc/webmin
|
||||
|
||||
# Create install dir
|
||||
# Third party modules installed through Webmin go here too, so keep
|
||||
dodir /usr/libexec/webmin
|
||||
keepdir /usr/libexec/webmin
|
||||
|
||||
# Copy our own setup script to installation folder
|
||||
insinto /usr/libexec/webmin
|
||||
newins "${FILESDIR}"/gentoo-setup gentoo-setup.sh
|
||||
fperms 0744 /usr/libexec/webmin/gentoo-setup.sh
|
||||
|
||||
# This is here if we ever want in future ebuilds to add some specific
|
||||
# config values in the /etc/webmin/miniserv.conf
|
||||
# The format of this file should be the same as the one of miniserv.conf:
|
||||
# var=value
|
||||
#
|
||||
# Uncomment it if you use such file. Before that check if upstream
|
||||
# has this file in root dir too.
|
||||
#newins "${FILESDIR}/miniserv-conf" miniserv-conf
|
||||
|
||||
# Create the log dir and keep
|
||||
diropts -m0700
|
||||
dodir /var/log/webmin
|
||||
keepdir /var/log/webmin
|
||||
|
||||
# Create the init.d file and put the neccessary variables there
|
||||
newinitd "${FILESDIR}"/init.d.webmin webmin
|
||||
sed -i \
|
||||
-e "s:%exe%:${EROOT}usr/libexec/webmin/miniserv.pl:" \
|
||||
-e "s:%pid%:${EROOT}var/run/webmin.pid:" \
|
||||
-e "s:%conf%:${EROOT}etc/webmin/miniserv.conf:" \
|
||||
-e "s:%perllib%:${EROOT}usr/libexec/webmin:" \
|
||||
"${ED}etc/init.d/webmin" \
|
||||
|| die "Failed to patch the webmin init file"
|
||||
|
||||
# Setup pam
|
||||
pamd_mimic system-auth webmin auth account session
|
||||
|
||||
# Copy files to installation folder
|
||||
ebegin "Copying install files to destination"
|
||||
cp -pPR "${S}"/* "${ED}usr/libexec/webmin"
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# First stop service if running so Webmin to not messup our config
|
||||
ebegin "Stopping any running Webmin instance prior merging"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Run pkg_config phase first - non interactively
|
||||
export INTERACTIVE="no"
|
||||
pkg_config
|
||||
# Every next time pkg_config should be interactive
|
||||
INTERACTIVE="yes"
|
||||
|
||||
ewarn
|
||||
ewarn "Bare in mind that not all Webmin modules are Gentoo tweaked and may have some issues."
|
||||
ewarn "Always be careful when using modules that modify init entries, do update of webmin, install CPAN modules etc."
|
||||
ewarn "To avoid problems, please before using any module, look at its configuration options first."
|
||||
ewarn "(Usually there is a link at top in the right pane of Webmin for configuring the module.)"
|
||||
ewarn
|
||||
elog "- To make Webmin start at boot time, run: 'rc-update add webmin default'"
|
||||
elog "- The default URL to connect to Webmin is: https://localhost:10000"
|
||||
elog "- The default user that can login is: root"
|
||||
elog "- To reconfigure Webmin in case of problems run 'emerge --config app-admin/webmin'"
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
# First stop service if running - we do not want Webmin to mess up config
|
||||
ebegin "Stopping any running Webmin instance prior unmerging"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
ewarn
|
||||
ewarn "You have uninstalled Webmin, so have in mind that all cron jobs scheduled"
|
||||
ewarn "by Webmin for its own modules, are left active and they will fail when Webmin is missing."
|
||||
ewarn "To fix this just disable them if you intend to use Webmin again,"
|
||||
ewarn "OR delete them if not."
|
||||
ewarn
|
||||
}
|
||||
|
||||
pkg_config(){
|
||||
# First stop service if running
|
||||
ebegin "Stopping any running Webmin instance"
|
||||
rc-service --ifexists -- webmin --ifstarted stop
|
||||
eend $?
|
||||
|
||||
# Next set the default reset variable to 'none'
|
||||
# reset/_reset can be:
|
||||
# 'none' - does not reset anything, just upgrades if a conf is present
|
||||
# OR installs new conf if a conf is missing
|
||||
# 'soft' - deletes only $config_dir/config file and thus resetting most
|
||||
# conf values to their defaults. Keeps the specific Webmin cron jobs
|
||||
# 'hard' - deletes all files in $config_dir (keeping the .keep_* Gentoo file)
|
||||
# and thus resetting all Webmin. Deletes the specific Webmin cron jobs too.
|
||||
local _reset="none"
|
||||
|
||||
# If in interactive mode ask user what should we do
|
||||
if [[ "${INTERACTIVE}" = "yes" ]]; then
|
||||
einfo
|
||||
einfo "Please enter the number of the action you would like to perform?"
|
||||
einfo
|
||||
einfo "1. Update configuration"
|
||||
einfo " (keeps old config options and adds the new ones)"
|
||||
einfo "2. Soft reset configuration"
|
||||
einfo " (keeps some old config options, the other options are set to default)"
|
||||
ewarn " All Webmin users will be reset"
|
||||
einfo "3. Hard reset configuration"
|
||||
einfo " (all options including module options are set to default)"
|
||||
ewarn " You will lose all Webmin configuration options you have done till now"
|
||||
einfo "4. Exit this configuration utility (default)"
|
||||
while [ "$correct" != "true" ] ; do
|
||||
read answer
|
||||
if [[ "$answer" = "1" ]] ; then
|
||||
_reset="none"
|
||||
correct="true"
|
||||
elif [[ "$answer" = "2" ]] ; then
|
||||
_reset="soft"
|
||||
correct="true"
|
||||
elif [[ "$answer" = "3" ]] ; then
|
||||
_reset="hard"
|
||||
correct="true"
|
||||
elif [ "$answer" = "4" -o "$answer" = "" ] ; then
|
||||
die "User aborted configuration."
|
||||
else
|
||||
echo "Answer not recognized. Enter a number from 1 to 4"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ "$_reset" = "hard" ]]; then
|
||||
while [ "$sure" != "true" ] ; do
|
||||
ewarn "You will lose all Webmin configuration options you have done till now."
|
||||
ewarn "Are you sure you want to do this? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
sure="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "User aborted configuration."
|
||||
else
|
||||
echo "Answer not recognized. Enter 'y' or 'n'"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
export reset=$_reset
|
||||
|
||||
# Create ssl certificate for Webmin if there is not one in the proper place
|
||||
if [[ ! -e "${EROOT}etc/ssl/webmin/server.pem" ]]; then
|
||||
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Webmin Server}"
|
||||
SSL_COMMONNAME="${SSL_COMMONNAME:-*}"
|
||||
install_cert "${EROOT}/etc/ssl/webmin/server"
|
||||
fi
|
||||
|
||||
# Ensure all paths passed to the setup script use EROOT
|
||||
export wadir="${EROOT}usr/libexec/webmin"
|
||||
export config_dir="${EROOT}etc/webmin"
|
||||
export var_dir="${EROOT}var/log/webmin"
|
||||
export tempdir="${T}"
|
||||
export pidfile="${EROOT}var/run/webmin.pid"
|
||||
export perl="$( which perl )"
|
||||
export os_type='gentoo-linux'
|
||||
export os_version='*'
|
||||
export real_os_type='Gentoo Linux'
|
||||
export real_os_version='Any version'
|
||||
# Forcing 'ssl' and 'ssl_redirect' for tightening security
|
||||
export ssl=1
|
||||
export ssl_redirect=1
|
||||
export keyfile="${EROOT}etc/ssl/webmin/server.pem"
|
||||
export port=10000
|
||||
|
||||
export atboot=0
|
||||
|
||||
einfo "Executing Webmin's configure script"
|
||||
$wadir/gentoo-setup.sh
|
||||
|
||||
einfo "Configuration of Webmin done"
|
||||
}
|
@ -1,10 +1,19 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX gnomebaker-0.6.4-implicits.patch 724 SHA256 781c0de02940d595854dfd2a383c4d366da4abfd8a328e71ff1136407b2e340f SHA512 1df40fcbad9e4b3665f5eedc22e9a684119b7d554c2129ada132a1b7e0e6b9ccce2ea66a1abd2e8e94555d50f43b7e6cdbe139da173ff8eb5761fc64aa39ad1b WHIRLPOOL 3c228aa5bb1539a35ed8d104cabc99625e8da6900ac26d34f88caefcbd2d76941c4e8999d285a48b7539ec8ef25b9a640897bc206f12ba67aab272eada12f050
|
||||
AUX gnomebaker-0.6.4-ldadd.patch 279 SHA256 c81ac7d443844cbb7d94c9cb3399766e1efccfba0cd6f0b5628ca146a2f794fc SHA512 98af7ae0508430aed4e6017e71b277506dc5abd2c71ce4c8a7f4183317ce493b7b6281fe23a4a6f55668e54100c0ea6118785625abb65e73850fd141e9af4953 WHIRLPOOL f223ad96e4ab0d65ace54a8e999659196d6f3726f4de3c1985af519cb214e8d279bcc0d3c738fd79cc2a50dda7d470dcddd6d659792eae722b37cc5baa6613a8
|
||||
AUX gnomebaker-0.6.4-libnotify-0.7.patch 682 SHA256 81d400bdaf7f6992c88842fecfb71cf1fc1b7e12ec0c69275f879442181c16e2 SHA512 58fc5d79bc0f2857a06dfe42c28e50d707b6028da8ecf8c6093824afb471207d2046dc8e87f561ebed839b3d0962716b6941996eb272873c4080f40135efc6c0 WHIRLPOOL b469594544f4ce158267c4c6139c6569e5811c749c66d789c640eda4c961e1c81c5be6ad267e0d7ac622ca0573884b7e0a822a7be40fcf9f750c2b64349ef961
|
||||
AUX gnomebaker-0.6.4-mimetype.patch 346 SHA256 df2de7770bb8fe00ad2ed6c347004a988b07f100207cc24c7fda68b39eb514fa SHA512 eedef30898d113adb69cc0ff39f3f6b48ccd1476d6e2d2102b99c8db711282122ac27aa7935644cf6c40b3fda0e4b9420cb6deaa7cb636b4fc661e831f830d7c WHIRLPOOL 26b4cb17f9cbc3cfac8d2995b14104b978bfb60109964037c70bfe07d1e41ce26f851c426ba3abc7cdcaea059400d17ae699ba78636f8b77ae86927f8a61f4a5
|
||||
AUX gnomebaker-0.6.4-seldata.patch 1472 SHA256 67ad4851d01017d510accf87bd4af79d920c845f6aa84dff7636b803cbb31b5a SHA512 2cf1801d4136f2559740eeebc5e4db75c0376e87455e2cfd304c4c5370ae3b598b9e64b924f14d56e558efe33bc235454841d0fbd2fcc6e6e574850cd7b84096 WHIRLPOOL 0024a45b785a2284c7ad912aefd78ecac9421a302e5a30e9fedf0b8f19ce97bb6b2580f76ce8cefb95569ef77e4bf8f00df7afcab32f7a985c7505da193f9210
|
||||
DIST gnomebaker-0.6.4.tar.gz 1276117 SHA256 6e1ef94cafca7536fc3211a7abd4732f6dc5adc3c7c1b73184f5a87738117fb7 SHA512 954a05724d8d036580edbd5ded11bfd4389965b831ccf2d5a10dbd542c54db4f0519aa3277c6ebc139f55a2475987c48b557cc002e86d9cccca473f187666e34 WHIRLPOOL f951cc19ebd3d107e0d2386c2e58cc678521a31c1fd40e77769dc6758fefa86d375d92bd7bad3770c5e54e6e2de41357a5c66efbdab0276b09f41516049d1d47
|
||||
EBUILD gnomebaker-0.6.4-r1.ebuild 1616 SHA256 7f1ce122e7b4a24f53caedd19a53e63d791eae7ca2b0af9162c7b83b7ff6edaa SHA512 39c725b40908dba26e18efe310c27ed900c096eb2cda724d612d7e3cb674ed99726459de6b75d5620b91961c831869e94343c57ebb339416ca5b453dad923732 WHIRLPOOL 0bfe033077c85d8bb48b92f5ee95edbbce8446169c1fc31335a4769e69cc8d0ba23e2a728c4f19c41c2dd8e36e9828cea605f3a4dfa1961b6ed74b324666e02d
|
||||
EBUILD gnomebaker-0.6.4.ebuild 1604 SHA256 993a273fd6207f939db920e092fe168aecddc4b34f7da7df240ed204273f64b5 SHA512 ba55fea2da2a678d2580614aa5f34872c44d9f95f9ee4d5df60f8677157b0e29f3532f73a3541b4bb309a39d9a113cdc5111a3d71be9f0d6ba1c6cb43a60ebba WHIRLPOOL 9402c57f94ee45a318d3ccf922616a7882cbd901cb0d7cf8ad0076d89bb21420587d39b02b7a624f43e042185d5970594413cc07e0ffc33774e21bd40dccf411
|
||||
MISC ChangeLog 9516 SHA256 9a08a5e699f6fe600fd8557c32c1e21191f071f96ef7e87ee6ce52a856e9251f SHA512 2c3c3d045121f3cd2f7a4162ea22b8f348f18ffaf8f82e176b19e720877828c4f8a8dae5b60afae612f4d775b06798bb5e4515bd7127ebefbdc79132ec7731ed WHIRLPOOL bb647846f5d22d19ad124a3ca146fc94b3395da5078dd0f9db3961d09b15d7293d171c63185b90df6d8e6a950bade89613e62007fe6fbcd6e51e6037572ae4f1
|
||||
EBUILD gnomebaker-0.6.4-r1.ebuild 1622 SHA256 51dc83ebe9b1eae851530f98b488d21d026bd5b101f793be1e582cc5efd652b6 SHA512 3fcfe37afbfd6f5fb79fa3eb848ac495aac9da9f6576cd1a997bc34ecb4776c0627f8d5c46f5cf543b3b391b2418ba556b4360a47e20c9f415067d9f48805783 WHIRLPOOL 24276d730940f472d8769780de0733aa5b4d3eee224b7ebce7d2bf3ab18c66e05f582fa031cc090f0dc40583223577c9dc49b02064aff1e632b863eaf19976eb
|
||||
MISC ChangeLog 9757 SHA256 2cf227106fb127884658ae08f2e888a5000164f278178e14cafe53783f7cbe58 SHA512 70a070683a0927fe9b2b44cc5e567259ae985b719bfdc92f75b2320e9623bf8737611d74269acbc0be68a8a9bce41bbcc558d2a38654647271c46f5f72efae54 WHIRLPOOL f3a925d0f4d84d46827b203965f62b460d7516c005af01e39a72d18034cac9e46567529086ecc397d6378f3f677be270a9b11ea496855ccb9c35633045e6a6eb
|
||||
MISC metadata.xml 168 SHA256 78253ccb8cd8df7179b1776b7e98a02f8df32368476727fef07ad0c9d164e180 SHA512 847984ab8d8795fa675c23f65677dfc6373d2e2d0edfc415f361b2ecc3bd8f3b359c80fba23ddbc799a755d07e8d68241d7dc8050de4e3ef7df066e58bde5c9d WHIRLPOOL 1b379ed5d4b670c881f3c8bbed454bf2479a7d6dbdb7c3522040292ab23cf7fb791dba978eccd1dd06c758baf7b1f21e403bdc055b9f8f0c1e2dd70a035b946d
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlCJhNgACgkQ1fmVwcYIWAYzDQCg5t3pWWpOB8N1ULGScCVLvxXy
|
||||
gIcAnA7lNvGGqbpEkvNdSJV4q6KItoTI
|
||||
=L2wm
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-cdr/gnomebaker/gnomebaker-0.6.4.ebuild,v 1.9 2012/05/03 07:51:48 jdhore Exp $
|
||||
|
||||
EAPI=3
|
||||
GCONF_DEBUG=no
|
||||
inherit eutils gnome2
|
||||
|
||||
DESCRIPTION="GnomeBaker is a GTK2/Gnome cd burning application."
|
||||
HOMEPAGE="http://sourceforge.net/projects/gnomebaker"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ia64 ppc ppc64 sparc x86"
|
||||
IUSE="dvdr flac libnotify mp3 vorbis"
|
||||
|
||||
RDEPEND=">=x11-libs/gtk+-2.8:2
|
||||
>=gnome-base/libgnomeui-2.8.1
|
||||
>=dev-libs/libxml2-2.4:2
|
||||
>=gnome-base/libglade-2.4.2:2.0
|
||||
>=media-libs/gstreamer-0.10:0.10
|
||||
x11-libs/cairo
|
||||
app-cdr/cdrdao
|
||||
virtual/cdrtools
|
||||
dvdr? ( app-cdr/dvd+rw-tools )
|
||||
flac? ( >=media-plugins/gst-plugins-flac-0.10:0.10
|
||||
media-libs/gst-plugins-good:0.10 )
|
||||
libnotify? ( x11-libs/libnotify )
|
||||
mp3? ( >=media-plugins/gst-plugins-mad-0.10:0.10
|
||||
media-libs/gst-plugins-good:0.10 )
|
||||
vorbis? ( >=media-plugins/gst-plugins-vorbis-0.10:0.10
|
||||
>=media-libs/libogg-1.1.2
|
||||
media-libs/gst-plugins-good:0.10 )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/rarian
|
||||
dev-util/intltool
|
||||
virtual/pkgconfig
|
||||
sys-devel/gettext"
|
||||
|
||||
pkg_setup() {
|
||||
G2CONF="${G2CONF}
|
||||
--disable-dependency-tracking
|
||||
$(use_enable libnotify)"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-libnotify-0.7.patch
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install \
|
||||
gnomebakerdocdir=/usr/share/doc/${P} \
|
||||
docdir=/usr/share/gnome/help/${PN}/C \
|
||||
gnomemenudir=/usr/share/applications
|
||||
rm -rf "${D}"/usr/share/doc/${P}/*.make "${D}"/var
|
||||
}
|
@ -1,84 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-forensics/openscap/openscap-0.8.0.ebuild,v 1.2 2011/12/28 14:01:19 swift Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit eutils multilib python bash-completion-r1
|
||||
|
||||
DESCRIPTION="Framework which enables integration with the Security Content Automation Protocol (SCAP)"
|
||||
HOMEPAGE="http://www.open-scap.org/"
|
||||
SRC_URI="http://www.open-scap.org/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="bash-completion doc nss perl python rpm sql"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="!nss? ( dev-libs/libgcrypt )
|
||||
nss? ( dev-libs/nss )
|
||||
rpm? ( >=app-arch/rpm-4.9 )
|
||||
sql? ( dev-db/opendbx )
|
||||
dev-libs/libpcre
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
net-misc/curl"
|
||||
DEPEND="${RDEPEND}
|
||||
perl? ( dev-lang/swig )
|
||||
python? ( dev-lang/swig )"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's/uname -p/uname -m/' tests/probes/uname/test_probes_uname.xml.sh || die
|
||||
sed -i 's,/etc/rc.d/init.d,/etc/init.d,' src/OVAL/probes/unix/runlevel.c || die
|
||||
if ! use rpm ; then
|
||||
sed -i 's,probe_rpminfo_req_deps_ok=yes,probe_rpminfo_req_deps_ok=no,' configure || die
|
||||
sed -i 's,probe_rpminfo_opt_deps_ok=yes,probe_rpminfo_opt_deps_ok=no,' configure || die
|
||||
sed -i 's,probe_rpmverify_req_deps_ok=yes,probe_rpmverify_req_deps_ok=no,' configure || die
|
||||
sed -i 's,probe_rpmverify_opt_deps_ok=yes,probe_rpmverify_opt_deps_ok=no,' configure || die
|
||||
sed -i 's,^probe_rpm.*_deps_missing=,&disabled by USE flag,' configure || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
if use python || use perl ; then
|
||||
myconf+=" --enable-bindings"
|
||||
else
|
||||
myconf+=" --disable-bindings"
|
||||
fi
|
||||
if use nss ; then
|
||||
myconf+=" --with-crypto=nss3"
|
||||
else
|
||||
myconf+=" --with-crypto=gcrypt"
|
||||
fi
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}" || die
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
sed -i 's/^Description/&:/' "${D}"/usr/$(get_libdir)/pkgconfig/libopenscap.pc || die
|
||||
#--enable-bindings enable all bindings, clean unwanted bindings
|
||||
if use python && ! use perl ; then
|
||||
rm -rf "${D}"/usr/$(get_libdir)/perl5 || die
|
||||
fi
|
||||
if ! use python && use perl ; then
|
||||
rm -rf "${D}"/$(python_get_sitedir) || die
|
||||
fi
|
||||
if use doc ; then
|
||||
dohtml -r docs/html/* || die
|
||||
dodoc docs/examples/* || die
|
||||
fi
|
||||
if use bash-completion ; then
|
||||
dobashcomp "${D}"/etc/bash_completion.d/oscap
|
||||
fi
|
||||
rm -rf "${D}"/etc/bash_completion.d || die
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
From d2a4e30fdb92aeaf476dcaaf2b5d6f8275d6af70 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Wu <lekensteyn@gmail.com>
|
||||
Date: Tue, 4 Sep 2012 19:40:08 +0200
|
||||
Subject: [PATCH] Do not crash on missing/invalid DISPLAY envvar.
|
||||
|
||||
- Check whether the passed DISPLAY environment variable contains ":".
|
||||
|
||||
- Fallback to "-display" parameter passed to QApplication.
|
||||
---
|
||||
src/CMakeLists.txt | 2 ++
|
||||
src/qibusbus.cpp | 23 ++++++++++++++++-------
|
||||
2 files changed, 18 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 2ad5588..8866ac0 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -92,9 +92,11 @@ set_target_properties(
|
||||
target_link_libraries(
|
||||
ibus-qt
|
||||
debug ${QT_QTCORE_LIBRARY_DEBUG}
|
||||
+ debug ${QT_QTGUI_LIBRARY_DEBUG}
|
||||
debug ${QT_QTDBUS_LIBRARY_DEBUG}
|
||||
debug ${QT_QTXML_LIBRARY_DEBUG}
|
||||
optimized ${QT_QTCORE_LIBRARY_RELEASE}
|
||||
+ optimized ${QT_QTGUI_LIBRARY_RELEASE}
|
||||
optimized ${QT_QTDBUS_LIBRARY_RELEASE}
|
||||
optimized ${QT_QTXML_LIBRARY_RELEASE}
|
||||
${DBUS_LIBRARIES}
|
||||
diff --git a/src/qibusbus.cpp b/src/qibusbus.cpp
|
||||
index 6a45d65..ed8248a 100644
|
||||
--- a/src/qibusbus.cpp
|
||||
+++ b/src/qibusbus.cpp
|
||||
@@ -12,7 +12,8 @@
|
||||
#include "qibusbus.h"
|
||||
#include "qibusibusproxy.h"
|
||||
#include "qibusdbusproxy.h"
|
||||
-
|
||||
+#include <X11/Xlib.h>
|
||||
+#include <QX11Info>
|
||||
|
||||
namespace IBus {
|
||||
/**
|
||||
@@ -121,15 +122,23 @@
|
||||
Bus::getSocketPath (void)
|
||||
{
|
||||
QString display = getenv ("DISPLAY");
|
||||
- QStringList strs = display.split(":");
|
||||
QString hostname = "unix";
|
||||
QString display_number = "0";
|
||||
+ /* fallback when -display is passed to QApplication with no DISPLAY env */
|
||||
+ if (display == NULL) {
|
||||
+ Display * dpy = QX11Info::display();
|
||||
+ if (dpy)
|
||||
+ display = XDisplayString(dpy);
|
||||
+ }
|
||||
+ if (display != NULL && display.contains(':')) {
|
||||
+ QStringList strs = display.split(":");
|
||||
|
||||
- if (!strs[0].isEmpty())
|
||||
- hostname = strs[0];
|
||||
- strs = strs[1].split(".");
|
||||
- if (!strs[0].isEmpty())
|
||||
- display_number = strs[0];
|
||||
+ if (!strs[0].isEmpty())
|
||||
+ hostname = strs[0];
|
||||
+ strs = strs[1].split(".");
|
||||
+ if (!strs[0].isEmpty())
|
||||
+ display_number = strs[0];
|
||||
+ }
|
||||
|
||||
QString path =
|
||||
QDir::homePath() +
|
||||
--
|
||||
1.7.10
|
||||
|
@ -1,205 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/tracker/tracker-0.10.35.ebuild,v 1.4 2012/09/28 04:27:43 tetromino Exp $
|
||||
|
||||
EAPI="3"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
GNOME_TARBALL_SUFFIX="xz"
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
|
||||
inherit eutils gnome2 linux-info python virtualx
|
||||
|
||||
DESCRIPTION="A tagging metadata database, search tool and indexer"
|
||||
HOMEPAGE="http://projects.gnome.org/tracker/"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
# USE="doc" is managed by eclass.
|
||||
IUSE="applet doc eds exif flac flickr gif gnome-keyring gsf gstreamer gtk +introspection iptc +jpeg laptop mp3 nautilus networkmanager pdf playlist qt4 rss strigi test +tiff upnp +vorbis xine +xml xmp"
|
||||
|
||||
# Test suite highly disfunctional, loops forever
|
||||
# putting aside for now
|
||||
RESTRICT="test"
|
||||
|
||||
# vala is built with debug by default (see VALAFLAGS)
|
||||
RDEPEND="
|
||||
>=app-i18n/enca-1.9
|
||||
>=dev-db/sqlite-3.7[threadsafe]
|
||||
>=dev-libs/dbus-glib-0.82-r1
|
||||
>=dev-libs/glib-2.28:2
|
||||
>=dev-libs/icu-4
|
||||
|| (
|
||||
>=media-gfx/imagemagick-5.2.1[png,jpeg=]
|
||||
media-gfx/graphicsmagick[imagemagick,png,jpeg=] )
|
||||
>=media-libs/libpng-1.2
|
||||
>=x11-libs/pango-1
|
||||
sys-apps/util-linux
|
||||
|
||||
applet? (
|
||||
>=gnome-base/gnome-panel-2.91
|
||||
>=x11-libs/gtk+-3:3 )
|
||||
eds? (
|
||||
>=mail-client/evolution-2.32
|
||||
>=gnome-extra/evolution-data-server-2.32
|
||||
<mail-client/evolution-3
|
||||
<gnome-extra/evolution-data-server-3 )
|
||||
exif? ( >=media-libs/libexif-0.6 )
|
||||
flac? ( >=media-libs/flac-1.2.1 )
|
||||
flickr? ( net-libs/rest:0.7 )
|
||||
gif? ( media-libs/giflib )
|
||||
gnome-keyring? ( >=gnome-base/gnome-keyring-2.26 )
|
||||
gsf? (
|
||||
app-text/odt2txt
|
||||
>=gnome-extra/libgsf-1.13 )
|
||||
gstreamer? (
|
||||
>=media-libs/gstreamer-0.10.31:0.10
|
||||
upnp? ( >=media-libs/gupnp-dlna-0.5 ) )
|
||||
!gstreamer? ( !xine? ( || ( media-video/totem media-video/mplayer ) ) )
|
||||
gtk? (
|
||||
>=dev-libs/libgee-0.3:0
|
||||
>=x11-libs/gtk+-2.18:2 )
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
|
||||
iptc? ( media-libs/libiptcdata )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
laptop? ( >=sys-power/upower-0.9 )
|
||||
mp3? (
|
||||
>=media-libs/taglib-1.6
|
||||
gtk? ( x11-libs/gdk-pixbuf:2 )
|
||||
qt4? ( >=x11-libs/qt-gui-4.7.1:4 ) )
|
||||
nautilus? (
|
||||
>=gnome-base/nautilus-2
|
||||
<gnome-base/nautilus-2.90
|
||||
>=x11-libs/gtk+-2.18:2 )
|
||||
networkmanager? ( >=net-misc/networkmanager-0.8 )
|
||||
pdf? (
|
||||
>=x11-libs/cairo-1
|
||||
>=app-text/poppler-0.16[cairo,utils]
|
||||
>=x11-libs/gtk+-2.12:2 )
|
||||
playlist? ( dev-libs/totem-pl-parser )
|
||||
rss? ( net-libs/libgrss )
|
||||
strigi? ( >=app-misc/strigi-0.7 )
|
||||
tiff? ( media-libs/tiff )
|
||||
vorbis? ( >=media-libs/libvorbis-0.22 )
|
||||
xine? ( >=media-libs/xine-lib-1 )
|
||||
xml? ( >=dev-libs/libxml2-2.6 )
|
||||
xmp? ( >=media-libs/exempi-2.1 )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.40
|
||||
>=sys-devel/gettext-0.17
|
||||
virtual/pkgconfig
|
||||
applet? ( >=dev-lang/vala-0.12:0.12 )
|
||||
gtk? (
|
||||
app-office/dia
|
||||
>=dev-lang/vala-0.12:0.12
|
||||
>=dev-libs/libgee-0.3 )
|
||||
doc? (
|
||||
>=dev-util/gtk-doc-1.8
|
||||
media-gfx/graphviz )
|
||||
test? (
|
||||
>=dev-libs/dbus-glib-0.82-r1
|
||||
>=sys-apps/dbus-1.3.1[X] )
|
||||
"
|
||||
|
||||
function inotify_enabled() {
|
||||
if linux_config_exists; then
|
||||
if ! linux_chkconfig_present INOTIFY_USER; then
|
||||
ewarn "You should enable the INOTIFY support in your kernel."
|
||||
ewarn "Check the 'Inotify support for userland' under the 'File systems'"
|
||||
ewarn "option. It is marked as CONFIG_INOTIFY_USER in the config"
|
||||
die 'missing CONFIG_INOTIFY'
|
||||
fi
|
||||
else
|
||||
einfo "Could not check for INOTIFY support in your kernel."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
linux-info_pkg_setup
|
||||
|
||||
inotify_enabled
|
||||
|
||||
if use gstreamer ; then
|
||||
G2CONF="${G2CONF} --enable-generic-media-extractor=gstreamer"
|
||||
if use upnp; then
|
||||
G2CONF="${G2CONF} --with-gstreamer-backend=gupnp-dlna"
|
||||
else
|
||||
G2CONF="${G2CONF} --with-gstreamer-backend=discoverer"
|
||||
fi
|
||||
elif use xine ; then
|
||||
G2CONF="${G2CONF} --enable-generic-media-extractor=xine"
|
||||
else
|
||||
G2CONF="${G2CONF} --enable-generic-media-extractor=external"
|
||||
fi
|
||||
|
||||
if use applet || use gtk; then
|
||||
G2CONF="${G2CONF} VALAC=$(type -P valac-0.12)"
|
||||
fi
|
||||
|
||||
if use mp3 && (use gtk || use qt4); then
|
||||
G2CONF="${G2CONF} $(use_enable !qt4 gdkpixbuf) $(use_enable qt4 qt)"
|
||||
fi
|
||||
|
||||
# unicode-support: libunistring, libicu or glib ?
|
||||
G2CONF="${G2CONF}
|
||||
--disable-hal
|
||||
--enable-tracker-fts
|
||||
--with-enca
|
||||
--with-unicode-support=libicu
|
||||
--enable-guarantee-metadata
|
||||
$(use_enable applet tracker-search-bar)
|
||||
$(use_enable eds miner-evolution)
|
||||
$(use_enable exif libexif)
|
||||
$(use_enable flac libflac)
|
||||
$(use_enable flickr miner-flickr)
|
||||
$(use_enable gnome-keyring)
|
||||
$(use_enable gsf libgsf)
|
||||
$(use_enable gtk tracker-explorer)
|
||||
$(use_enable gtk tracker-preferences)
|
||||
$(use_enable gtk tracker-needle)
|
||||
$(use_enable introspection)
|
||||
$(use_enable iptc libiptcdata)
|
||||
$(use_enable jpeg libjpeg)
|
||||
$(use_enable laptop upower)
|
||||
$(use_enable mp3 taglib)
|
||||
$(use_enable nautilus nautilus-extension)
|
||||
$(use_enable networkmanager network-manager)
|
||||
$(use_enable pdf poppler)
|
||||
$(use_enable playlist)
|
||||
$(use_enable rss miner-rss)
|
||||
$(use_enable strigi libstreamanalyzer)
|
||||
$(use_enable test functional-tests)
|
||||
$(use_enable test unit-tests)
|
||||
$(use_enable tiff libtiff)
|
||||
$(use_enable vorbis libvorbis)
|
||||
$(use_enable xml libxml2)
|
||||
$(use_enable xmp exempi)"
|
||||
|
||||
DOCS="AUTHORS ChangeLog NEWS README"
|
||||
|
||||
python_set_active_version 2
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Fix build failures with USE=strigi
|
||||
epatch "${FILESDIR}/${PN}-0.8.0-strigi.patch"
|
||||
|
||||
# Fix functional tests scripts
|
||||
find "${S}" -name "*.pyc" -delete
|
||||
python_convert_shebangs 2 "${S}"/tests/tracker-writeback/*.py
|
||||
python_convert_shebangs 2 "${S}"/tests/functional-tests/*.py
|
||||
python_convert_shebangs 2 "${S}"/utils/data-generators/cc/{*.py,generate}
|
||||
python_convert_shebangs 2 "${S}"/utils/gtk-sparql/*.py
|
||||
python_convert_shebangs 2 "${S}"/examples/rss-reader/*.py
|
||||
|
||||
# FIXME: report broken tests
|
||||
sed -e '/\/libtracker-miner\/tracker-password-provider\/setting/,+1 s:^\(.*\)$:/*\1*/:' \
|
||||
-e '/\/libtracker-miner\/tracker-password-provider\/getting/,+1 s:^\(.*\)$:/*\1*/:' \
|
||||
-i tests/libtracker-miner/tracker-password-provider-test.c || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
Xemake check XDG_DATA_HOME="${T}" XDG_CONFIG_HOME="${T}" || die "tests failed"
|
||||
}
|
@ -1,265 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/tracker/tracker-0.12.10.ebuild,v 1.4 2012/09/28 04:27:43 tetromino Exp $
|
||||
|
||||
EAPI="4"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
|
||||
inherit eutils gnome2 linux-info multilib python versionator
|
||||
|
||||
DESCRIPTION="A tagging metadata database, search tool and indexer"
|
||||
HOMEPAGE="http://projects.gnome.org/tracker/"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
# USE="doc" is managed by eclass.
|
||||
IUSE="applet doc eds elibc_glibc exif firefox-bookmarks flac flickr gif gnome-keyring gsf gstreamer gtk iptc +jpeg laptop mp3 nautilus networkmanager pdf playlist rss test thunderbird +tiff upnp +vorbis xine +xml xmp" # qt4 strigi
|
||||
|
||||
# Test suite highly disfunctional, loops forever
|
||||
# putting aside for now
|
||||
RESTRICT="test"
|
||||
|
||||
# vala is built with debug by default (see VALAFLAGS)
|
||||
# According to NEWS, introspection is non-optional
|
||||
# glibc-2.12 needed for SCHED_IDLE (see bug #385003)
|
||||
RDEPEND="
|
||||
>=app-i18n/enca-1.9
|
||||
>=dev-db/sqlite-3.7[threadsafe]
|
||||
>=dev-libs/glib-2.28:2
|
||||
>=dev-libs/gobject-introspection-0.9.5
|
||||
>=dev-libs/icu-4
|
||||
|| (
|
||||
>=media-gfx/imagemagick-5.2.1[png,jpeg=]
|
||||
media-gfx/graphicsmagick[imagemagick,png,jpeg=] )
|
||||
>=media-libs/libpng-1.2
|
||||
>=x11-libs/pango-1
|
||||
sys-apps/util-linux
|
||||
|
||||
applet? (
|
||||
>=gnome-base/gnome-panel-2.91.6
|
||||
>=x11-libs/gdk-pixbuf-2.12:2
|
||||
>=x11-libs/gtk+-3.0:3 )
|
||||
eds? (
|
||||
>=mail-client/evolution-2.91.90
|
||||
>=gnome-extra/evolution-data-server-2.91.90
|
||||
<mail-client/evolution-3.5.3
|
||||
<gnome-extra/evolution-data-server-3.5.3 )
|
||||
elibc_glibc? ( >=sys-libs/glibc-2.12 )
|
||||
exif? ( >=media-libs/libexif-0.6 )
|
||||
firefox-bookmarks? ( || (
|
||||
>=www-client/firefox-4.0
|
||||
>=www-client/firefox-bin-4.0 ) )
|
||||
flac? ( >=media-libs/flac-1.2.1 )
|
||||
flickr? ( net-libs/rest:0.7 )
|
||||
gif? ( media-libs/giflib )
|
||||
gnome-keyring? ( >=gnome-base/gnome-keyring-2.26 )
|
||||
gsf? ( >=gnome-extra/libgsf-1.13 )
|
||||
gstreamer? (
|
||||
>=media-libs/gstreamer-0.10.31:0.10
|
||||
upnp? ( >=media-libs/gupnp-dlna-0.5 )
|
||||
!upnp? ( >=media-libs/gst-plugins-base-0.10.31 ) )
|
||||
!gstreamer? ( !xine? ( || ( media-video/totem media-video/mplayer ) ) )
|
||||
gtk? (
|
||||
>=dev-libs/libgee-0.3:0
|
||||
>=x11-libs/gtk+-3.0.0:3 )
|
||||
iptc? ( media-libs/libiptcdata )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
laptop? ( >=sys-power/upower-0.9 )
|
||||
mp3? (
|
||||
>=media-libs/taglib-1.6
|
||||
gtk? ( x11-libs/gdk-pixbuf:2 ) )
|
||||
networkmanager? ( >=net-misc/networkmanager-0.8 )
|
||||
pdf? (
|
||||
>=x11-libs/cairo-1
|
||||
>=app-text/poppler-0.16[cairo,utils]
|
||||
>=x11-libs/gtk+-2.12:2 )
|
||||
playlist? ( dev-libs/totem-pl-parser )
|
||||
rss? ( net-libs/libgrss )
|
||||
thunderbird? ( || (
|
||||
>=mail-client/thunderbird-5.0
|
||||
>=mail-client/thunderbird-bin-5.0 ) )
|
||||
tiff? ( media-libs/tiff )
|
||||
vorbis? ( >=media-libs/libvorbis-0.22 )
|
||||
xine? ( >=media-libs/xine-lib-1 )
|
||||
xml? ( >=dev-libs/libxml2-2.6 )
|
||||
xmp? ( >=media-libs/exempi-2.1 )"
|
||||
# strigi? ( >=app-misc/strigi-0.7 )
|
||||
# mp3? ( qt4? ( >=x11-libs/qt-gui-4.7.1:4 ) )
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.40
|
||||
>=sys-devel/gettext-0.17
|
||||
virtual/pkgconfig
|
||||
applet? ( >=dev-lang/vala-0.12:0.12 )
|
||||
gtk? (
|
||||
>=dev-lang/vala-0.12:0.12
|
||||
>=dev-libs/libgee-0.3 )
|
||||
doc? (
|
||||
app-office/dia
|
||||
>=dev-util/gtk-doc-1.8
|
||||
media-gfx/graphviz )
|
||||
test? (
|
||||
>=dev-libs/dbus-glib-0.82-r1
|
||||
>=sys-apps/dbus-1.3.1[X] )
|
||||
"
|
||||
# strigi? ( >=dev-lang/vala-0.12:0.12 )
|
||||
PDEPEND="nautilus? ( >=gnome-extra/nautilus-tracker-tags-0.12.7 )"
|
||||
|
||||
function inotify_enabled() {
|
||||
if linux_config_exists; then
|
||||
if ! linux_chkconfig_present INOTIFY_USER; then
|
||||
ewarn "You should enable the INOTIFY support in your kernel."
|
||||
ewarn "Check the 'Inotify support for userland' under the 'File systems'"
|
||||
ewarn "option. It is marked as CONFIG_INOTIFY_USER in the config"
|
||||
die 'missing CONFIG_INOTIFY'
|
||||
fi
|
||||
else
|
||||
einfo "Could not check for INOTIFY support in your kernel."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
linux-info_pkg_setup
|
||||
|
||||
inotify_enabled
|
||||
|
||||
if use gstreamer ; then
|
||||
G2CONF="${G2CONF} --enable-generic-media-extractor=gstreamer"
|
||||
if use upnp; then
|
||||
G2CONF="${G2CONF} --with-gstreamer-backend=gupnp-dlna"
|
||||
else
|
||||
G2CONF="${G2CONF} --with-gstreamer-backend=discoverer"
|
||||
fi
|
||||
elif use xine ; then
|
||||
G2CONF="${G2CONF} --enable-generic-media-extractor=xine"
|
||||
else
|
||||
G2CONF="${G2CONF} --enable-generic-media-extractor=external"
|
||||
fi
|
||||
|
||||
# if use applet || use gtk || use strigi; then
|
||||
if use applet || use gtk; then
|
||||
G2CONF="${G2CONF} VALAC=$(type -P valac-0.12)"
|
||||
fi
|
||||
|
||||
# if use mp3 && (use gtk || use qt4); then
|
||||
if use mp3 && use gtk; then
|
||||
#G2CONF="${G2CONF} $(use_enable !qt4 gdkpixbuf) $(use_enable qt4 qt)"
|
||||
G2CONF="${G2CONF} --enable-gdkpixbuf"
|
||||
fi
|
||||
|
||||
# unicode-support: libunistring, libicu or glib ?
|
||||
# According to NEWS, introspection is required
|
||||
# FIXME: disabling streamanalyzer for now since tracker-sparql-builder.h
|
||||
# is not being generated
|
||||
# XXX: disabling qt since tracker-albumart-qt is unstable; bug #385345
|
||||
# nautilus extension is in a separate package, nautilus-tracker-tags
|
||||
G2CONF="${G2CONF}
|
||||
--disable-hal
|
||||
--disable-libcue
|
||||
--enable-tracker-fts
|
||||
--with-enca
|
||||
--with-unicode-support=libicu
|
||||
--enable-guarantee-metadata
|
||||
--enable-introspection
|
||||
--disable-libstreamanalyzer
|
||||
--disable-qt
|
||||
--disable-nautilus-extension
|
||||
$(use_enable applet tracker-search-bar)
|
||||
$(use_enable eds miner-evolution)
|
||||
$(use_enable exif libexif)
|
||||
$(use_enable firefox-bookmarks miner-firefox)
|
||||
$(use_with firefox-bookmarks firefox-plugin-dir ${EPREFIX}/usr/$(get_libdir)/firefox/extensions)
|
||||
FIREFOX=${S}/firefox-version.sh
|
||||
$(use_enable flac libflac)
|
||||
$(use_enable flickr miner-flickr)
|
||||
$(use_enable gnome-keyring)
|
||||
$(use_enable gsf libgsf)
|
||||
$(use_enable gtk tracker-explorer)
|
||||
$(use_enable gtk tracker-preferences)
|
||||
$(use_enable gtk tracker-needle)
|
||||
$(use_enable iptc libiptcdata)
|
||||
$(use_enable jpeg libjpeg)
|
||||
$(use_enable laptop upower)
|
||||
$(use_enable mp3 taglib)
|
||||
$(use_enable networkmanager network-manager)
|
||||
$(use_enable pdf poppler)
|
||||
$(use_enable playlist)
|
||||
$(use_enable rss miner-rss)
|
||||
$(use_enable test functional-tests)
|
||||
$(use_enable test unit-tests)
|
||||
$(use_enable thunderbird miner-thunderbird)
|
||||
$(use_with thunderbird thunderbird-plugin-dir ${EPREFIX}/usr/$(get_libdir)/thunderbird/extensions)
|
||||
THUNDERBIRD=${S}/thunderbird-version.sh
|
||||
$(use_enable tiff libtiff)
|
||||
$(use_enable vorbis libvorbis)
|
||||
$(use_enable xml libxml2)
|
||||
$(use_enable xmp exempi)"
|
||||
# $(use_enable strigi libstreamanalyzer)
|
||||
|
||||
DOCS="AUTHORS ChangeLog NEWS README"
|
||||
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Fix build failures with USE=strigi
|
||||
epatch "${FILESDIR}/${PN}-0.12.3-strigi.patch"
|
||||
|
||||
# Fix functional tests scripts
|
||||
find "${S}" -name "*.pyc" -delete
|
||||
python_convert_shebangs -r 2 tests utils examples
|
||||
|
||||
# Don't run 'firefox --version' or 'thunderbird --version'; it results in
|
||||
# access violations on some setups (bug #385347, #385495).
|
||||
create_version_script "www-client/firefox" "Mozilla Firefox" firefox-version.sh
|
||||
create_version_script "mail-client/thunderbird" "Mozilla Thunderbird" thunderbird-version.sh
|
||||
|
||||
# FIXME: report broken tests
|
||||
sed -e '/\/libtracker-miner\/tracker-password-provider\/setting/,+1 s:^\(.*\)$:/*\1*/:' \
|
||||
-e '/\/libtracker-miner\/tracker-password-provider\/getting/,+1 s:^\(.*\)$:/*\1*/:' \
|
||||
-i tests/libtracker-miner/tracker-password-provider-test.c || die
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
Xemake check XDG_DATA_HOME="${T}" XDG_CONFIG_HOME="${T}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
|
||||
# Manually symlink extensions for {firefox,thunderbird}-bin
|
||||
if use firefox-bookmarks; then
|
||||
dosym /usr/share/xul-ext/trackerfox \
|
||||
/usr/$(get_libdir)/firefox-bin/extensions/trackerfox@bustany.org
|
||||
fi
|
||||
|
||||
if use thunderbird; then
|
||||
dosym /usr/share/xul-ext/trackerbird \
|
||||
/usr/$(get_libdir)/thunderbird-bin/extensions/trackerbird@bustany.org
|
||||
fi
|
||||
}
|
||||
|
||||
create_version_script() {
|
||||
# Create script $3 that prints "$2 MAX(VERSION($1), VERSION($1-bin))"
|
||||
|
||||
local v=$(best_version ${1})
|
||||
v=${v#${1}-}
|
||||
local vbin=$(best_version ${1}-bin)
|
||||
vbin=${vbin#${1}-bin-}
|
||||
|
||||
if [[ -z ${v} ]]; then
|
||||
v=${vbin}
|
||||
else
|
||||
version_compare ${v} ${vbin}
|
||||
[[ $? -eq 1 ]] && v=${vbin}
|
||||
fi
|
||||
|
||||
echo -e "#!/bin/sh\necho $2 $v" > "$3" || die
|
||||
chmod +x "$3" || die
|
||||
}
|
@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/workrave/workrave-1.9.4.ebuild,v 1.5 2012/05/03 19:41:34 jdhore Exp $
|
||||
|
||||
EAPI="3"
|
||||
GCONF_DEBUG="yes"
|
||||
PYTHON_DEPEND="2:2.5"
|
||||
|
||||
inherit eutils gnome2 python
|
||||
|
||||
DESCRIPTION="Helpful utility to attack Repetitive Strain Injury (RSI)"
|
||||
HOMEPAGE="http://www.workrave.org/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE="dbus doc distribution gnome gstreamer nls pulseaudio test xml"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.10:2
|
||||
>=gnome-base/gconf-2
|
||||
>=x11-libs/gtk+-2.8:2
|
||||
>=dev-cpp/gtkmm-2.10:2.4
|
||||
>=dev-cpp/glibmm-2.10:2
|
||||
>=dev-libs/libsigc++-2:2
|
||||
dbus? (
|
||||
>=sys-apps/dbus-1.2
|
||||
dev-libs/dbus-glib )
|
||||
distribution? ( >=net-libs/gnet-2 )
|
||||
gnome? (
|
||||
|| ( gnome-base/gnome-panel[bonobo] <gnome-base/gnome-panel-2.32 )
|
||||
>=gnome-base/libbonobo-2
|
||||
>=gnome-base/orbit-2.8.3 )
|
||||
gstreamer? (
|
||||
>=media-libs/gstreamer-0.10
|
||||
>=media-libs/gst-plugins-base-0.10 )
|
||||
pulseaudio? ( >=media-sound/pulseaudio-0.9.15 )
|
||||
xml? ( dev-libs/gdome2 )
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXtst
|
||||
x11-libs/libXt
|
||||
x11-libs/libXmu"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
x11-proto/xproto
|
||||
x11-proto/inputproto
|
||||
x11-proto/recordproto
|
||||
dev-python/cheetah
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
app-text/docbook-sgml-utils
|
||||
app-text/xmlto )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
pkg_setup() {
|
||||
DOCS="AUTHORS NEWS README TODO"
|
||||
G2CONF="${G2CONF}
|
||||
--without-arts
|
||||
--disable-kde
|
||||
--enable-gconf
|
||||
--disable-x11-monitoring-fallback
|
||||
--disable-gnome3
|
||||
--disable-experimental
|
||||
$(use_enable dbus)
|
||||
$(use_enable doc manual)
|
||||
$(use_enable distribution)
|
||||
$(use_enable gnome)
|
||||
$(use_enable gstreamer)
|
||||
$(use_enable nls)
|
||||
$(use_enable pulseaudio pulse)
|
||||
$(use_enable test tests)
|
||||
$(use_enable xml)"
|
||||
|
||||
python_set_active_version 2
|
||||
}
|
@ -1,10 +1,20 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX poppler-0.18.4-newline.patch 529 SHA256 9bcd45cb6f13caedc01a2c95faccea750a8fc80718fbd2a7c0f991e389c0d40c SHA512 2091cedcc8b4de8ed481db3c647b4996e56780fd95a6840ff8212869e94ad44a872ebee264168a8a7082ed9fd1ad94eb6fd337c453a0ede5cc1647e11bb4aeed WHIRLPOOL 994ebb2a2288ddc67e5f1de6ea9f55fa6a6e99887c52590caa61627a37be9f143a4169d5f7d16336fb73f7377538a63c2e826b18547de0c4f5095068e5503dbf
|
||||
AUX poppler-0.20.1-lcms-automagic.patch 4393 SHA256 2a75cd5955fe976d1b052839297561853e6c597256610cf1ebcf6aba28e1b81c SHA512 5c3af759aeaf1a3be534bc2f90dde3674e4967c7257cc2499505cef014d1c7570eaa53cc1ee9e4b079302085130dbb8215c1795cbd701a0c057273310a32bee5 WHIRLPOOL 2657072b71f916f94f8a1e1c2dd4348334aaa8df2369d5e6aa47d5c27493d32cdf6124d643c91681e65ac5d6d3ac0df01524b683e19bed6c96bc5d7097f13471
|
||||
DIST poppler-0.18.4.tar.gz 1992993 SHA256 33421148cdc8e043da291dece2cce1cea6220d49a50c00c56d56d6435501d42e SHA512 dc7a8f059b6d0b1a73160a40226efc7b9d058806cc62c7b59e868453fef679dd92095629d26462f3697e96e6b16f95ce5425b7b96985f04b4d2db83e432e5216 WHIRLPOOL af4b8889aa0005dff5d4dae0414e2c1468e9a5bf58365425dae5cc96ae6afa8c2943cfc632a23781ac558df54e71f55d3195e8219f1410f026aebaf7cb62ba23
|
||||
DIST poppler-0.20.4.tar.gz 2154257 SHA256 bdb9b2579bc43f034a69612fc1eebead0c468767c949c6c6548ee71b71abd72a SHA512 3e0603cae90667fec11cbd4e2778d779d56a7b38f621c47cabba8be31fb1cdac8dcbf936295560528098838aa0db516baaeb4234dd585947413816db344bb778 WHIRLPOOL 8c56d7da64f9e86290142efd6364b458f449ff9f306b170348c4d5965100c17470ae4069bcea1033d65f62870aaf144fc7fb2b53d3044f1bc0b0c483f0deffa4
|
||||
DIST poppler-0.20.5.tar.gz 2158387 SHA256 c6d7048a5f011dbde1f579d21bcfdd652b472d9d1c607dde9aa89eff960454b6 SHA512 2c9245d8a43c1daedcedc7916540cb5e9def8429382e9b3f3992d4a1fad081c035a9fc07d63998e210257d3dfd0b3b754e31be8f75fd2d94a8e50c7efbd1bb01 WHIRLPOOL cab7068d0b1b678797b9d63aa71e42bb3b70fd6d3f956a43b093734f445ce577a75638ebc4c2a2786ac592c2860f1090db22743cf01da8dab65ceb9a16ebc136
|
||||
EBUILD poppler-0.18.4-r2.ebuild 2664 SHA256 e7e5ad7a837e18641ff1e933a50410c86a13849d7af09f30e2ccbabb53de6461 SHA512 34777a82e166ecc29198f9618e1911f25a91adb2b842e042532484358f598f39561fdb741a256d6943703e953c58ac3bb16e6b0e193597a8c6d848b1ccddcdf8 WHIRLPOOL f89bd7c351d77a06dcc03f1c161c13eec5e69e77bbd226869834c3946ef469b2fd7d20235f80b9d137ff2bc1fb63989fbe8df94ecb7e8433886f3c14947c00c0
|
||||
EBUILD poppler-0.20.4.ebuild 2737 SHA256 43baf36b1e199e4979679ce0abfba238d2be64d290b10b892875e68d4304618f SHA512 571aca9c148325afdbd34a7a3c06fb2df651d9afb890710f1499e6576c02578f711e3cf8b04d7b8f689654823fbe77898a9156ce7c65e49bb6a044ed695efb36 WHIRLPOOL 43f94e2a79b3f97d6a2d76fd9a51eeecd8780b5e82948646e67952de9125f8b7f981a8dd45793153b7117d7efb8648b39866ad88626768b7c775c8764ef55563
|
||||
EBUILD poppler-0.20.4.ebuild 2736 SHA256 5c8af22597f479790846b36158f3800d81198cca885c40e241a8234bfc730ab9 SHA512 28fb04f3a5831ccb620f4ee32be0a7beb986bb81b72343173b796881f07f16d6d99476427c2ed4e313fd78aceea865b8b8603cfe5f41c5b5a792ce09dc1373d8 WHIRLPOOL e2b05bcd82e2dbc2b4dbe34d3a0b8c74ee96f661ef8825a573c8727f056ac58cb8260475c2ba5e2f39e29d2e8fe4b769d06e47ecd37ff605aeb28c6a67c7313a
|
||||
EBUILD poppler-0.20.5.ebuild 2746 SHA256 35e294fa503eabc22e0a35a3c87b2d1a97d76a10e35d3be9695a4e9ce8bb4918 SHA512 e00596005726f57bb6aa9a36870905e4b75887cf31277f8a3062f5c3a5386e78493d56600da8fbd5be136666bf89e875f4d32f6bd5afbaef012a9010428fd764 WHIRLPOOL 1a792489b1848ab4a577b76398d4bc24095f7cb50ea276ff11684281e6d5dd5575fef97b5f3d63daabcae222f30af45cac9ea61c752bb726b23ff41fad1087f9
|
||||
MISC ChangeLog 47912 SHA256 0a1e6a70e504a545b88cc62e1a5260525faeb34dec2c5a0e77c996845c9433bd SHA512 21b259177c774fd1f6746a6129b0a12e75706522bc5a22758f4f9041ad946b9063e86caa0ff41ec7b445ebf6055318487044550dc23f4fb40dfe7e8ad6f6b24a WHIRLPOOL 87af9b3a930dd009664ab906f603760bd0a1cc6bc9a8d73e8d8cfa8f2528b44d074eb1de9a9be47f6d5edb084c0795ebdc06a6bfae0d9d27bf9d702bc5905c14
|
||||
MISC ChangeLog 48016 SHA256 5731d86d235585bc43bd8168b770bc51946a4d59cf0505edb4f27d3b1223b39b SHA512 69cd1cd841d7ff0ccf8c801b763d776a01224d5fa03d0ce475cd1a50ad9be4eb90b090f325064d5c9b3fc877a2266c7be309973a80db86be8938902800d4a8fd WHIRLPOOL 644ed8ed6086cdf8463386499394d971d4aca5db5ee0be1429cf795d8b63a5415dbcb6b07e69b355204f0e26ba360a4ee8ccfe968484b7619b8ca0831391eb16
|
||||
MISC metadata.xml 436 SHA256 11c2593e7d35deb49a1e6d7a5d08ba970b82a4071b7c5fcdc88645fa33c362a1 SHA512 6a82698c8890cd386d3011c003088f3f97f2a83aff0fde6ed13e38a3ed7ea99a3716da8a5b3f91ddcde617f8445d5ed95460011ac86101174479f640d93a7216 WHIRLPOOL 056ed300269a0ad2d9669f454b12569af79294a252b49f946bbf3cecc323485c3341895fc43bca91aedadaa7109909ec01f4c63b0c209115d8459c6ad05d8a91
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlCJbecACgkQVWmRsqeSphMZ/gCdEDG+XOXJlwxn5wReekEZQjQG
|
||||
KNYAn3vI3RfTEqcpM5R1NZdxqdgw2N4r
|
||||
=0fJq
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,621 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.51.0.ebuild,v 1.1 2012/10/25 22:28:45 floppym Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_DEPEND="python? *"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
|
||||
|
||||
inherit check-reqs flag-o-matic multilib multiprocessing python toolchain-funcs versionator
|
||||
|
||||
MY_P=${PN}_$(replace_all_version_separators _)
|
||||
|
||||
DESCRIPTION="Boost Libraries for C++"
|
||||
HOMEPAGE="http://www.boost.org/"
|
||||
SRC_URI="mirror://sourceforge/boost/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="Boost-1.0"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="debug doc icu mpi python static-libs test tools"
|
||||
|
||||
RDEPEND="icu? ( >=dev-libs/icu-3.6:= )
|
||||
!icu? ( virtual/libiconv )
|
||||
mpi? ( || ( sys-cluster/openmpi[cxx] sys-cluster/mpich2[cxx,threads] ) )
|
||||
sys-libs/zlib
|
||||
!!<=dev-libs/boost-1.35.0-r2"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/boost-build:${SLOT}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
MAJOR_PV=$(replace_all_version_separators _ ${SLOT})
|
||||
BJAM="b2-${MAJOR_PV}"
|
||||
|
||||
create_user-config.jam() {
|
||||
local compiler compiler_version compiler_executable
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
compiler="darwin"
|
||||
compiler_version="$(gcc-fullversion)"
|
||||
compiler_executable="$(tc-getCXX)"
|
||||
else
|
||||
compiler="gcc"
|
||||
compiler_version="$(gcc-version)"
|
||||
compiler_executable="$(tc-getCXX)"
|
||||
fi
|
||||
local mpi_configuration python_configuration
|
||||
|
||||
if use mpi; then
|
||||
mpi_configuration="using mpi ;"
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_configuration="using python : $(python_get_version) : /usr : $(python_get_includedir) : /usr/$(get_libdir) ;"
|
||||
fi
|
||||
|
||||
cat > user-config.jam << __EOF__
|
||||
using ${compiler} : ${compiler_version} : ${compiler_executable} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;
|
||||
${mpi_configuration}
|
||||
${python_configuration}
|
||||
__EOF__
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use test; then
|
||||
CHECKREQS_DISK_BUILD="15G" check-reqs_pkg_pretend
|
||||
|
||||
ewarn "The tests may take several hours on a recent machine"
|
||||
ewarn "but they will not fail (unless something weird happens ;-)"
|
||||
ewarn "This is because the tests depend on the used compiler version"
|
||||
ewarn "and the platform and upstream says that this is normal."
|
||||
ewarn "If you are interested in the results, please take a look at the"
|
||||
ewarn "generated results page:"
|
||||
ewarn " ${ROOT}usr/share/doc/${PF}/status/cs-$(uname).html"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use python; then
|
||||
python_pkg_setup
|
||||
fi
|
||||
|
||||
if use debug; then
|
||||
ewarn "The debug USE flag means that a second set of the boost libraries"
|
||||
ewarn "will be built containing debug symbols. But even though the optimization flags"
|
||||
ewarn "you might have set are not stripped, there will be a performance"
|
||||
ewarn "penalty and linking other packages against the debug version"
|
||||
ewarn "of boost is _not_ recommended."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-1.48.0-mpi_python3.patch" \
|
||||
"${FILESDIR}/${PN}-1.51.0-respect_python-buildid.patch" \
|
||||
"${FILESDIR}/${PN}-1.51.0-support_dots_in_python-buildid.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-no_strict_aliasing_python2.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-disable_libboost_python3.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-python_linking.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-disable_icu_rpath.patch" \
|
||||
"${FILESDIR}/remove-toolset-1.48.0.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
OPTIONS=""
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
# We need to add the prefix, and in two cases this exceeds, so prepare
|
||||
# for the largest possible space allocation.
|
||||
append-ldflags -Wl,-headerpad_max_install_names
|
||||
fi
|
||||
|
||||
# bug 298489
|
||||
if use ppc || use ppc64; then
|
||||
[[ $(gcc-version) > 4.3 ]] && append-flags -mno-altivec
|
||||
fi
|
||||
|
||||
use icu && OPTIONS+=" -sICU_PATH=/usr"
|
||||
use icu || OPTIONS+=" --disable-icu boost.locale.icu=off"
|
||||
use mpi || OPTIONS+=" --without-mpi"
|
||||
use python || OPTIONS+=" --without-python"
|
||||
|
||||
# https://svn.boost.org/trac/boost/attachment/ticket/2597/add-disable-long-double.patch
|
||||
if use sparc || { use mips && [[ ${ABI} = "o32" ]]; } || use hppa || use arm || use x86-fbsd || use sh; then
|
||||
OPTIONS+=" --disable-long-double"
|
||||
fi
|
||||
|
||||
OPTIONS+=" pch=off --boost-build=/usr/share/boost-build-${MAJOR_PV} --prefix=\"${D}usr\" --layout=versioned"
|
||||
|
||||
if use static-libs; then
|
||||
LINK_OPTS="link=shared,static"
|
||||
LIBRARY_TARGETS="*.a *$(get_libname)"
|
||||
else
|
||||
LINK_OPTS="link=shared"
|
||||
# There is no dynamically linked version of libboost_test_exec_monitor and libboost_exception.
|
||||
LIBRARY_TARGETS="libboost_test_exec_monitor*.a libboost_exception*.a *$(get_libname)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export BOOST_ROOT="${S}"
|
||||
PYTHON_DIRS=""
|
||||
MPI_PYTHON_MODULE=""
|
||||
NUMJOBS="-j$(makeopts_jobs)"
|
||||
|
||||
building() {
|
||||
create_user-config.jam
|
||||
|
||||
einfo "Using the following command to build:"
|
||||
einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoorelease --user-config=user-config.jam ${OPTIONS} threading=single,multi ${LINK_OPTS} $(use python && echo --python-buildid=${PYTHON_ABI})"
|
||||
|
||||
${BJAM} ${NUMJOBS} -q -d+2 \
|
||||
gentoorelease \
|
||||
--user-config=user-config.jam \
|
||||
${OPTIONS} threading=single,multi ${LINK_OPTS} \
|
||||
$(use python && echo --python-buildid=${PYTHON_ABI}) \
|
||||
|| die "Building of Boost libraries failed"
|
||||
|
||||
# ... and do the whole thing one more time to get the debug libs
|
||||
if use debug; then
|
||||
einfo "Using the following command to build:"
|
||||
einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoodebug --user-config=user-config.jam ${OPTIONS} threading=single,multi ${LINK_OPTS} --buildid=debug $(use python && echo --python-buildid=${PYTHON_ABI})"
|
||||
|
||||
${BJAM} ${NUMJOBS} -q -d+2 \
|
||||
gentoodebug \
|
||||
--user-config=user-config.jam \
|
||||
${OPTIONS} threading=single,multi ${LINK_OPTS} \
|
||||
--buildid=debug \
|
||||
$(use python && echo --python-buildid=${PYTHON_ABI}) \
|
||||
|| die "Building of Boost debug libraries failed"
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
if [[ -z "${PYTHON_DIRS}" ]]; then
|
||||
PYTHON_DIRS="$(find bin.v2/libs -name python | sort)"
|
||||
else
|
||||
if [[ "${PYTHON_DIRS}" != "$(find bin.v2/libs -name python | sort)" ]]; then
|
||||
die "Inconsistent structure of build directories"
|
||||
fi
|
||||
fi
|
||||
|
||||
local dir
|
||||
for dir in ${PYTHON_DIRS}; do
|
||||
mv ${dir} ${dir}-${PYTHON_ABI} || die "Renaming of '${dir}' to '${dir}-${PYTHON_ABI}' failed"
|
||||
done
|
||||
|
||||
if use mpi; then
|
||||
if [[ -z "${MPI_PYTHON_MODULE}" ]]; then
|
||||
MPI_PYTHON_MODULE="$(find bin.v2/libs/mpi/build/*/gentoorelease -name mpi.so)"
|
||||
if [[ "$(echo "${MPI_PYTHON_MODULE}" | wc -l)" -ne 1 ]]; then
|
||||
die "Multiple mpi.so files found"
|
||||
fi
|
||||
else
|
||||
if [[ "${MPI_PYTHON_MODULE}" != "$(find bin.v2/libs/mpi/build/*/gentoorelease -name mpi.so)" ]]; then
|
||||
die "Inconsistent structure of build directories"
|
||||
fi
|
||||
fi
|
||||
|
||||
mv stage/lib/mpi.so stage/lib/mpi.so-${PYTHON_ABI} || die "Renaming of 'stage/lib/mpi.so' to 'stage/lib/mpi.so-${PYTHON_ABI}' failed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
if use python; then
|
||||
python_execute_function building
|
||||
else
|
||||
building
|
||||
fi
|
||||
|
||||
if use tools; then
|
||||
pushd tools > /dev/null || die
|
||||
einfo "Using the following command to build the tools:"
|
||||
einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoorelease --user-config=../user-config.jam ${OPTIONS}"
|
||||
|
||||
${BJAM} ${NUMJOBS} -q -d+2\
|
||||
gentoorelease \
|
||||
--user-config=../user-config.jam \
|
||||
${OPTIONS} \
|
||||
|| die "Building of Boost tools failed"
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install () {
|
||||
installation() {
|
||||
create_user-config.jam
|
||||
|
||||
if use python; then
|
||||
local dir
|
||||
for dir in ${PYTHON_DIRS}; do
|
||||
cp -pr ${dir}-${PYTHON_ABI} ${dir} || die "Copying of '${dir}-${PYTHON_ABI}' to '${dir}' failed"
|
||||
done
|
||||
|
||||
if use mpi; then
|
||||
cp -p stage/lib/mpi.so-${PYTHON_ABI} "${MPI_PYTHON_MODULE}" || die "Copying of 'stage/lib/mpi.so-${PYTHON_ABI}' to '${MPI_PYTHON_MODULE}' failed"
|
||||
cp -p stage/lib/mpi.so-${PYTHON_ABI} stage/lib/mpi.so || die "Copying of 'stage/lib/mpi.so-${PYTHON_ABI}' to 'stage/lib/mpi.so' failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
einfo "Using the following command to install:"
|
||||
einfo "${BJAM} -q -d+2 gentoorelease --user-config=user-config.jam ${OPTIONS} threading=single,multi ${LINK_OPTS} --includedir=\"${D}usr/include\" --libdir=\"${D}usr/$(get_libdir)\" $(use python && echo --python-buildid=${PYTHON_ABI}) install"
|
||||
|
||||
${BJAM} -q -d+2 \
|
||||
gentoorelease \
|
||||
--user-config=user-config.jam \
|
||||
${OPTIONS} threading=single,multi ${LINK_OPTS} \
|
||||
--includedir="${D}usr/include" \
|
||||
--libdir="${D}usr/$(get_libdir)" \
|
||||
$(use python && echo --python-buildid=${PYTHON_ABI}) \
|
||||
install || die "Installation of Boost libraries failed"
|
||||
|
||||
if use debug; then
|
||||
einfo "Using the following command to install:"
|
||||
einfo "${BJAM} -q -d+2 gentoodebug --user-config=user-config.jam ${OPTIONS} threading=single,multi ${LINK_OPTS} --includedir=\"${D}usr/include\" --libdir=\"${D}usr/$(get_libdir)\" --buildid=debug $(use python && echo --python-buildid=${PYTHON_ABI})"
|
||||
|
||||
${BJAM} -q -d+2 \
|
||||
gentoodebug \
|
||||
--user-config=user-config.jam \
|
||||
${OPTIONS} threading=single,multi ${LINK_OPTS} \
|
||||
--includedir="${D}usr/include" \
|
||||
--libdir="${D}usr/$(get_libdir)" \
|
||||
--buildid=debug \
|
||||
$(use python && echo --python-buildid=${PYTHON_ABI}) \
|
||||
install || die "Installation of Boost debug libraries failed"
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
rm -r ${PYTHON_DIRS} || die
|
||||
|
||||
# Move mpi.so Python module to Python site-packages directory and make sure it is slotted.
|
||||
if use mpi; then
|
||||
mkdir -p "${D}$(python_get_sitedir)/boost_${MAJOR_PV}" || die
|
||||
mv "${D}usr/$(get_libdir)/mpi.so" "${D}$(python_get_sitedir)/boost_${MAJOR_PV}" || die
|
||||
cat << EOF > "${D}$(python_get_sitedir)/boost_${MAJOR_PV}/__init__.py" || die
|
||||
import sys
|
||||
if sys.platform.startswith('linux'):
|
||||
import DLFCN
|
||||
flags = sys.getdlopenflags()
|
||||
sys.setdlopenflags(DLFCN.RTLD_NOW | DLFCN.RTLD_GLOBAL)
|
||||
from . import mpi
|
||||
sys.setdlopenflags(flags)
|
||||
del DLFCN, flags
|
||||
else:
|
||||
from . import mpi
|
||||
del sys
|
||||
EOF
|
||||
fi
|
||||
fi
|
||||
}
|
||||
if use python; then
|
||||
python_execute_function installation
|
||||
else
|
||||
installation
|
||||
fi
|
||||
|
||||
use python || rm -rf "${D}usr/include/boost-${MAJOR_PV}/boost"/python* || die
|
||||
|
||||
if use doc; then
|
||||
find libs/*/* -iname "test" -or -iname "src" | xargs rm -rf
|
||||
dohtml \
|
||||
-A pdf,txt,cpp,hpp \
|
||||
*.{htm,html,png,css} \
|
||||
-r doc
|
||||
dohtml \
|
||||
-A pdf,txt \
|
||||
-r tools
|
||||
insinto /usr/share/doc/${PF}/html
|
||||
doins -r libs
|
||||
doins -r more
|
||||
|
||||
# To avoid broken links
|
||||
insinto /usr/share/doc/${PF}/html
|
||||
doins LICENSE_1_0.txt
|
||||
|
||||
dosym /usr/include/boost-${MAJOR_PV}/boost /usr/share/doc/${PF}/html/boost
|
||||
fi
|
||||
|
||||
pushd "${D}usr/$(get_libdir)" > /dev/null || die
|
||||
|
||||
# Remove (unversioned) symlinks
|
||||
# And check for what we remove to catch bugs
|
||||
# got a better idea how to do it? tell me!
|
||||
local f
|
||||
for f in $(ls -1 ${LIBRARY_TARGETS} | grep -v "${MAJOR_PV}"); do
|
||||
if [[ ! -h "${f}" ]]; then
|
||||
eerror "Tried to remove '${f}' which is a regular file instead of a symlink"
|
||||
die "Slotting/naming of the libraries broken!"
|
||||
fi
|
||||
rm "${f}" || die
|
||||
done
|
||||
|
||||
# The threading libs obviously always gets the "-mt" (multithreading) tag
|
||||
# some packages seem to have a problem with it. Creating symlinks...
|
||||
|
||||
if use static-libs; then
|
||||
THREAD_LIBS="libboost_thread-mt-${MAJOR_PV}.a libboost_thread-mt-${MAJOR_PV}$(get_libname)"
|
||||
else
|
||||
THREAD_LIBS="libboost_thread-mt-${MAJOR_PV}$(get_libname)"
|
||||
fi
|
||||
local lib
|
||||
for lib in ${THREAD_LIBS}; do
|
||||
dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})"
|
||||
done
|
||||
|
||||
# The same goes for the mpi libs
|
||||
if use mpi; then
|
||||
if use static-libs; then
|
||||
MPI_LIBS="libboost_mpi-mt-${MAJOR_PV}.a libboost_mpi-mt-${MAJOR_PV}$(get_libname)"
|
||||
else
|
||||
MPI_LIBS="libboost_mpi-mt-${MAJOR_PV}$(get_libname)"
|
||||
fi
|
||||
local lib
|
||||
for lib in ${MPI_LIBS}; do
|
||||
dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})"
|
||||
done
|
||||
fi
|
||||
|
||||
if use debug; then
|
||||
if use static-libs; then
|
||||
THREAD_DEBUG_LIBS="libboost_thread-mt-${MAJOR_PV}-debug$(get_libname) libboost_thread-mt-${MAJOR_PV}-debug.a"
|
||||
else
|
||||
THREAD_DEBUG_LIBS="libboost_thread-mt-${MAJOR_PV}-debug$(get_libname)"
|
||||
fi
|
||||
|
||||
local lib
|
||||
for lib in ${THREAD_DEBUG_LIBS}; do
|
||||
dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})"
|
||||
done
|
||||
|
||||
if use mpi; then
|
||||
if use static-libs; then
|
||||
MPI_DEBUG_LIBS="libboost_mpi-mt-${MAJOR_PV}-debug.a libboost_mpi-mt-${MAJOR_PV}-debug$(get_libname)"
|
||||
else
|
||||
MPI_DEBUG_LIBS="libboost_mpi-mt-${MAJOR_PV}-debug$(get_libname)"
|
||||
fi
|
||||
|
||||
local lib
|
||||
for lib in ${MPI_DEBUG_LIBS}; do
|
||||
dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
# Create a subdirectory with completely unversioned symlinks
|
||||
dodir /usr/$(get_libdir)/boost-${MAJOR_PV}
|
||||
|
||||
local f
|
||||
for f in $(ls -1 ${LIBRARY_TARGETS} | grep -v debug); do
|
||||
dosym ../${f} /usr/$(get_libdir)/boost-${MAJOR_PV}/${f/-${MAJOR_PV}}
|
||||
done
|
||||
|
||||
if use debug; then
|
||||
dodir /usr/$(get_libdir)/boost-${MAJOR_PV}-debug
|
||||
local f
|
||||
for f in $(ls -1 ${LIBRARY_TARGETS} | grep debug); do
|
||||
dosym ../${f} /usr/$(get_libdir)/boost-${MAJOR_PV}-debug/${f/-${MAJOR_PV}-debug}
|
||||
done
|
||||
fi
|
||||
|
||||
popd > /dev/null || die
|
||||
|
||||
if use tools; then
|
||||
pushd dist/bin > /dev/null || die
|
||||
# Append version postfix to binaries for slotting
|
||||
local b
|
||||
for b in *; do
|
||||
newbin "${b}" "${b}-${MAJOR_PV}"
|
||||
done
|
||||
popd > /dev/null || die
|
||||
|
||||
pushd dist > /dev/null || die
|
||||
insinto /usr/share
|
||||
doins -r share/boostbook
|
||||
# Append version postfix for slotting
|
||||
mv "${D}usr/share/boostbook" "${D}usr/share/boostbook-${MAJOR_PV}" || die
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
|
||||
pushd status > /dev/null || die
|
||||
if [[ -f regress.log ]]; then
|
||||
docinto status
|
||||
dohtml *.html ../boost.png
|
||||
dodoc regress.log
|
||||
fi
|
||||
popd > /dev/null || die
|
||||
|
||||
# boost's build system truely sucks for not having a destdir. Because for
|
||||
# this reason we are forced to build with a prefix that includes the
|
||||
# DESTROOT, dynamic libraries on Darwin end messed up, referencing the
|
||||
# DESTROOT instread of the actual EPREFIX. There is no way out of here
|
||||
# but to do it the dirty way of manually setting the right install_names.
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
einfo "Working around completely broken build-system(tm)"
|
||||
local d
|
||||
for d in "${ED}"usr/lib/*.dylib; do
|
||||
if [[ -f ${d} ]]; then
|
||||
# fix the "soname"
|
||||
ebegin " correcting install_name of ${d#${ED}}"
|
||||
install_name_tool -id "/${d#${D}}" "${d}"
|
||||
eend $?
|
||||
# fix references to other libs
|
||||
refs=$(otool -XL "${d}" | \
|
||||
sed -e '1d' -e 's/^\t//' | \
|
||||
grep "^libboost_" | \
|
||||
cut -f1 -d' ')
|
||||
local r
|
||||
for r in ${refs}; do
|
||||
ebegin " correcting reference to ${r}"
|
||||
install_name_tool -change \
|
||||
"${r}" \
|
||||
"${EPREFIX}/usr/lib/${r}" \
|
||||
"${d}"
|
||||
eend $?
|
||||
done
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
if use python; then
|
||||
local dir
|
||||
for dir in ${PYTHON_DIRS}; do
|
||||
cp -pr ${dir}-${PYTHON_ABI} ${dir} || die "Copying of '${dir}-${PYTHON_ABI}' to '${dir}' failed"
|
||||
done
|
||||
|
||||
if use mpi; then
|
||||
cp -p stage/lib/mpi.so-${PYTHON_ABI} "${MPI_PYTHON_MODULE}" || die "Copying of 'stage/lib/mpi.so-${PYTHON_ABI}' to '${MPI_PYTHON_MODULE}' failed"
|
||||
cp -p stage/lib/mpi.so-${PYTHON_ABI} stage/lib/mpi.so || die "Copying of 'stage/lib/mpi.so-${PYTHON_ABI}' to 'stage/lib/mpi.so' failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
pushd tools/regression/build > /dev/null || die
|
||||
einfo "Using the following command to build test helpers:"
|
||||
einfo "${BJAM} -q -d+2 gentoorelease --user-config=../../../user-config.jam ${OPTIONS} process_jam_log compiler_status"
|
||||
|
||||
${BJAM} -q -d+2 \
|
||||
gentoorelease \
|
||||
--user-config=../../../user-config.jam \
|
||||
${OPTIONS} \
|
||||
process_jam_log compiler_status \
|
||||
|| die "Building of regression test helpers failed"
|
||||
|
||||
popd > /dev/null || die
|
||||
pushd status > /dev/null || die
|
||||
|
||||
# Some of the test-checks seem to rely on regexps
|
||||
export LC_ALL="C"
|
||||
|
||||
# The following is largely taken from tools/regression/run_tests.sh,
|
||||
# but adapted to our needs.
|
||||
|
||||
# Run the tests & write them into a file for postprocessing
|
||||
einfo "Using the following command to test:"
|
||||
einfo "${BJAM} --user-config=../user-config.jam ${OPTIONS} --dump-tests"
|
||||
|
||||
${BJAM} \
|
||||
--user-config=../user-config.jam \
|
||||
${OPTIONS} \
|
||||
--dump-tests 2>&1 | tee regress.log || die
|
||||
|
||||
# Postprocessing
|
||||
cat regress.log | "$(find ../tools/regression/build/bin/gcc-$(gcc-version)/gentoorelease -name process_jam_log)" --v2
|
||||
if test $? != 0; then
|
||||
die "Postprocessing the build log failed"
|
||||
fi
|
||||
|
||||
cat > comment.html <<- __EOF__
|
||||
<p>Tests are run on a <a href="http://www.gentoo.org">Gentoo</a> system.</p>
|
||||
__EOF__
|
||||
|
||||
# Generate the build log html summary page
|
||||
"$(find ../tools/regression/build/bin/gcc-$(gcc-version)/gentoorelease -name compiler_status)" --v2 \
|
||||
--comment comment.html "${S}" \
|
||||
cs-$(uname).html cs-$(uname)-links.html
|
||||
if test $? != 0; then
|
||||
die "Generating the build log html summary page failed"
|
||||
fi
|
||||
|
||||
# And do some cosmetic fixes :)
|
||||
sed -i -e 's|http://www.boost.org/boost.png|boost.png|' *.html || die
|
||||
|
||||
popd > /dev/null || die
|
||||
|
||||
if use python; then
|
||||
rm -r ${PYTHON_DIRS} || die
|
||||
fi
|
||||
}
|
||||
if use python; then
|
||||
python_execute_function -f -q testing
|
||||
else
|
||||
testing
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# mostly copy/paste from eselect-boost
|
||||
|
||||
_boost_tools="bcp bjam compiler_status inspect library_status process_jam_log quickbook wave"
|
||||
|
||||
# ... meaning: <none> and -debug:
|
||||
_suffices="|-debug"
|
||||
|
||||
einfo "Removing symlinks from old version"
|
||||
|
||||
local link
|
||||
for link in "${ROOT}/usr/include/boost" "${ROOT}/usr/share/boostbook" ; do
|
||||
if [[ -L "${link}" ]] ; then
|
||||
rm "${link}" || die -q "Couldn't remove \"${link}\" symlink"
|
||||
else
|
||||
[[ -e "${link}" ]] && die -q "\"${link}\" exists and isn't a symlink"
|
||||
fi
|
||||
done
|
||||
|
||||
pushd "${ROOT}/usr/$(get_libdir)" 1>/dev/null
|
||||
local lib
|
||||
for lib in libboost_*.{a,so} ; do
|
||||
[[ -L "${lib}" && "${lib}" != libboost_*[[:digit:]]_[[:digit:]][[:digit:]]@(${_suffices}).@(a|so) ]] || continue
|
||||
rm "${lib}" || die -q "Unable to remove \"/usr/$(get_libdir)/${lib}\" symlink"
|
||||
done
|
||||
popd 1>/dev/null
|
||||
|
||||
pushd "${ROOT}"/usr/bin 1>/dev/null
|
||||
local tool
|
||||
for tool in ${_boost_tools} ; do
|
||||
[[ -L "${tool}" ]] && ( rm "${tool}" || die -q "Unable to remove \"/usr/bin/${tool}\" symlink" )
|
||||
done
|
||||
popd 1>/dev/null
|
||||
|
||||
local python_module python_module_dir
|
||||
for python_module in mpi.py ; do
|
||||
for python_module_dir in "${ROOT}"usr/$(get_libdir)/python*/site-packages ; do
|
||||
if [[ -e "${python_module_dir}/${python_module}" ]] ; then
|
||||
rm "${python_module_dir}/${python_module}" || die -q "Unable to remove \"${python_module_dir}/${python_module}\""
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
# Deprecated code for Boost <1.48.
|
||||
local mod="mpi.so"
|
||||
for moddir in "${ROOT}"/usr/$(get_libdir)/python*/site-packages ; do
|
||||
if [ -L "${moddir}/${mod}" ] ; then
|
||||
rm "${moddir}/${mod}" || die -q "Unable to remove \"${moddir}/${mod}\" symlink"
|
||||
else
|
||||
[[ -e "${moddir}/${mod}" ]] && die -q "\"${moddir}/${mod}\" exists and isn't a symlink"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -L "${ROOT}/etc/eselect/boost/active" ] ; then
|
||||
rm "${ROOT}/etc/eselect/boost/active" || die -q "Unable to remove \"${ROOT}/etc/eselect/boost/active\" symlink"
|
||||
else
|
||||
[[ -e "${ROOT}/etc/eselect/boost/active" ]] && die -q "\"${ROOT}/etc/eselect/boost/active\" exists and isn't a symlink"
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
if use mpi; then
|
||||
create_mpi.py() {
|
||||
echo "from boost_${MAJOR_PV}.mpi import *" > "${EROOT}$(python_get_sitedir -b)/mpi.py"
|
||||
}
|
||||
python_execute_function -q create_mpi.py
|
||||
fi
|
||||
|
||||
python_mod_optimize boost_${MAJOR_PV} $(use mpi && echo mpi.py)
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use python; then
|
||||
if use mpi; then
|
||||
delete_mpi.py() {
|
||||
if [[ "$(<"${EROOT}$(python_get_sitedir -b)/mpi.py")" == "from boost_${MAJOR_PV}.mpi import *" ]]; then
|
||||
rm -f "${EROOT}$(python_get_sitedir -b)/mpi.py"
|
||||
fi
|
||||
}
|
||||
python_execute_function -q delete_mpi.py
|
||||
fi
|
||||
|
||||
python_mod_cleanup boost_${MAJOR_PV} $(use mpi && echo mpi.py)
|
||||
fi
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
https://svn.boost.org/trac/boost/ticket/6286
|
||||
|
||||
--- boostcpp.jam
|
||||
+++ boostcpp.jam
|
||||
@@ -99,13 +99,6 @@
|
||||
BUILD_ID = [ regex.replace $(build-id) "[*\\/:.\"\' ]" _ ] ;
|
||||
}
|
||||
|
||||
-# Python build id (for Python libraries only).
|
||||
-python-id = [ option.get "python-buildid" ] ;
|
||||
-if $(python-id)
|
||||
-{
|
||||
- PYTHON_ID = [ regex.replace $(python-id) [*\\/:.\"\'] _ ] ;
|
||||
-}
|
||||
-
|
||||
|
||||
################################################################################
|
||||
#
|
||||
--- libs/mpi/build/Jamfile.v2
|
||||
+++ libs/mpi/build/Jamfile.v2
|
||||
@@ -8,6 +8,8 @@
|
||||
# Authors: Douglas Gregor
|
||||
# Andrew Lumsdaine
|
||||
|
||||
+import option ;
|
||||
+import regex ;
|
||||
import mpi ;
|
||||
import indirect ;
|
||||
import python ;
|
||||
@@ -24,6 +26,13 @@
|
||||
<tag>@$(__name__).tag
|
||||
;
|
||||
|
||||
+# Python build id (for Python libraries only).
|
||||
+python-id = [ option.get "python-buildid" ] ;
|
||||
+if $(python-id)
|
||||
+{
|
||||
+ PYTHON_ID = [ regex.replace $(python-id) [*\\/:.\"\'] _ ] ;
|
||||
+}
|
||||
+
|
||||
rule tag ( name : type ? : property-set )
|
||||
{
|
||||
local result = $(name) ;
|
||||
--- libs/python/build/Jamfile.v2
|
||||
+++ libs/python/build/Jamfile.v2
|
||||
@@ -2,6 +2,8 @@
|
||||
# Software License, Version 1.0. (See accompanying
|
||||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
+import option ;
|
||||
+import regex ;
|
||||
import os ;
|
||||
import indirect ;
|
||||
import modules ;
|
||||
@@ -30,6 +32,14 @@
|
||||
;
|
||||
}
|
||||
|
||||
+# Python build id (for Python libraries only).
|
||||
+python-id = [ option.get "python-buildid" ] ;
|
||||
+if $(python-id)
|
||||
+{
|
||||
+ PYTHON_ID = [ regex.replace $(python-id) [*\\/:.\"\'] _ ] ;
|
||||
+}
|
||||
+
|
||||
+
|
||||
rule find-py3-version
|
||||
{
|
||||
local versions = [ feature.values python ] ;
|
@ -0,0 +1,22 @@
|
||||
--- libs/mpi/build/Jamfile.v2
|
||||
+++ libs/mpi/build/Jamfile.v2
|
||||
@@ -30,7 +30,7 @@
|
||||
python-id = [ option.get "python-buildid" ] ;
|
||||
if $(python-id)
|
||||
{
|
||||
- PYTHON_ID = [ regex.replace $(python-id) [*\\/:.\"\'] _ ] ;
|
||||
+ PYTHON_ID = [ regex.replace $(python-id) [*\\/:\"\'] _ ] ;
|
||||
}
|
||||
|
||||
rule tag ( name : type ? : property-set )
|
||||
--- libs/python/build/Jamfile.v2
|
||||
+++ libs/python/build/Jamfile.v2
|
||||
@@ -36,7 +36,7 @@
|
||||
python-id = [ option.get "python-buildid" ] ;
|
||||
if $(python-id)
|
||||
{
|
||||
- PYTHON_ID = [ regex.replace $(python-id) [*\\/:.\"\'] _ ] ;
|
||||
+ PYTHON_ID = [ regex.replace $(python-id) [*\\/:\"\'] _ ] ;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,98 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/icu-50_rc.ebuild,v 1.1 2012/10/25 18:53:59 floppym Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils versionator
|
||||
|
||||
MAJOR_VERSION="$(get_version_component_range 1)"
|
||||
if [[ "${PV}" =~ ^[[:digit:]]+_rc[[:digit:]]*$ ]]; then
|
||||
MINOR_VERSION="1"
|
||||
else
|
||||
MINOR_VERSION="$(get_version_component_range 2)"
|
||||
fi
|
||||
|
||||
DESCRIPTION="International Components for Unicode"
|
||||
HOMEPAGE="http://www.icu-project.org/"
|
||||
|
||||
BASE_URI="http://download.icu-project.org/files/icu4c/${PV/_/}"
|
||||
SRC_ARCHIVE="icu4c-${PV//./_}-src.tgz"
|
||||
DOCS_ARCHIVE="icu4c-${PV//./_}-docs.zip"
|
||||
|
||||
SRC_URI="${BASE_URI}/${SRC_ARCHIVE}
|
||||
doc? ( ${BASE_URI}/${DOCS_ARCHIVE} )"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/50"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="debug doc examples static-libs"
|
||||
|
||||
DEPEND="doc? ( app-arch/unzip )"
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/${PN}/source"
|
||||
|
||||
QA_DT_NEEDED="/usr/lib.*/libicudata\.so\.${MAJOR_VERSION}\.${MINOR_VERSION}.*"
|
||||
QA_FLAGS_IGNORED="/usr/lib.*/libicudata\.so\.${MAJOR_VERSION}\.${MINOR_VERSION}.*"
|
||||
|
||||
src_unpack() {
|
||||
unpack "${SRC_ARCHIVE}"
|
||||
if use doc; then
|
||||
mkdir docs
|
||||
pushd docs > /dev/null
|
||||
unpack "${DOCS_ARCHIVE}"
|
||||
popd > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Do not hardcode flags into icu-config.
|
||||
# https://ssl.icu-project.org/trac/ticket/6102
|
||||
local variable
|
||||
for variable in CFLAGS CPPFLAGS CXXFLAGS FFLAGS LDFLAGS; do
|
||||
sed -i -e "/^${variable} =.*/s:@${variable}@::" config/Makefile.inc.in || die "sed failed"
|
||||
done
|
||||
|
||||
sed -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" -i common/unicode/uconfig.h
|
||||
|
||||
epatch "${FILESDIR}/${PN}-4.8.1-fix_binformat_fonts.patch"
|
||||
epatch "${FILESDIR}/${PN}-4.8.1.1-fix_ltr.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-renaming \
|
||||
$(use_enable debug) \
|
||||
$(use_enable examples samples) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake VERBOSE="1"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# INTLTEST_OPTS: intltest options
|
||||
# -e: Exhaustive testing
|
||||
# -l: Reporting of memory leaks
|
||||
# -v: Increased verbosity
|
||||
# IOTEST_OPTS: iotest options
|
||||
# -e: Exhaustive testing
|
||||
# -v: Increased verbosity
|
||||
# CINTLTST_OPTS: cintltst options
|
||||
# -e: Exhaustive testing
|
||||
# -v: Increased verbosity
|
||||
emake -j1 VERBOSE="1" check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" VERBOSE="1" install
|
||||
|
||||
dohtml ../readme.html
|
||||
dodoc ../unicode-license.txt
|
||||
if use doc; then
|
||||
insinto /usr/share/doc/${PF}/html/api
|
||||
doins -r "${WORKDIR}/docs/"*
|
||||
fi
|
||||
}
|
@ -1,5 +1,15 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX gst-python-0.10.9-lazy.patch 534 SHA256 5a973c247741dcf2418c3f15427e9408295606ff3b2bf559ae7d82e060b18fee SHA512 b00cb635ae44f4dc42f0d72f5fb49e6540eee6c8b989715df4554dc09e9980ce0d5c91ea7ebd853d552061d1aad1a28b645c831198b9799587debce654f508c1 WHIRLPOOL 309008562b2870a8b2519f484100750027519e6ddc31c7462c0fc4420fdc5950be0943f74c1e623d17c080271bf58564a49f286330eaf9c0b41582640edada9a
|
||||
DIST gst-python-0.10.22.tar.bz2 632651 RMD160 6c4e43c5464297e0d45aa89f3cb82ed424caa283 SHA1 7012445d921ae1b325c162500750c9b0e777201f SHA256 8f26f519a5bccd770864317e098e5e307fc5ad1201eb96329634b6508b253178
|
||||
EBUILD gst-python-0.10.22.ebuild 1539 SHA256 a7905fe977eef33e99d508712312ae10e3e1324c4199dfeb06cf6aac7b74f3d0 SHA512 cefe02d1e207fbe4e866d4f75dfe1dcb098b92487fe870603d3df36e6acec445bc7c257ec38e74eb9360c0d33039a1d903c8afe186d54088956749d717619404 WHIRLPOOL 902f99d6ca28dfbd168d0dc42e369071c3bc5efd487baad0c8218ac2515d838589ba35ba7fb64dd0ada5a93d5be58c96e31fabf1075079ed94d60ad5f8635034
|
||||
MISC ChangeLog 15924 SHA256 8ab5190aa96b8b94546fbec7090d25594ea2a60f6c3302eaf1ceb3a62b625e52 SHA512 d52c112b31e35d37c99bd7d4e335fb57ac4462bb708a83ce8727cb90f116a5fa0454341bc72fbffc25056f31ce965b7cb702a7853860569fc68dca8eaa9db522 WHIRLPOOL 1d513b9291c39f755b7c30d58f285aacd14b0639dd8403c97a50603dc51df5860f45203b6068dd6e247e3743164f558c8e90b34a9a8ef9c813fd4e2d6c9401f7
|
||||
DIST gst-python-0.10.22.tar.bz2 632651 SHA256 8f26f519a5bccd770864317e098e5e307fc5ad1201eb96329634b6508b253178
|
||||
EBUILD gst-python-0.10.22.ebuild 1544 SHA256 1c5be3700d9cee43ff5aea2c4e0f8acba82f74390d12b65a9608b53b38be955a SHA512 01596679cd30ce5e4cfa5fd3b200045e4e5c6420355229c6c6440359bbfdb7c941b09e016a2ef7414d9d3c3ee4de5a459c2b3a9fb4cbef844bc355123e48c5c4 WHIRLPOOL e6a41e89284c0d67e8a68752126b71ecec2d25301d55b82a91d5e99cfadc5eeba36d75b4d27db28b8e0f77d46329b44b78133bdd95cf6e21334d0284bed44e10
|
||||
MISC ChangeLog 16161 SHA256 56c5889e007dd80107c5832086f3d846d71c4cc31a2b0b772a78b7cf9b961fcf SHA512 907dd0a53a98856dadaedc7a3d51e6c085072ef47958fd46544692de1f124d4d79c45ee72b8ac2124caa1208c65130a64b5d4421d2b269b369a49bfb93f8bb42 WHIRLPOOL 42214dfbdbcd0e385ed0c2342ee56ef776228b24a32bedeca2146a40ac333fa8a6a150513a195d3b7a0a021c9e010e550c9aeb903c3f28da42fbb302cebbf7a5
|
||||
MISC metadata.xml 162 SHA256 3ac891ee23de8c6e2bef32e0c7aa3e6607e808de76ed723fbe7a1fb92f6093f1 SHA512 8b02f1dfc23c5609db66995b8b5f3b371d7c9ec232bd8117177af0522cd521f0217f5b49fb512213cb3db606c00df2511e0874ca0cac490ded306a8ddcfb5185 WHIRLPOOL b6621e0156545e7b124a3f55c2fe03a8878eb44d1b54fc3373adf9915dfe9c57a411741daf8863af74fdec93bacf929e905aa50954f906cec098bf0c4ddf2652
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlCJiP8ACgkQ1fmVwcYIWAYSCQCdHpglE7xzMRhn4Ijifuhsyg/I
|
||||
Xu8AnRjh9eOsJaAWhoHJ6u238hmGTFnT
|
||||
=vOm9
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,139 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/boost-build/boost-build-1.51.0.ebuild,v 1.1 2012/10/25 21:55:36 floppym Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_DEPEND="python? 2"
|
||||
|
||||
inherit eutils flag-o-matic python toolchain-funcs versionator
|
||||
|
||||
MY_PV=$(replace_all_version_separators _)
|
||||
MAJOR_PV="$(replace_all_version_separators _ $(get_version_component_range 1-2))"
|
||||
|
||||
DESCRIPTION="A system for large project software construction, which is simple to use and powerful."
|
||||
HOMEPAGE="http://www.boost.org/doc/tools/build/index.html"
|
||||
SRC_URI="mirror://sourceforge/boost/boost_${MY_PV}.tar.bz2"
|
||||
|
||||
LICENSE="Boost-1.0"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="examples python test"
|
||||
|
||||
RDEPEND="!<dev-libs/boost-1.34.0
|
||||
!<=dev-util/boost-build-1.35.0-r1"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( =dev-lang/python-2*
|
||||
sys-apps/diffutils )"
|
||||
|
||||
S="${WORKDIR}/boost_${MY_PV}/tools/build/v2"
|
||||
|
||||
pkg_setup() {
|
||||
if use python; then
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
tar xjpf "${DISTDIR}/${A}" ./boost_${MY_PV}/tools/build/v2 || die "unpacking tar failed"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-1.48.0-support_dots_in_python-buildid.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-disable_python_rpath.patch" \
|
||||
"${FILESDIR}/${PN}-1.50.0-respect-c_ld-flags.patch" \
|
||||
"${FILESDIR}/${PN}-1.50.0-fix-test.patch"
|
||||
|
||||
# Remove stripping option
|
||||
cd "${S}/engine"
|
||||
sed -i -e 's|-s\b||' \
|
||||
build.jam || die "sed failed"
|
||||
|
||||
# Force regeneration
|
||||
rm jambase.c || die
|
||||
|
||||
# This patch allows us to fully control optimization
|
||||
# and stripping flags when bjam is used as build-system
|
||||
# We simply extend the optimization and debug-symbols feature
|
||||
# with empty dummies called 'none'
|
||||
cd "${S}"
|
||||
sed -i \
|
||||
-e 's/\(off speed space\)/\1 none/' \
|
||||
-e 's/\(debug-symbols : on off\)/\1 none/' \
|
||||
tools/builtin.jam || die "sed failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# For slotting
|
||||
sed -i \
|
||||
-e "s|/usr/share/boost-build|/usr/share/boost-build-${MAJOR_PV}|" \
|
||||
engine/Jambase || die "sed failed"
|
||||
|
||||
if use python; then
|
||||
# replace versions by user-selected one (TODO: fix this when slot-op
|
||||
# deps are available to always match the best version available)
|
||||
sed -i \
|
||||
-e "s|2.7 2.6 2.5 2.4 2.3 2.2|${PYTHON_ABI}|" \
|
||||
engine/build.jam || die "sed failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd engine
|
||||
|
||||
local toolset
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
toolset=darwin
|
||||
else
|
||||
# Using boost's generic toolset here, which respects CC and CFLAGS
|
||||
toolset=cc
|
||||
fi
|
||||
|
||||
CC=$(tc-getCC) ./build.sh ${toolset} -d+2 $(use_with python python /usr) || die "building bjam failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin engine/bin.*/bjam bjam-${MAJOR_PV}
|
||||
newbin engine/bin.*/b2 b2-${MAJOR_PV}
|
||||
|
||||
insinto /usr/share/boost-build-${MAJOR_PV}
|
||||
doins -r "${FILESDIR}/site-config.jam" \
|
||||
boost-build.jam bootstrap.jam build-system.jam user-config.jam *.py \
|
||||
build kernel options tools util
|
||||
|
||||
rm "${D}/usr/share/boost-build-${MAJOR_PV}/build/project.ann.py" || die "removing faulty python file failed"
|
||||
if ! use python; then
|
||||
find "${D}/usr/share/boost-build-${MAJOR_PV}" -iname "*.py" -delete || die "removing experimental python files failed"
|
||||
fi
|
||||
|
||||
dodoc changes.txt hacking.txt release_procedure.txt \
|
||||
notes/build_dir_option.txt notes/relative_source_paths.txt
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r example
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd test
|
||||
|
||||
export TMP="${T}"
|
||||
|
||||
DO_DIFF="${PREFIX}/usr/bin/diff" $(PYTHON -2) test_all.py
|
||||
|
||||
if [[ -s test_results.txt ]]; then
|
||||
eerror "At least one test failed: $(<test_results.txt)"
|
||||
die "tests failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use python && python_mod_optimize /usr/share/boost-build-${MAJOR_PV}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use python && python_mod_cleanup /usr/share/boost-build-${MAJOR_PV}
|
||||
}
|
@ -1,437 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/subversion-1.7.0.ebuild,v 1.5 2012/07/20 16:19:07 kensington Exp $
|
||||
|
||||
EAPI="3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
|
||||
WANT_AUTOMAKE="none"
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
inherit autotools base bash-completion db-use depend.apache elisp-common flag-o-matic java-pkg-opt-2 libtool multilib perl-module python user
|
||||
|
||||
DESCRIPTION="Advanced version control system"
|
||||
HOMEPAGE="http://subversion.apache.org/"
|
||||
SRC_URI="http://www.apache.org/dist/${PN}/${MY_P}.tar.bz2"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="Subversion"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring java kde nls perl python ruby sasl vim-syntax +webdav-neon webdav-serf"
|
||||
|
||||
CDEPEND=">=dev-db/sqlite-3.4
|
||||
>=dev-libs/apr-1.3:1
|
||||
>=dev-libs/apr-util-1.3:1
|
||||
dev-libs/expat
|
||||
sys-libs/zlib
|
||||
berkdb? ( >=sys-libs/db-4.0.14 )
|
||||
ctypes-python? ( =dev-lang/python-2* )
|
||||
gnome-keyring? ( dev-libs/glib:2 sys-apps/dbus gnome-base/gnome-keyring )
|
||||
kde? ( sys-apps/dbus x11-libs/qt-core:4 x11-libs/qt-dbus:4 x11-libs/qt-gui:4 >=kde-base/kdelibs-4:4 )
|
||||
perl? ( dev-lang/perl )
|
||||
python? ( =dev-lang/python-2* )
|
||||
ruby? ( >=dev-lang/ruby-1.8.2 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
webdav-neon? ( >=net-libs/neon-0.28 )
|
||||
webdav-serf? ( >=net-libs/serf-0.3.0 )"
|
||||
RDEPEND="${CDEPEND}
|
||||
apache2? ( www-servers/apache[apache2_modules_dav] )
|
||||
java? ( >=virtual/jre-1.5 )
|
||||
kde? ( kde-base/kwalletd )
|
||||
nls? ( virtual/libintl )
|
||||
perl? ( dev-perl/URI )"
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-1.6
|
||||
ctypes-python? ( dev-python/ctypesgen )
|
||||
doc? ( app-doc/doxygen )
|
||||
gnome-keyring? ( virtual/pkgconfig )
|
||||
java? ( >=virtual/jdk-1.5 )
|
||||
kde? ( virtual/pkgconfig )
|
||||
nls? ( sys-devel/gettext )
|
||||
webdav-neon? ( virtual/pkgconfig )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.5.4-interix.patch"
|
||||
"${FILESDIR}/${PN}-1.5.6-aix-dso.patch"
|
||||
"${FILESDIR}/${PN}-1.6.3-hpux-dso.patch"
|
||||
)
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
if use berkdb; then
|
||||
local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
|
||||
| grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
|
||||
| sed 's:.*b::')"
|
||||
einfo
|
||||
if [[ -z "${SVN_BDB_VERSION}" ]]; then
|
||||
if [[ -n "${apu_bdb_version}" ]]; then
|
||||
SVN_BDB_VERSION="${apu_bdb_version}"
|
||||
einfo "Matching db version to apr-util"
|
||||
else
|
||||
SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
|
||||
einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
|
||||
fi
|
||||
fi
|
||||
einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
|
||||
einfo
|
||||
|
||||
if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
|
||||
eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
|
||||
eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
|
||||
eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
|
||||
eerror "Aborting to avoid possible run-time crashes."
|
||||
die "Berkeley DB version mismatch"
|
||||
fi
|
||||
fi
|
||||
|
||||
depend.apache_pkg_setup
|
||||
|
||||
java-pkg-opt-2_pkg_setup
|
||||
|
||||
if use ctypes-python || use python; then
|
||||
python_pkg_setup
|
||||
fi
|
||||
|
||||
if ! use webdav-neon && ! use webdav-serf; then
|
||||
ewarn "WebDAV support is disabled. You need WebDAV to"
|
||||
ewarn "access repositories through the HTTP protocol."
|
||||
ewarn "Consider enabling one of the following USE-flags:"
|
||||
ewarn " webdav-neon webdav-serf"
|
||||
echo -ne "\a"
|
||||
fi
|
||||
|
||||
if use debug; then
|
||||
append-cppflags -DSVN_DEBUG -DAP_DEBUG
|
||||
fi
|
||||
|
||||
# Allow for custom repository locations.
|
||||
SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
fperms +x build/transform_libtool_scripts.sh
|
||||
|
||||
sed -i \
|
||||
-e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
|
||||
-e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
|
||||
|
||||
sed -e "/SWIG_PY_INCLUDES=/s/\$ac_cv_python_includes/\\\\\$(PYTHON_INCLUDES)/" -i build/ac-macros/swig.m4 || die "sed failed"
|
||||
|
||||
# this bites us in particular on Solaris
|
||||
sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
|
||||
die "/bin/sh is not POSIX shell!"
|
||||
|
||||
eautoconf
|
||||
elibtoolize
|
||||
|
||||
sed -e "s/libsvn_swig_py-1\.la/libsvn_swig_py-\$(PYTHON_VERSION)-1.la/" -i build-outputs.mk || die "sed failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if use python || use perl || use ruby; then
|
||||
myconf+=" --with-swig"
|
||||
else
|
||||
myconf+=" --without-swig"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
myconf+=" --without-junit"
|
||||
fi
|
||||
|
||||
if use kde || use nls; then
|
||||
myconf+=" --enable-nls"
|
||||
else
|
||||
myconf+=" --disable-nls"
|
||||
fi
|
||||
|
||||
case ${CHOST} in
|
||||
*-solaris*)
|
||||
# -lintl isn't added for some reason (makes Neon check fail)
|
||||
use nls && append-libs -lintl
|
||||
;;
|
||||
*-aix*)
|
||||
# avoid recording immediate path to sharedlibs into executables
|
||||
append-ldflags -Wl,-bnoipath
|
||||
;;
|
||||
*-interix*)
|
||||
# loader crashes on the LD_PRELOADs...
|
||||
myconf="${myconf} --disable-local-library-preloading"
|
||||
;;
|
||||
esac
|
||||
|
||||
econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
$(use_with apache2 apxs "${APXS}") \
|
||||
$(use_with berkdb berkeley-db "db.h:${EPREFIX}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}") \
|
||||
$(use_with ctypes-python ctypesgen "${EPREFIX}/usr") \
|
||||
$(use_enable dso runtime-module-search) \
|
||||
$(use_with gnome-keyring) \
|
||||
$(use_enable java javahl) \
|
||||
$(use_with java jdk "${JAVA_HOME}") \
|
||||
$(use_with kde kwallet) \
|
||||
$(use_with sasl) \
|
||||
$(use_with webdav-neon neon) \
|
||||
$(use_with webdav-serf serf "${EPREFIX}/usr") \
|
||||
${myconf} \
|
||||
--with-apr="${EPREFIX}/usr/bin/apr-1-config" \
|
||||
--with-apr-util="${EPREFIX}/usr/bin/apu-1-config" \
|
||||
--disable-experimental-libtool \
|
||||
--without-jikes \
|
||||
--enable-local-library-preloading \
|
||||
--disable-mod-activation \
|
||||
--disable-neon-version-check \
|
||||
--disable-static \
|
||||
--with-sqlite="${EPREFIX}/usr"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake local-all || die "Building of core of Subversion failed"
|
||||
|
||||
if use ctypes-python; then
|
||||
python_copy_sources subversion/bindings/ctypes-python
|
||||
rm -fr subversion/bindings/ctypes-python
|
||||
ctypes_python_bindings_building() {
|
||||
rm -f subversion/bindings/ctypes-python
|
||||
ln -s ctypes-python-${PYTHON_ABI} subversion/bindings/ctypes-python
|
||||
emake ctypes-python
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Building of Subversion Ctypes Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Building of Subversion Ctypes Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
ctypes_python_bindings_building
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_copy_sources subversion/bindings/swig/python
|
||||
rm -fr subversion/bindings/swig/python
|
||||
swig_python_bindings_building() {
|
||||
rm -f subversion/bindings/swig/python
|
||||
ln -s python-${PYTHON_ABI} subversion/bindings/swig/python
|
||||
emake \
|
||||
PYTHON_INCLUDES="-I${EPREFIX}$(python_get_includedir)" \
|
||||
PYTHON_VERSION="$(python_get_version)" \
|
||||
swig_pydir="${EPREFIX}$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="${EPREFIX}$(python_get_sitedir)/svn" \
|
||||
swig-py
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Building of Subversion SWIG Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Building of Subversion SWIG Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
swig_python_bindings_building
|
||||
fi
|
||||
|
||||
if use perl; then
|
||||
emake swig-pl || die "Building of Subversion SWIG Perl bindings failed"
|
||||
fi
|
||||
|
||||
if use ruby; then
|
||||
emake swig-rb || die "Building of Subversion SWIG Ruby bindings failed"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl || die "Building of Subversion JavaHL library failed"
|
||||
fi
|
||||
|
||||
if use extras; then
|
||||
emake tools || die "Building of tools failed"
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
|
||||
|
||||
if use java; then
|
||||
emake doc-javahl || die "Building of Subversion JavaHL library HTML documentation failed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${D}" local-install || die "Installation of core of Subversion failed"
|
||||
|
||||
if use ctypes-python; then
|
||||
ctypes_python_bindings_installation() {
|
||||
rm -f subversion/bindings/ctypes-python
|
||||
ln -s ctypes-python-${PYTHON_ABI} subversion/bindings/ctypes-python
|
||||
emake DESTDIR="${D}" install-ctypes-python
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Installation of Subversion Ctypes Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Installation of Subversion Ctypes Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
ctypes_python_bindings_installation
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
swig_python_bindings_installation() {
|
||||
rm -f subversion/bindings/swig/python
|
||||
ln -s python-${PYTHON_ABI} subversion/bindings/swig/python
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
PYTHON_VERSION="$(python_get_version)" \
|
||||
swig_pydir="${EPREFIX}$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="${EPREFIX}$(python_get_sitedir)/svn" \
|
||||
install-swig-py
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Installation of Subversion SWIG Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Installation of Subversion SWIG Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
swig_python_bindings_installation
|
||||
fi
|
||||
|
||||
if use ctypes-python || use python; then
|
||||
python_clean_installation_image -q
|
||||
fi
|
||||
|
||||
if use perl; then
|
||||
emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl || die "Installation of Subversion SWIG Perl bindings failed"
|
||||
fixlocalpod
|
||||
find "${ED}" "(" -name .packlist -o -name "*.bs" ")" -print0 | xargs -0 rm -fr
|
||||
fi
|
||||
|
||||
if use ruby; then
|
||||
emake DESTDIR="${D}" install-swig-rb || die "Installation of Subversion SWIG Ruby bindings failed"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
emake DESTDIR="${D}" install-javahl || die "Installation of Subversion JavaHL library failed"
|
||||
java-pkg_regso "${ED}"usr/$(get_libdir)/libsvnjavahl*.so
|
||||
java-pkg_dojar "${ED}"usr/$(get_libdir)/svn-javahl/svn-javahl.jar
|
||||
rm -fr "${ED}"usr/$(get_libdir)/svn-javahl/*.jar
|
||||
fi
|
||||
|
||||
# Install Apache module configuration.
|
||||
if use apache2; then
|
||||
keepdir "${APACHE_MODULES_CONFDIR}"
|
||||
insinto "${APACHE_MODULES_CONFDIR}"
|
||||
doins "${FILESDIR}/47_mod_dav_svn.conf"
|
||||
fi
|
||||
|
||||
# Install Bash Completion, bug 43179.
|
||||
dobashcompletion tools/client-side/bash_completion subversion
|
||||
rm -f tools/client-side/bash_completion
|
||||
|
||||
# Install hot backup script, bug 54304.
|
||||
newbin tools/backup/hot-backup.py svn-hot-backup
|
||||
rm -fr tools/backup
|
||||
|
||||
# Install svnserve init-script and xinet.d snippet, bug 43245.
|
||||
newinitd "${FILESDIR}"/svnserve.initd2 svnserve
|
||||
newconfd "${FILESDIR}"/svnserve.confd svnserve
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}"/svnserve.xinetd svnserve
|
||||
|
||||
# Install documentation.
|
||||
dodoc CHANGES COMMITTERS README
|
||||
dodoc tools/xslt/svnindex.{css,xsl}
|
||||
rm -fr tools/xslt
|
||||
|
||||
# Install extra files.
|
||||
if use extras; then
|
||||
cat << EOF > 80subversion-extras
|
||||
PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
EOF
|
||||
doenvd 80subversion-extras
|
||||
|
||||
emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools || die "Installation of tools failed"
|
||||
|
||||
find tools "(" -name "*.bat" -o -name "*.in" -o -name ".libs" ")" -print0 | xargs -0 rm -fr
|
||||
rm -fr tools/client-side/svnmucc
|
||||
rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
|
||||
rm -fr tools/{buildbot,dev,diff,po}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r tools
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/doxygen/html/* || die "Installation of Subversion HTML documentation failed"
|
||||
|
||||
dodoc notes/*
|
||||
|
||||
if use java; then
|
||||
java-pkg_dojavadoc doc/javadoc
|
||||
fi
|
||||
fi
|
||||
|
||||
find "${D}" '(' -name '*.la' ')' -print0 | xargs -0 rm -f
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Compare versions of Berkeley DB, bug 122877.
|
||||
if use berkdb && [[ -f "${EROOT}usr/bin/svn" ]]; then
|
||||
OLD_BDB_VERSION="$(scanelf -nq "${EROOT}usr/$(get_libdir)/libsvn_subr-1.so.0" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
NEW_BDB_VERSION="$(scanelf -nq "${ED}usr/$(get_libdir)/libsvn_subr-1.so.0" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]]; then
|
||||
CHANGED_BDB_VERSION="1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use perl && perl-module_pkg_postinst
|
||||
|
||||
if use ctypes-python; then
|
||||
python_mod_optimize csvn
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_mod_optimize libsvn svn
|
||||
fi
|
||||
|
||||
if [[ -n "${CHANGED_BDB_VERSION}" ]]; then
|
||||
ewarn "You upgraded from an older version of Berkeley DB and may experience"
|
||||
ewarn "problems with your repository. Run the following commands as root to fix it:"
|
||||
ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
|
||||
ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
|
||||
fi
|
||||
|
||||
ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use perl && perl-module_pkg_postrm
|
||||
|
||||
if use ctypes-python; then
|
||||
python_mod_cleanup csvn
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_mod_cleanup libsvn svn
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
# Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
|
||||
# already has EPREFIX in it
|
||||
einfo "Initializing the database in ${ROOT}${SVN_REPOS_LOC}..."
|
||||
if [[ -e "${ROOT}${SVN_REPOS_LOC}/repos" ]]; then
|
||||
echo "A Subversion repository already exists and I will not overwrite it."
|
||||
echo "Delete \"${ROOT}${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
|
||||
else
|
||||
mkdir -p "${ROOT}${SVN_REPOS_LOC}/conf"
|
||||
|
||||
einfo "Populating repository directory..."
|
||||
# Create initial repository.
|
||||
"${EROOT}usr/bin/svnadmin" create "${ROOT}${SVN_REPOS_LOC}/repos"
|
||||
|
||||
einfo "Setting repository permissions..."
|
||||
SVNSERVE_USER="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
|
||||
SVNSERVE_GROUP="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
|
||||
if use apache2; then
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
|
||||
else
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
|
||||
enewgroup "${SVNSERVE_GROUP}"
|
||||
enewuser "${SVNSERVE_USER}" -1 -1 "${SVN_REPOS_LOC}" "${SVNSERVE_GROUP}"
|
||||
fi
|
||||
chown -Rf "${SVNSERVE_USER}:${SVNSERVE_GROUP}" "${ROOT}${SVN_REPOS_LOC}/repos"
|
||||
chmod -Rf go-rwx "${ROOT}${SVN_REPOS_LOC}/conf"
|
||||
chmod -Rf o-rwx "${ROOT}${SVN_REPOS_LOC}/repos"
|
||||
fi
|
||||
}
|
@ -1,437 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/subversion-1.7.1.ebuild,v 1.6 2012/07/20 16:19:07 kensington Exp $
|
||||
|
||||
EAPI="3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
|
||||
WANT_AUTOMAKE="none"
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
inherit autotools base bash-completion db-use depend.apache elisp-common flag-o-matic java-pkg-opt-2 libtool multilib perl-module python user
|
||||
|
||||
DESCRIPTION="Advanced version control system"
|
||||
HOMEPAGE="http://subversion.apache.org/"
|
||||
SRC_URI="http://www.apache.org/dist/${PN}/${MY_P}.tar.bz2"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="Subversion"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring java kde nls perl python ruby sasl vim-syntax +webdav-neon webdav-serf"
|
||||
|
||||
CDEPEND=">=dev-db/sqlite-3.4
|
||||
>=dev-libs/apr-1.3:1
|
||||
>=dev-libs/apr-util-1.3:1
|
||||
dev-libs/expat
|
||||
sys-libs/zlib
|
||||
berkdb? ( >=sys-libs/db-4.0.14 )
|
||||
ctypes-python? ( =dev-lang/python-2* )
|
||||
gnome-keyring? ( dev-libs/glib:2 sys-apps/dbus gnome-base/gnome-keyring )
|
||||
kde? ( sys-apps/dbus x11-libs/qt-core:4 x11-libs/qt-dbus:4 x11-libs/qt-gui:4 >=kde-base/kdelibs-4:4 )
|
||||
perl? ( dev-lang/perl )
|
||||
python? ( =dev-lang/python-2* )
|
||||
ruby? ( >=dev-lang/ruby-1.8.2 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
webdav-neon? ( >=net-libs/neon-0.28 )
|
||||
webdav-serf? ( >=net-libs/serf-0.3.0 )"
|
||||
RDEPEND="${CDEPEND}
|
||||
apache2? ( www-servers/apache[apache2_modules_dav] )
|
||||
java? ( >=virtual/jre-1.5 )
|
||||
kde? ( kde-base/kwalletd )
|
||||
nls? ( virtual/libintl )
|
||||
perl? ( dev-perl/URI )"
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-1.6
|
||||
ctypes-python? ( dev-python/ctypesgen )
|
||||
doc? ( app-doc/doxygen )
|
||||
gnome-keyring? ( virtual/pkgconfig )
|
||||
java? ( >=virtual/jdk-1.5 )
|
||||
kde? ( virtual/pkgconfig )
|
||||
nls? ( sys-devel/gettext )
|
||||
webdav-neon? ( virtual/pkgconfig )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.5.4-interix.patch"
|
||||
"${FILESDIR}/${PN}-1.5.6-aix-dso.patch"
|
||||
"${FILESDIR}/${PN}-1.6.3-hpux-dso.patch"
|
||||
)
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
if use berkdb; then
|
||||
local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
|
||||
| grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
|
||||
| sed 's:.*b::')"
|
||||
einfo
|
||||
if [[ -z "${SVN_BDB_VERSION}" ]]; then
|
||||
if [[ -n "${apu_bdb_version}" ]]; then
|
||||
SVN_BDB_VERSION="${apu_bdb_version}"
|
||||
einfo "Matching db version to apr-util"
|
||||
else
|
||||
SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
|
||||
einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
|
||||
fi
|
||||
fi
|
||||
einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
|
||||
einfo
|
||||
|
||||
if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
|
||||
eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
|
||||
eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
|
||||
eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
|
||||
eerror "Aborting to avoid possible run-time crashes."
|
||||
die "Berkeley DB version mismatch"
|
||||
fi
|
||||
fi
|
||||
|
||||
depend.apache_pkg_setup
|
||||
|
||||
java-pkg-opt-2_pkg_setup
|
||||
|
||||
if use ctypes-python || use python; then
|
||||
python_pkg_setup
|
||||
fi
|
||||
|
||||
if ! use webdav-neon && ! use webdav-serf; then
|
||||
ewarn "WebDAV support is disabled. You need WebDAV to"
|
||||
ewarn "access repositories through the HTTP protocol."
|
||||
ewarn "Consider enabling one of the following USE-flags:"
|
||||
ewarn " webdav-neon webdav-serf"
|
||||
echo -ne "\a"
|
||||
fi
|
||||
|
||||
if use debug; then
|
||||
append-cppflags -DSVN_DEBUG -DAP_DEBUG
|
||||
fi
|
||||
|
||||
# Allow for custom repository locations.
|
||||
SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
fperms +x build/transform_libtool_scripts.sh
|
||||
|
||||
sed -i \
|
||||
-e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
|
||||
-e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
|
||||
|
||||
sed -e "/SWIG_PY_INCLUDES=/s/\$ac_cv_python_includes/\\\\\$(PYTHON_INCLUDES)/" -i build/ac-macros/swig.m4 || die "sed failed"
|
||||
|
||||
# this bites us in particular on Solaris
|
||||
sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
|
||||
die "/bin/sh is not POSIX shell!"
|
||||
|
||||
eautoconf
|
||||
elibtoolize
|
||||
|
||||
sed -e "s/libsvn_swig_py-1\.la/libsvn_swig_py-\$(PYTHON_VERSION)-1.la/" -i build-outputs.mk || die "sed failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if use python || use perl || use ruby; then
|
||||
myconf+=" --with-swig"
|
||||
else
|
||||
myconf+=" --without-swig"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
myconf+=" --without-junit"
|
||||
fi
|
||||
|
||||
if use kde || use nls; then
|
||||
myconf+=" --enable-nls"
|
||||
else
|
||||
myconf+=" --disable-nls"
|
||||
fi
|
||||
|
||||
case ${CHOST} in
|
||||
*-solaris*)
|
||||
# -lintl isn't added for some reason (makes Neon check fail)
|
||||
use nls && append-libs -lintl
|
||||
;;
|
||||
*-aix*)
|
||||
# avoid recording immediate path to sharedlibs into executables
|
||||
append-ldflags -Wl,-bnoipath
|
||||
;;
|
||||
*-interix*)
|
||||
# loader crashes on the LD_PRELOADs...
|
||||
myconf="${myconf} --disable-local-library-preloading"
|
||||
;;
|
||||
esac
|
||||
|
||||
econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
$(use_with apache2 apxs "${APXS}") \
|
||||
$(use_with berkdb berkeley-db "db.h:${EPREFIX}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}") \
|
||||
$(use_with ctypes-python ctypesgen "${EPREFIX}/usr") \
|
||||
$(use_enable dso runtime-module-search) \
|
||||
$(use_with gnome-keyring) \
|
||||
$(use_enable java javahl) \
|
||||
$(use_with java jdk "${JAVA_HOME}") \
|
||||
$(use_with kde kwallet) \
|
||||
$(use_with sasl) \
|
||||
$(use_with webdav-neon neon) \
|
||||
$(use_with webdav-serf serf "${EPREFIX}/usr") \
|
||||
${myconf} \
|
||||
--with-apr="${EPREFIX}/usr/bin/apr-1-config" \
|
||||
--with-apr-util="${EPREFIX}/usr/bin/apu-1-config" \
|
||||
--disable-experimental-libtool \
|
||||
--without-jikes \
|
||||
--enable-local-library-preloading \
|
||||
--disable-mod-activation \
|
||||
--disable-neon-version-check \
|
||||
--disable-static \
|
||||
--with-sqlite="${EPREFIX}/usr"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake local-all || die "Building of core of Subversion failed"
|
||||
|
||||
if use ctypes-python; then
|
||||
python_copy_sources subversion/bindings/ctypes-python
|
||||
rm -fr subversion/bindings/ctypes-python
|
||||
ctypes_python_bindings_building() {
|
||||
rm -f subversion/bindings/ctypes-python
|
||||
ln -s ctypes-python-${PYTHON_ABI} subversion/bindings/ctypes-python
|
||||
emake ctypes-python
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Building of Subversion Ctypes Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Building of Subversion Ctypes Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
ctypes_python_bindings_building
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_copy_sources subversion/bindings/swig/python
|
||||
rm -fr subversion/bindings/swig/python
|
||||
swig_python_bindings_building() {
|
||||
rm -f subversion/bindings/swig/python
|
||||
ln -s python-${PYTHON_ABI} subversion/bindings/swig/python
|
||||
emake \
|
||||
PYTHON_INCLUDES="-I${EPREFIX}$(python_get_includedir)" \
|
||||
PYTHON_VERSION="$(python_get_version)" \
|
||||
swig_pydir="${EPREFIX}$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="${EPREFIX}$(python_get_sitedir)/svn" \
|
||||
swig-py
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Building of Subversion SWIG Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Building of Subversion SWIG Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
swig_python_bindings_building
|
||||
fi
|
||||
|
||||
if use perl; then
|
||||
emake swig-pl || die "Building of Subversion SWIG Perl bindings failed"
|
||||
fi
|
||||
|
||||
if use ruby; then
|
||||
emake swig-rb || die "Building of Subversion SWIG Ruby bindings failed"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl || die "Building of Subversion JavaHL library failed"
|
||||
fi
|
||||
|
||||
if use extras; then
|
||||
emake tools || die "Building of tools failed"
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
|
||||
|
||||
if use java; then
|
||||
emake doc-javahl || die "Building of Subversion JavaHL library HTML documentation failed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${D}" local-install || die "Installation of core of Subversion failed"
|
||||
|
||||
if use ctypes-python; then
|
||||
ctypes_python_bindings_installation() {
|
||||
rm -f subversion/bindings/ctypes-python
|
||||
ln -s ctypes-python-${PYTHON_ABI} subversion/bindings/ctypes-python
|
||||
emake DESTDIR="${D}" install-ctypes-python
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Installation of Subversion Ctypes Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Installation of Subversion Ctypes Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
ctypes_python_bindings_installation
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
swig_python_bindings_installation() {
|
||||
rm -f subversion/bindings/swig/python
|
||||
ln -s python-${PYTHON_ABI} subversion/bindings/swig/python
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
PYTHON_VERSION="$(python_get_version)" \
|
||||
swig_pydir="${EPREFIX}$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="${EPREFIX}$(python_get_sitedir)/svn" \
|
||||
install-swig-py
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Installation of Subversion SWIG Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Installation of Subversion SWIG Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
swig_python_bindings_installation
|
||||
fi
|
||||
|
||||
if use ctypes-python || use python; then
|
||||
python_clean_installation_image -q
|
||||
fi
|
||||
|
||||
if use perl; then
|
||||
emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl || die "Installation of Subversion SWIG Perl bindings failed"
|
||||
fixlocalpod
|
||||
find "${ED}" "(" -name .packlist -o -name "*.bs" ")" -print0 | xargs -0 rm -fr
|
||||
fi
|
||||
|
||||
if use ruby; then
|
||||
emake DESTDIR="${D}" install-swig-rb || die "Installation of Subversion SWIG Ruby bindings failed"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
emake DESTDIR="${D}" install-javahl || die "Installation of Subversion JavaHL library failed"
|
||||
java-pkg_regso "${ED}"usr/$(get_libdir)/libsvnjavahl*$(get_libname)
|
||||
java-pkg_dojar "${ED}"usr/$(get_libdir)/svn-javahl/svn-javahl.jar
|
||||
rm -fr "${ED}"usr/$(get_libdir)/svn-javahl/*.jar
|
||||
fi
|
||||
|
||||
# Install Apache module configuration.
|
||||
if use apache2; then
|
||||
keepdir "${APACHE_MODULES_CONFDIR}"
|
||||
insinto "${APACHE_MODULES_CONFDIR}"
|
||||
doins "${FILESDIR}/47_mod_dav_svn.conf"
|
||||
fi
|
||||
|
||||
# Install Bash Completion, bug 43179.
|
||||
dobashcompletion tools/client-side/bash_completion subversion
|
||||
rm -f tools/client-side/bash_completion
|
||||
|
||||
# Install hot backup script, bug 54304.
|
||||
newbin tools/backup/hot-backup.py svn-hot-backup
|
||||
rm -fr tools/backup
|
||||
|
||||
# Install svnserve init-script and xinet.d snippet, bug 43245.
|
||||
newinitd "${FILESDIR}"/svnserve.initd2 svnserve
|
||||
newconfd "${FILESDIR}"/svnserve.confd svnserve
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}"/svnserve.xinetd svnserve
|
||||
|
||||
# Install documentation.
|
||||
dodoc CHANGES COMMITTERS README
|
||||
dodoc tools/xslt/svnindex.{css,xsl}
|
||||
rm -fr tools/xslt
|
||||
|
||||
# Install extra files.
|
||||
if use extras; then
|
||||
cat << EOF > 80subversion-extras
|
||||
PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
EOF
|
||||
doenvd 80subversion-extras
|
||||
|
||||
emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools || die "Installation of tools failed"
|
||||
|
||||
find tools "(" -name "*.bat" -o -name "*.in" -o -name ".libs" ")" -print0 | xargs -0 rm -fr
|
||||
rm -fr tools/client-side/svnmucc
|
||||
rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
|
||||
rm -fr tools/{buildbot,dev,diff,po}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r tools
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/doxygen/html/* || die "Installation of Subversion HTML documentation failed"
|
||||
|
||||
dodoc notes/*
|
||||
|
||||
if use java; then
|
||||
java-pkg_dojavadoc doc/javadoc
|
||||
fi
|
||||
fi
|
||||
|
||||
find "${D}" '(' -name '*.la' ')' -print0 | xargs -0 rm -f
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Compare versions of Berkeley DB, bug 122877.
|
||||
if use berkdb && [[ -f "${EROOT}usr/bin/svn" ]]; then
|
||||
OLD_BDB_VERSION="$(scanelf -nq "${EROOT}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
NEW_BDB_VERSION="$(scanelf -nq "${ED}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]]; then
|
||||
CHANGED_BDB_VERSION="1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use perl && perl-module_pkg_postinst
|
||||
|
||||
if use ctypes-python; then
|
||||
python_mod_optimize csvn
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_mod_optimize libsvn svn
|
||||
fi
|
||||
|
||||
if [[ -n "${CHANGED_BDB_VERSION}" ]]; then
|
||||
ewarn "You upgraded from an older version of Berkeley DB and may experience"
|
||||
ewarn "problems with your repository. Run the following commands as root to fix it:"
|
||||
ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
|
||||
ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
|
||||
fi
|
||||
|
||||
ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use perl && perl-module_pkg_postrm
|
||||
|
||||
if use ctypes-python; then
|
||||
python_mod_cleanup csvn
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_mod_cleanup libsvn svn
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
# Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
|
||||
# already has EPREFIX in it
|
||||
einfo "Initializing the database in ${ROOT}${SVN_REPOS_LOC}..."
|
||||
if [[ -e "${ROOT}${SVN_REPOS_LOC}/repos" ]]; then
|
||||
echo "A Subversion repository already exists and I will not overwrite it."
|
||||
echo "Delete \"${ROOT}${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
|
||||
else
|
||||
mkdir -p "${ROOT}${SVN_REPOS_LOC}/conf"
|
||||
|
||||
einfo "Populating repository directory..."
|
||||
# Create initial repository.
|
||||
"${EROOT}usr/bin/svnadmin" create "${ROOT}${SVN_REPOS_LOC}/repos"
|
||||
|
||||
einfo "Setting repository permissions..."
|
||||
SVNSERVE_USER="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
|
||||
SVNSERVE_GROUP="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
|
||||
if use apache2; then
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
|
||||
else
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
|
||||
enewgroup "${SVNSERVE_GROUP}"
|
||||
enewuser "${SVNSERVE_USER}" -1 -1 "${SVN_REPOS_LOC}" "${SVNSERVE_GROUP}"
|
||||
fi
|
||||
chown -Rf "${SVNSERVE_USER}:${SVNSERVE_GROUP}" "${ROOT}${SVN_REPOS_LOC}/repos"
|
||||
chmod -Rf go-rwx "${ROOT}${SVN_REPOS_LOC}/conf"
|
||||
chmod -Rf o-rwx "${ROOT}${SVN_REPOS_LOC}/repos"
|
||||
fi
|
||||
}
|
@ -1,438 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/subversion-1.7.2.ebuild,v 1.6 2012/07/20 16:19:07 kensington Exp $
|
||||
|
||||
EAPI="3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
|
||||
WANT_AUTOMAKE="none"
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
inherit autotools base bash-completion-r1 db-use depend.apache elisp-common flag-o-matic java-pkg-opt-2 libtool multilib perl-module python user
|
||||
|
||||
DESCRIPTION="Advanced version control system"
|
||||
HOMEPAGE="http://subversion.apache.org/"
|
||||
SRC_URI="http://www.apache.org/dist/${PN}/${MY_P}.tar.bz2"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="Subversion"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring java kde nls perl python ruby sasl vim-syntax +webdav-neon webdav-serf"
|
||||
|
||||
CDEPEND=">=dev-db/sqlite-3.4
|
||||
>=dev-libs/apr-1.3:1
|
||||
>=dev-libs/apr-util-1.3:1
|
||||
dev-libs/expat
|
||||
sys-libs/zlib
|
||||
berkdb? ( >=sys-libs/db-4.0.14 )
|
||||
ctypes-python? ( =dev-lang/python-2* )
|
||||
gnome-keyring? ( dev-libs/glib:2 sys-apps/dbus gnome-base/gnome-keyring )
|
||||
kde? ( sys-apps/dbus x11-libs/qt-core:4 x11-libs/qt-dbus:4 x11-libs/qt-gui:4 >=kde-base/kdelibs-4:4 )
|
||||
perl? ( dev-lang/perl )
|
||||
python? ( =dev-lang/python-2* )
|
||||
ruby? ( >=dev-lang/ruby-1.8.2 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
webdav-neon? ( >=net-libs/neon-0.28 )
|
||||
webdav-serf? ( >=net-libs/serf-0.3.0 )"
|
||||
RDEPEND="${CDEPEND}
|
||||
apache2? ( www-servers/apache[apache2_modules_dav] )
|
||||
java? ( >=virtual/jre-1.5 )
|
||||
kde? ( kde-base/kwalletd )
|
||||
nls? ( virtual/libintl )
|
||||
perl? ( dev-perl/URI )"
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-1.6
|
||||
ctypes-python? ( dev-python/ctypesgen )
|
||||
doc? ( app-doc/doxygen )
|
||||
gnome-keyring? ( virtual/pkgconfig )
|
||||
java? ( >=virtual/jdk-1.5 )
|
||||
kde? ( virtual/pkgconfig )
|
||||
nls? ( sys-devel/gettext )
|
||||
webdav-neon? ( virtual/pkgconfig )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.5.4-interix.patch"
|
||||
"${FILESDIR}/${PN}-1.5.6-aix-dso.patch"
|
||||
"${FILESDIR}/${PN}-1.6.3-hpux-dso.patch"
|
||||
)
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
if use berkdb; then
|
||||
local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
|
||||
| grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
|
||||
| sed 's:.*b::')"
|
||||
einfo
|
||||
if [[ -z "${SVN_BDB_VERSION}" ]]; then
|
||||
if [[ -n "${apu_bdb_version}" ]]; then
|
||||
SVN_BDB_VERSION="${apu_bdb_version}"
|
||||
einfo "Matching db version to apr-util"
|
||||
else
|
||||
SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
|
||||
einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
|
||||
fi
|
||||
fi
|
||||
einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
|
||||
einfo
|
||||
|
||||
if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
|
||||
eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
|
||||
eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
|
||||
eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
|
||||
eerror "Aborting to avoid possible run-time crashes."
|
||||
die "Berkeley DB version mismatch"
|
||||
fi
|
||||
fi
|
||||
|
||||
depend.apache_pkg_setup
|
||||
|
||||
java-pkg-opt-2_pkg_setup
|
||||
|
||||
if use ctypes-python || use python; then
|
||||
python_pkg_setup
|
||||
fi
|
||||
|
||||
if ! use webdav-neon && ! use webdav-serf; then
|
||||
ewarn "WebDAV support is disabled. You need WebDAV to"
|
||||
ewarn "access repositories through the HTTP protocol."
|
||||
ewarn "Consider enabling one of the following USE-flags:"
|
||||
ewarn " webdav-neon webdav-serf"
|
||||
echo -ne "\a"
|
||||
fi
|
||||
|
||||
if use debug; then
|
||||
append-cppflags -DSVN_DEBUG -DAP_DEBUG
|
||||
fi
|
||||
|
||||
# Allow for custom repository locations.
|
||||
SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
fperms +x build/transform_libtool_scripts.sh
|
||||
|
||||
sed -i \
|
||||
-e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
|
||||
-e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
|
||||
|
||||
sed -e "/SWIG_PY_INCLUDES=/s/\$ac_cv_python_includes/\\\\\$(PYTHON_INCLUDES)/" -i build/ac-macros/swig.m4 || die "sed failed"
|
||||
|
||||
# this bites us in particular on Solaris
|
||||
sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
|
||||
die "/bin/sh is not POSIX shell!"
|
||||
|
||||
eautoconf
|
||||
elibtoolize
|
||||
|
||||
sed -e "s/libsvn_swig_py-1\.la/libsvn_swig_py-\$(PYTHON_VERSION)-1.la/" -i build-outputs.mk || die "sed failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if use python || use perl || use ruby; then
|
||||
myconf+=" --with-swig"
|
||||
else
|
||||
myconf+=" --without-swig"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
myconf+=" --without-junit"
|
||||
fi
|
||||
|
||||
if use kde || use nls; then
|
||||
myconf+=" --enable-nls"
|
||||
else
|
||||
myconf+=" --disable-nls"
|
||||
fi
|
||||
|
||||
case ${CHOST} in
|
||||
*-aix*)
|
||||
# avoid recording immediate path to sharedlibs into executables
|
||||
append-ldflags -Wl,-bnoipath
|
||||
;;
|
||||
*-interix*)
|
||||
# loader crashes on the LD_PRELOADs...
|
||||
myconf="${myconf} --disable-local-library-preloading"
|
||||
;;
|
||||
esac
|
||||
|
||||
econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
$(use_with apache2 apxs "${APXS}") \
|
||||
$(use_with berkdb berkeley-db "db.h:${EPREFIX}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}") \
|
||||
$(use_with ctypes-python ctypesgen "${EPREFIX}/usr") \
|
||||
$(use_enable dso runtime-module-search) \
|
||||
$(use_with gnome-keyring) \
|
||||
$(use_enable java javahl) \
|
||||
$(use_with java jdk "${JAVA_HOME}") \
|
||||
$(use_with kde kwallet) \
|
||||
$(use_with sasl) \
|
||||
$(use_with webdav-neon neon) \
|
||||
$(use_with webdav-serf serf "${EPREFIX}/usr") \
|
||||
${myconf} \
|
||||
--with-apr="${EPREFIX}/usr/bin/apr-1-config" \
|
||||
--with-apr-util="${EPREFIX}/usr/bin/apu-1-config" \
|
||||
--disable-experimental-libtool \
|
||||
--without-jikes \
|
||||
--enable-local-library-preloading \
|
||||
--disable-mod-activation \
|
||||
--disable-neon-version-check \
|
||||
--disable-static \
|
||||
--with-sqlite="${EPREFIX}/usr"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake local-all || die "Building of core of Subversion failed"
|
||||
|
||||
if use ctypes-python; then
|
||||
python_copy_sources subversion/bindings/ctypes-python
|
||||
rm -fr subversion/bindings/ctypes-python
|
||||
ctypes_python_bindings_building() {
|
||||
rm -f subversion/bindings/ctypes-python
|
||||
ln -s ctypes-python-${PYTHON_ABI} subversion/bindings/ctypes-python
|
||||
emake ctypes-python
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Building of Subversion Ctypes Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Building of Subversion Ctypes Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
ctypes_python_bindings_building
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_copy_sources subversion/bindings/swig/python
|
||||
rm -fr subversion/bindings/swig/python
|
||||
swig_python_bindings_building() {
|
||||
rm -f subversion/bindings/swig/python
|
||||
ln -s python-${PYTHON_ABI} subversion/bindings/swig/python
|
||||
emake \
|
||||
PYTHON_INCLUDES="-I${EPREFIX}$(python_get_includedir)" \
|
||||
PYTHON_VERSION="$(python_get_version)" \
|
||||
swig_pydir="${EPREFIX}$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="${EPREFIX}$(python_get_sitedir)/svn" \
|
||||
swig-py
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Building of Subversion SWIG Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Building of Subversion SWIG Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
swig_python_bindings_building
|
||||
fi
|
||||
|
||||
if use perl; then
|
||||
emake swig-pl || die "Building of Subversion SWIG Perl bindings failed"
|
||||
fi
|
||||
|
||||
if use ruby; then
|
||||
emake swig-rb || die "Building of Subversion SWIG Ruby bindings failed"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl || die "Building of Subversion JavaHL library failed"
|
||||
fi
|
||||
|
||||
if use extras; then
|
||||
emake tools || die "Building of tools failed"
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
|
||||
|
||||
if use java; then
|
||||
emake doc-javahl || die "Building of Subversion JavaHL library HTML documentation failed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${D}" local-install || die "Installation of core of Subversion failed"
|
||||
|
||||
if use ctypes-python; then
|
||||
ctypes_python_bindings_installation() {
|
||||
rm -f subversion/bindings/ctypes-python
|
||||
ln -s ctypes-python-${PYTHON_ABI} subversion/bindings/ctypes-python
|
||||
emake DESTDIR="${D}" install-ctypes-python
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Installation of Subversion Ctypes Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Installation of Subversion Ctypes Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
ctypes_python_bindings_installation
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
swig_python_bindings_installation() {
|
||||
rm -f subversion/bindings/swig/python
|
||||
ln -s python-${PYTHON_ABI} subversion/bindings/swig/python
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
PYTHON_VERSION="$(python_get_version)" \
|
||||
swig_pydir="${EPREFIX}$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="${EPREFIX}$(python_get_sitedir)/svn" \
|
||||
install-swig-py
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Installation of Subversion SWIG Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Installation of Subversion SWIG Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
swig_python_bindings_installation
|
||||
fi
|
||||
|
||||
if use ctypes-python || use python; then
|
||||
python_clean_installation_image -q
|
||||
fi
|
||||
|
||||
if use perl; then
|
||||
emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl || die "Installation of Subversion SWIG Perl bindings failed"
|
||||
fixlocalpod
|
||||
find "${ED}" "(" -name .packlist -o -name "*.bs" ")" -print0 | xargs -0 rm -fr
|
||||
fi
|
||||
|
||||
if use ruby; then
|
||||
emake DESTDIR="${D}" install-swig-rb || die "Installation of Subversion SWIG Ruby bindings failed"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
emake DESTDIR="${D}" install-javahl || die "Installation of Subversion JavaHL library failed"
|
||||
java-pkg_regso "${ED}"usr/$(get_libdir)/libsvnjavahl*$(get_libname)
|
||||
java-pkg_dojar "${ED}"usr/$(get_libdir)/svn-javahl/svn-javahl.jar
|
||||
rm -fr "${ED}"usr/$(get_libdir)/svn-javahl/*.jar
|
||||
fi
|
||||
|
||||
# Install Apache module configuration.
|
||||
if use apache2; then
|
||||
keepdir "${APACHE_MODULES_CONFDIR}"
|
||||
insinto "${APACHE_MODULES_CONFDIR}"
|
||||
doins "${FILESDIR}/47_mod_dav_svn.conf"
|
||||
fi
|
||||
|
||||
# Install Bash Completion, bug 43179.
|
||||
newbashcomp tools/client-side/bash_completion subversion
|
||||
rm -f tools/client-side/bash_completion
|
||||
|
||||
# Install hot backup script, bug 54304.
|
||||
newbin tools/backup/hot-backup.py svn-hot-backup
|
||||
rm -fr tools/backup
|
||||
|
||||
# Install svnserve init-script and xinet.d snippet, bug 43245.
|
||||
newinitd "${FILESDIR}"/svnserve.initd2 svnserve
|
||||
newconfd "${FILESDIR}"/svnserve.confd svnserve
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}"/svnserve.xinetd svnserve
|
||||
|
||||
#adjust default user and group with disabled apache2 USE flag, bug 381385
|
||||
use apache2 || sed -e "s\USER:-apache\USER:-svn\g" \
|
||||
-e "s\GROUP:-apache\GROUP:-svnusers\g" \
|
||||
-i "${D}"etc/init.d/svnserve
|
||||
|
||||
# Install documentation.
|
||||
dodoc CHANGES COMMITTERS README
|
||||
dodoc tools/xslt/svnindex.{css,xsl}
|
||||
rm -fr tools/xslt
|
||||
|
||||
# Install extra files.
|
||||
if use extras; then
|
||||
cat << EOF > 80subversion-extras
|
||||
PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
EOF
|
||||
doenvd 80subversion-extras
|
||||
|
||||
emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools || die "Installation of tools failed"
|
||||
|
||||
find tools "(" -name "*.bat" -o -name "*.in" -o -name ".libs" ")" -print0 | xargs -0 rm -fr
|
||||
rm -fr tools/client-side/svnmucc
|
||||
rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
|
||||
rm -fr tools/{buildbot,dev,diff,po}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r tools
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/doxygen/html/* || die "Installation of Subversion HTML documentation failed"
|
||||
|
||||
dodoc notes/*
|
||||
|
||||
if use java; then
|
||||
java-pkg_dojavadoc doc/javadoc
|
||||
fi
|
||||
fi
|
||||
|
||||
find "${D}" '(' -name '*.la' ')' -print0 | xargs -0 rm -f
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Compare versions of Berkeley DB, bug 122877.
|
||||
if use berkdb && [[ -f "${EROOT}usr/bin/svn" ]]; then
|
||||
OLD_BDB_VERSION="$(scanelf -nq "${EROOT}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
NEW_BDB_VERSION="$(scanelf -nq "${ED}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]]; then
|
||||
CHANGED_BDB_VERSION="1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use perl && perl-module_pkg_postinst
|
||||
|
||||
if use ctypes-python; then
|
||||
python_mod_optimize csvn
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_mod_optimize libsvn svn
|
||||
fi
|
||||
|
||||
if [[ -n "${CHANGED_BDB_VERSION}" ]]; then
|
||||
ewarn "You upgraded from an older version of Berkeley DB and may experience"
|
||||
ewarn "problems with your repository. Run the following commands as root to fix it:"
|
||||
ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
|
||||
ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
|
||||
fi
|
||||
|
||||
ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use perl && perl-module_pkg_postrm
|
||||
|
||||
if use ctypes-python; then
|
||||
python_mod_cleanup csvn
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_mod_cleanup libsvn svn
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
# Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
|
||||
# already has EPREFIX in it
|
||||
einfo "Initializing the database in ${ROOT}${SVN_REPOS_LOC}..."
|
||||
if [[ -e "${ROOT}${SVN_REPOS_LOC}/repos" ]]; then
|
||||
echo "A Subversion repository already exists and I will not overwrite it."
|
||||
echo "Delete \"${ROOT}${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
|
||||
else
|
||||
mkdir -p "${ROOT}${SVN_REPOS_LOC}/conf"
|
||||
|
||||
einfo "Populating repository directory..."
|
||||
# Create initial repository.
|
||||
"${EROOT}usr/bin/svnadmin" create "${ROOT}${SVN_REPOS_LOC}/repos"
|
||||
|
||||
einfo "Setting repository permissions..."
|
||||
SVNSERVE_USER="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
|
||||
SVNSERVE_GROUP="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
|
||||
if use apache2; then
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
|
||||
else
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
|
||||
enewgroup "${SVNSERVE_GROUP}"
|
||||
enewuser "${SVNSERVE_USER}" -1 -1 "${SVN_REPOS_LOC}" "${SVNSERVE_GROUP}"
|
||||
fi
|
||||
chown -Rf "${SVNSERVE_USER}:${SVNSERVE_GROUP}" "${ROOT}${SVN_REPOS_LOC}/repos"
|
||||
chmod -Rf go-rwx "${ROOT}${SVN_REPOS_LOC}/conf"
|
||||
chmod -Rf o-rwx "${ROOT}${SVN_REPOS_LOC}/repos"
|
||||
fi
|
||||
}
|
@ -1,451 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/subversion-1.7.4.ebuild,v 1.6 2012/07/20 16:19:07 kensington Exp $
|
||||
|
||||
EAPI="3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
|
||||
WANT_AUTOMAKE="none"
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
inherit autotools bash-completion-r1 db-use depend.apache elisp-common flag-o-matic java-pkg-opt-2 libtool multilib perl-module python eutils
|
||||
|
||||
DESCRIPTION="Advanced version control system"
|
||||
HOMEPAGE="http://subversion.apache.org/"
|
||||
SRC_URI="http://www.apache.org/dist/${PN}/${MY_P}.tar.bz2"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="Subversion"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring java kde nls perl python ruby sasl vim-syntax +webdav-neon webdav-serf"
|
||||
|
||||
CDEPEND=">=dev-db/sqlite-3.4
|
||||
>=dev-libs/apr-1.3:1
|
||||
>=dev-libs/apr-util-1.3:1
|
||||
dev-libs/expat
|
||||
sys-libs/zlib
|
||||
berkdb? ( >=sys-libs/db-4.0.14 )
|
||||
ctypes-python? ( =dev-lang/python-2* )
|
||||
gnome-keyring? ( dev-libs/glib:2 sys-apps/dbus gnome-base/gnome-keyring )
|
||||
kde? ( sys-apps/dbus x11-libs/qt-core:4 x11-libs/qt-dbus:4 x11-libs/qt-gui:4 >=kde-base/kdelibs-4:4 )
|
||||
perl? ( dev-lang/perl )
|
||||
python? ( =dev-lang/python-2* )
|
||||
ruby? ( >=dev-lang/ruby-1.8.2:1.8 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
webdav-neon? ( >=net-libs/neon-0.28 )
|
||||
webdav-serf? ( >=net-libs/serf-0.3.0 )"
|
||||
RDEPEND="${CDEPEND}
|
||||
apache2? ( www-servers/apache[apache2_modules_dav] )
|
||||
java? ( >=virtual/jre-1.5 )
|
||||
kde? ( kde-base/kwalletd )
|
||||
nls? ( virtual/libintl )
|
||||
perl? ( dev-perl/URI )"
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-1.6
|
||||
ctypes-python? ( dev-python/ctypesgen )
|
||||
doc? ( app-doc/doxygen )
|
||||
gnome-keyring? ( virtual/pkgconfig )
|
||||
java? ( >=virtual/jdk-1.5 )
|
||||
kde? ( virtual/pkgconfig )
|
||||
nls? ( sys-devel/gettext )
|
||||
webdav-neon? ( virtual/pkgconfig )"
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
if use berkdb; then
|
||||
local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
|
||||
| grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
|
||||
| sed 's:.*b::')"
|
||||
einfo
|
||||
if [[ -z "${SVN_BDB_VERSION}" ]]; then
|
||||
if [[ -n "${apu_bdb_version}" ]]; then
|
||||
SVN_BDB_VERSION="${apu_bdb_version}"
|
||||
einfo "Matching db version to apr-util"
|
||||
else
|
||||
SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
|
||||
einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
|
||||
fi
|
||||
fi
|
||||
einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
|
||||
einfo
|
||||
|
||||
if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
|
||||
eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
|
||||
eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
|
||||
eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
|
||||
eerror "Aborting to avoid possible run-time crashes."
|
||||
die "Berkeley DB version mismatch"
|
||||
fi
|
||||
fi
|
||||
|
||||
depend.apache_pkg_setup
|
||||
|
||||
java-pkg-opt-2_pkg_setup
|
||||
|
||||
if use ctypes-python || use python; then
|
||||
python_pkg_setup
|
||||
fi
|
||||
|
||||
if ! use webdav-neon && ! use webdav-serf; then
|
||||
ewarn "WebDAV support is disabled. You need WebDAV to"
|
||||
ewarn "access repositories through the HTTP protocol."
|
||||
ewarn "Consider enabling one of the following USE-flags:"
|
||||
ewarn " webdav-neon webdav-serf"
|
||||
echo -ne "\a"
|
||||
fi
|
||||
|
||||
if use debug; then
|
||||
append-cppflags -DSVN_DEBUG -DAP_DEBUG
|
||||
fi
|
||||
|
||||
# Allow for custom repository locations.
|
||||
SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.5.4-interix.patch \
|
||||
"${FILESDIR}"/${PN}-1.5.6-aix-dso.patch \
|
||||
"${FILESDIR}"/${PN}-1.6.3-hpux-dso.patch \
|
||||
"${FILESDIR}"/${PN}-fix-parallel-build-support-for-perl-bindings.patch
|
||||
|
||||
fperms +x build/transform_libtool_scripts.sh
|
||||
|
||||
sed -i \
|
||||
-e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
|
||||
-e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
|
||||
|
||||
sed -e "/SWIG_PY_INCLUDES=/s/\$ac_cv_python_includes/\\\\\$(PYTHON_INCLUDES)/" -i build/ac-macros/swig.m4 || die "sed failed"
|
||||
|
||||
# this bites us in particular on Solaris
|
||||
sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
|
||||
die "/bin/sh is not POSIX shell!"
|
||||
|
||||
eautoconf
|
||||
elibtoolize
|
||||
|
||||
sed -e "s/libsvn_swig_py-1\.la/libsvn_swig_py-\$(PYTHON_VERSION)-1.la/" -i build-outputs.mk || die "sed failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if use python || use perl || use ruby; then
|
||||
myconf+=" --with-swig"
|
||||
else
|
||||
myconf+=" --without-swig"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
myconf+=" --without-junit"
|
||||
fi
|
||||
|
||||
if use kde || use nls; then
|
||||
myconf+=" --enable-nls"
|
||||
else
|
||||
myconf+=" --disable-nls"
|
||||
fi
|
||||
|
||||
case ${CHOST} in
|
||||
*-aix*)
|
||||
# avoid recording immediate path to sharedlibs into executables
|
||||
append-ldflags -Wl,-bnoipath
|
||||
;;
|
||||
*-interix*)
|
||||
# loader crashes on the LD_PRELOADs...
|
||||
myconf+=" --disable-local-library-preloading"
|
||||
;;
|
||||
esac
|
||||
|
||||
#workaround for bug 387057
|
||||
has_version =dev-vcs/subversion-1.6* && myconf+=" --disable-disallowing-of-undefined-references"
|
||||
|
||||
#force ruby-1.8 for bug 399105
|
||||
ac_cv_path_RUBY="${EPREFIX}"/usr/bin/ruby18 ac_cv_path_RDOC="${EPREFIX}"/usr/bin/rdoc18 \
|
||||
econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
$(use_with apache2 apxs "${APXS}") \
|
||||
$(use_with berkdb berkeley-db "db.h:${EPREFIX}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}") \
|
||||
$(use_with ctypes-python ctypesgen "${EPREFIX}/usr") \
|
||||
$(use_enable dso runtime-module-search) \
|
||||
$(use_with gnome-keyring) \
|
||||
$(use_enable java javahl) \
|
||||
$(use_with java jdk "${JAVA_HOME}") \
|
||||
$(use_with kde kwallet) \
|
||||
$(use_with sasl) \
|
||||
$(use_with webdav-neon neon) \
|
||||
$(use_with webdav-serf serf "${EPREFIX}/usr") \
|
||||
${myconf} \
|
||||
--with-apr="${EPREFIX}/usr/bin/apr-1-config" \
|
||||
--with-apr-util="${EPREFIX}/usr/bin/apu-1-config" \
|
||||
--disable-experimental-libtool \
|
||||
--without-jikes \
|
||||
--enable-local-library-preloading \
|
||||
--disable-mod-activation \
|
||||
--disable-neon-version-check \
|
||||
--disable-static \
|
||||
--with-sqlite="${EPREFIX}/usr"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake local-all || die "Building of core of Subversion failed"
|
||||
|
||||
if use ctypes-python; then
|
||||
python_copy_sources subversion/bindings/ctypes-python
|
||||
rm -fr subversion/bindings/ctypes-python
|
||||
ctypes_python_bindings_building() {
|
||||
rm -f subversion/bindings/ctypes-python
|
||||
ln -s ctypes-python-${PYTHON_ABI} subversion/bindings/ctypes-python
|
||||
emake ctypes-python
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Building of Subversion Ctypes Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Building of Subversion Ctypes Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
ctypes_python_bindings_building
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_copy_sources subversion/bindings/swig/python
|
||||
rm -fr subversion/bindings/swig/python
|
||||
swig_python_bindings_building() {
|
||||
rm -f subversion/bindings/swig/python
|
||||
ln -s python-${PYTHON_ABI} subversion/bindings/swig/python
|
||||
emake \
|
||||
PYTHON_INCLUDES="-I${EPREFIX}$(python_get_includedir)" \
|
||||
PYTHON_VERSION="$(python_get_version)" \
|
||||
swig_pydir="${EPREFIX}$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="${EPREFIX}$(python_get_sitedir)/svn" \
|
||||
swig-py
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Building of Subversion SWIG Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Building of Subversion SWIG Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
swig_python_bindings_building
|
||||
fi
|
||||
|
||||
if use perl; then
|
||||
emake swig-pl || die "Building of Subversion SWIG Perl bindings failed"
|
||||
fi
|
||||
|
||||
if use ruby; then
|
||||
emake swig-rb || die "Building of Subversion SWIG Ruby bindings failed"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl || die "Building of Subversion JavaHL library failed"
|
||||
fi
|
||||
|
||||
if use extras; then
|
||||
emake tools || die "Building of tools failed"
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
|
||||
|
||||
if use java; then
|
||||
emake doc-javahl || die "Building of Subversion JavaHL library HTML documentation failed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${D}" local-install || die "Installation of core of Subversion failed"
|
||||
|
||||
if use ctypes-python; then
|
||||
ctypes_python_bindings_installation() {
|
||||
rm -f subversion/bindings/ctypes-python
|
||||
ln -s ctypes-python-${PYTHON_ABI} subversion/bindings/ctypes-python
|
||||
emake DESTDIR="${D}" install-ctypes-python
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Installation of Subversion Ctypes Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Installation of Subversion Ctypes Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
ctypes_python_bindings_installation
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
swig_python_bindings_installation() {
|
||||
rm -f subversion/bindings/swig/python
|
||||
ln -s python-${PYTHON_ABI} subversion/bindings/swig/python
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
PYTHON_VERSION="$(python_get_version)" \
|
||||
swig_pydir="${EPREFIX}$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="${EPREFIX}$(python_get_sitedir)/svn" \
|
||||
install-swig-py
|
||||
}
|
||||
python_execute_function \
|
||||
--action-message 'Installation of Subversion SWIG Python bindings with $(python_get_implementation) $(python_get_version)' \
|
||||
--failure-message 'Installation of Subversion SWIG Python bindings failed with $(python_get_implementation) $(python_get_version)' \
|
||||
swig_python_bindings_installation
|
||||
fi
|
||||
|
||||
if use ctypes-python || use python; then
|
||||
python_clean_installation_image -q
|
||||
fi
|
||||
|
||||
if use perl; then
|
||||
emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl || die "Installation of Subversion SWIG Perl bindings failed"
|
||||
fixlocalpod
|
||||
find "${ED}" "(" -name .packlist -o -name "*.bs" ")" -print0 | xargs -0 rm -fr
|
||||
fi
|
||||
|
||||
if use ruby; then
|
||||
emake DESTDIR="${D}" install-swig-rb || die "Installation of Subversion SWIG Ruby bindings failed"
|
||||
fi
|
||||
|
||||
if use java; then
|
||||
emake DESTDIR="${D}" install-javahl || die "Installation of Subversion JavaHL library failed"
|
||||
java-pkg_regso "${ED}"usr/$(get_libdir)/libsvnjavahl*$(get_libname)
|
||||
java-pkg_dojar "${ED}"usr/$(get_libdir)/svn-javahl/svn-javahl.jar
|
||||
rm -fr "${ED}"usr/$(get_libdir)/svn-javahl/*.jar
|
||||
fi
|
||||
|
||||
# Install Apache module configuration.
|
||||
if use apache2; then
|
||||
keepdir "${APACHE_MODULES_CONFDIR}"
|
||||
insinto "${APACHE_MODULES_CONFDIR}"
|
||||
doins "${FILESDIR}/47_mod_dav_svn.conf"
|
||||
fi
|
||||
|
||||
# Install Bash Completion, bug 43179.
|
||||
newbashcomp tools/client-side/bash_completion subversion
|
||||
rm -f tools/client-side/bash_completion
|
||||
|
||||
# Install hot backup script, bug 54304.
|
||||
newbin tools/backup/hot-backup.py svn-hot-backup
|
||||
rm -fr tools/backup
|
||||
|
||||
# Install svnserve init-script and xinet.d snippet, bug 43245.
|
||||
newinitd "${FILESDIR}"/svnserve.initd2 svnserve
|
||||
newconfd "${FILESDIR}"/svnserve.confd svnserve
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}"/svnserve.xinetd svnserve
|
||||
|
||||
#adjust default user and group with disabled apache2 USE flag, bug 381385
|
||||
use apache2 || sed -e "s\USER:-apache\USER:-svn\g" \
|
||||
-e "s\GROUP:-apache\GROUP:-svnusers\g" \
|
||||
-i "${ED}"etc/init.d/svnserve || die
|
||||
use apache2 || sed -e "0,/apache/s//svn/" \
|
||||
-e "s:apache:svnusers:" \
|
||||
-i "${ED}"etc/xinetd.d/svnserve || die
|
||||
|
||||
# Install documentation.
|
||||
dodoc CHANGES COMMITTERS README
|
||||
dodoc tools/xslt/svnindex.{css,xsl}
|
||||
rm -fr tools/xslt
|
||||
|
||||
# Install extra files.
|
||||
if use extras; then
|
||||
cat << EOF > 80subversion-extras
|
||||
PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
EOF
|
||||
doenvd 80subversion-extras
|
||||
|
||||
emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools || die "Installation of tools failed"
|
||||
|
||||
find tools "(" -name "*.bat" -o -name "*.in" -o -name ".libs" ")" -print0 | xargs -0 rm -fr
|
||||
rm -fr tools/client-side/svnmucc
|
||||
rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
|
||||
rm -fr tools/{buildbot,dev,diff,po}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r tools
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/doxygen/html/* || die "Installation of Subversion HTML documentation failed"
|
||||
|
||||
dodoc notes/*
|
||||
|
||||
if use java; then
|
||||
java-pkg_dojavadoc doc/javadoc
|
||||
fi
|
||||
fi
|
||||
|
||||
find "${ED}" '(' -name '*.la' ')' -print0 | xargs -0 rm -f
|
||||
|
||||
cd "${ED}"usr/share/locale
|
||||
for i in * ; do
|
||||
[[ $i == *$LINGUAS* ]] || { rm -r $i || die ; }
|
||||
done
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Compare versions of Berkeley DB, bug 122877.
|
||||
if use berkdb && [[ -f "${EROOT}usr/bin/svn" ]]; then
|
||||
OLD_BDB_VERSION="$(scanelf -nq "${EROOT}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
NEW_BDB_VERSION="$(scanelf -nq "${ED}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]]; then
|
||||
CHANGED_BDB_VERSION="1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use perl && perl-module_pkg_postinst
|
||||
|
||||
if use ctypes-python; then
|
||||
python_mod_optimize csvn
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_mod_optimize libsvn svn
|
||||
fi
|
||||
|
||||
if [[ -n "${CHANGED_BDB_VERSION}" ]]; then
|
||||
ewarn "You upgraded from an older version of Berkeley DB and may experience"
|
||||
ewarn "problems with your repository. Run the following commands as root to fix it:"
|
||||
ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
|
||||
ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
|
||||
fi
|
||||
|
||||
ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use perl && perl-module_pkg_postrm
|
||||
|
||||
if use ctypes-python; then
|
||||
python_mod_cleanup csvn
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_mod_cleanup libsvn svn
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
# Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
|
||||
# already has EPREFIX in it
|
||||
einfo "Initializing the database in ${SVN_REPOS_LOC}..."
|
||||
if [[ -e "${SVN_REPOS_LOC}/repos" ]]; then
|
||||
echo "A Subversion repository already exists and I will not overwrite it."
|
||||
echo "Delete \"${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
|
||||
else
|
||||
mkdir -p "${SVN_REPOS_LOC}/conf"
|
||||
|
||||
einfo "Populating repository directory..."
|
||||
# Create initial repository.
|
||||
"${EROOT}usr/bin/svnadmin" create "${SVN_REPOS_LOC}/repos"
|
||||
|
||||
einfo "Setting repository permissions..."
|
||||
SVNSERVE_USER="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
|
||||
SVNSERVE_GROUP="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
|
||||
if use apache2; then
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
|
||||
else
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
|
||||
fi
|
||||
chmod -Rf go-rwx "${SVN_REPOS_LOC}/conf"
|
||||
chmod -Rf o-rwx "${SVN_REPOS_LOC}/repos"
|
||||
echo "Please create \"${SVNSERVE_GROUP}\" group if it does not exist yet."
|
||||
echo "Afterwards please create \"${SVNSERVE_USER}\" user with homedir \"${SVN_REPOS_LOC}\""
|
||||
echo "and as part of the \"${SVNSERVE_GROUP}\" group if it does not exist yet."
|
||||
echo "Finally, execute \"chown -Rf ${SVNSERVE_USER}:${SVNSERVE_GROUP} ${SVN_REPOS_LOC}/repos\""
|
||||
echo "to finish the configuration."
|
||||
fi
|
||||
}
|
@ -1,6 +1,14 @@
|
||||
DIST byzanz-0.2.2.tar.bz2 369472 RMD160 4b1a19b6af83a373ea32f7f7f436b18d880cd1ae SHA1 fd0264c98fbb52323c630835da7b79d4f569743d SHA256 4d3cdea39e536341f0a083ce003c404496131705ba5ced394d683c00e7fa144c
|
||||
DIST byzanz-0.2.3.tar.bz2 377610 RMD160 613a1992ee8105d3f103b28e0767068575d2613d SHA1 9fd1b8798364291c82457c2ad0e571f888ad2ac6 SHA256 688505712c961a3ce3812188cb490e6f3bd1a60bb4528bbdcb7ffcf976424d66
|
||||
EBUILD byzanz-0.2.2.ebuild 820 RMD160 85c785b4af8f562c79b7b4c2da517c4245795904 SHA1 23b126b5496dfae511bab367de20c6bc967538ab SHA256 520f5f3782da2d96bfffdce739996d37e32dfd41c4ca7b09fbb1abc96c62294c
|
||||
EBUILD byzanz-0.2.3.ebuild 917 RMD160 820a67b2729a7e80acc4087643305f8a59dcc528 SHA1 5604935c4c0a28f7f19dd684fda75635a0e07be4 SHA256 9eba26580f958ea1771448d441e47a748dc2b8bdaa4be4c3c0a2ce2f13c14258
|
||||
MISC ChangeLog 1534 RMD160 fbac74e768efc691fc1dacbcfca3b8188547786b SHA1 2a994880042e20cf3fb94d172b9367b39fd364b2 SHA256 93d7efe880a650f75b2377e06afadeaa1c34bb3beb0d37cb6b9d98ce594a5d8f
|
||||
MISC metadata.xml 201 RMD160 bf358072c9a07edb004d52c2082ec94903f4458c SHA1 7694a2f32bcef1c1c00ffa0cac2d0687596bf5a0 SHA256 8f75fc60785c44922fb01cde68caa6453b815502745e057680d2c923733fb70a
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST byzanz-0.2.3.tar.bz2 377610 SHA256 688505712c961a3ce3812188cb490e6f3bd1a60bb4528bbdcb7ffcf976424d66
|
||||
EBUILD byzanz-0.2.3.ebuild 934 SHA256 0fb7f816b0afcab7ce447d24c5976935b3d2ff66bee9bd14471d29e8977b69c7 SHA512 06fa8ab63dcf36ce8a141c51ba6cca9b879f7501023b911c0e64b477ab5f9622189007afeee19398772c953d59f38788743aa8ec3994910ed87f45230bc0e1bd WHIRLPOOL 6171aa171d520214a23568f2b5629cdfbd11a1af1d8e2ac857e1e52b5da5f36ab9445fe8fc15aefe07bdfc2bc33c9e5f0169022676fe98b51ee26574b0bb075e
|
||||
MISC ChangeLog 1693 SHA256 fb676a4566e988a9c8ac63bb1dc9e61ab7694eabc08f7e083ba5dde6f8a12b1e SHA512 1bac7e7119e0147cc1e8bb1222f39f54069a33f89686a8eb8e033295402828dd27bd289df97d4d70df37b71c7ccf2fcee0cb61cacba6456295daa9e8e824e528 WHIRLPOOL eefdb99de3340c8943d0acb3861f892554f46c81a3c7272185521de4e8e8ef1ce6ac6fa80d6bd75c898f4c00fdd7047a978feb4e7a32850e25cc62a8f4fc2593
|
||||
MISC metadata.xml 201 SHA256 8f75fc60785c44922fb01cde68caa6453b815502745e057680d2c923733fb70a SHA512 84a5327ed4c5c64a425ec34c4658d077df5992688f6ad1b39c1f84f0e4a58663ba06c78a963423815d11f9b1cdfc3919a5d6f999e4f4f49c8c06627c60cfc2ec WHIRLPOOL 614e7c517ef569cba692b091fd5a3bd55ce0df2e5b3e0b4ce20bc08abc1c017b1cb8fe0bf95a68175dd0994942eb4669022d369c17a425cc86c431a73e1ee093
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlCJn2AACgkQ1fmVwcYIWAZFkgCfbPtBoLvydzekYV8iHI2obbjH
|
||||
UuIAnikfwEW2DfCG/DpPI4VnCPKOuTor
|
||||
=a/Ut
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-gfx/byzanz/byzanz-0.2.2.ebuild,v 1.5 2012/05/05 07:00:22 jdhore Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
GCONF_DEBUG=no
|
||||
|
||||
inherit gnome2
|
||||
|
||||
DESCRIPTION="Screencasting program that saves casts as GIF files"
|
||||
HOMEPAGE="http://people.freedesktop.org/~company/byzanz/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=x11-libs/libXdamage-1.0
|
||||
>=dev-libs/glib-2.16:2
|
||||
>=x11-libs/gtk+-2.17.10:2
|
||||
>=gnome-base/gconf-2.10
|
||||
|| ( gnome-base/gnome-panel[bonobo] <gnome-base/gnome-panel-2.32 )
|
||||
>=media-libs/gst-plugins-base-0.10.24
|
||||
>=x11-libs/cairo-1.8.10"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
dev-util/intltool
|
||||
>=x11-proto/damageproto-1.0"
|
||||
|
||||
DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue