parent
bf2ee85643
commit
fb552cfe08
@ -0,0 +1,99 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils systemd unpacker user
|
||||
|
||||
DESCRIPTION="general puppet client utils along with mcollective hiera and facter"
|
||||
HOMEPAGE="https://puppetlabs.com/"
|
||||
SRC_BASE="http://apt.puppetlabs.com/pool/wheezy/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1wheezy"
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_BASE}_amd64.deb )
|
||||
x86? ( ${SRC_BASE}_i386.deb )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="puppetdb selinux"
|
||||
RESTRICT="strip"
|
||||
|
||||
CDEPEND="!app-admin/augeas
|
||||
!app-admin/mcollective
|
||||
!app-admin/puppet
|
||||
!dev-ruby/hiera
|
||||
!dev-ruby/facter
|
||||
!app-emulation/virt-what"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}"
|
||||
RDEPEND="${CDEPEND}
|
||||
sys-apps/dmidecode
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
puppetdb? ( >=dev-ruby/puppetdb-termini-3.1.0 )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PREBUILT="
|
||||
/opt/puppetlabs/puppet
|
||||
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/mathn/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/io/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/dl/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/racc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/enc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/json/ext/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/rbconfig/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/digest/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/engines/*
|
||||
/opt/puppetlabs/puppet/lib/virt-what/*
|
||||
/opt/puppetlabs/puppet/lib/*
|
||||
/opt/puppetlabs/puppet/bin/*"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/run/puppet puppet
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# conf.d
|
||||
doconfd etc/default/puppet
|
||||
doconfd etc/default/mcollective
|
||||
# logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
doins etc/logrotate.d/mcollective
|
||||
# puppet itself
|
||||
insinto /etc/puppetlabs
|
||||
doins -r etc/puppetlabs/*
|
||||
# logdir for systemd
|
||||
dodir var/log/puppetlabs/puppet/
|
||||
fperms 0750 var/log/puppetlabs/puppet/
|
||||
# the rest
|
||||
insinto /opt
|
||||
dodir opt/puppetlabs/puppet/cache
|
||||
doins -r opt/*
|
||||
fperms 0750 /opt/puppetlabs/puppet/cache
|
||||
# init
|
||||
newinitd "${FILESDIR}/puppet.initd" puppet
|
||||
newinitd "${FILESDIR}/mcollective.initd" mcollective
|
||||
systemd_dounit "${FILESDIR}/puppet.service"
|
||||
systemd_dounit "${FILESDIR}/mcollective.service"
|
||||
systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
|
||||
# symlinks
|
||||
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
|
||||
chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper"
|
||||
dosym /opt/puppetlabs/bin/facter /usr/bin/facter
|
||||
dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera
|
||||
dosym /opt/puppetlabs/bin/mco /usr/bin/mco
|
||||
dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet
|
||||
dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived
|
||||
dosym /opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what
|
||||
dosym /opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse
|
||||
dosym /opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool
|
||||
dosym /opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
depend() {
|
||||
use net
|
||||
after dns dsmc
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting dsmcad"
|
||||
start-stop-daemon --start --background --nicelevel 15 \
|
||||
--make-pidfile --pidfile /var/run/dsmcad.pid \
|
||||
--exec /opt/tivoli/tsm/client/ba/bin/dsmcad
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping dsmcad"
|
||||
start-stop-daemon --stop \
|
||||
--signal 1 \
|
||||
--pidfile /var/run/dsmcad.pid
|
||||
eend $?
|
||||
}
|
@ -1,223 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit versionator multilib eutils rpm pax-utils user
|
||||
|
||||
DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
|
||||
HOMEPAGE="http://www.tivoli.com/"
|
||||
|
||||
MY_PV_MAJOR=$(get_major_version)
|
||||
MY_PV_MINOR=$(get_version_component_range 2)
|
||||
MY_PV_TINY=$(get_version_component_range 3)
|
||||
|
||||
MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
|
||||
MY_PVR_ALLDOTS=${PV}
|
||||
|
||||
BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/Linux/LinuxX86/v${MY_PV_NODOTS}/"
|
||||
SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
|
||||
SRC_URI="${BASE_URI}${SRC_TAR}"
|
||||
|
||||
RESTRICT="strip" # Breaks libPiIMG.ss and libPiSNAP.so
|
||||
LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
|
||||
dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
|
||||
ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
|
||||
|| ( BSD GPL-2+ ) gSOAP libpng tsm"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="hsm"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT
|
||||
ja:JA_JP ko:KO_KR pl:PL_PL pt:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
|
||||
MY_LANG_PV="$(get_version_component_range 1-3)-"
|
||||
for lang in ${MY_LANGS}; do
|
||||
IUSE="${IUSE} linguas_${lang%:*}"
|
||||
SRC_URI="${SRC_URI} linguas_${lang%:*}? ( ${BASE_URI}TIVsm-msg.${lang#*:}.i386.rpm -> ${MY_LANG_PV}TIVsm-msg.${lang#*:}.i386.rpm )"
|
||||
done
|
||||
unset lang
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="sys-libs/libstdc++-v3"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup tsm
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local rpm rpms lang
|
||||
unpack ${SRC_TAR}
|
||||
|
||||
for rpm in *.rpm; do
|
||||
case ${rpm} in
|
||||
gsk*64-*|*API64*)
|
||||
use amd64 && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
*HSM*)
|
||||
use hsm && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
*)
|
||||
rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
for rpm in ${A}; do
|
||||
case ${rpm} in
|
||||
*.rpm)
|
||||
rpms="${rpms} ${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
rpm_unpack ${rpms}
|
||||
|
||||
# Avoid strange error messages caused by read-only files
|
||||
chmod -R u+w "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Avoid unnecessary dependency on ksh
|
||||
sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
|
||||
opt/tivoli/tsm/client/ba/bin/dsmj || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp -a opt "${D}"
|
||||
cp -a usr "${D}"
|
||||
|
||||
# The RPM files contain postinstall scripts which can be extracted
|
||||
# e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
|
||||
# Below we try to mimic the behaviour of these scripts.
|
||||
# We don't deal with SELinux compliance (yet), though.
|
||||
local RPM_INSTALL_PREFIX CLIENTDIR TIVINV_DIR TIVINVFILE i
|
||||
RPM_INSTALL_PREFIX=/opt
|
||||
CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
|
||||
|
||||
# We don't bother setting timestamps to build dates.
|
||||
# But we should delete the corresponding files.
|
||||
rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate
|
||||
rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate
|
||||
rm -f "${D}"$CLIENTDIR/lang/.buildDate
|
||||
|
||||
# Create links for messages; this is spread over several postin scripts.
|
||||
for i in $(cd "${D}"/${CLIENTDIR}/lang; ls -1d ??_??); do
|
||||
dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
|
||||
dosym ../../lang/${i} $CLIENTDIR/api/bin/${i}
|
||||
use amd64 && dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
|
||||
done
|
||||
|
||||
# Mimic TIVsm-API and -API64 postinstall script
|
||||
for i in libgpfs.so libdmapi.so; do
|
||||
dosym ../..$CLIENTDIR/api/bin/${i} /usr/lib
|
||||
done
|
||||
dosym ../..$CLIENTDIR/ba/bin/libzephyr.so /usr/lib/libTSMNetAppzephyr.so
|
||||
|
||||
# Mimic TIVsm-BA postinstall script
|
||||
for i in /etc/adsm{,/SpaceMan,/config,/status}; do
|
||||
keepdir ${i}
|
||||
fowners bin:bin ${i}
|
||||
fperms 2775 ${i}
|
||||
done
|
||||
TIVINV_DIR="/opt/tivoli/tsm/tivinv"
|
||||
TIVINVFILE="TIVTSMBAC0602.SYS2"
|
||||
dodir $TIVINV_DIR
|
||||
echo " " \
|
||||
> "${D}$TIVINV_DIR/$TIVINVFILE"
|
||||
fperms 555 $TIVINV_DIR/$TIVINVFILE
|
||||
|
||||
# Haven't ported the TIVsm-HSM postinstall script (yet).
|
||||
if use hsm; then
|
||||
ewarn "This ebuild doesn't mimic the HSM postinstall script."
|
||||
fi
|
||||
|
||||
# The gscrypt{32|64} postinstall script only deals with s390[x] SELinux.
|
||||
|
||||
# Mimic gskssl32 postinstall script
|
||||
for i in acmeidup valn km cms p11 dbfl kicc ssl sys ldap drld iccs; do
|
||||
dosym ../local/ibm/gsk8/lib/libgsk8${i}.so /usr/lib/libgsk8${i}.so
|
||||
done
|
||||
for i in capicmd ver; do
|
||||
dosym ../local/ibm/gsk8/bin/gsk8${i} /usr/bin/${i}
|
||||
done
|
||||
|
||||
# Mimic gskssl64 postinstall script
|
||||
if use amd64; then
|
||||
for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
|
||||
dosym ../local/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
|
||||
/usr/lib64/libgsk8${i}_64.so
|
||||
done
|
||||
for i in capicmd ver; do
|
||||
dosym ../local/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/${i}_64
|
||||
done
|
||||
fi
|
||||
|
||||
# Done with the postinstall scripts as the RPMs contain them.
|
||||
# Now on to some more Gentoo-specific installation.
|
||||
|
||||
use amd64 && mv "${D}usr/lib" "${D}usr/lib32"
|
||||
|
||||
fowners -R :tsm /opt/tivoli
|
||||
fperms -R g+rX,o-rX /opt/tivoli # Allow only tsm group users to access TSM tools
|
||||
fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
|
||||
|
||||
keepdir /var/log/tsm
|
||||
fowners :tsm /var/log/tsm
|
||||
fperms 2770 /var/log/tsm
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/tsm.logrotate" tsm
|
||||
|
||||
keepdir /etc/tivoli
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys"
|
||||
echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
|
||||
|
||||
# Added the hostname to be more friendly, the admin will need to edit this file anyway
|
||||
echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
|
||||
dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
|
||||
|
||||
# Setup the env
|
||||
dodir /etc/env.d
|
||||
ENV_FILE="${D}/etc/env.d/80tivoli"
|
||||
echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
|
||||
echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
|
||||
echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
|
||||
newconfd "${FILESDIR}/dsmc.conf.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmc.init.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
|
||||
|
||||
elog
|
||||
elog "Note that you have to be either root or member of the group tsm to be able to use the"
|
||||
elog "Tivoli Storage Manager client."
|
||||
elog
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local i
|
||||
for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
|
||||
if [[ ! -e $i ]]; then
|
||||
touch $i
|
||||
chown :tsm $i
|
||||
chmod 0660 $i
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
pax-mark psme /opt/tivoli/tsm/client/ba/bin/dsmc
|
||||
# most likely some of the other executables (e.g. dsm) need this as well, but I
|
||||
# cannot test it at the moment. - dilfridge
|
||||
}
|
@ -1,231 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit versionator multilib eutils rpm pax-utils user
|
||||
|
||||
DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
|
||||
HOMEPAGE="http://www.tivoli.com/"
|
||||
|
||||
MY_PV_MAJOR=$(get_major_version)
|
||||
MY_PV_MINOR=$(get_version_component_range 2)
|
||||
MY_PV_TINY=$(get_version_component_range 3)
|
||||
MY_PV_PATCH=$(get_version_component_range 4)
|
||||
|
||||
MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
|
||||
MY_PVR_ALLDOTS=${PV}
|
||||
|
||||
if [[ ${MY_PV_PATCH} == 0 ]]; then
|
||||
MY_RELEASE_PATH=maintenance
|
||||
else
|
||||
MY_RELEASE_PATH=patches
|
||||
fi
|
||||
BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/"
|
||||
BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/"
|
||||
BASE_URI+="Linux/LinuxX86/v${MY_PV_NODOTS}/"
|
||||
SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
|
||||
SRC_URI="${BASE_URI}${SRC_TAR}"
|
||||
|
||||
RESTRICT="strip" # Breaks libPiIMG.ss and libPiSNAP.so
|
||||
LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
|
||||
dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
|
||||
ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
|
||||
|| ( BSD GPL-2+ ) gSOAP libpng tsm"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="hsm"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT
|
||||
ja:JA_JP ko:KO_KR pl:PL_PL pt:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
|
||||
MY_LANG_PV="$(get_version_component_range 1-3)-"
|
||||
for lang in ${MY_LANGS}; do
|
||||
IUSE="${IUSE} linguas_${lang%:*}"
|
||||
SRC_URI="${SRC_URI} linguas_${lang%:*}? ( ${BASE_URI}TIVsm-msg.${lang#*:}.i386.rpm -> ${MY_LANG_PV}TIVsm-msg.${lang#*:}.i386.rpm )"
|
||||
done
|
||||
unset lang
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="sys-libs/libstdc++-v3"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup tsm
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local rpm rpms lang
|
||||
unpack ${SRC_TAR}
|
||||
|
||||
for rpm in *.rpm; do
|
||||
case ${rpm} in
|
||||
gsk*64-*|*API64*)
|
||||
use amd64 && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
*HSM*)
|
||||
use hsm && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
*)
|
||||
rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
for rpm in ${A}; do
|
||||
case ${rpm} in
|
||||
*.rpm)
|
||||
rpms="${rpms} ${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
rpm_unpack ${rpms}
|
||||
|
||||
# Avoid strange error messages caused by read-only files
|
||||
chmod -R u+w "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Avoid unnecessary dependency on ksh
|
||||
sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
|
||||
opt/tivoli/tsm/client/ba/bin/dsmj || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp -a opt "${D}"
|
||||
cp -a usr "${D}"
|
||||
|
||||
# The RPM files contain postinstall scripts which can be extracted
|
||||
# e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
|
||||
# Below we try to mimic the behaviour of these scripts.
|
||||
# We don't deal with SELinux compliance (yet), though.
|
||||
local RPM_INSTALL_PREFIX CLIENTDIR TIVINV_DIR TIVINVFILE i
|
||||
RPM_INSTALL_PREFIX=/opt
|
||||
CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
|
||||
|
||||
# We don't bother setting timestamps to build dates.
|
||||
# But we should delete the corresponding files.
|
||||
rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate
|
||||
rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate
|
||||
rm -f "${D}"$CLIENTDIR/lang/.buildDate
|
||||
|
||||
# Create links for messages; this is spread over several postin scripts.
|
||||
for i in $(cd "${D}"/${CLIENTDIR}/lang; ls -1d ??_??); do
|
||||
dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
|
||||
dosym ../../lang/${i} $CLIENTDIR/api/bin/${i}
|
||||
use amd64 && dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
|
||||
done
|
||||
|
||||
# Mimic TIVsm-API and -API64 postinstall script
|
||||
for i in libgpfs.so libdmapi.so; do
|
||||
dosym ../..$CLIENTDIR/api/bin/${i} /usr/lib
|
||||
done
|
||||
dosym ../..$CLIENTDIR/ba/bin/libzephyr.so /usr/lib/libTSMNetAppzephyr.so
|
||||
|
||||
# Mimic TIVsm-BA postinstall script
|
||||
for i in /etc/adsm{,/SpaceMan,/config,/status}; do
|
||||
keepdir ${i}
|
||||
fowners bin:bin ${i}
|
||||
fperms 2775 ${i}
|
||||
done
|
||||
TIVINV_DIR="/opt/tivoli/tsm/tivinv"
|
||||
TIVINVFILE="TIVTSMBAC0602.SYS2"
|
||||
dodir $TIVINV_DIR
|
||||
echo " " \
|
||||
> "${D}$TIVINV_DIR/$TIVINVFILE"
|
||||
fperms 555 $TIVINV_DIR/$TIVINVFILE
|
||||
|
||||
# Haven't ported the TIVsm-HSM postinstall script (yet).
|
||||
if use hsm; then
|
||||
ewarn "This ebuild doesn't mimic the HSM postinstall script."
|
||||
fi
|
||||
|
||||
# The gscrypt{32|64} postinstall script only deals with s390[x] SELinux.
|
||||
|
||||
# Mimic gskssl32 postinstall script
|
||||
for i in acmeidup valn km cms p11 dbfl kicc ssl sys ldap drld iccs; do
|
||||
dosym ../local/ibm/gsk8/lib/libgsk8${i}.so /usr/lib/libgsk8${i}.so
|
||||
done
|
||||
for i in capicmd ver; do
|
||||
dosym ../local/ibm/gsk8/bin/gsk8${i} /usr/bin/${i}
|
||||
done
|
||||
|
||||
# Mimic gskssl64 postinstall script
|
||||
if use amd64; then
|
||||
for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
|
||||
dosym ../local/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
|
||||
/usr/lib64/libgsk8${i}_64.so
|
||||
done
|
||||
for i in capicmd ver; do
|
||||
dosym ../local/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/${i}_64
|
||||
done
|
||||
fi
|
||||
|
||||
# Done with the postinstall scripts as the RPMs contain them.
|
||||
# Now on to some more Gentoo-specific installation.
|
||||
|
||||
use amd64 && mv "${D}usr/lib" "${D}usr/lib32"
|
||||
|
||||
fowners -R :tsm /opt/tivoli
|
||||
fperms -R g+rX,o-rX /opt/tivoli # Allow only tsm group users to access TSM tools
|
||||
fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
|
||||
|
||||
keepdir /var/log/tsm
|
||||
fowners :tsm /var/log/tsm
|
||||
fperms 2770 /var/log/tsm
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/tsm.logrotate" tsm
|
||||
|
||||
keepdir /etc/tivoli
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys"
|
||||
echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
|
||||
|
||||
# Added the hostname to be more friendly, the admin will need to edit this file anyway
|
||||
echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
|
||||
dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
|
||||
|
||||
# Setup the env
|
||||
dodir /etc/env.d
|
||||
ENV_FILE="${D}/etc/env.d/80tivoli"
|
||||
echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
|
||||
echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
|
||||
echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
|
||||
newconfd "${FILESDIR}/dsmc.conf.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmc.init.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
|
||||
|
||||
elog
|
||||
elog "Note that you have to be either root or member of the group tsm to be able to use the"
|
||||
elog "Tivoli Storage Manager client."
|
||||
elog
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local i
|
||||
for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
|
||||
if [[ ! -e $i ]]; then
|
||||
touch $i
|
||||
chown :tsm $i
|
||||
chmod 0660 $i
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
pax-mark psme /opt/tivoli/tsm/client/ba/bin/dsmc
|
||||
# most likely some of the other executables (e.g. dsm) need this as well, but I
|
||||
# cannot test it at the moment. - dilfridge
|
||||
}
|
@ -1,238 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit versionator multilib eutils rpm user
|
||||
|
||||
DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
|
||||
HOMEPAGE="http://www.tivoli.com/"
|
||||
|
||||
MY_PV_MAJOR=$(get_major_version)
|
||||
MY_PV_MINOR=$(get_version_component_range 2)
|
||||
MY_PV_TINY=$(get_version_component_range 3)
|
||||
MY_PV_PATCH=$(get_version_component_range 4)
|
||||
|
||||
MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
|
||||
MY_PVR_ALLDOTS=${PV}
|
||||
|
||||
if [[ ${MY_PV_PATCH} == 0 ]]; then
|
||||
MY_RELEASE_PATH=maintenance
|
||||
else
|
||||
MY_RELEASE_PATH=patches
|
||||
fi
|
||||
BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/"
|
||||
BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/"
|
||||
BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/"
|
||||
SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
|
||||
SRC_URI="${BASE_URI}${SRC_TAR}"
|
||||
|
||||
RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so
|
||||
LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
|
||||
dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
|
||||
ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
|
||||
|| ( BSD GPL-2+ ) gSOAP libpng tsm"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 -*"
|
||||
IUSE="acl java +tsm_cit +tsm_hw"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT
|
||||
ja:JA_JP ko:KO_KR pl:PL_PL pt:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
|
||||
MY_LANG_PV="${MY_PVR_ALLDOTS}-"
|
||||
for lang in ${MY_LANGS}; do
|
||||
IUSE="${IUSE} linguas_${lang%:*}"
|
||||
SRC_URI="${SRC_URI} linguas_${lang%:*}? ( \
|
||||
${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \
|
||||
${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )"
|
||||
done
|
||||
unset lang
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="dev-libs/expat
|
||||
dev-libs/libxml2
|
||||
=sys-fs/fuse-2*
|
||||
acl? ( sys-apps/acl )
|
||||
java? ( virtual/jre:1.6 )"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup tsm
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local rpm rpms lang
|
||||
unpack ${SRC_TAR}
|
||||
|
||||
for rpm in *.rpm; do
|
||||
case ${rpm} in
|
||||
TIVsm-APIcit.*|TIVsm-BAcit.*)
|
||||
use tsm_cit && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
TIVsm-BAhdw.*)
|
||||
use tsm_hw && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
TIVsm-JBB.*|*-filepath-*)
|
||||
# "journal based backup" for all filesystems
|
||||
# requires a kernel module.
|
||||
# "Linux Filepath source code" available
|
||||
# by request from vendor
|
||||
;;
|
||||
*)
|
||||
rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
for rpm in ${A}; do
|
||||
case ${rpm} in
|
||||
*.rpm)
|
||||
rpms="${rpms} ${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
rpm_unpack ${rpms}
|
||||
|
||||
# Avoid strange error messages caused by read-only files
|
||||
chmod -R u+w "${S}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Avoid unnecessary dependency on ksh
|
||||
sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
|
||||
opt/tivoli/tsm/client/ba/bin/dsmj || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp -a opt "${D}" || die
|
||||
cp -a usr "${D}" || die
|
||||
|
||||
# The RPM files contain postinstall scripts which can be extracted
|
||||
# e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
|
||||
# Below we try to mimic the behaviour of these scripts.
|
||||
# We don't deal with SELinux compliance (yet), though.
|
||||
local RPM_INSTALL_PREFIX CLIENTDIR TIVINV_DIR TIVINVFILE i
|
||||
RPM_INSTALL_PREFIX=/opt
|
||||
CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
|
||||
|
||||
# We don't bother setting timestamps to build dates.
|
||||
# But we should delete the corresponding files.
|
||||
rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate || die
|
||||
rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate || die
|
||||
rm -f "${D}"$CLIENTDIR/lang/.buildDate || die
|
||||
|
||||
# Create links for messages; this is spread over several postin scripts.
|
||||
for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do
|
||||
dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
|
||||
dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
|
||||
done
|
||||
|
||||
# Mimic TIVsm-API64 postinstall script
|
||||
for i in libgpfs.so libdmapi.so; do
|
||||
dosym ../..$CLIENTDIR/api/bin64/${i} /usr/lib64/${i}
|
||||
done
|
||||
|
||||
# Mimic TIVsm-BA postinstall script
|
||||
# Create Tivoli Inventory file
|
||||
TIVINV_DIR="/opt/tivoli/tsm/tivinv"
|
||||
TIVINVFILE="TIVTSMBAC0603.SYS2"
|
||||
dodir $TIVINV_DIR
|
||||
echo " " \
|
||||
> "${D}$TIVINV_DIR/$TIVINVFILE"
|
||||
fperms 555 $TIVINV_DIR/$TIVINVFILE
|
||||
|
||||
# Create a link to libexpat if needed
|
||||
if [ ! -e "${ROOT}"/usr/lib64/libexpat.so.0 -a -e "${ROOT}"/usr/lib64/libexpat.so.1 ]
|
||||
then
|
||||
dosym /usr/lib64/libexpat.so.1 $CLIENTDIR/ba/bin/libexpat.so.0
|
||||
fi
|
||||
|
||||
# The gscrypt64 postinstall script only deals with s390[x] SELinux.
|
||||
|
||||
# Mimic gskssl64 postinstall script
|
||||
for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
|
||||
dosym ../local/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
|
||||
/usr/lib64/libgsk8${i}_64.so
|
||||
done
|
||||
for i in capicmd ver; do
|
||||
dosym ../local/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/${i}_64
|
||||
done
|
||||
|
||||
# Done with the postinstall scripts as the RPMs contain them.
|
||||
# Now on to some more Gentoo-specific installation.
|
||||
|
||||
[[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system"
|
||||
|
||||
# Avoid "QA Notice: Found an absolute symlink in a library directory"
|
||||
local target
|
||||
find "${D}"usr/lib* -lname '/*' | while read i; do
|
||||
target=$(readlink "${i}")
|
||||
rm -v "${i}" || die
|
||||
dosym "../..${target}" "${i#${D}}"
|
||||
done
|
||||
|
||||
# Install symlinks for sonames of libraries, bug #416503
|
||||
dosym libvixMntapi.so.1.1.0 $CLIENTDIR/ba/bin/libvixMntapi.so.1
|
||||
dosym libvixDiskLibVim.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLibVim.so.5
|
||||
dosym libvixDiskLib.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLib.so.5
|
||||
|
||||
fowners -R :tsm /opt/tivoli
|
||||
fperms -R g+rX,o-rx /opt/tivoli # Allow only tsm group users to access TSM tools
|
||||
fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
|
||||
|
||||
keepdir /var/log/tsm
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/tsm.logrotate" tsm
|
||||
|
||||
keepdir /etc/tivoli
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die
|
||||
echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
|
||||
|
||||
# Added the hostname to be more friendly, the admin will need to edit this file anyway
|
||||
echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
|
||||
dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
|
||||
|
||||
# Setup the env
|
||||
dodir /etc/env.d
|
||||
ENV_FILE="${D}/etc/env.d/80tivoli"
|
||||
echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
|
||||
echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
|
||||
echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
|
||||
newconfd "${FILESDIR}/dsmc.conf.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmc.init.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
|
||||
|
||||
elog
|
||||
elog "Note that you have to be either root or member of the group tsm to"
|
||||
elog "be able to use the Tivoli Storage Manager client."
|
||||
elog
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local i
|
||||
for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
|
||||
if [[ ! -e $i ]]; then
|
||||
touch $i || die
|
||||
chown :tsm $i || die
|
||||
chmod 0660 $i || die
|
||||
fi
|
||||
done
|
||||
|
||||
# Bug #375041: the log directory itself should not be world writable.
|
||||
# Have to do this in postinst due to bug #141619
|
||||
chown root:tsm /var/log/tsm || die
|
||||
chmod 0750 /var/log/tsm || die
|
||||
}
|
@ -1,238 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit versionator multilib eutils rpm user
|
||||
|
||||
DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
|
||||
HOMEPAGE="http://www.tivoli.com/"
|
||||
|
||||
MY_PV_MAJOR=$(get_major_version)
|
||||
MY_PV_MINOR=$(get_version_component_range 2)
|
||||
MY_PV_TINY=$(get_version_component_range 3)
|
||||
MY_PV_PATCH=$(get_version_component_range 4)
|
||||
|
||||
MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
|
||||
MY_PVR_ALLDOTS=${PV}
|
||||
|
||||
if [[ ${MY_PV_PATCH} == 0 ]]; then
|
||||
MY_RELEASE_PATH=maintenance
|
||||
else
|
||||
MY_RELEASE_PATH=patches
|
||||
fi
|
||||
BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/"
|
||||
BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/"
|
||||
BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/"
|
||||
SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
|
||||
SRC_URI="${BASE_URI}${SRC_TAR}"
|
||||
|
||||
RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so
|
||||
LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
|
||||
dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
|
||||
ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
|
||||
|| ( BSD GPL-2+ ) gSOAP libpng tsm"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 -*"
|
||||
IUSE="acl java +tsm_cit +tsm_hw"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT
|
||||
ja:JA_JP ko:KO_KR pl:PL_PL pt:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
|
||||
MY_LANG_PV="${MY_PVR_ALLDOTS}-"
|
||||
for lang in ${MY_LANGS}; do
|
||||
IUSE="${IUSE} linguas_${lang%:*}"
|
||||
SRC_URI="${SRC_URI} linguas_${lang%:*}? ( \
|
||||
${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \
|
||||
${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )"
|
||||
done
|
||||
unset lang
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="dev-libs/expat
|
||||
dev-libs/libxml2
|
||||
=sys-fs/fuse-2*
|
||||
acl? ( sys-apps/acl )
|
||||
java? ( virtual/jre:1.6 )"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup tsm
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local rpm rpms lang
|
||||
unpack ${SRC_TAR}
|
||||
|
||||
for rpm in *.rpm; do
|
||||
case ${rpm} in
|
||||
TIVsm-APIcit.*|TIVsm-BAcit.*)
|
||||
use tsm_cit && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
TIVsm-BAhdw.*)
|
||||
use tsm_hw && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
TIVsm-JBB.*|*-filepath-*)
|
||||
# "journal based backup" for all filesystems
|
||||
# requires a kernel module.
|
||||
# "Linux Filepath source code" available
|
||||
# by request from vendor
|
||||
;;
|
||||
*)
|
||||
rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
for rpm in ${A}; do
|
||||
case ${rpm} in
|
||||
*.rpm)
|
||||
rpms="${rpms} ${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
rpm_unpack ${rpms}
|
||||
|
||||
# Avoid strange error messages caused by read-only files
|
||||
chmod -R u+w "${S}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Avoid unnecessary dependency on ksh
|
||||
sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
|
||||
opt/tivoli/tsm/client/ba/bin/dsmj || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp -a opt "${D}" || die
|
||||
cp -a usr "${D}" || die
|
||||
|
||||
# The RPM files contain postinstall scripts which can be extracted
|
||||
# e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
|
||||
# Below we try to mimic the behaviour of these scripts.
|
||||
# We don't deal with SELinux compliance (yet), though.
|
||||
local RPM_INSTALL_PREFIX CLIENTDIR TIVINV_DIR TIVINVFILE i
|
||||
RPM_INSTALL_PREFIX=/opt
|
||||
CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
|
||||
|
||||
# We don't bother setting timestamps to build dates.
|
||||
# But we should delete the corresponding files.
|
||||
rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate || die
|
||||
rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate || die
|
||||
rm -f "${D}"$CLIENTDIR/lang/.buildDate || die
|
||||
|
||||
# Create links for messages; this is spread over several postin scripts.
|
||||
for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do
|
||||
dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
|
||||
dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
|
||||
done
|
||||
|
||||
# Mimic TIVsm-API64 postinstall script
|
||||
for i in libgpfs.so libdmapi.so; do
|
||||
dosym ../..$CLIENTDIR/api/bin64/${i} /usr/lib64/${i}
|
||||
done
|
||||
|
||||
# Mimic TIVsm-BA postinstall script
|
||||
# Create Tivoli Inventory file
|
||||
TIVINV_DIR="/opt/tivoli/tsm/tivinv"
|
||||
TIVINVFILE="TIVTSMBAC0603.SYS2"
|
||||
dodir $TIVINV_DIR
|
||||
echo " " \
|
||||
> "${D}$TIVINV_DIR/$TIVINVFILE"
|
||||
fperms 555 $TIVINV_DIR/$TIVINVFILE
|
||||
|
||||
# Create a link to libexpat if needed
|
||||
if [ ! -e "${ROOT}"/usr/lib64/libexpat.so.0 -a -e "${ROOT}"/usr/lib64/libexpat.so.1 ]
|
||||
then
|
||||
dosym /usr/lib64/libexpat.so.1 $CLIENTDIR/ba/bin/libexpat.so.0
|
||||
fi
|
||||
|
||||
# The gscrypt64 postinstall script only deals with s390[x] SELinux.
|
||||
|
||||
# Mimic gskssl64 postinstall script
|
||||
for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
|
||||
dosym ../local/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
|
||||
/usr/lib64/libgsk8${i}_64.so
|
||||
done
|
||||
for i in capicmd ver; do
|
||||
dosym ../local/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/${i}_64
|
||||
done
|
||||
|
||||
# Done with the postinstall scripts as the RPMs contain them.
|
||||
# Now on to some more Gentoo-specific installation.
|
||||
|
||||
[[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system"
|
||||
|
||||
# Avoid "QA Notice: Found an absolute symlink in a library directory"
|
||||
local target
|
||||
find "${D}"usr/lib* -lname '/*' | while read i; do
|
||||
target=$(readlink "${i}")
|
||||
rm -v "${i}" || die
|
||||
dosym "../..${target}" "${i#${D}}"
|
||||
done
|
||||
|
||||
# Install symlinks for sonames of libraries, bug #416503
|
||||
dosym libvixMntapi.so.1.1.0 $CLIENTDIR/ba/bin/libvixMntapi.so.1
|
||||
dosym libvixDiskLibVim.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLibVim.so.5
|
||||
dosym libvixDiskLib.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLib.so.5
|
||||
|
||||
fowners -R :tsm /opt/tivoli
|
||||
fperms -R g+rX,o-rx /opt/tivoli # Allow only tsm group users to access TSM tools
|
||||
fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
|
||||
|
||||
keepdir /var/log/tsm
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/tsm.logrotate" tsm
|
||||
|
||||
keepdir /etc/tivoli
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die
|
||||
echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
|
||||
|
||||
# Added the hostname to be more friendly, the admin will need to edit this file anyway
|
||||
echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
|
||||
dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
|
||||
|
||||
# Setup the env
|
||||
dodir /etc/env.d
|
||||
ENV_FILE="${D}/etc/env.d/80tivoli"
|
||||
echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
|
||||
echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
|
||||
echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
|
||||
newconfd "${FILESDIR}/dsmc.conf.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmc.init.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
|
||||
|
||||
elog
|
||||
elog "Note that you have to be either root or member of the group tsm to"
|
||||
elog "be able to use the Tivoli Storage Manager client."
|
||||
elog
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local i
|
||||
for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
|
||||
if [[ ! -e $i ]]; then
|
||||
touch $i || die
|
||||
chown :tsm $i || die
|
||||
chmod 0660 $i || die
|
||||
fi
|
||||
done
|
||||
|
||||
# Bug #375041: the log directory itself should not be world writable.
|
||||
# Have to do this in postinst due to bug #141619
|
||||
chown root:tsm /var/log/tsm || die
|
||||
chmod 0750 /var/log/tsm || die
|
||||
}
|
@ -1,234 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit versionator multilib eutils rpm user
|
||||
|
||||
DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
|
||||
HOMEPAGE="http://www.tivoli.com/"
|
||||
|
||||
MY_PV_MAJOR=$(get_major_version)
|
||||
MY_PV_MINOR=$(get_version_component_range 2)
|
||||
MY_PV_TINY=$(get_version_component_range 3)
|
||||
MY_PV_PATCH=$(get_version_component_range 4)
|
||||
|
||||
MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
|
||||
MY_PVR_ALLDOTS=${PV}
|
||||
|
||||
if [[ ${MY_PV_PATCH} == 0 ]]; then
|
||||
MY_RELEASE_PATH=maintenance
|
||||
else
|
||||
MY_RELEASE_PATH=patches
|
||||
fi
|
||||
BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/"
|
||||
BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/"
|
||||
BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/"
|
||||
SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
|
||||
SRC_URI="${BASE_URI}${SRC_TAR}"
|
||||
|
||||
RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so
|
||||
LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
|
||||
dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
|
||||
ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
|
||||
|| ( BSD GPL-2+ ) gSOAP libpng tsm"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 -*"
|
||||
IUSE="acl java +tsm_cit +tsm_hw"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT
|
||||
ja:JA_JP ko:KO_KR pl:PL_PL pt:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
|
||||
MY_LANG_PV="${MY_PVR_ALLDOTS}-"
|
||||
for lang in ${MY_LANGS}; do
|
||||
IUSE="${IUSE} linguas_${lang%:*}"
|
||||
SRC_URI="${SRC_URI} linguas_${lang%:*}? ( \
|
||||
${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \
|
||||
${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )"
|
||||
done
|
||||
unset lang
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="dev-libs/expat
|
||||
dev-libs/libxml2
|
||||
=sys-fs/fuse-2*
|
||||
acl? ( sys-apps/acl )
|
||||
java? ( virtual/jre:1.6 )"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup tsm
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local rpm rpms lang
|
||||
unpack ${SRC_TAR}
|
||||
|
||||
for rpm in *.rpm; do
|
||||
case ${rpm} in
|
||||
TIVsm-APIcit.*|TIVsm-BAcit.*)
|
||||
use tsm_cit && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
TIVsm-BAhdw.*)
|
||||
use tsm_hw && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
TIVsm-JBB.*|*-filepath-*)
|
||||
# "journal based backup" for all filesystems
|
||||
# requires a kernel module.
|
||||
# "Linux Filepath source code" available
|
||||
# by request from vendor
|
||||
;;
|
||||
*)
|
||||
rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
for rpm in ${A}; do
|
||||
case ${rpm} in
|
||||
*.rpm)
|
||||
rpms="${rpms} ${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
rpm_unpack ${rpms}
|
||||
|
||||
# Avoid strange error messages caused by read-only files
|
||||
chmod -R u+w "${S}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Avoid unnecessary dependency on ksh
|
||||
sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
|
||||
opt/tivoli/tsm/client/ba/bin/dsmj || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp -a opt "${D}" || die
|
||||
cp -a usr "${D}" || die
|
||||
|
||||
# The RPM files contain postinstall scripts which can be extracted
|
||||
# e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
|
||||
# Below we try to mimic the behaviour of these scripts.
|
||||
# We don't deal with SELinux compliance (yet), though.
|
||||
local RPM_INSTALL_PREFIX CLIENTDIR i
|
||||
RPM_INSTALL_PREFIX=/opt
|
||||
CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
|
||||
|
||||
# We don't bother setting timestamps to build dates.
|
||||
# But we should delete the corresponding files.
|
||||
rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate || die
|
||||
rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate || die
|
||||
rm -f "${D}"$CLIENTDIR/lang/.buildDate || die
|
||||
|
||||
# Create links for messages; this is spread over several postin scripts.
|
||||
for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do
|
||||
dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
|
||||
dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
|
||||
done
|
||||
|
||||
# Mimic TIVsm-API64 postinstall script
|
||||
for i in libgpfs.so libdmapi.so; do
|
||||
dosym ../..$CLIENTDIR/api/bin64/${i} /usr/lib64/${i}
|
||||
done
|
||||
|
||||
# Mimic TIVsm-BA postinstall script
|
||||
# Create a link to libexpat if needed
|
||||
if [ ! -e "${ROOT}"/usr/lib64/libexpat.so.0 -a -e "${ROOT}"/usr/lib64/libexpat.so.1 ]
|
||||
then
|
||||
dosym /usr/lib64/libexpat.so.1 $CLIENTDIR/ba/bin/libexpat.so.0
|
||||
fi
|
||||
|
||||
# The gscrypt64 postinstall script only deals with s390[x] SELinux.
|
||||
|
||||
# Move stuff from /usr/local to /opt, #452332
|
||||
mv "${D}"/usr/local/ibm "${D}"/opt/ || die
|
||||
rmdir "${D}"/usr/local || die
|
||||
|
||||
# Mimic gskssl64 postinstall script
|
||||
for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
|
||||
dosym ../../opt/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
|
||||
/usr/lib64/libgsk8${i}_64.so
|
||||
done
|
||||
for i in capicmd ver; do
|
||||
dosym ../local/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/${i}_64
|
||||
done
|
||||
|
||||
# Done with the postinstall scripts as the RPMs contain them.
|
||||
# Now on to some more Gentoo-specific installation.
|
||||
|
||||
[[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system"
|
||||
|
||||
# Avoid "QA Notice: Found an absolute symlink in a library directory"
|
||||
local target
|
||||
find "${D}"usr/lib* -lname '/*' | while read i; do
|
||||
target=$(readlink "${i}")
|
||||
rm -v "${i}" || die
|
||||
dosym "../..${target}" "${i#${D}}"
|
||||
done
|
||||
|
||||
# Install symlinks for sonames of libraries, bug #416503
|
||||
dosym libvixMntapi.so.1.1.0 $CLIENTDIR/ba/bin/libvixMntapi.so.1
|
||||
dosym libvixDiskLibVim.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLibVim.so.5
|
||||
dosym libvixDiskLib.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLib.so.5
|
||||
|
||||
fowners -R :tsm /opt/tivoli
|
||||
fperms -R g+rX,o-rx /opt/tivoli # Allow only tsm group users to access TSM tools
|
||||
fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
|
||||
|
||||
keepdir /var/log/tsm
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/tsm.logrotate" tsm
|
||||
|
||||
keepdir /etc/tivoli
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die
|
||||
echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
|
||||
|
||||
# Added the hostname to be more friendly, the admin will need to edit this file anyway
|
||||
echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
|
||||
dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
|
||||
|
||||
# Setup the env
|
||||
dodir /etc/env.d
|
||||
ENV_FILE="${D}/etc/env.d/80tivoli"
|
||||
echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
|
||||
echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
|
||||
echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
|
||||
newconfd "${FILESDIR}/dsmc.conf.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmc.init.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
|
||||
|
||||
elog
|
||||
elog "Note that you have to be either root or member of the group tsm to"
|
||||
elog "be able to use the Tivoli Storage Manager client."
|
||||
elog
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local i
|
||||
for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
|
||||
if [[ ! -e $i ]]; then
|
||||
touch $i || die
|
||||
chown :tsm $i || die
|
||||
chmod 0660 $i || die
|
||||
fi
|
||||
done
|
||||
|
||||
# Bug #375041: the log directory itself should not be world writable.
|
||||
# Have to do this in postinst due to bug #141619
|
||||
chown root:tsm /var/log/tsm || die
|
||||
chmod 0750 /var/log/tsm || die
|
||||
}
|
@ -1,234 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit versionator multilib eutils rpm user
|
||||
|
||||
DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
|
||||
HOMEPAGE="http://www.tivoli.com/"
|
||||
|
||||
MY_PV_MAJOR=$(get_major_version)
|
||||
MY_PV_MINOR=$(get_version_component_range 2)
|
||||
MY_PV_TINY=$(get_version_component_range 3)
|
||||
MY_PV_PATCH=$(get_version_component_range 4)
|
||||
|
||||
MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
|
||||
MY_PVR_ALLDOTS=${PV}
|
||||
|
||||
if [[ ${MY_PV_PATCH} == 0 ]]; then
|
||||
MY_RELEASE_PATH=maintenance
|
||||
else
|
||||
MY_RELEASE_PATH=patches
|
||||
fi
|
||||
BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/"
|
||||
BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/"
|
||||
BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/"
|
||||
SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
|
||||
SRC_URI="${BASE_URI}${SRC_TAR}"
|
||||
|
||||
RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so
|
||||
LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
|
||||
dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
|
||||
ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
|
||||
|| ( BSD GPL-2+ ) gSOAP libpng tsm"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 -*"
|
||||
IUSE="acl java +tsm_cit +tsm_hw"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT
|
||||
ja:JA_JP ko:KO_KR pl:PL_PL pt:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
|
||||
MY_LANG_PV="${MY_PVR_ALLDOTS}-"
|
||||
for lang in ${MY_LANGS}; do
|
||||
IUSE="${IUSE} linguas_${lang%:*}"
|
||||
SRC_URI="${SRC_URI} linguas_${lang%:*}? ( \
|
||||
${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \
|
||||
${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )"
|
||||
done
|
||||
unset lang
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="dev-libs/expat
|
||||
dev-libs/libxml2
|
||||
=sys-fs/fuse-2*
|
||||
acl? ( sys-apps/acl )
|
||||
java? ( virtual/jre:1.6 )"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup tsm
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local rpm rpms lang
|
||||
unpack ${SRC_TAR}
|
||||
|
||||
for rpm in *.rpm; do
|
||||
case ${rpm} in
|
||||
TIVsm-APIcit.*|TIVsm-BAcit.*)
|
||||
use tsm_cit && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
TIVsm-BAhdw.*)
|
||||
use tsm_hw && rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
TIVsm-JBB.*|*-filepath-*)
|
||||
# "journal based backup" for all filesystems
|
||||
# requires a kernel module.
|
||||
# "Linux Filepath source code" available
|
||||
# by request from vendor
|
||||
;;
|
||||
*)
|
||||
rpms="${rpms} ./${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
for rpm in ${A}; do
|
||||
case ${rpm} in
|
||||
*.rpm)
|
||||
rpms="${rpms} ${rpm}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
rpm_unpack ${rpms}
|
||||
|
||||
# Avoid strange error messages caused by read-only files
|
||||
chmod -R u+w "${S}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Avoid unnecessary dependency on ksh
|
||||
sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
|
||||
opt/tivoli/tsm/client/ba/bin/dsmj || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp -a opt "${D}" || die
|
||||
cp -a usr "${D}" || die
|
||||
|
||||
# The RPM files contain postinstall scripts which can be extracted
|
||||
# e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
|
||||
# Below we try to mimic the behaviour of these scripts.
|
||||
# We don't deal with SELinux compliance (yet), though.
|
||||
local RPM_INSTALL_PREFIX CLIENTDIR i
|
||||
RPM_INSTALL_PREFIX=/opt
|
||||
CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
|
||||
|
||||
# We don't bother setting timestamps to build dates.
|
||||
# But we should delete the corresponding files.
|
||||
rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate || die
|
||||
rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate || die
|
||||
rm -f "${D}"$CLIENTDIR/lang/.buildDate || die
|
||||
|
||||
# Create links for messages; this is spread over several postin scripts.
|
||||
for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do
|
||||
dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
|
||||
dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
|
||||
done
|
||||
|
||||
# Mimic TIVsm-API64 postinstall script
|
||||
for i in libgpfs.so libdmapi.so; do
|
||||
dosym ../..$CLIENTDIR/api/bin64/${i} /usr/lib64/${i}
|
||||
done
|
||||
|
||||
# Mimic TIVsm-BA postinstall script
|
||||
# Create a link to libexpat if needed
|
||||
if [ ! -e "${ROOT}"/usr/lib64/libexpat.so.0 -a -e "${ROOT}"/usr/lib64/libexpat.so.1 ]
|
||||
then
|
||||
dosym /usr/lib64/libexpat.so.1 $CLIENTDIR/ba/bin/libexpat.so.0
|
||||
fi
|
||||
|
||||
# The gscrypt64 postinstall script only deals with s390[x] SELinux.
|
||||
|
||||
# Move stuff from /usr/local to /opt, #452332
|
||||
mv "${D}"/usr/local/ibm "${D}"/opt/ || die
|
||||
rmdir "${D}"/usr/local || die
|
||||
|
||||
# Mimic gskssl64 postinstall script
|
||||
for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
|
||||
dosym ../../opt/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
|
||||
/usr/lib64/libgsk8${i}_64.so
|
||||
done
|
||||
for i in capicmd ver; do
|
||||
dosym ../local/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/${i}_64
|
||||
done
|
||||
|
||||
# Done with the postinstall scripts as the RPMs contain them.
|
||||
# Now on to some more Gentoo-specific installation.
|
||||
|
||||
[[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system"
|
||||
|
||||
# Avoid "QA Notice: Found an absolute symlink in a library directory"
|
||||
local target
|
||||
find "${D}"usr/lib* -lname '/*' | while read i; do
|
||||
target=$(readlink "${i}")
|
||||
rm -v "${i}" || die
|
||||
dosym "../..${target}" "${i#${D}}"
|
||||
done
|
||||
|
||||
# Install symlinks for sonames of libraries, bug #416503
|
||||
dosym libvixMntapi.so.1.1.0 $CLIENTDIR/ba/bin/libvixMntapi.so.1
|
||||
dosym libvixDiskLibVim.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLibVim.so.5
|
||||
dosym libvixDiskLib.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLib.so.5
|
||||
|
||||
fowners -R :tsm /opt/tivoli
|
||||
fperms -R g+rX,o-rx /opt/tivoli # Allow only tsm group users to access TSM tools
|
||||
fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
|
||||
|
||||
keepdir /var/log/tsm
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/tsm.logrotate" tsm
|
||||
|
||||
keepdir /etc/tivoli
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die
|
||||
echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
|
||||
|
||||
# Added the hostname to be more friendly, the admin will need to edit this file anyway
|
||||
echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
|
||||
dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
|
||||
|
||||
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
|
||||
dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
|
||||
|
||||
# Setup the env
|
||||
dodir /etc/env.d
|
||||
ENV_FILE="${D}/etc/env.d/80tivoli"
|
||||
echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
|
||||
echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
|
||||
echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
|
||||
|
||||
newconfd "${FILESDIR}/dsmc.conf.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmc.init.d" dsmc
|
||||
newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
|
||||
|
||||
elog
|
||||
elog "Note that you have to be either root or member of the group tsm to"
|
||||
elog "be able to use the Tivoli Storage Manager client."
|
||||
elog
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local i
|
||||
for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
|
||||
if [[ ! -e $i ]]; then
|
||||
touch $i || die
|
||||
chown :tsm $i || die
|
||||
chmod 0660 $i || die
|
||||
fi
|
||||
done
|
||||
|
||||
# Bug #375041: the log directory itself should not be world writable.
|
||||
# Have to do this in postinst due to bug #141619
|
||||
chown root:tsm /var/log/tsm || die
|
||||
chmod 0750 /var/log/tsm || die
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
include sysmacros.h explicitly for major()/minor()/etc...
|
||||
|
||||
--- a/growisofs.c
|
||||
+++ b/growisofs.c
|
||||
@@ -408,6 +408,7 @@
|
||||
# ifndef _GNU_SOURCE
|
||||
# define _GNU_SOURCE
|
||||
# endif
|
||||
+# include <sys/sysmacros.h>
|
||||
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || \
|
||||
(defined(__APPLE__) && defined(__MACH__))
|
||||
# define off64_t off_t
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="The GNU Emacs Lisp Reference Manual"
|
||||
HOMEPAGE="https://www.gnu.org/software/emacs/manual/"
|
||||
# taken from doc/lispref/ of emacs-${PV}
|
||||
SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz"
|
||||
|
||||
LICENSE="FDL-1.3+"
|
||||
SLOT="24"
|
||||
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
|
||||
|
||||
DEPEND="app-arch/xz-utils
|
||||
sys-apps/texinfo"
|
||||
|
||||
S="${WORKDIR}/lispref"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-direntry.patch"
|
||||
echo "@set EMACSVER ${PV}" >emacsver.texi || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
makeinfo elisp.texi || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doinfo elisp${SLOT}.info*
|
||||
dodoc ChangeLog README
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
--- lispref-orig/elisp.texi
|
||||
+++ lispref/elisp.texi
|
||||
@@ -1,6 +1,6 @@
|
||||
\input texinfo @c -*-texinfo-*-
|
||||
@c %**start of header
|
||||
-@setfilename elisp
|
||||
+@setfilename elisp24.info
|
||||
|
||||
@ifset VOL1
|
||||
@set volflag
|
||||
@@ -117,9 +117,9 @@
|
||||
|
||||
@documentencoding UTF-8
|
||||
|
||||
-@dircategory Emacs lisp
|
||||
+@dircategory Emacs
|
||||
@direntry
|
||||
-* Elisp: (elisp). The Emacs Lisp Reference Manual.
|
||||
+* Elisp 24: (elisp24). The Emacs Lisp Reference Manual for Emacs 24.
|
||||
@end direntry
|
||||
|
||||
@titlepage
|
@ -0,0 +1,63 @@
|
||||
Index: nedit-5.5/source/file.c
|
||||
===================================================================
|
||||
--- nedit-5.5.orig/source/file.c 2004-08-24 11:37:24.000000000 +0200
|
||||
+++ nedit-5.5/source/file.c 2010-03-27 18:44:01.000000000 +0100
|
||||
@@ -1314,7 +1314,7 @@
|
||||
*/
|
||||
void PrintString(const char *string, int length, Widget parent, const char *jobName)
|
||||
{
|
||||
- char tmpFileName[L_tmpnam]; /* L_tmpnam defined in stdio.h */
|
||||
+ char *tmpFileName=strdup("/tmp/neditXXXXXX");
|
||||
FILE *fp;
|
||||
int fd;
|
||||
|
||||
@@ -1325,14 +1325,10 @@
|
||||
1. Create a filename
|
||||
2. Open the file with the O_CREAT|O_EXCL flags
|
||||
So all an attacker can do is a DoS on the print function. */
|
||||
- tmpnam(tmpFileName);
|
||||
+ fd = mkstemp(tmpFileName);
|
||||
|
||||
/* open the temporary file */
|
||||
-#ifdef VMS
|
||||
- if ((fp = fopen(tmpFileName, "w", "rfm = stmlf")) == NULL)
|
||||
-#else
|
||||
- if ((fd = open(tmpFileName, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR | S_IWUSR)) < 0 || (fp = fdopen(fd, "w")) == NULL)
|
||||
-#endif /* VMS */
|
||||
+ if ((fp = fdopen(fd, "w")) == NULL)
|
||||
{
|
||||
DialogF(DF_WARN, parent, 1, "Error while Printing",
|
||||
"Unable to write file for printing:\n%s", "OK",
|
||||
@@ -1346,7 +1342,7 @@
|
||||
|
||||
/* write to the file */
|
||||
#ifdef IBM_FWRITE_BUG
|
||||
- write(fileno(fp), string, length);
|
||||
+ write(fd, string, length);
|
||||
#else
|
||||
fwrite(string, sizeof(char), length, fp);
|
||||
#endif
|
||||
@@ -1356,6 +1352,7 @@
|
||||
"%s not printed:\n%s", "OK", jobName, errorString());
|
||||
fclose(fp); /* should call close(fd) in turn! */
|
||||
remove(tmpFileName);
|
||||
+ free(tmpFileName);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1366,6 +1363,7 @@
|
||||
"Error closing temp. print file:\n%s", "OK",
|
||||
errorString());
|
||||
remove(tmpFileName);
|
||||
+ free(tmpFileName);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1377,6 +1375,7 @@
|
||||
PrintFile(parent, tmpFileName, jobName);
|
||||
remove(tmpFileName);
|
||||
#endif /*VMS*/
|
||||
+ free(tmpFileName);
|
||||
return;
|
||||
}
|
||||
|
@ -0,0 +1,63 @@
|
||||
Index: nedit-5.5/source/file.c
|
||||
===================================================================
|
||||
--- nedit-5.5.orig/source/file.c 2004-08-24 11:37:24.000000000 +0200
|
||||
+++ nedit-5.5/source/file.c 2010-03-27 18:44:01.000000000 +0100
|
||||
@@ -1314,7 +1314,7 @@
|
||||
*/
|
||||
void PrintString(const char *string, int length, Widget parent, const char *jobName)
|
||||
{
|
||||
- char tmpFileName[L_tmpnam]; /* L_tmpnam defined in stdio.h */
|
||||
+ char *tmpFileName=strdup("/tmp/neditXXXXXX");
|
||||
FILE *fp;
|
||||
int fd;
|
||||
|
||||
@@ -1325,14 +1325,10 @@
|
||||
1. Create a filename
|
||||
2. Open the file with the O_CREAT|O_EXCL flags
|
||||
So all an attacker can do is a DoS on the print function. */
|
||||
- tmpnam(tmpFileName);
|
||||
+ fd = mkstemp(tmpFileName);
|
||||
|
||||
/* open the temporary file */
|
||||
-#ifdef VMS
|
||||
- if ((fp = fopen(tmpFileName, "w", "rfm = stmlf")) == NULL)
|
||||
-#else
|
||||
- if ((fd = open(tmpFileName, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR | S_IWUSR)) < 0 || (fp = fdopen(fd, "w")) == NULL)
|
||||
-#endif /* VMS */
|
||||
+ if ((fp = fdopen(fd, "w")) == NULL)
|
||||
{
|
||||
DialogF(DF_WARN, parent, 1, "Error while Printing",
|
||||
"Unable to write file for printing:\n%s", "OK",
|
||||
@@ -1346,7 +1342,7 @@
|
||||
|
||||
/* write to the file */
|
||||
#ifdef IBM_FWRITE_BUG
|
||||
- write(fileno(fp), string, length);
|
||||
+ write(fd, string, length);
|
||||
#else
|
||||
fwrite(string, sizeof(char), length, fp);
|
||||
#endif
|
||||
@@ -1356,6 +1352,7 @@
|
||||
"%s not printed:\n%s", "OK", jobName, errorString());
|
||||
fclose(fp); /* should call close(fd) in turn! */
|
||||
remove(tmpFileName);
|
||||
+ free(tmpFileName);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1366,6 +1363,7 @@
|
||||
"Error closing temp. print file:\n%s", "OK",
|
||||
errorString());
|
||||
remove(tmpFileName);
|
||||
+ free(tmpFileName);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1377,6 +1375,7 @@
|
||||
PrintFile(parent, tmpFileName, jobName);
|
||||
remove(tmpFileName);
|
||||
#endif /*VMS*/
|
||||
+ free(tmpFileName);
|
||||
return;
|
||||
}
|
||||
|
After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.9 KiB |
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Multi-purpose text editor for the X Window System"
|
||||
HOMEPAGE="http://nedit.org/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
|
||||
RDEPEND=">=x11-libs/motif-2.3:0
|
||||
x11-libs/libXp
|
||||
x11-libs/libXpm
|
||||
x11-libs/libXt
|
||||
x11-libs/libX11"
|
||||
DEPEND="${RDEPEND}
|
||||
|| ( dev-util/yacc sys-devel/bison )
|
||||
dev-lang/perl"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
src_prepare() {
|
||||
#respecting LDFLAGS, bug #208189
|
||||
epatch \
|
||||
"${FILESDIR}"/nedit-5.5_p20090914-ldflags.patch \
|
||||
"${FILESDIR}"/${P}-40_Pointer_to_Integer.patch \
|
||||
"${FILESDIR}"/${P}-security.patch
|
||||
|
||||
sed \
|
||||
-e "s:bin/:${EPREFIX}/bin/:g" \
|
||||
-i Makefile source/preferences.c source/help_data.h source/nedit.c Xlt/Makefile || die
|
||||
sed \
|
||||
-e "s:nc:neditc:g" -i doc/nc.pod || die
|
||||
sed -i -e "s:CFLAGS=-O:CFLAGS=${CFLAGS}:" -e "s:check_tif_rule::" \
|
||||
makefiles/Makefile.linux || die
|
||||
sed -i -e "s:CFLAGS=-O:CFLAGS=${CFLAGS}:" \
|
||||
-e "s:MOTIFDIR=/usr/local:MOTIFDIR=${EPREFIX}/usr:" \
|
||||
-e "s:-lX11:-lX11 -lXmu -liconv:" \
|
||||
-e "s:check_tif_rule::" \
|
||||
makefiles/Makefile.macosx || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
|
||||
src_compile() {
|
||||
case "${CHOST}" in
|
||||
*-darwin*)
|
||||
emake CC="$(tc-getCC)" AR="$(tc-getAR)" macosx
|
||||
;;
|
||||
*-linux*)
|
||||
emake CC="$(tc-getCC)" AR="$(tc-getAR)" linux
|
||||
;;
|
||||
esac
|
||||
emake VERSION="NEdit ${PV}" -j1 -C doc all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin source/nedit
|
||||
newbin source/nc neditc
|
||||
|
||||
make_desktop_entry "${PN}"
|
||||
doicon "${FILESDIR}/${PN}.png"
|
||||
|
||||
newman doc/nedit.man nedit.1
|
||||
newman doc/nc.man neditc.1
|
||||
|
||||
dodoc README ReleaseNotes ChangeLog
|
||||
dodoc doc/nedit.doc doc/NEdit.ad doc/faq.txt
|
||||
dohtml doc/nedit.html
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST ebuild-mode-1.28.tar.xz 29028 SHA256 1b255ed1048c4ca3331e0c445759030d27d746d0ef98c0fbd043b4916b9a49a0 SHA512 b44805b81639dfe6e092dc6ab0c469374cb66cb7b63e9decf499859b02f45a9080f7f39cd2d0883f66d219368ce0ad25ce61bac7b5053583847589f1ca590db9 WHIRLPOOL 141e3697dac006a5908194ce5a2d35e07d656fbfe847256cc6c2178a6ebbc08c462ba709980c926cd29e48e274f3abf1a6d8cd81c3a7263051d6fcde3efa9192
|
||||
DIST ebuild-mode-1.29.tar.xz 29296 SHA256 d4f095b1e58f7182218caa2d5839c0dec3eeb4f10386d846a36a895bcb979190 SHA512 bf81a5af269db49c2e9907daf7fc5d457ac07a5b9d921aa8084a55fc9065d71d114ea4210fba393b791e2473d5ab8bf37c2af2724f889061537e37e383574344 WHIRLPOOL 7e6167c79c5a22c9eab1ba91244f8ac18343092b459e8f8aa38308cd4003ec510e8be88d79e44c6432737816679b1c48491d1f3095c4f891eae499ee025c5018
|
||||
|
@ -1,21 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit readme.gentoo elisp
|
||||
|
||||
DESCRIPTION="Emacs modes for editing ebuilds and other Gentoo specific files"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
|
||||
SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
|
||||
DOCS="ChangeLog keyword-generation.sh"
|
||||
ELISP_TEXINFO="${PN}.texi"
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
DOC_CONTENTS="Some optional features may require installation of additional
|
||||
packages, like app-portage/gentoolkit-dev for echangelog."
|
@ -0,0 +1,235 @@
|
||||
#!/sbin/runscript
|
||||
|
||||
description="Virtual Machine Management (libvirt) Guests"
|
||||
|
||||
depend() {
|
||||
use libvirtd
|
||||
}
|
||||
|
||||
# set the default to QEMU
|
||||
[ -z "${LIBVIRT_URIS}" ] && LIBVIRT_URIS="qemu:///system"
|
||||
|
||||
# default to suspending the VM via managedsave
|
||||
case "${LIBVIRT_SHUTDOWN}" in
|
||||
managedsave|shutdown|destroy) ;;
|
||||
*) LIBVIRT_SHUTDOWN="managedsave" ;;
|
||||
esac
|
||||
|
||||
# default to 500 seconds
|
||||
[ -z ${LIBVIRT_MAXWAIT} ] && LIBVIRT_MAXWAIT=500
|
||||
|
||||
gueststatefile="/var/lib/libvirt/libvirt-guests.state"
|
||||
netstatefile="/var/lib/libvirt/libvirt-net.state"
|
||||
|
||||
do_virsh() {
|
||||
local hvuri=$1
|
||||
shift
|
||||
|
||||
# if unset, default to qemu
|
||||
[ -z ${hvuri} ] && hvuri="qemu:///system"
|
||||
# if only qemu was supplied then correct the value
|
||||
[ "xqemu" = x${hvuri} ] && hvuri="qemu:///system"
|
||||
|
||||
# Silence errors because virsh always throws an error about
|
||||
# not finding the hypervisor version when connecting to libvirtd
|
||||
# lastly strip the blank line at the end
|
||||
LC_ALL=C virsh -c ${hvuri} "$@" 2>/dev/null | head -n -1
|
||||
}
|
||||
|
||||
libvirtd_dom_list() {
|
||||
# Only work with domains by their UUIDs
|
||||
local hvuri=$1
|
||||
shift
|
||||
|
||||
do_virsh "${hvuri}" list --uuid $@
|
||||
}
|
||||
|
||||
libvirtd_dom_count() {
|
||||
local hvuri=$1
|
||||
shift
|
||||
|
||||
libvirtd_dom_list "${hvuri}" $@ | wc -l
|
||||
}
|
||||
|
||||
libvirtd_net_list() {
|
||||
# Only work with networks by their UUIDs
|
||||
local hvuri=$1
|
||||
shift
|
||||
|
||||
do_virsh "${hvuri}" net-list --uuid $@
|
||||
}
|
||||
|
||||
libvirtd_net_count() {
|
||||
local hvuri=$1
|
||||
shift
|
||||
|
||||
libvirtd_net_list "${hvuri}" $@ | wc -l
|
||||
}
|
||||
|
||||
libvirtd_dom_stop() {
|
||||
# stops all persistent or transient domains for a given URI
|
||||
# $1 - uri
|
||||
# $2 - persisent/transient
|
||||
|
||||
local uri=$1
|
||||
local persist=$2
|
||||
local shutdown_type=${LIBVIRT_SHUTDOWN}
|
||||
local counter=${LIBVIRT_MAXWAIT}
|
||||
local dom_name=
|
||||
local dom_as=
|
||||
local dom_ids=
|
||||
local uuid=
|
||||
local dom_count=
|
||||
|
||||
[ "${persist}" = "--transient" ] && shutdown_type="shutdown"
|
||||
[ -n "${counter}" ] || counter=500
|
||||
|
||||
einfo " Shutting down domain(s) ..."
|
||||
|
||||
# grab all persistent or transient domains running
|
||||
dom_ids=$(libvirtd_dom_list ${uri} ${persist})
|
||||
|
||||
for uuid in ${dom_ids}; do
|
||||
# Get the name
|
||||
dom_name=$(do_virsh ${uri} domname ${uuid})
|
||||
einfo " ${dom_name}"
|
||||
# Get autostart state
|
||||
dom_as=$(do_virsh ${uri} dominfo ${uuid} | \
|
||||
awk '$1 == "Autostart:" { print $2 }')
|
||||
|
||||
if [ "${persist}" = "--persistent" ]; then
|
||||
# Save our running state only if LIBVIRT_IGNORE_AUTOSTART != yes
|
||||
if [ "x${LIBVIRT_IGNORE_AUTOSTART}" = "xyes" ] && \
|
||||
[ ${dom_as} = "enabled" ]; then
|
||||
:
|
||||
else
|
||||
echo "${uri} ${uuid}" >> ${gueststatefile}
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# Now let's stop it
|
||||
do_virsh "${uri}" ${shutdown_type} ${uuid} > /dev/null
|
||||
|
||||
done
|
||||
|
||||
dom_count="$(libvirtd_dom_count ${uri} ${persist})"
|
||||
while [ ${dom_count} -gt 0 ] && [ ${counter} -gt 0 ] ; do
|
||||
dom_count="$(libvirtd_dom_count ${uri} ${persist})"
|
||||
sleep 1
|
||||
if [ "${shutdown_type}" = "shutdown" ]; then
|
||||
counter=$((${counter} - 1))
|
||||
fi
|
||||
echo -n "."
|
||||
done
|
||||
|
||||
if [ "${shutdown_type}" = "shutdown" ]; then
|
||||
# grab all domains still running
|
||||
dom_ids=$(libvirtd_dom_list ${uri} ${persist})
|
||||
for uuid in ${dom_ids}; do
|
||||
dom_name=$(do_virsh ${uri} domname ${uuid})
|
||||
eerror " ${dom_name} forcibly stopped"
|
||||
do_virsh "${uri}" destroy ${uuid} > /dev/null
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
libvirtd_net_stop() {
|
||||
# stops all persistent or transient domains for a given URI
|
||||
# $1 - uri
|
||||
# $2 - persisent/transient
|
||||
|
||||
local uri=$1
|
||||
local persist=$2
|
||||
local uuid=
|
||||
local net_name=
|
||||
|
||||
if [ "${LIBVIRT_NET_SHUTDOWN}" != "no" ]; then
|
||||
|
||||
einfo " Shutting down network(s):"
|
||||
for uuid in $(libvirtd_net_list ${uri} ${persist}); do
|
||||
net_name=$(do_virsh ${uri} net-name ${uuid})
|
||||
einfo " ${net_name}"
|
||||
|
||||
if [ "${persist}" = "--persistent" ]; then
|
||||
# Save our running state
|
||||
echo "${uri} ${uuid}" >> ${netstatefile}
|
||||
|
||||
fi
|
||||
|
||||
# Actually stop the network
|
||||
do_virsh qemu net-destroy ${uuid} > /dev/null
|
||||
done
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
start() {
|
||||
local uri=
|
||||
local uuid=
|
||||
local name=
|
||||
|
||||
for uri in ${LIBVIRT_URIS}; do
|
||||
do_virsh "${uri}" connect
|
||||
if [ $? -ne 0 ]; then
|
||||
eerror "Failed to connect to '${uri}'. Domains may not start."
|
||||
fi
|
||||
done
|
||||
|
||||
[ ! -e "${netstatefile}" ] && touch "${netstatefile}"
|
||||
[ ! -e "${gueststatefile}" ] && touch "${gueststatefile}"
|
||||
|
||||
# if the user didn't want to start any guests up then respect their wish
|
||||
[ "x${LIBVIRT_START}" = "xno" ] && return 0
|
||||
|
||||
# start networks
|
||||
ebegin "Starting libvirt networks"
|
||||
while read -r uri uuid
|
||||
do
|
||||
# ignore trash
|
||||
[ -z "${uri}" ] || [ -z "${uuid}" ] && continue
|
||||
|
||||
name=$(do_virsh "${uri}" net-name ${uuid})
|
||||
einfo " ${name}"
|
||||
do_virsh "${uri}" net-start ${uuid} > /dev/null
|
||||
done <"${netstatefile}"
|
||||
eend 0
|
||||
|
||||
# start domains
|
||||
ebegin "Starting libvirt domains"
|
||||
while read -r uri uuid
|
||||
do
|
||||
# ignore trash
|
||||
[ -z "${uri}" ] || [ -z "${uuid}" ] && continue
|
||||
|
||||
name=$(do_virsh "${uri}" domname ${uuid})
|
||||
einfo " ${name}"
|
||||
do_virsh "${uri}" start ${uuid} > /dev/null
|
||||
done <"${gueststatefile}"
|
||||
eend 0
|
||||
}
|
||||
|
||||
stop() {
|
||||
local counter=
|
||||
local dom_name=
|
||||
local net_name=
|
||||
local dom_ids=
|
||||
local uuid=
|
||||
local dom_count=
|
||||
|
||||
rm -f "${gueststatefile}"
|
||||
[ $? -ne 0 ] && eerror "Unable to save domain state"
|
||||
rm -f "${netstatefile}"
|
||||
[ $? -ne 0 ] && eerror "Unable to save net state"
|
||||
|
||||
for uri in ${LIBVIRT_URIS}; do
|
||||
einfo "Stopping libvirt domains and networks for ${uri}"
|
||||
|
||||
libvirtd_dom_stop "${uri}" "--persistent"
|
||||
libvirtd_dom_stop "${uri}" "--transient"
|
||||
libvirtd_net_stop "${uri}" "--persistent"
|
||||
libvirtd_net_stop "${uri}" "--transient"
|
||||
|
||||
einfo "Done stopping domains and networks for ${uri}"
|
||||
done
|
||||
}
|
@ -0,0 +1,385 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils user autotools-utils linux-info systemd readme.gentoo
|
||||
|
||||
BACKPORTS=""
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://libvirt.org/libvirt.git"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
SLOT="0"
|
||||
else
|
||||
# Versions with 4 numbers are stable updates:
|
||||
if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then
|
||||
SRC_URI="http://libvirt.org/sources/stable_updates/${P}.tar.gz"
|
||||
else
|
||||
SRC_URI="http://libvirt.org/sources/${P}.tar.gz"
|
||||
fi
|
||||
SRC_URI+=" ${BACKPORTS:+
|
||||
https://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz
|
||||
https://dev.gentoo.org/~tamiko/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0/${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="http://www.libvirt.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
IUSE="apparmor audit avahi +caps firewalld fuse glusterfs iscsi +libvirtd lvm \
|
||||
lxc +macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl \
|
||||
selinux systemd +udev uml +vepa virtualbox virt-network wireshark-plugins \
|
||||
xen"
|
||||
|
||||
REQUIRED_USE="
|
||||
firewalld? ( virt-network )
|
||||
libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
|
||||
lxc? ( caps libvirtd )
|
||||
openvz? ( libvirtd )
|
||||
qemu? ( libvirtd )
|
||||
uml? ( libvirtd )
|
||||
vepa? ( macvtap )
|
||||
virt-network? ( libvirtd )
|
||||
virtualbox? ( libvirtd )
|
||||
xen? ( libvirtd )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||
# we must go with the most recent
|
||||
RDEPEND="
|
||||
app-misc/scrub
|
||||
dev-libs/libgcrypt:0
|
||||
dev-libs/libnl:3
|
||||
>=dev-libs/libxml2-2.7.6
|
||||
>=net-analyzer/netcat6-1.0-r2
|
||||
>=net-libs/gnutls-1.0.25
|
||||
net-libs/libssh2
|
||||
>=net-misc/curl-7.18.0
|
||||
sys-apps/dmidecode
|
||||
>=sys-apps/util-linux-2.17
|
||||
sys-devel/gettext
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:=
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
audit? ( sys-process/audit )
|
||||
avahi? ( >=net-dns/avahi-0.6[dbus] )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
firewalld? ( net-firewall/firewalld )
|
||||
fuse? ( >=sys-fs/fuse-2.8.6 )
|
||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.1 )
|
||||
iscsi? ( sys-block/open-iscsi )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2 )
|
||||
lxc? ( !systemd? ( sys-power/pm-utils ) )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? (
|
||||
>sys-process/numactl-2.0.2
|
||||
sys-process/numad
|
||||
)
|
||||
openvz? ( sys-kernel/openvz-sources:* )
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.0.0 )
|
||||
policykit? ( >=sys-auth/polkit-0.9 )
|
||||
qemu? (
|
||||
>=app-emulation/qemu-0.13.0
|
||||
dev-libs/yajl
|
||||
!systemd? ( sys-power/pm-utils )
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
systemd? ( sys-apps/systemd )
|
||||
virt-network? (
|
||||
net-dns/dnsmasq[script]
|
||||
net-firewall/ebtables
|
||||
>=net-firewall/iptables-1.4.10[ipv6]
|
||||
net-misc/radvd
|
||||
sys-apps/iproute2[-minimal]
|
||||
)
|
||||
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) )
|
||||
wireshark-plugins? ( net-analyzer/wireshark:= )
|
||||
xen? (
|
||||
app-emulation/xen
|
||||
app-emulation/xen-tools:=
|
||||
)
|
||||
udev? (
|
||||
virtual/udev
|
||||
>=x11-libs/libpciaccess-0.10.9
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/xhtml1
|
||||
dev-lang/perl
|
||||
dev-libs/libxslt
|
||||
dev-perl/XML-XPath
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup qemu 77
|
||||
enewuser qemu 77 -1 -1 qemu kvm
|
||||
|
||||
# Some people used the masked ebuild which was not adding the qemu
|
||||
# user to the kvm group originally. This results in VMs failing to
|
||||
# start for some users. bug #430808
|
||||
egetent group kvm | grep -q qemu
|
||||
if [[ $? -ne 0 ]]; then
|
||||
gpasswd -a qemu kvm
|
||||
fi
|
||||
|
||||
# Check kernel configuration:
|
||||
CONFIG_CHECK=""
|
||||
use fuse && CONFIG_CHECK+="
|
||||
~FUSE_FS"
|
||||
|
||||
use lvm && CONFIG_CHECK+="
|
||||
~BLK_DEV_DM
|
||||
~DM_MULTIPATH
|
||||
~DM_SNAPSHOT"
|
||||
|
||||
use lxc && CONFIG_CHECK+="
|
||||
~BLK_CGROUP
|
||||
~CGROUP_CPUACCT
|
||||
~CGROUP_DEVICE
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_NET_PRIO
|
||||
~CGROUP_PERF
|
||||
~CGROUPS
|
||||
~CGROUP_SCHED
|
||||
~CPUSETS
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
~IPC_NS
|
||||
~MACVLAN
|
||||
~NAMESPACES
|
||||
~NET_CLS_CGROUP
|
||||
~NET_NS
|
||||
~PID_NS
|
||||
~POSIX_MQUEUE
|
||||
~SECURITYFS
|
||||
~USER_NS
|
||||
~UTS_NS
|
||||
~VETH
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS"
|
||||
# Handle specific kernel versions for different features
|
||||
kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
|
||||
kernel_is ge 3 6 && CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
|
||||
|
||||
use macvtap && CONFIG_CHECK+="
|
||||
~MACVTAP"
|
||||
|
||||
use virt-network && CONFIG_CHECK+="
|
||||
~BRIDGE_EBT_MARK_T
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_CONNMARK
|
||||
~NETFILTER_XT_MARK
|
||||
~NETFILTER_XT_TARGET_CHECKSUM"
|
||||
# Bandwidth Limiting Support
|
||||
use virt-network && CONFIG_CHECK+="
|
||||
~BRIDGE_EBT_T_NAT
|
||||
~NET_ACT_POLICE
|
||||
~NET_CLS_FW
|
||||
~NET_CLS_U32
|
||||
~NET_SCH_HTB
|
||||
~NET_SCH_INGRESS
|
||||
~NET_SCH_SFQ"
|
||||
|
||||
ERROR_USER_NS="Optional depending on LXC configuration."
|
||||
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch "${S}/.mailmap"
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# git checkouts require bootstrapping to create the configure script.
|
||||
# Additionally the submodules must be cloned to the right locations
|
||||
# bug #377279
|
||||
./bootstrap || die "bootstrap failed"
|
||||
(
|
||||
git submodule status | sed 's/^[ +-]//;s/ .*//'
|
||||
git hash-object bootstrap.conf
|
||||
) >.git-module-status
|
||||
fi
|
||||
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch \
|
||||
"${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch \
|
||||
"${FILESDIR}"/${P}-fix_paths_for_apparmor.patch \
|
||||
"${FILESDIR}"/${PN}-1.2.21-avoid_deprecated_pc_file.patch
|
||||
|
||||
[[ -n ${BACKPORTS} ]] &&
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \
|
||||
EPATCH_SOURCE="${WORKDIR}/patches" epatch
|
||||
|
||||
epatch_user
|
||||
|
||||
# Tweak the init script:
|
||||
cp "${FILESDIR}/libvirtd.init-r16" "${S}/libvirtd.init" || die
|
||||
sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \
|
||||
-e "s/USE_FLAG_AVAHI/$(usex avahi 'use avahi-daemon' '')/" \
|
||||
-e "s/USE_FLAG_ISCSI/$(usex iscsi 'use iscsid' '')/" \
|
||||
-e "s/USE_FLAG_RBD/$(usex rbd 'use ceph' '')/" \
|
||||
-i "${S}/libvirtd.init" || die "sed failed"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=true
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with apparmor)
|
||||
$(use_with apparmor apparmor-profiles)
|
||||
$(use_with audit)
|
||||
$(use_with avahi)
|
||||
$(use_with caps capng)
|
||||
$(use_with firewalld)
|
||||
$(use_with fuse)
|
||||
$(use_with glusterfs)
|
||||
$(use_with glusterfs storage-gluster)
|
||||
$(use_with iscsi storage-iscsi)
|
||||
$(use_with libvirtd)
|
||||
$(use_with lvm storage-lvm)
|
||||
$(use_with lvm storage-mpath)
|
||||
$(use_with lxc)
|
||||
$(use_with macvtap)
|
||||
$(use_enable nls)
|
||||
$(use_with numa numactl)
|
||||
$(use_with numa numad)
|
||||
$(use_with openvz)
|
||||
$(use_with parted storage-disk)
|
||||
$(use_with pcap libpcap)
|
||||
$(use_with phyp)
|
||||
$(use_with policykit polkit)
|
||||
$(use_with qemu)
|
||||
$(use_with qemu yajl)
|
||||
$(use_with rbd storage-rbd)
|
||||
$(use_with sasl)
|
||||
$(use_with selinux)
|
||||
$(use_with systemd systemd-daemon)
|
||||
$(usex systemd --with-init-script=systemd '')
|
||||
$(use_with udev)
|
||||
$(use_with uml)
|
||||
$(use_with vepa virtualport)
|
||||
$(use_with virt-network network)
|
||||
$(use_with wireshark-plugins wireshark-dissector)
|
||||
$(use_with xen)
|
||||
$(use_with xen xen-inotify)
|
||||
$(usex xen --with-libxl '')
|
||||
|
||||
--without-hal
|
||||
--without-netcf
|
||||
--without-sanlock
|
||||
--without-xenapi
|
||||
--with-esx
|
||||
--with-qemu-group=$(usex caps qemu root)
|
||||
--with-qemu-user=$(usex caps qemu root)
|
||||
--with-remote
|
||||
--with-storage-fs
|
||||
--with-vmware
|
||||
|
||||
--disable-static
|
||||
--disable-werror
|
||||
|
||||
--with-html-subdir=${PF}/html
|
||||
--localstatedir=/var
|
||||
)
|
||||
|
||||
if use virtualbox && has_version app-emulation/virtualbox-ose; then
|
||||
myeconfargs+=( --with-vbox=/usr/lib/virtualbox-ose/ )
|
||||
else
|
||||
myeconfargs+=( $(use_with virtualbox vbox) )
|
||||
fi
|
||||
|
||||
autotools-utils_src_configure
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Restore gnulib's config.sub and config.guess
|
||||
# bug #377279
|
||||
(cd .gnulib && git reset --hard > /dev/null)
|
||||
fi
|
||||
|
||||
# Workaround: Sometimes this subdirectory is missing and leads to a
|
||||
# build failure.
|
||||
mkdir -p "${BUILD_DIR}"/docs/internals
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Explicitly allow parallel build of tests
|
||||
export VIR_TEST_DEBUG=1
|
||||
HOME="${T}" emake check || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_compile install \
|
||||
DESTDIR="${D}" \
|
||||
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)"
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
# Remove bogus, empty directories. They are either not used, or
|
||||
# libvirtd is able to create them on demand
|
||||
rm -rf "${D}"/etc/sysconfig
|
||||
rm -rf "${D}"/var/cache
|
||||
rm -rf "${D}"/var/run
|
||||
rm -rf "${D}"/var/log
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
use systemd && systemd_install_serviced \
|
||||
"${FILESDIR}"/libvirtd.service.conf libvirtd.service
|
||||
|
||||
systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd || die
|
||||
newinitd "${FILESDIR}/libvirt-guests.init-r2" libvirt-guests || die
|
||||
newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die
|
||||
newinitd "${FILESDIR}/virtlogd.init-r1" virtlogd || die
|
||||
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd || die
|
||||
newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests || die
|
||||
|
||||
DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r1")
|
||||
DISABLE_AUTOFORMATTING=true
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# we only ever want to generate this once
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
if [[ -n ${REPLACING_VERSIONS} ]] && ! version_is_at_least 1.2.18-r2 ${REPLACING_VERSIONS} ]]; then
|
||||
FORCE_PRINT_ELOG=true
|
||||
fi
|
||||
|
||||
DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r1")
|
||||
DISABLE_AUTOFORMATTING=true
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST icdiff-1.7.3.tar.gz 20215 SHA256 5161265f72a7c9c1d2d7b0780a381743ef3d3127944a96786422802a6bc14ca5 SHA512 ae8ca394c3fdf820d4795282672bc44eb01f88f9614d6240f035c31f99130b188185a0e241c3c17974d76f604b85ef48aa8296835b5dfb46463a88cb1f68d305 WHIRLPOOL 994bbc53673db6559444908b9a08e71283060648fdbc86e607b5ee229a933d13627b4e02b7b41fc25bf41021b9d86bed4d9e1b9df978922102b724e7be0a4642
|
@ -0,0 +1,16 @@
|
||||
diff --git a/test.sh b/test.sh
|
||||
index 264c696..1bb7290 100755
|
||||
--- a/test.sh
|
||||
+++ b/test.sh
|
||||
@@ -97,11 +97,6 @@ check_gold gold-67-wf.txt tests/input-{6,7}.txt --cols=80 --whole-file
|
||||
check_gold gold-67-ln.txt tests/input-{6,7}.txt --cols=80 --line-numbers
|
||||
check_gold gold-67-u3.txt tests/input-{6,7}.txt --cols=80 -U 3
|
||||
|
||||
-if [ $(./icdiff --version | awk '{print $NF}') != $(head -n 1 ChangeLog) ]; then
|
||||
- echo "Version mismatch between ChangeLog and icdiff source."
|
||||
- fail
|
||||
-fi
|
||||
-
|
||||
if ! $REGOLD; then
|
||||
echo PASS
|
||||
fi
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=(python2_7 python3_4 python3_5)
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Colourized diff that supports side-by-side diffing"
|
||||
HOMEPAGE="http://www.jefftk.com/icdiff"
|
||||
SRC_URI="https://github.com/jeffkaufman/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.7.3-dont-check-changelog.patch"
|
||||
)
|
||||
|
||||
DOCS=(README.md ChangeLog)
|
||||
|
||||
S="${WORKDIR}/${PN}-release-${PV}"
|
||||
|
||||
python_test() {
|
||||
./test.sh "${EPYTHON%.*}" || die "Tests failed"
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>chutzpah@gentoo.org</email>
|
||||
<name>Patrick McLean</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">jeffkaufman/icdiff</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +1 @@
|
||||
DIST thefuck-3.5.tar.gz 782640 SHA256 eaa6b6466634ab4c87506a1404871af5bfd013043157b335165a63da3b14d90e SHA512 b1d5c542e25dc88ddceef98cd067f3bd48023c4ca5ee33ea61c76ad089ca85d0f440b212633ad99f9e7caa2ca56da8ba236c481cacfb50fd07dec44e896a0a71 WHIRLPOOL dd8e7bde96b45e61874f519db52550f82aa269a1e0df94271bb58bd6605e1165e1e6e8682c257ca8129ebff2955c0014b71a0191a360ad035d4de2e17fab4ba8
|
||||
DIST thefuck-3.6.tar.gz 782923 SHA256 a83e2e3ff65b36a7e0d3330e853610c0da9cd2ffd5a001d9e51ad6146c558674 SHA512 630825f2a635fa8039df2b71e3a3d1c95280f48b1277f31f010a8c4adf1cd08ddbd6cff1ffae19856f27585f36c473d3c70eb30ca8e5e4cf8b159705398793bf WHIRLPOOL 17fc409d6114fb89527251888c40e05731932f192dedaefd33cd18e64c2b46980ad8a1c14a6f3bca02cfa223cde61216e2051afc458cca195919e3da94d08d91
|
||||
|
@ -1,2 +1 @@
|
||||
DIST trang-20091111.zip 1079534 SHA256 d8a3f034f9918ebe5b265aafeadbee6729ddda5732cfc368e2c30b3b8c0ca598 SHA512 c19bf98613097d377ecce347dcab31b458b16d77c320b5d2a6106ff7b06b3aa3c7b87b4c78376b3d4f89be24ecb11fad622aadc0ba9d8d6be716486d7a1ebd7b WHIRLPOOL 6ed18632dfdb7c9661fcb6e1b3a02130ac877fdda3c4cc7779ec61510a7e67e68ab7315ab6f3e5cb8ed2a83447873579791c568f7706eaab29f5e2258fa5bc3b
|
||||
DIST trang-20151127.tar.gz 13746141 SHA256 86c810a42d974665d12db5213943cd72fcb6912d80b5a2853e083bc454ca6b75 SHA512 f5c6973791e8caa8dcce6bbf92cbd58491f55edd7819523947ad718ea3973eb81afc6b21d4e830949c2f183b485915dab98dbb5b90e01324677cfa41f5746e26 WHIRLPOOL c11781da0cf8d5deada8c59dcfbc13dffd78e045c97b4b27768d8772563b989e9c6434fa4be13ea3c53574ad59baf0eb3a150bc3d77edc7336315f6961fb0b6c
|
||||
|
@ -1,68 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Author: Ralph Sennhauser -->
|
||||
<project name="trang" default="jar" basedir=".">
|
||||
|
||||
<!-- properties -->
|
||||
|
||||
<property name="src.dir" value="src"/>
|
||||
<property name="build.dir" value="build"/>
|
||||
<property name="docs.dir" value="javadoc"/>
|
||||
<property name="dist.dir" value="dist"/>
|
||||
|
||||
<property name="app.name" value="trang"/>
|
||||
<property name="package.names" value="com.* org.*"/>
|
||||
<property name="jar.name" value="${app.name}.jar"/>
|
||||
|
||||
<!-- targets -->
|
||||
|
||||
<target name="prepare">
|
||||
<mkdir dir="${build.dir}"/>
|
||||
<mkdir dir="${docs.dir}"/>
|
||||
<mkdir dir="${dist.dir}"/>
|
||||
<unzip src="${src.dir}.zip" dest="${src.dir}"/>
|
||||
<!-- need the resource files shipped inside the jar, beed! -->
|
||||
<unzip src="trang.jar" dest="${build.dir}">
|
||||
<patternset>
|
||||
<include name="**/*properties"/>
|
||||
</patternset>
|
||||
</unzip>
|
||||
</target>
|
||||
|
||||
<target name="compile" description="Compiles source" depends="prepare">
|
||||
<javac srcdir="${src.dir}" destdir="${build.dir}" encoding="UTF-8" classpath="${gentoo.classpath}">
|
||||
<!-- <compilerarg value="-Xlint:deprecation"/> -->
|
||||
<!-- <compilerarg value="-Xlint"/> -->
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="javadoc" depends="prepare" description="Create javadocs">
|
||||
<javadoc packagenames="net.*"
|
||||
classpath="${gentoo.classpath}"
|
||||
sourcepath="${src.dir}"
|
||||
defaultexcludes="yes"
|
||||
destdir="./${docs.dir}"
|
||||
author="true"
|
||||
version="true"
|
||||
use="true"
|
||||
windowtitle="${app.name} API">
|
||||
<fileset dir="${src.dir}"/>
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
<target name="jar" description="Create the jar" depends="compile">
|
||||
<jar destfile="${dist.dir}/${jar.name}" basedir="${build.dir}">
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="com.thaiopensource.relaxng.translate.Driver"/>
|
||||
<attribute name="Class-Path" value="."/>
|
||||
</manifest>
|
||||
<service type="com.thaiopensource.datatype.xsd.regex.RegexEngine">
|
||||
<provider classname="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
|
||||
<provider classname="com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl"/>
|
||||
</service>
|
||||
<service type="org.relaxng.datatype.DatatypeLibraryFactory">
|
||||
<provider classname="com.thaiopensource.datatype.xsd.DatatypeLibraryFactoryImpl"/>
|
||||
</service>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
</project>
|
@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="2"
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Multi-format schema converter based on RELAX NG"
|
||||
HOMEPAGE="http://thaiopensource.com/relaxng/trang.html"
|
||||
SRC_URI="https://jing-trang.googlecode.com/files/${P}.zip"
|
||||
LICENSE="BSD"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEP="
|
||||
dev-java/xerces:2
|
||||
dev-java/xml-commons-resolver:0"
|
||||
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.5
|
||||
${COMMON_DEP}"
|
||||
|
||||
DEPEND="
|
||||
app-arch/unzip
|
||||
>=virtual/jdk-1.5
|
||||
${COMMON_DEP}"
|
||||
|
||||
java_prepare() {
|
||||
# need resource files in jar archive so can't remove, see build.xml
|
||||
# rm -v *.jar || die "Failed to remove jar archives"
|
||||
|
||||
cp "${FILESDIR}/build.xml" "${S}/build.xml"
|
||||
}
|
||||
|
||||
EANT_GENTOO_CLASSPATH="xerces-2,xml-commons-resolver"
|
||||
|
||||
src_test() {
|
||||
# a very simple test
|
||||
mkdir "test"
|
||||
|
||||
java -jar "dist/${PN}.jar" "${FILESDIR}/test.xml" "test/test.xsd"
|
||||
java -jar "dist/${PN}.jar" "${FILESDIR}/test.xml" "test/test.dtd"
|
||||
java -jar "dist/${PN}.jar" "test/test.dtd" "test/test.dtd.xsd"
|
||||
|
||||
md5sum -c <<MD5SUMS_END || die "Failed to verify md5sum"
|
||||
4bcb454ade46c0188f809d2e8ce15315 ${FILESDIR}/test.xml
|
||||
d096c1fb462902e10a3440a604a21664 test/test.xsd
|
||||
3fb46bdb16dc75a2a1e36e421b13e51d test/test.dtd
|
||||
fce355ca962cb063d7baa5d7fd571bcf test/test.dtd.xsd
|
||||
MD5SUMS_END
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "dist/${PN}.jar"
|
||||
java-pkg_dolauncher trang \
|
||||
--main com.thaiopensource.relaxng.translate.Driver
|
||||
dohtml *.html || die
|
||||
|
||||
use doc && java-pkg_dojavadoc javadoc
|
||||
use source && java-pkg_dosrc src/{org,com}
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST sanitized-anchor-name-0_pre20150822.tar.gz 1298 SHA256 71051787c19aff363bcccf1ea6f62baab7c46dfdc519e88043fe54b0de55ee21 SHA512 9fcaecd3962b2d4681faea7ef022b1cd6a9a6fe6c02a9608a7c57fcdb77eff6148be05debf6beb548530a9e56225596290525eb01b082601a3ee18130c9349f0 WHIRLPOOL 42e650e9132cf95f8f0fe34b0c38f16802747b48f62c7d00e903436fa4025da4848f864ca29ea66db4a9b7c9833d96dbd4a80de40a2b887b1553d1f52689c0ca
|
||||
DIST sanitized-anchor-name-0_pre20151027.tar.gz 1941 SHA256 f133b81db75c7a1a627523a43427f990dc83fef26ec117764ab9d687fd1efda7 SHA512 06b8bf3f8d89a93c565de9b4219211ad08c91b2442ba31ef8bffa02c7ee823ae4f57ed8b39b4ac1eb326e5d12c65b56b16833c28fc97623c732bb6ea685a3c2a WHIRLPOOL ee1f24069a53176fcc8125084733c60d92ed03194d1d992d1ec33b499aef87b7388e5bf8cdf5c6e8c4749982769585ea2d5ded1dba75d6f37bfc5cb7919ac35b
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
EGO_PN=github.com/shurcooL/sanitized_anchor_name
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
EGIT_COMMIT=10ef21a
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
inherit golang-build
|
||||
|
||||
DESCRIPTION="A Go function to provide sanitized anchor names"
|
||||
HOMEPAGE="https://github.com/shurcooL/sanitized_anchor_name"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
@ -1,2 +1 @@
|
||||
DIST commons-dbcp-1.4-src.tar.gz 932507 SHA256 f5f10846e79fc71121fe7402c61d71575506b01b59e719e974ebc4d99e6df283 SHA512 70f32ea36bae46290dc376e6040539562de98906810bd4e1985667c336e6215dc5536278000fee5d9f200cc4b97ea0a6cff74a871e962b61203741814a9c5e7b WHIRLPOOL c917bd417d95e7fc2448c87d949f440ad829ea794b943e707a23154fafaf9eeccaa2900ae7ccb27cf03c56d7e0727177e56c47f157ee85ab1be7c67d18702b26
|
||||
DIST commons-dbcp2-2.1-src.tar.gz 580017 SHA256 e1a75021dc3a5314cfa0a0c65bf0bf3d8f95a289b833cf5e391149cf29367708 SHA512 830fb550cee5f9c79fad830d8b3e56417aa9dfed26093fd366693260f5b4d821baa592e60c7f5997766276049a90eacd5854b8422803825154fedee56d46409d WHIRLPOOL d4efd240eae5d891c98ad3a2fa76756fabdfa93bc17ec9d4e0b046f6dcb8e61579acfb899f338131472960aaddf25457d3a82ca00486242097319e9f7617462a
|
||||
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Jakarta component providing database connection pooling API"
|
||||
HOMEPAGE="http://commons.apache.org/dbcp/"
|
||||
SRC_URI="mirror://apache/commons/dbcp/source/${P}-src.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEP="
|
||||
dev-java/commons-pool:0
|
||||
java-virtuals/transaction-api:0"
|
||||
RDEPEND="${COMMON_DEP}
|
||||
>=virtual/jre-1.6"
|
||||
DEPEND="${COMMON_DEP}
|
||||
virtual/jdk:1.6
|
||||
test? ( dev-java/ant-junit:0 )"
|
||||
|
||||
S="${WORKDIR}/${P}-src"
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
|
||||
|
||||
EANT_BUILD_TARGET="build-jar"
|
||||
EANT_GENTOO_CLASSPATH="commons-pool,transaction-api"
|
||||
|
||||
src_test() {
|
||||
# depend on not packaged geronimo #348853
|
||||
rm -v src/test/org/apache/commons/dbcp/managed/TestBasicManagedDataSource.java || die
|
||||
rm -v src/test/org/apache/commons/dbcp/managed/TestManagedDataSource.java || die
|
||||
rm -v src/test/org/apache/commons/dbcp/managed/TestManagedDataSourceInTx.java || die
|
||||
|
||||
# fails :(
|
||||
rm -v src/test/org/apache/commons/dbcp/TestJndi.java || die
|
||||
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar dist/${PN}*.jar
|
||||
dodoc README.txt RELEASE-NOTES.txt
|
||||
|
||||
use doc && java-pkg_dojavadoc dist/docs/api
|
||||
use source && java-pkg_dosrc src/java/*
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST guice-2.0-src.zip 17342981 SHA256 7f836156d9d6b7688d373a4c70971b8b42e3a553e26a8f98a110a868eb749394 SHA512 61e1c5b6bbd7db5017a99b2998b706071717781360ab8d622d163be2cc954d9b34ab8b68d2ab02f29bb1a8b640ac25350dca302c390855641ca3e4cc4438a1b9 WHIRLPOOL 7be8673b603ad1aa722ddb76cefaec5e1d03e9a4199d25cbb1a58a31f89c33ac1d9e0a479951b5412cc2c94504d46afd56f42a57f3d87ef3915554fbf821d506
|
||||
DIST guice-4.0.tar.gz 23103592 SHA256 353cd5130d6e7f5bdb702af2e6b4f8aedd6e152c276275a6adcf5bbefade4ddb SHA512 45bdc00ebbad051f1f31b7cb5c134e42c841a06513563abc184739a514f39bc76dcb220af77ec60f46a0d887df93e0177ce071110b41ef6e5e69bad1a30f0e40 WHIRLPOOL 7b9b1d41b5256592ae5ccbd550b008d4cd10a50e7007a3c2b3d9b5cfaaa144f43be2d398386a762d9ca4afa76b30d4ec40aed2a9c9fd1c731f359de23c3be0df
|
||||
|
@ -1,16 +0,0 @@
|
||||
--- /tmp/guice-2.0-src.orig/build.xml 2012-08-23 23:04:55.759642915 +0300
|
||||
+++ build.xml 2012-08-23 23:30:05.899593954 +0300
|
||||
@@ -13,11 +13,8 @@
|
||||
</path>
|
||||
|
||||
|
||||
- <target name="jar" depends="jar.withdeps, manifest" description="Build jar.">
|
||||
- <jar jarfile="${build.dir}/dist/guice-${version}.jar"
|
||||
- manifest="${build.dir}/META-INF/MANIFEST.MF">
|
||||
- <zipfileset src="${build.dir}/${ant.project.name}-with-deps.jar"/>
|
||||
- </jar>
|
||||
+ <target name="jar" depends="jar.withdeps" description="Build jar.">
|
||||
+ <echo>${build.dir}/${ant.project.name}</echo>
|
||||
</target>
|
||||
|
||||
<target name="dist" depends="distjars, javadoc"
|
@ -1,21 +0,0 @@
|
||||
--- /tmp/guice-2.0-src.orig/common.xml 2012-08-23 23:28:51.056596381 +0300
|
||||
+++ common.xml 2012-08-23 23:28:14.416597570 +0300
|
||||
@@ -108,17 +108,7 @@
|
||||
<target name="jar.withdeps" depends="compile"
|
||||
description="Build jar with dependencies embedded.">
|
||||
<mkdir dir="${build.dir}/dist"/>
|
||||
- <dirname property="common.basedir" file="${ant.file.common}"/>
|
||||
- <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask"
|
||||
- classpath="${common.basedir}/lib/build/jarjar-1.0rc8.jar"/>
|
||||
- <jarjar jarfile="${build.dir}/${ant.project.name}-with-deps.jar">
|
||||
- <fileset dir="${build.dir}/classes"/>
|
||||
- <zipfileset src="${common.basedir}/lib/build/cglib-2.2.1-snapshot.jar"/>
|
||||
- <zipfileset src="${common.basedir}/lib/build/asm-3.1.jar"/>
|
||||
- <rule pattern="net.sf.cglib.**" result="com.google.inject.internal.cglib.@1"/>
|
||||
- <rule pattern="org.objectweb.asm.**" result="com.google.inject.internal.asm.@1"/>
|
||||
- <keep pattern="com.google.inject.**"/>
|
||||
- </jarjar>
|
||||
+ <jar destfile="${build.dir}/${ant.project.name}.jar" basedir="${build.dir}/classes" />
|
||||
</target>
|
||||
|
||||
</project>
|
@ -1,55 +0,0 @@
|
||||
diff --git a/guice-3.0-src/build.xml b/guice-3.0-src/build.xml
|
||||
index a66a186..da1dd76 100644
|
||||
--- a/guice-3.0-src/build.xml
|
||||
+++ b/guice-3.0-src/build.xml
|
||||
@@ -10,11 +10,7 @@
|
||||
</path>
|
||||
|
||||
|
||||
- <target name="jar" depends="jar.withdeps, manifest" description="Build jar.">
|
||||
- <jar jarfile="${build.dir}/dist/guice-${version}.jar"
|
||||
- manifest="${build.dir}/META-INF/MANIFEST.MF">
|
||||
- <zipfileset src="${build.dir}/${ant.project.name}-with-deps.jar"/>
|
||||
- </jar>
|
||||
+ <target name="jar" depends="jar.withdeps" description="Build jar.">
|
||||
</target>
|
||||
|
||||
<target name="dist" depends="distjars, javadoc"
|
||||
@@ -166,10 +162,7 @@
|
||||
<target name="javadoc">
|
||||
<javadoc packagenames="com.google.*"
|
||||
destdir="build/docs"
|
||||
- docletpath="lib/build/doclava.jar"
|
||||
- bootclasspath="${java.home}/lib/rt.jar"
|
||||
- maxmemory="512M"
|
||||
- classpath="lib/javax.inject.jar${path.separator}lib/aopalliance.jar">
|
||||
+ maxmemory="512M">
|
||||
<fileset dir="${src.dir}" defaultexcludes="yes">
|
||||
<include name="com/google/**"/>
|
||||
<exclude name="com/google/inject/internal/**"/>
|
||||
@@ -183,25 +176,7 @@
|
||||
<fileset dir="${multibindings.src.dir}"/>
|
||||
<fileset dir="${persist.src.dir}"/>
|
||||
<fileset dir="${grapher.src.dir}"/>
|
||||
- <!-- TODO: this breaks Doclava for some reason
|
||||
- <fileset dir="${struts2.src.dir}"/> -->
|
||||
-
|
||||
- <doclet name="com.google.doclava.Doclava">
|
||||
- <param name="-hdf"/> <param name="project.name"/> <param name="Guice"/>
|
||||
- <param name="-since"/> <param name="lib/build/guice-1.0.xml"/> <param name="Guice_1.0" />
|
||||
- <param name="-since"/> <param name="lib/build/guice-2.0.xml"/> <param name="Guice_2.0" />
|
||||
- <param name="-apiversion" value="Guice_${new.api}"/>
|
||||
- <param name="-assetsdir" value="javadoc/assets"/>
|
||||
- <param name="-apixml" value="build/docs/guice-${new.api}.xml"/>
|
||||
- <!-- TODO: fix doclava federation
|
||||
- http://aopalliance.sourceforge.net/doc
|
||||
- http://www.springframework.org/docs/api/
|
||||
- <param name="-federate"/><param name="JDK"/><param name="http://download.oracle.com/javase/6/docs/api/index.html?"/>
|
||||
- <param name="-federationxml"/><param name="JDK"/><param name="http://doclava.googlecode.com/svn/static/api/openjdk-6.xml"/>
|
||||
- -->
|
||||
- </doclet>
|
||||
</javadoc>
|
||||
- <move todir="build/docs/javadoc"><fileset dir="build/docs/reference"/></move>
|
||||
</target>
|
||||
|
||||
<target name="no_aop"
|
@ -1,26 +0,0 @@
|
||||
diff --git a/guice-3.0-src/common.xml b/guice-3.0-src/common.xml
|
||||
index a318ab3..62cadce 100644
|
||||
--- a/guice-3.0-src/common.xml
|
||||
+++ b/guice-3.0-src/common.xml
|
||||
@@ -137,20 +137,6 @@
|
||||
<target name="jar.withdeps" depends="compile"
|
||||
description="Build jar with dependencies embedded.">
|
||||
<mkdir dir="${build.dir}/dist"/>
|
||||
- <dirname property="common.basedir" file="${ant.file.common}"/>
|
||||
- <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask"
|
||||
- classpath="${common.basedir}/lib/build/jarjar-snapshot.jar"/>
|
||||
- <jarjar jarfile="${build.dir}/${ant.project.name}-with-deps.jar">
|
||||
- <fileset dir="${build.dir}/classes"/>
|
||||
- <zipfileset src="${common.basedir}/lib/build/cglib-2.2.1-snapshot.jar"/>
|
||||
- <zipfileset src="${common.basedir}/lib/build/asm-3.1.jar"/>
|
||||
- <rule pattern="net.sf.cglib.*" result="com.google.inject.internal.cglib.$@1"/>
|
||||
- <rule pattern="net.sf.cglib.**.*" result="com.google.inject.internal.cglib.@1.$@2"/>
|
||||
- <rule pattern="org.objectweb.asm.*" result="com.google.inject.internal.asm.$@1"/>
|
||||
- <rule pattern="org.objectweb.asm.**.*" result="com.google.inject.internal.asm.@1.$@2"/>
|
||||
- <rule pattern="com.google.inject.internal.util.*" result="com.google.inject.internal.util.$@1"/>
|
||||
- <rule pattern="com.google.inject.internal.util.**.*" result="com.google.inject.internal.util.@1.$@2"/>
|
||||
- <keep pattern="com.google.inject.**"/>
|
||||
- </jarjar>
|
||||
+ <jar destfile="${build.dir}/${ant.project.name}.jar" basedir="${build.dir}/classes" />
|
||||
</target>
|
||||
</project>
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Guice is a lightweight dependency injection framework for Java 5 and above"
|
||||
HOMEPAGE="https://code.google.com/p/google-guice/"
|
||||
SRC_URI="https://google-guice.googlecode.com/files/${P}-src.zip"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="2"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="dev-java/aopalliance:1
|
||||
dev-java/asm:3
|
||||
dev-java/cglib:3"
|
||||
RDEPEND="|| ( virtual/jre:1.6 virtual/jre:1.7 )
|
||||
${COMMON_DEPEND}"
|
||||
DEPEND="|| ( virtual/jdk:1.6 virtual/jdk:1.7 )
|
||||
${COMMON_DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${P}-src/"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
JAVA_PKG_BSFIX_NAME="build.xml common.xml servlet/build.xml"
|
||||
JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc"
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
EANT_GENTOO_CLASSPATH="aopalliance-1,asm-3,cglib-3"
|
||||
|
||||
java_prepare() {
|
||||
find . -name '*.jar' -delete || die
|
||||
find . -name '*.class' -delete || die
|
||||
epatch "${FILESDIR}"/${PV}-common.xml.patch
|
||||
epatch "${FILESDIR}"/${PV}-build.xml.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar build/${PN}.jar
|
||||
|
||||
use doc && java-pkg_dojavadoc javadoc/
|
||||
use source && java-pkg_dosrc src/com
|
||||
}
|
@ -1,6 +1,2 @@
|
||||
DIST icu4j-4_0_1_1-docs.jar 1553089 SHA256 44319c329b628c5e14e74eeb285ddb876c34e3529b06c69abd9a54799490cd8e SHA512 15bf1cdb7c040403dcf0b7ebcf5355a192ce1e8841a13392badcce1d56c06a0e41bc8213f071a5530c892e2cc9e975cd9cbde6fa3f61e395cc437966e20733b8 WHIRLPOOL 0bd48dd1dc953f571da012b820b485f841ff3c5939b26e17cc92e872d94a7c122efce58cb0a6ac5479617687a8aa0f525f1650998f9e304d30274073d7c8f9fd
|
||||
DIST icu4j-4_0_1_1-src.jar 15138020 SHA256 9d5484ccb3ad6849b6d3986ee2cf146984cbbb8adb2349dc79f6a4e006bc417e SHA512 4eb02b50df0c7a008f6291c636cfc887b61ce503e0bd994d8cd5f3ec955b287e16ea640de98398414e000af8a859a4b087aa711cdaa53c8c17c7fdb760a4ca4e WHIRLPOOL 032412b7a7cb533e1f037c32cfa74db65272ca9c735d412c0f5f4abd1c41d5c4a1db26d0d8339693ff7229a052fd3cf1b8504cc250c17a3a45e7f4d58bb7f279
|
||||
DIST icu4j-4_4_2-docs.jar 1783887 SHA256 aa364c9e353e05e428112b05f9a9fda8e1c7d2b3404862e6df08a73f7f8b187a SHA512 212d042ca27e442525a1dcd4f69a6668535d57e49a1302b97e32bfc7ed216146eedff52633770bb01f32f560fb6d7c00774b34385a7d87cab9f0b68188a37203 WHIRLPOOL 804ac774e6e9e4b06f1d06795ea70ecb68ee23ed7689d4b603682ca1271c2d18d258faf3c23e99ff8269275774b4ba0e1b605b2b7288b51e9ae5445d25c32d7c
|
||||
DIST icu4j-4_4_2-src.jar 14844670 SHA256 c29fbf1464ad7fb88e8651953144884eea37adf36914e38a518774a99cf33b0d SHA512 90949f007e073c0e78510c66c2a1644985367921550f61976af61089ffc8a08e34a51c36c21f241f3073c7b3c5329d1ba7234043790db8dd8eef7eaf3edff79d WHIRLPOOL 82727e4e95ef662f9c6689bf5cd1d5c16f4238b682d2d88689ee561aae9c8ecc846f2bbb0adcfd125c7353b9ba160abc0c76d0d11af78047a59fd4504a39a720
|
||||
DIST icu4j-54_1_1.tgz 23457651 SHA256 1919a355742172dbd18021dfb2fd008f5c73168d2d5a39d705721614029d6704 SHA512 c41f7f9fb0819767da48ac21c4883a628da8397e0ad5b0d75e51d9185b5511608c9a635933c4ae2e0c8911b2cdecf47bc661050935bbae2ba58abfb5ad04dadf WHIRLPOOL d7c35283547c598694ead10620df1511cbe4602415ca8ee2d32ee3b291d28015db4fcd5fb3f426bf524e449099562545c3bdab81209af244890b53ea091f9f1f
|
||||
DIST icu4j-55_1.tgz 23617640 SHA256 da4c91e6b89bef3da22be475e63916c4f4f304b9689d5fdc5b40a52106efc4c3 SHA512 706daed61d9d3722a0813d175fa66b24570abba492c32704d4df924861e5d2592a4a5ff40fdec2bd3fb662c3679dbc9addd580966c3cc69470d14e3fce27a054 WHIRLPOOL b6cace3616d6d0b1c185a744cc1f0a3728682557d51f4b6658f174195c1eb369a2a005e2fd9eb4b421de761e47c2424368359a1948594da7b2f8cd6e1b0d2f33
|
||||
|
@ -1,21 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %bundleName
|
||||
Bundle-Vendor: %vendorName
|
||||
Bundle-SymbolicName: com.ibm.icu; singleton:=true
|
||||
Bundle-Version: determinedByPortage
|
||||
Bundle-Localization: plugin
|
||||
Export-Package: com.ibm.icu.lang;version="4.0",
|
||||
com.ibm.icu.math;version="4.0",
|
||||
com.ibm.icu.text;version="4.0",
|
||||
com.ibm.icu.util;version="4.0",
|
||||
com.ibm.icu.impl;x-internal:=true,
|
||||
com.ibm.icu.impl.data;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt40b;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt40b.brkitr;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt40b.coll;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt40b.rbnf;x-internal:=true,
|
||||
com.ibm.icu.impl.data.icudt40b.translit;x-internal:=true
|
||||
Eclipse-LazyStart: true
|
||||
Bundle-ClassPath: .
|
||||
Eclipse-ExtensibleAPI: true
|
@ -1,12 +0,0 @@
|
||||
diff --git a/build.xml b/build.xml
|
||||
index 6f82ec5..9e763ae 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -27,6 +27,7 @@
|
||||
<or>
|
||||
<contains string="${java.version}" substring="1.6."/>
|
||||
<contains string="${java.version}" substring="1.7."/>
|
||||
+ <contains string="${java.version}" substring="1.8."/>
|
||||
</or>
|
||||
</condition>
|
||||
<condition property="is.java5">
|
@ -1,77 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=2
|
||||
|
||||
# We currently download the Javadoc documentation.
|
||||
# It could optionally be built using the Ant build file.
|
||||
# testdata.jar and icudata.jar do not contain *.class files but *.res files
|
||||
# These *.res data files are needed to built the final jar
|
||||
# They do not need to be installed however as they will already be present in icu4j.jar
|
||||
|
||||
JAVA_PKG_IUSE="doc test source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2 java-osgi
|
||||
|
||||
DESCRIPTION="A set of Java libraries providing Unicode and Globalization support"
|
||||
MY_PV=${PV//./_}
|
||||
|
||||
SRC_URI="http://download.icu-project.org/files/${PN}/${PV}/${PN}-${MY_PV}-src.jar
|
||||
doc? ( http://download.icu-project.org/files/${PN}/${PV}/${PN}-${MY_PV}-docs.jar )"
|
||||
|
||||
HOMEPAGE="http://www.icu-project.org/"
|
||||
LICENSE="icu"
|
||||
SLOT="4"
|
||||
KEYWORDS="amd64 ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.4"
|
||||
|
||||
# build.xml does file version detection that fails for 1.7
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=213555
|
||||
DEPEND="test? ( =virtual/jdk-1.6* )
|
||||
!test? ( || ( =virtual/jdk-1.6* =virtual/jdk-1.5* =virtual/jdk-1.4* ) )
|
||||
app-arch/unzip"
|
||||
|
||||
RESTRICT="ia64? ( test )
|
||||
x86-fbsd? ( test )"
|
||||
JAVA_PKG_WANT_SOURCE="1.4"
|
||||
JAVA_PKG_WANT_TARGET="1.4"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
jar -xf "${DISTDIR}/${PN}-${MY_PV}-src.jar" || die "Failed to unpack"
|
||||
|
||||
if use doc; then
|
||||
mkdir docs; cd docs
|
||||
jar -xf "${DISTDIR}/${PN}-${MY_PV}-docs.jar" || die "Failed to unpack docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Classes extending CharsetICU not implementing Comparable
|
||||
# Breaks with ecj on jdk 1.5+, javac doesn't mind - Sun's hack?
|
||||
# Restricting to javac (didn't even care to try jikes) is better
|
||||
# than forcing 1.4
|
||||
java-pkg_force-compiler javac
|
||||
eant jar || die "Compile failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-osgi_newjar-fromfile "${PN}.jar" "${FILESDIR}/icu4j-4.0-manifest" \
|
||||
"International Components for Unicode for Java (ICU4J)"
|
||||
java-pkg_dojar "${PN}-charsets.jar"
|
||||
|
||||
use doc && dohtml -r readme.html docs/*
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
||||
|
||||
# Tests only work with JDK-1.6, severe out of memory problems appear with 1.5
|
||||
|
||||
src_test() {
|
||||
# bug #299082 - these tests fail with icedtea, assume too much about double<>string conversions
|
||||
sed -i '/DiagBigDecimal/d' src/com/ibm/icu/dev/test/TestAll.java || die
|
||||
eant check
|
||||
}
|
@ -1,78 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# We currently download the Javadoc documentation.
|
||||
# It could optionally be built using the Ant build file.
|
||||
# testdata.jar and icudata.jar do not contain *.class files but *.res files
|
||||
# These *.res data files are needed to built the final jar
|
||||
# They do not need to be installed however as they will already be present in icu4j.jar
|
||||
|
||||
JAVA_PKG_IUSE="doc test source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A set of Java libraries providing Unicode and Globalization support"
|
||||
MY_PV=${PV//./_}
|
||||
|
||||
SRC_URI="http://download.icu-project.org/files/${PN}/${PV}/${PN}-${MY_PV}-src.jar
|
||||
doc? ( http://download.icu-project.org/files/${PN}/${PV}/${PN}-${MY_PV}-docs.jar )"
|
||||
|
||||
HOMEPAGE="http://www.icu-project.org/"
|
||||
LICENSE="icu"
|
||||
SLOT="4.4"
|
||||
KEYWORDS="amd64 ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
# Tests only work with JDK-1.6, severe out of memory problems appear with 1.5
|
||||
DEPEND="test? ( =virtual/jdk-1.6* )
|
||||
!test? ( >=virtual/jdk-1.5 )"
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
|
||||
RESTRICT="ia64? ( test )"
|
||||
|
||||
JAVA_PKG_WANT_SOURCE="1.5"
|
||||
JAVA_PKG_WANT_TARGET="1.5"
|
||||
JAVA_PKG_BSFIX_NAME="build.xml common-targets.xml"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
jar -xf "${DISTDIR}/${PN}-${MY_PV}-src.jar" || die "Failed to unpack"
|
||||
|
||||
if use doc; then
|
||||
mkdir docs; cd docs
|
||||
jar -xf "${DISTDIR}/${PN}-${MY_PV}-docs.jar" || die "Failed to unpack docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/icu4j-4.4.2-add-jdk8-to-check.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Classes extending CharsetICU not implementing Comparable
|
||||
# Breaks with ecj on jdk 1.5+, javac doesn't mind - Sun's hack?
|
||||
# Restricting to javac (didn't even care to try jikes) is better
|
||||
# than forcing 1.4
|
||||
java-pkg_force-compiler javac
|
||||
eant jar || die "Compile failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${PN}.jar"
|
||||
java-pkg_dojar "${PN}-charsets.jar"
|
||||
java-pkg_dojar "${PN}-localespi.jar"
|
||||
|
||||
dohtml readme.html || die
|
||||
use doc && java-pkg_dojavadoc docs
|
||||
use source && java-pkg_dosrc main/classes/*/src/com
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# bug #299082 - these tests fail with icedtea, assume too much about double<>string conversions
|
||||
sed -i '/DiagBigDecimal/d' main/tests/core/src/com/ibm/icu/dev/test/TestAllCore.java || die
|
||||
eant check
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST iso-relax-20050331-gentoo.tar.bz2 696665 SHA256 3e3716ccc553c1a756503a56bcf92a64f6e0df3df89e6fa951a990d2c4601d70 SHA512 c327b461785ce647f9913afa6f5b77c41440e806d566884058be76e14a118d14fa305a1bc0157ee150b199b573e75af954311dc79eb8535599544f094526320a WHIRLPOOL e158e5a28d0f734b4a59923615449663b0dfc5b6b2a3ecbbff3ed37ac051fa1e6434d131195bcb6a87b5bdc36435f941bde29922be2ec92bea5c5404c8000e5e
|
||||
DIST iso-relax-20050331.tar.bz2 696665 SHA256 3e3716ccc553c1a756503a56bcf92a64f6e0df3df89e6fa951a990d2c4601d70 SHA512 c327b461785ce647f9913afa6f5b77c41440e806d566884058be76e14a118d14fa305a1bc0157ee150b199b573e75af954311dc79eb8535599544f094526320a WHIRLPOOL e158e5a28d0f734b4a59923615449663b0dfc5b6b2a3ecbbff3ed37ac051fa1e6434d131195bcb6a87b5bdc36435f941bde29922be2ec92bea5c5404c8000e5e
|
||||
|
@ -1,77 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<project name="ISORELAX" basedir="." default="release">
|
||||
|
||||
<!-- create a distribution package -->
|
||||
<target name="release">
|
||||
<tstamp />
|
||||
|
||||
<!-- compile files -->
|
||||
<mkdir dir="temp" />
|
||||
<javac srcdir="src" debug="true"
|
||||
destdir="temp"
|
||||
classpath="lib/verifier.jar">
|
||||
<include name="**/*.java" />
|
||||
</javac>
|
||||
|
||||
<!-- create a time stamp file -->
|
||||
<echo file="temp/version.properties">version=${DSTAMP}</echo>
|
||||
|
||||
<!-- creates src zip -->
|
||||
<delete file="src.zip"/>
|
||||
<zip zipfile="src.zip"
|
||||
compress="true">
|
||||
<fileset dir="src">
|
||||
<patternset>
|
||||
<exclude name="*.vjp"/>
|
||||
<exclude name="codebase.dat"/>
|
||||
<exclude name="*.SRG"/>
|
||||
</patternset>
|
||||
</fileset>
|
||||
</zip>
|
||||
|
||||
<!-- creates binary jar -->
|
||||
<delete file="isorelax.jar"/>
|
||||
<jar jarfile="isorelax.jar"
|
||||
compress="true">
|
||||
<fileset dir="temp" />
|
||||
<fileset dir="" includes="COPYING.txt"/>
|
||||
<!-- resource files -->
|
||||
<fileset dir="src">
|
||||
<patternset>
|
||||
<include name="**/*.properties" />
|
||||
<include name="**/*.rxm"/>
|
||||
<include name="**/*.dtd"/>
|
||||
<include name="**/*.rng"/>
|
||||
<include name="**/*.mod"/>
|
||||
</patternset>
|
||||
</fileset>
|
||||
</jar>
|
||||
<delete dir="temp" />
|
||||
|
||||
<zip zipfile="isorelax.${DSTAMP}.zip" compress="true">
|
||||
<fileset dir="." includes="isorelax.jar src.zip COPYING.txt"/>
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- ant task test -->
|
||||
<target name="ant-task-test">
|
||||
<taskdef name="jarv" classname="org.iso_relax.ant.JARVTask">
|
||||
<classpath path="isorelax.jar"/>
|
||||
<classpath path="lib/verifier.jar"/>
|
||||
<classpath path="lib/verifier.manifest.jar"/>
|
||||
</taskdef>
|
||||
|
||||
<jarv
|
||||
schemaLanguage="http://www.xml.gr.jp/xmlns/relaxCore"
|
||||
schema="test/relax001.rlx"
|
||||
file="test/relax001.v00.xml" />
|
||||
|
||||
<jarv
|
||||
schemaLanguage="http://www.xml.gr.jp/xmlns/relaxCore"
|
||||
schema="test/relax001.rlx">
|
||||
|
||||
<fileset dir="test" includes="*.xml"/>
|
||||
</jarv>
|
||||
</target>
|
||||
</project>
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Interfaces useful for applications which support RELAX Core"
|
||||
HOMEPAGE="http://iso-relax.sourceforge.net"
|
||||
SRC_URI="mirror://gentoo/${P}-gentoo.tar.bz2"
|
||||
|
||||
# To get the build system:
|
||||
# cvs -d:pserver:anonymous@iso-relax.cvs.sourceforge.net:/cvsroot/iso-relax login
|
||||
# mkdir iso-relax-20050331
|
||||
# cd iso-relax-20050331
|
||||
# cvs -d:pserver:anonymous@iso-relax.cvs.sourceforge.net:/cvsroot/iso-relax -frelease-20050331 co build.xml lib
|
||||
# rm -r $(find -name CVS)
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
dev-java/ant-core:0"
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
dev-java/ant-core:0"
|
||||
|
||||
EANT_BUILD_TARGET="release"
|
||||
|
||||
src_prepare() {
|
||||
java-pkg_jarfrom --into lib ant-core ant.jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar isorelax.jar
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST jtds-1.2.5-src.zip 3953955 SHA256 d86c7244826543d2f2f9cdc1d50888003596c1ec18f30808b21627e8889e9114 SHA512 d2b496a7aac4e4c9c0e164c1514d2d21392024903e1376b13fa6a3396d045a1bfc6a085b2beb1202703a6b6e59e8b534bc82508fcb58c71a25b6a13a3d051eda WHIRLPOOL b5e88e6cdb00f797de1d824a7581d693111d4d746ce6d5a709934ce00befbed4fb4c3b248448715bdf27691c33d8f1cca8ca270e942eb27907cd2567e919084d
|
||||
DIST jtds-1.3.1-src.zip 3377625 SHA256 612dabd65542690f3b49b69cae6985192914594584f3eaa76c7523dc584b2d84 SHA512 1744219a52c7167449388d774fd5e834ef551f60548569c4c54e6caefaade1d932a3879a023869d8d9ddb29ce4ab52b6d08bc4c364d5f372ff5fa96bed6d9864 WHIRLPOOL 54e2ff6c0e208cad2bb44964b18eacca10cfa33bfd246f8eadb053e91c0cc52e57c21b9fde3528371bc628a946eff81e85cbaa09c1a3799eaa429b81cbd23546
|
||||
|
@ -1,29 +0,0 @@
|
||||
--- build.xml.orig 2009-11-07 18:55:41.000000000 +0100
|
||||
+++ build.xml 2009-11-07 18:58:17.000000000 +0100
|
||||
@@ -75,13 +75,13 @@
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
- <target name="dist" depends="clean,compile,javadoc">
|
||||
+ <target name="jar" depends="compile">
|
||||
<mkdir dir="${dist}"/>
|
||||
<!-- Runtime jar -->
|
||||
<jar basedir="${build}/classes"
|
||||
excludes="net/sourceforge/jtds/test/*.class"
|
||||
includes="**/*"
|
||||
- jarfile="${build}/${ant.project.name}-${version}.jar">
|
||||
+ jarfile="${build}/${ant.project.name}.jar">
|
||||
<manifest>
|
||||
<attribute name="Implementation-Title" value="jTDS JDBC Driver"/>
|
||||
<attribute name="Implementation-Version" value="${version}"/>
|
||||
@@ -92,6 +92,10 @@
|
||||
<attribute name="Main-Class" value="net.sourceforge.jtds.jdbc.Driver"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
+
|
||||
+ </target>
|
||||
+
|
||||
+ <target name="dist" depends="jar">
|
||||
|
||||
<!-- Source package -->
|
||||
<copy todir="${dist}/tmp/doc">
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="jTDS - SQL Server and Sybase JDBC driver"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
|
||||
HOMEPAGE="http://jtds.sourceforge.net"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1.2"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
# Would need a running server
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-java/jcifs:1.1"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
virtual/jre:1.6"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/jdk:1.6
|
||||
app-arch/unzip"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
java_prepare() {
|
||||
find -name '*.jar' -exec rm -v {} + || die
|
||||
|
||||
epatch "${FILESDIR}"/${P}-build.xml.patch
|
||||
|
||||
rm -vr ./src/test/net/sourceforge/jtds/test || die
|
||||
}
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
|
||||
|
||||
EANT_GENTOO_CLASSPATH="jcifs-1.1"
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar build/${PN}.jar
|
||||
|
||||
dodoc CHANGELOG README*
|
||||
use doc && java-pkg_dojavadoc build/doc
|
||||
use source && java-pkg_dosrc "${S}"/src/main/*
|
||||
}
|
@ -1,371 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Netbeans IDE Cluster"
|
||||
HOMEPAGE="http://netbeans.org/projects/ide"
|
||||
SLOT="8.0"
|
||||
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||
SRC_URI="${SOURCE_URL}
|
||||
https://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||
http://hg.netbeans.org/binaries/4E74C6BE42FE89871A878C7C4D6158F21A6D8010-antlr-runtime-3.4.jar
|
||||
http://hg.netbeans.org/binaries/98308890597ACB64047F7E896638E0D98753AE82-asm-all-4.0.jar
|
||||
http://hg.netbeans.org/binaries/886FAF4B85054DD6E50D9B3438542F432B5F9251-bytelist-0.1.jar
|
||||
http://hg.netbeans.org/binaries/A8762D07E76CFDE2395257A5DA47BA7C1DBD3DCE-commons-io-1.4.jar
|
||||
http://hg.netbeans.org/binaries/CD0D5510908225F76C5FE5A3F1DF4FA44866F81E-commons-net-3.3.jar
|
||||
http://hg.netbeans.org/binaries/901D8F815922C435D985DA3814D20E34CC7622CB-css21-spec.zip
|
||||
http://hg.netbeans.org/binaries/53AFD6CAA1B476204557B0626E7D673FBD5D245C-css3-spec.zip
|
||||
http://hg.netbeans.org/binaries/C9A6304FAA121C97CB2458B93D30B1FD6F0F7691-derbysampledb.zip
|
||||
http://hg.netbeans.org/binaries/C40DFDACDF892D1BA14B540B32C11B6F34659931-exechlp-1.0.zip
|
||||
http://hg.netbeans.org/binaries/5EEAAC41164FEBCB79C73BEBD678A7B6C10C3E80-freemarker-2.3.19.jar
|
||||
http://hg.netbeans.org/binaries/75C30C488AD2A18A82C7FE3829F4A33FC7841643-glassfish-tooling-sdk-0.3-b054-246345.jar
|
||||
http://hg.netbeans.org/binaries/23123BB29025254556B6E573023FCDF0F6715A66-html-4.01.zip
|
||||
http://hg.netbeans.org/binaries/F4A1696661E6233F8C27EE323CAEF9CB052666F1-html5-datatypes.jar
|
||||
http://hg.netbeans.org/binaries/4388C34B9F085A42FBEA06C5B00FDF0A251171EC-html5doc.zip
|
||||
http://hg.netbeans.org/binaries/D528B44AE7593D2275927396BF930B28078C5220-htmlparser-1.2.1.jar
|
||||
http://hg.netbeans.org/binaries/8E737D82ECAC9BA6100A9BBA71E92A381B75EFDC-ini4j-0.5.1.jar
|
||||
http://hg.netbeans.org/binaries/A2862B7795EF0E0F0716BEC84528FA3B629E479C-io-xml-util.jar
|
||||
http://hg.netbeans.org/binaries/0DCC973606CBD9737541AA5F3E76DED6E3F4D0D0-iri.jar
|
||||
http://hg.netbeans.org/binaries/F90E3DA5259DB07F36E6987EFDED647A5231DE76-ispell-enwl-3.1.20.zip
|
||||
http://hg.netbeans.org/binaries/71F434378F822B09A57174AF6C75D37408687C57-jaxb-api.jar
|
||||
http://hg.netbeans.org/binaries/27FAE927B5B9AE53A5B0ED825575DD8217CE7042-jaxb-api-doc.zip
|
||||
http://hg.netbeans.org/binaries/387BE740EAEF52B3F6E6EE2F140757E7632584CE-jaxb-impl.jar
|
||||
http://hg.netbeans.org/binaries/C3787DAB0DDFBD9E98086ED2F219859B0CB77EF7-jaxb-xjc.jar
|
||||
http://hg.netbeans.org/binaries/F4DB465F207907A2406B0BF5C8FFEE22A5C3E4E3-jaxb1-impl.jar
|
||||
http://hg.netbeans.org/binaries/5E40984A55F6FFF704F05D511A119CA5B456DDB1-jfxrt.jar
|
||||
http://hg.netbeans.org/binaries/483A61B688B13C62BB201A683D98A6688B5373B6-jing.jar
|
||||
http://hg.netbeans.org/binaries/DA6CE3C2EB334DB61EFA99CD66134619867368FA-js-corestubs.zip
|
||||
http://hg.netbeans.org/binaries/997BF4A93B8A99E37AB51C9016D1D18CF5FF4B60-js-domstubs.zip
|
||||
http://hg.netbeans.org/binaries/A723CD3E76C92CFE563B602035532C1C9D3D7192-js-reststubs.zip
|
||||
http://hg.netbeans.org/binaries/036FA0032B44AD06A1F13504D97B3685B1C88961-jsch.agentproxy.core-0.0.7.jar
|
||||
http://hg.netbeans.org/binaries/9F31964104D71855DF6B73F0C761CDEB3FA3C49C-jsch.agentproxy.sshagent-0.0.7.jar
|
||||
http://hg.netbeans.org/binaries/3FA59A536F3DC2197826DC7F224C0823C1534203-jsch.agentproxy.pageant-0.0.7.jar
|
||||
http://hg.netbeans.org/binaries/F759114E5A9F9AE907EADB59DBF65189AA399B45-jsch.agentproxy.usocket-jna-0.0.7.jar
|
||||
http://hg.netbeans.org/binaries/2E07375E5CA3A452472F0E87FB33F243F7A5C08C-libpam4j-1.1.jar
|
||||
http://hg.netbeans.org/binaries/76E901A1F432323E7E90FC86FDB2534A28952293-nashorn-02f810c26ff9-patched.jar
|
||||
http://hg.netbeans.org/binaries/010FC8BD229B7F68C8C4D5BDE399475373096601-non-schema.jar
|
||||
http://hg.netbeans.org/binaries/7052E115041D04410A4519A61307502FB7C138E6-org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar
|
||||
http://hg.netbeans.org/binaries/B19A4D998C76FE7A30830C96B9E3A47682F320FC-org.eclipse.core.jobs-3.5.101.jar
|
||||
http://hg.netbeans.org/binaries/E64EF6A3FC5DB01AD95632B843706CCE56614C90-org.eclipse.core.net_1.2.100.I20110511-0800.jar
|
||||
http://hg.netbeans.org/binaries/6658C235056134F7E86295E751129508802D71F2-org.eclipse.core.runtime-3.7.0.jar
|
||||
http://hg.netbeans.org/binaries/0CA9B9DF8A8E4C6805C60A5761C470FCE8AE828F-org.eclipse.core.runtime.compatibility.auth_3.2.200.v20110110.jar
|
||||
http://hg.netbeans.org/binaries/9C74D245214DB08E7EB9BC07A951B41CFE3E3648-org.eclipse.equinox.app-1.3.100.jar
|
||||
http://hg.netbeans.org/binaries/78E5D0B8516B042495660DA36CE5114650F8F156-org.eclipse.equinox.common_3.6.0.v20110523.jar
|
||||
http://hg.netbeans.org/binaries/FD94003A1BCE42008753522BFED68E5A84B92644-org.eclipse.equinox.preferences-3.4.2.jar
|
||||
http://hg.netbeans.org/binaries/54AE046B40C9095C2637F8D21664C5CD76E34485-org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar
|
||||
http://hg.netbeans.org/binaries/0FFB9B1D7CD992CE6C8AAEEC2F6F98DFBB1D2F91-org.eclipse.equinox.security-1.1.1.jar
|
||||
http://hg.netbeans.org/binaries/7FE73A21F4A078ABAAFACE4D2B03B5EB3D306F63-org.eclipse.jgit-3.4.1.201406201815-r.jar
|
||||
http://hg.netbeans.org/binaries/49F1EFEBC8CECA5D514209BE18A048EB5707C0A7-org.eclipse.jgit.java7-3.4.1.201406201815-r.jar
|
||||
http://hg.netbeans.org/binaries/A94F8F805202B28236FFBC03C1CA149129DAEA1C-org.eclipse.mylyn.bugzilla.core_3.10.0.20131024-1218.jar
|
||||
http://hg.netbeans.org/binaries/19D64C17A692D2023E22B16AD515118DF6427790-org.eclipse.mylyn.commons.core_3.10.0.20130926-1710.jar
|
||||
http://hg.netbeans.org/binaries/A1BF01D1DD09274446738C3F83360314B8881CD5-org.eclipse.mylyn.commons.net_3.10.0.20131018-1210.jar
|
||||
http://hg.netbeans.org/binaries/136A7EB3BB9B2559C5F9184B438F108C959B3C03-org.eclipse.mylyn.commons.repositories.core_1.2.0.20130704-2116.jar
|
||||
http://hg.netbeans.org/binaries/531746EBE57071AB7F8CCC7ACB0E806F25893916-org.eclipse.mylyn.commons.xmlrpc_3.10.0.20130704-2116.jar
|
||||
http://hg.netbeans.org/binaries/D3ED088A49DE9E5163457E9279181DD4185BFBE6-org.eclipse.mylyn.tasks.core_3.10.0.20131010-2023.jar
|
||||
http://hg.netbeans.org/binaries/8D4278A9F47D17A104182E59CF06D682B3DE0B3E-org.eclipse.mylyn.wikitext.confluence.core_1.9.0.20131007-2055.jar
|
||||
http://hg.netbeans.org/binaries/1FC011B8A350B70950B3F1D722D7F2890C6E76D8-org.eclipse.mylyn.wikitext.core_1.9.0.20131007-2055.jar
|
||||
http://hg.netbeans.org/binaries/6E914CA3075C8FDF7652F04A02868CF32F2EDCE3-org.eclipse.mylyn.wikitext.textile.core_1.9.0.20131007-2055.jar
|
||||
http://hg.netbeans.org/binaries/8A2F6232978E0330A5D36F19BA0686F96FB980B5-org.tmatesoft.svnkit_1.8.4.r10218_v20140302_1242.jar
|
||||
http://hg.netbeans.org/binaries/820FD32B3FB7F885996B15474F220BDCCACD6D27-processtreekiller-1.0.2.jar
|
||||
http://hg.netbeans.org/binaries/B0D0FCBAC68826D2AFA3C7C89FC4D57B95A000C3-resolver-1.2.jar
|
||||
http://hg.netbeans.org/binaries/D08E473A4D0510FB329D64E4CC4F2963D000699C-svnClientAdapter-javahl-1.10.3.jar
|
||||
http://hg.netbeans.org/binaries/2CD487DCDE4C4FC38D1C9EBCD45418A1B5EF188D-svnClientAdapter-main-1.10.3.jar
|
||||
http://hg.netbeans.org/binaries/5D37A7FE167A1D44731192748C79B2D7905D474F-svnClientAdapter-svnkit-1.10.3.jar
|
||||
http://hg.netbeans.org/binaries/24CEAE4A9A2AAAA0BD78FF001914BA06B59CEDF2-svnjavahl-1.8.4.jar
|
||||
http://hg.netbeans.org/binaries/4F94E5B4F14B4571A1D8E37885A3037C91F7C02C-svnkit_1.7.8.r9538_v20130107_2001.jar
|
||||
http://hg.netbeans.org/binaries/C0D8A3265D194CC886BAFD585117B6465FD97DCE-swingx-all-1.6.4.jar
|
||||
http://hg.netbeans.org/binaries/EDE7FBABD4C96D34E48FDA0E8FECED24C98CEDCA-sqljet-1.1.10.jar
|
||||
http://hg.netbeans.org/binaries/CD5B5996B46CB8D96C8F0F89A7A734B3C01F3DF7-tomcat-webserver-3.2.jar
|
||||
http://hg.netbeans.org/binaries/CE9A1C96875443F2FDD5127B750DA39CF4CE818B-com.trilead.ssh2_1.0.0.build217_r155_v20130603_1628.jar
|
||||
http://hg.netbeans.org/binaries/89BC047153217F5254506F4C622A771A78883CBC-ValidationAPI.jar
|
||||
http://hg.netbeans.org/binaries/6FC6098C230D7CBA5730106D379CBBB42F6EC48A-validator.jar
|
||||
http://hg.netbeans.org/binaries/C9757EFB2CFBA523A7375A78FA9ECFAF0D0AC505-winp-1.14-patched.jar
|
||||
http://hg.netbeans.org/binaries/64F5BEEADD2A239C4BC354B8DFDB97CF7FDD9983-xmlrpc-client-3.0.jar
|
||||
http://hg.netbeans.org/binaries/8FA16AD28B5E79A7CD52B8B72985B0AE8CCD6ADF-xmlrpc-common-3.0.jar
|
||||
http://hg.netbeans.org/binaries/D6917BF718583002CBE44E773EE21E2DF08ADC71-xmlrpc-server-3.0.jar"
|
||||
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
S="${WORKDIR}"
|
||||
|
||||
CDEPEND="~dev-java/netbeans-harness-${PV}
|
||||
~dev-java/netbeans-platform-${PV}
|
||||
dev-java/commons-httpclient:3
|
||||
dev-java/commons-lang:2.1
|
||||
dev-java/commons-logging:0
|
||||
dev-java/icu4j:4.4
|
||||
<=dev-java/iso-relax-20050331-r3:0
|
||||
dev-java/jdbc-mysql:0
|
||||
dev-java/jdbc-postgresql:0
|
||||
>=dev-java/json-simple-1.1:0
|
||||
dev-java/jsr173:0
|
||||
dev-java/jvyamlb:0
|
||||
dev-java/log4j:0
|
||||
dev-java/lucene:3.5
|
||||
dev-java/rhino:1.6
|
||||
dev-java/saxon:9
|
||||
dev-java/smack:2.2
|
||||
dev-java/sun-jaf:0
|
||||
dev-java/tomcat-servlet-api:2.2
|
||||
dev-java/ws-commons-util:0
|
||||
dev-java/xerces:2"
|
||||
# dev-vcs/subversion>=1.8.4:0[java] missing from the tree
|
||||
# app-text/jing:0 our version is probably too old
|
||||
# dev-java/commons-io:1 fails with "Missing manifest tag OpenIDE-Module"
|
||||
# dev-java/freemarker:2.3
|
||||
# dev-java/ini4j:0 our version is too old
|
||||
# dev-java/jaxb:2 upstream version contains more stuff so websvccommon does not compile with ours
|
||||
# dev-java/trilead-ssh2:0 in overlay
|
||||
DEPEND="virtual/jdk:1.7
|
||||
app-arch/unzip
|
||||
dev-java/commons-codec:0
|
||||
>=dev-java/jsch-0.1.46:0
|
||||
dev-java/jzlib:0
|
||||
${CDEPEND}
|
||||
dev-java/javacc:0
|
||||
dev-java/javahelp:0"
|
||||
RDEPEND=">=virtual/jdk-1.7
|
||||
${CDEPEND}"
|
||||
|
||||
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||
|
||||
EANT_BUILD_XML="nbbuild/build.xml"
|
||||
EANT_BUILD_TARGET="rebuild-cluster"
|
||||
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.ide -Dext.binaries.downloaded=true -Djava.awt.headless=true"
|
||||
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||
JAVA_PKG_BSFIX="off"
|
||||
|
||||
JAVA_PKG_WANT_SOURCE="1.7"
|
||||
JAVA_PKG_WANT_TARGET="1.7"
|
||||
|
||||
src_unpack() {
|
||||
unpack $(basename ${SOURCE_URL})
|
||||
|
||||
einfo "Deleting bundled jars..."
|
||||
find -name "*.jar" -type f -delete
|
||||
|
||||
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||
|
||||
pushd "${S}" >/dev/null || die
|
||||
ln -s "${DISTDIR}"/4E74C6BE42FE89871A878C7C4D6158F21A6D8010-antlr-runtime-3.4.jar libs.antlr3.runtime/external/antlr-runtime-3.4.jar || die
|
||||
ln -s "${DISTDIR}"/98308890597ACB64047F7E896638E0D98753AE82-asm-all-4.0.jar libs.nashorn/external/asm-all-4.0.jar || die
|
||||
ln -s "${DISTDIR}"/886FAF4B85054DD6E50D9B3438542F432B5F9251-bytelist-0.1.jar libs.bytelist/external/bytelist-0.1.jar || die
|
||||
ln -s "${DISTDIR}"/A8762D07E76CFDE2395257A5DA47BA7C1DBD3DCE-commons-io-1.4.jar o.apache.commons.io/external/commons-io-1.4.jar || die
|
||||
ln -s "${DISTDIR}"/CD0D5510908225F76C5FE5A3F1DF4FA44866F81E-commons-net-3.3.jar libs.commons_net/external/commons-net-3.3.jar || die
|
||||
ln -s "${DISTDIR}"/901D8F815922C435D985DA3814D20E34CC7622CB-css21-spec.zip css.editor/external/css21-spec.zip || die
|
||||
ln -s "${DISTDIR}"/53AFD6CAA1B476204557B0626E7D673FBD5D245C-css3-spec.zip css.editor/external/css3-spec.zip || die
|
||||
ln -s "${DISTDIR}"/C9A6304FAA121C97CB2458B93D30B1FD6F0F7691-derbysampledb.zip derby/external/derbysampledb.zip || die
|
||||
ln -s "${DISTDIR}"/C40DFDACDF892D1BA14B540B32C11B6F34659931-exechlp-1.0.zip dlight.nativeexecution/external/exechlp-1.0.zip || die
|
||||
ln -s "${DISTDIR}"/5EEAAC41164FEBCB79C73BEBD678A7B6C10C3E80-freemarker-2.3.19.jar libs.freemarker/external/freemarker-2.3.19.jar || die
|
||||
ln -s "${DISTDIR}"/75C30C488AD2A18A82C7FE3829F4A33FC7841643-glassfish-tooling-sdk-0.3-b054-246345.jar libs.glassfish.sdk/external/glassfish-tooling-sdk-0.3-b054-246345.jar || die
|
||||
ln -s "${DISTDIR}"/23123BB29025254556B6E573023FCDF0F6715A66-html-4.01.zip html.editor/external/html-4.01.zip || die
|
||||
ln -s "${DISTDIR}"/F4A1696661E6233F8C27EE323CAEF9CB052666F1-html5-datatypes.jar html.validation/external/html5-datatypes.jar || die
|
||||
ln -s "${DISTDIR}"/4388C34B9F085A42FBEA06C5B00FDF0A251171EC-html5doc.zip html.parser/external/html5doc.zip || die
|
||||
ln -s "${DISTDIR}"/D528B44AE7593D2275927396BF930B28078C5220-htmlparser-1.2.1.jar html.parser/external/htmlparser-1.2.1.jar || die
|
||||
ln -s "${DISTDIR}"/8E737D82ECAC9BA6100A9BBA71E92A381B75EFDC-ini4j-0.5.1.jar libs.ini4j/external/ini4j-0.5.1.jar || die
|
||||
ln -s "${DISTDIR}"/A2862B7795EF0E0F0716BEC84528FA3B629E479C-io-xml-util.jar html.validation/external/io-xml-util.jar || die
|
||||
ln -s "${DISTDIR}"/0DCC973606CBD9737541AA5F3E76DED6E3F4D0D0-iri.jar html.validation/external/iri.jar || die
|
||||
ln -s "${DISTDIR}"/F90E3DA5259DB07F36E6987EFDED647A5231DE76-ispell-enwl-3.1.20.zip spellchecker.dictionary_en/external/ispell-enwl-3.1.20.zip || die
|
||||
ln -s "${DISTDIR}"/71F434378F822B09A57174AF6C75D37408687C57-jaxb-api.jar xml.jaxb.api/external/jaxb-api.jar || die
|
||||
ln -s "${DISTDIR}"/27FAE927B5B9AE53A5B0ED825575DD8217CE7042-jaxb-api-doc.zip libs.jaxb/external/jaxb-api-doc.zip || die
|
||||
ln -s "${DISTDIR}"/387BE740EAEF52B3F6E6EE2F140757E7632584CE-jaxb-impl.jar libs.jaxb/external/jaxb-impl.jar || die
|
||||
ln -s "${DISTDIR}"/C3787DAB0DDFBD9E98086ED2F219859B0CB77EF7-jaxb-xjc.jar libs.jaxb/external/jaxb-xjc.jar || die
|
||||
ln -s "${DISTDIR}"/F4DB465F207907A2406B0BF5C8FFEE22A5C3E4E3-jaxb1-impl.jar libs.jaxb/external/jaxb1-impl.jar || die
|
||||
ln -s "${DISTDIR}"/5E40984A55F6FFF704F05D511A119CA5B456DDB1-jfxrt.jar libs.javafx/external/jfxrt.jar || die
|
||||
ln -s "${DISTDIR}"/483A61B688B13C62BB201A683D98A6688B5373B6-jing.jar html.validation/external/jing.jar || die
|
||||
ln -s "${DISTDIR}"/DA6CE3C2EB334DB61EFA99CD66134619867368FA-js-corestubs.zip javascript2.editor/external/js-corestubs.zip || die
|
||||
ln -s "${DISTDIR}"/997BF4A93B8A99E37AB51C9016D1D18CF5FF4B60-js-domstubs.zip javascript2.editor/external/js-domstubs.zip || die
|
||||
ln -s "${DISTDIR}"/A723CD3E76C92CFE563B602035532C1C9D3D7192-js-reststubs.zip javascript2.editor/external/js-reststubs.zip || die
|
||||
ln -s "${DISTDIR}"/036FA0032B44AD06A1F13504D97B3685B1C88961-jsch.agentproxy.core-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.core-0.0.7.jar || die
|
||||
ln -s "${DISTDIR}"/9F31964104D71855DF6B73F0C761CDEB3FA3C49C-jsch.agentproxy.sshagent-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.sshagent-0.0.7.jar || die
|
||||
ln -s "${DISTDIR}"/3FA59A536F3DC2197826DC7F224C0823C1534203-jsch.agentproxy.pageant-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.pageant-0.0.7.jar || die
|
||||
ln -s "${DISTDIR}"/F759114E5A9F9AE907EADB59DBF65189AA399B45-jsch.agentproxy.usocket-jna-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.usocket-jna-0.0.7.jar || die
|
||||
ln -s "${DISTDIR}"/2E07375E5CA3A452472F0E87FB33F243F7A5C08C-libpam4j-1.1.jar extexecution.impl/external/libpam4j-1.1.jar || die
|
||||
ln -s "${DISTDIR}"/76E901A1F432323E7E90FC86FDB2534A28952293-nashorn-02f810c26ff9-patched.jar libs.nashorn/external/nashorn-02f810c26ff9-patched.jar || die
|
||||
ln -s "${DISTDIR}"/010FC8BD229B7F68C8C4D5BDE399475373096601-non-schema.jar html.validation/external/non-schema.jar || die
|
||||
ln -s "${DISTDIR}"/7052E115041D04410A4519A61307502FB7C138E6-org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar o.eclipse.core.contenttype/external/org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar || die
|
||||
ln -s "${DISTDIR}"/B19A4D998C76FE7A30830C96B9E3A47682F320FC-org.eclipse.core.jobs-3.5.101.jar o.eclipse.core.jobs/external/org.eclipse.core.jobs-3.5.101.jar || die
|
||||
ln -s "${DISTDIR}"/E64EF6A3FC5DB01AD95632B843706CCE56614C90-org.eclipse.core.net_1.2.100.I20110511-0800.jar o.eclipse.core.net/external/org.eclipse.core.net_1.2.100.I20110511-0800.jar || die
|
||||
ln -s "${DISTDIR}"/6658C235056134F7E86295E751129508802D71F2-org.eclipse.core.runtime-3.7.0.jar o.eclipse.core.runtime/external/org.eclipse.core.runtime-3.7.0.jar || die
|
||||
ln -s "${DISTDIR}"/0CA9B9DF8A8E4C6805C60A5761C470FCE8AE828F-org.eclipse.core.runtime.compatibility.auth_3.2.200.v20110110.jar o.eclipse.core.runtime.compatibility.auth/external/org.eclipse.core.runtime.compatibility.auth_3.2.200.v20110110.jar || die
|
||||
ln -s "${DISTDIR}"/9C74D245214DB08E7EB9BC07A951B41CFE3E3648-org.eclipse.equinox.app-1.3.100.jar o.eclipse.equinox.app/external/org.eclipse.equinox.app-1.3.100.jar || die
|
||||
ln -s "${DISTDIR}"/78E5D0B8516B042495660DA36CE5114650F8F156-org.eclipse.equinox.common_3.6.0.v20110523.jar o.eclipse.equinox.common/external/org.eclipse.equinox.common_3.6.0.v20110523.jar || die
|
||||
ln -s "${DISTDIR}"/FD94003A1BCE42008753522BFED68E5A84B92644-org.eclipse.equinox.preferences-3.4.2.jar o.eclipse.equinox.preferences/external/org.eclipse.equinox.preferences-3.4.2.jar || die
|
||||
ln -s "${DISTDIR}"/54AE046B40C9095C2637F8D21664C5CD76E34485-org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar o.eclipse.equinox.registry/external/org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar || die
|
||||
ln -s "${DISTDIR}"/0FFB9B1D7CD992CE6C8AAEEC2F6F98DFBB1D2F91-org.eclipse.equinox.security-1.1.1.jar o.eclipse.equinox.security/external/org.eclipse.equinox.security-1.1.1.jar || die
|
||||
ln -s "${DISTDIR}"/7FE73A21F4A078ABAAFACE4D2B03B5EB3D306F63-org.eclipse.jgit-3.4.1.201406201815-r.jar o.eclipse.jgit/external/org.eclipse.jgit-3.4.1.201406201815-r.jar || die
|
||||
ln -s "${DISTDIR}"/49F1EFEBC8CECA5D514209BE18A048EB5707C0A7-org.eclipse.jgit.java7-3.4.1.201406201815-r.jar o.eclipse.jgit.java7/external/org.eclipse.jgit.java7-3.4.1.201406201815-r.jar || die
|
||||
ln -s "${DISTDIR}"/A94F8F805202B28236FFBC03C1CA149129DAEA1C-org.eclipse.mylyn.bugzilla.core_3.10.0.20131024-1218.jar o.eclipse.mylyn.bugzilla.core/external/org.eclipse.mylyn.bugzilla.core_3.10.0.20131024-1218.jar || die
|
||||
ln -s "${DISTDIR}"/19D64C17A692D2023E22B16AD515118DF6427790-org.eclipse.mylyn.commons.core_3.10.0.20130926-1710.jar o.eclipse.mylyn.commons.core/external/org.eclipse.mylyn.commons.core_3.10.0.20130926-1710.jar || die
|
||||
ln -s "${DISTDIR}"/A1BF01D1DD09274446738C3F83360314B8881CD5-org.eclipse.mylyn.commons.net_3.10.0.20131018-1210.jar o.eclipse.mylyn.commons.net/external/org.eclipse.mylyn.commons.net_3.10.0.20131018-1210.jar || die
|
||||
ln -s "${DISTDIR}"/136A7EB3BB9B2559C5F9184B438F108C959B3C03-org.eclipse.mylyn.commons.repositories.core_1.2.0.20130704-2116.jar o.eclipse.mylyn.commons.repositories.core/external/org.eclipse.mylyn.commons.repositories.core_1.2.0.20130704-2116.jar || die
|
||||
ln -s "${DISTDIR}"/531746EBE57071AB7F8CCC7ACB0E806F25893916-org.eclipse.mylyn.commons.xmlrpc_3.10.0.20130704-2116.jar o.eclipse.mylyn.commons.xmlrpc/external/org.eclipse.mylyn.commons.xmlrpc_3.10.0.20130704-2116.jar || die
|
||||
ln -s "${DISTDIR}"/D3ED088A49DE9E5163457E9279181DD4185BFBE6-org.eclipse.mylyn.tasks.core_3.10.0.20131010-2023.jar o.eclipse.mylyn.tasks.core/external/org.eclipse.mylyn.tasks.core_3.10.0.20131010-2023.jar || die
|
||||
ln -s "${DISTDIR}"/8D4278A9F47D17A104182E59CF06D682B3DE0B3E-org.eclipse.mylyn.wikitext.confluence.core_1.9.0.20131007-2055.jar o.eclipse.mylyn.wikitext.confluence.core/external/org.eclipse.mylyn.wikitext.confluence.core_1.9.0.20131007-2055.jar || die
|
||||
ln -s "${DISTDIR}"/1FC011B8A350B70950B3F1D722D7F2890C6E76D8-org.eclipse.mylyn.wikitext.core_1.9.0.20131007-2055.jar o.eclipse.mylyn.wikitext.core/external/org.eclipse.mylyn.wikitext.core_1.9.0.20131007-2055.jar || die
|
||||
ln -s "${DISTDIR}"/6E914CA3075C8FDF7652F04A02868CF32F2EDCE3-org.eclipse.mylyn.wikitext.textile.core_1.9.0.20131007-2055.jar o.eclipse.mylyn.wikitext.textile.core/external/org.eclipse.mylyn.wikitext.textile.core_1.9.0.20131007-2055.jar || die
|
||||
ln -s "${DISTDIR}"/8A2F6232978E0330A5D36F19BA0686F96FB980B5-org.tmatesoft.svnkit_1.8.4.r10218_v20140302_1242.jar libs.svnClientAdapter.svnkit/external/org.tmatesoft.svnkit_1.8.4.r10218_v20140302_1242.jar || die
|
||||
ln -s "${DISTDIR}"/4F94E5B4F14B4571A1D8E37885A3037C91F7C02C-svnkit_1.7.8.r9538_v20130107_2001.jar libs.svnClientAdapter.svnkit/external/svnkit_1.7.8.r9538_v20130107_2001.jar || die
|
||||
ln -s "${DISTDIR}"/820FD32B3FB7F885996B15474F220BDCCACD6D27-processtreekiller-1.0.2.jar extexecution.impl/external/processtreekiller-1.0.2.jar || die
|
||||
ln -s "${DISTDIR}"/B0D0FCBAC68826D2AFA3C7C89FC4D57B95A000C3-resolver-1.2.jar o.apache.xml.resolver/external/resolver-1.2.jar || die
|
||||
ln -s "${DISTDIR}"/EDE7FBABD4C96D34E48FDA0E8FECED24C98CEDCA-sqljet-1.1.10.jar libs.svnClientAdapter.svnkit/external/sqljet-1.1.10.jar || die
|
||||
ln -s "${DISTDIR}"/D08E473A4D0510FB329D64E4CC4F2963D000699C-svnClientAdapter-javahl-1.10.3.jar libs.svnClientAdapter.javahl/external/svnClientAdapter-javahl-1.10.3.jar || die
|
||||
ln -s "${DISTDIR}"/2CD487DCDE4C4FC38D1C9EBCD45418A1B5EF188D-svnClientAdapter-main-1.10.3.jar libs.svnClientAdapter/external/svnClientAdapter-main-1.10.3.jar || die
|
||||
ln -s "${DISTDIR}"/5D37A7FE167A1D44731192748C79B2D7905D474F-svnClientAdapter-svnkit-1.10.3.jar libs.svnClientAdapter.svnkit/external/svnClientAdapter-svnkit-1.10.3.jar || die
|
||||
ln -s "${DISTDIR}"/24CEAE4A9A2AAAA0BD78FF001914BA06B59CEDF2-svnjavahl-1.8.4.jar libs.svnClientAdapter.javahl/external/svnjavahl-1.8.4.jar || die
|
||||
ln -s "${DISTDIR}"/3B91269E9055504778F57744D24F505856698602-svnkit-1.7.0-beta4-20120316.233307-1.jar libs.svnClientAdapter.svnkit/external/svnkit-1.7.0-beta4-20120316.233307-1.jar || die
|
||||
ln -s "${DISTDIR}"/015525209A02BD74254930FF844C7C13498B7FB9-svnkit-javahl16-1.7.0-beta4-20120316.233536-1.jar libs.svnClientAdapter.svnkit/external/svnkit-javahl16-1.7.0-beta4-20120316.233536-1.jar || die
|
||||
ln -s "${DISTDIR}"/C0D8A3265D194CC886BAFD585117B6465FD97DCE-swingx-all-1.6.4.jar libs.swingx/external/swingx-all-1.6.4.jar || die
|
||||
ln -s "${DISTDIR}"/CD5B5996B46CB8D96C8F0F89A7A734B3C01F3DF7-tomcat-webserver-3.2.jar httpserver/external/tomcat-webserver-3.2.jar || die
|
||||
ln -s "${DISTDIR}"/CE9A1C96875443F2FDD5127B750DA39CF4CE818B-com.trilead.ssh2_1.0.0.build217_r155_v20130603_1628.jar libs.svnClientAdapter.svnkit/external/com.trilead.ssh2_1.0.0.build217_r155_v20130603_1628.jar || die
|
||||
ln -s "${DISTDIR}"/89BC047153217F5254506F4C622A771A78883CBC-ValidationAPI.jar swing.validation/external/ValidationAPI.jar || die
|
||||
ln -s "${DISTDIR}"/6FC6098C230D7CBA5730106D379CBBB42F6EC48A-validator.jar html.validation/external/validator.jar || die
|
||||
ln -s "${DISTDIR}"/64F5BEEADD2A239C4BC354B8DFDB97CF7FDD9983-xmlrpc-client-3.0.jar o.apache.xmlrpc/external/xmlrpc-client-3.0.jar || die
|
||||
ln -s "${DISTDIR}"/8FA16AD28B5E79A7CD52B8B72985B0AE8CCD6ADF-xmlrpc-common-3.0.jar o.apache.xmlrpc/external/xmlrpc-common-3.0.jar || die
|
||||
ln -s "${DISTDIR}"/D6917BF718583002CBE44E773EE21E2DF08ADC71-xmlrpc-server-3.0.jar o.apache.xmlrpc/external/xmlrpc-server-3.0.jar || die
|
||||
ln -s "${DISTDIR}"/C9757EFB2CFBA523A7375A78FA9ECFAF0D0AC505-winp-1.14-patched.jar extexecution.impl/external/winp-1.14-patched.jar || die
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
einfo "Deleting bundled class files..."
|
||||
find -name "*.class" -type f | xargs rm -vf
|
||||
|
||||
epatch netbeans-8.0.2-build.xml.patch
|
||||
|
||||
# Support for custom patches
|
||||
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||
|
||||
if [ -n "${files}" ] ; then
|
||||
einfo "Applying custom patches:"
|
||||
|
||||
for file in ${files} ; do
|
||||
epatch "${file}"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
einfo "Symlinking external libraries..."
|
||||
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||
java-pkg_jar-from --into libs.json_simple/external json-simple json-simple.jar json-simple-1.1.1.jar
|
||||
|
||||
einfo "Linking in other clusters..."
|
||||
mkdir "${S}"/nbbuild/netbeans || die
|
||||
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||
|
||||
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||
touch nb.cluster.platform.built
|
||||
|
||||
ln -s /usr/share/netbeans-harness-${SLOT} harness || die
|
||||
cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||
touch nb.cluster.harness.built
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
java-pkg_jar-from --build-only --into c.jcraft.jsch/external jsch jsch.jar jsch-0.1.49.jar
|
||||
java-pkg_jar-from --build-only --into c.jcraft.jzlib/external jzlib jzlib.jar jzlib-1.0.7.jar
|
||||
java-pkg_jar-from --into db.drivers/external jdbc-mysql jdbc-mysql.jar mysql-connector-java-5.1.23-bin.jar
|
||||
java-pkg_jar-from --into db.drivers/external jdbc-postgresql jdbc-postgresql.jar postgresql-9.2-1002.jdbc4.jar
|
||||
java-pkg_jar-from --build-only --into db.sql.visualeditor/external javacc javacc.jar javacc-3.2.jar
|
||||
java-pkg_jar-from --into html.parser/external icu4j-4.4 icu4j.jar icu4j-4_4_2.jar
|
||||
java-pkg_jar-from --into html.validation/external iso-relax isorelax.jar isorelax.jar
|
||||
java-pkg_jar-from --into html.validation/external log4j log4j.jar log4j-1.2.15.jar
|
||||
java-pkg_jar-from --into html.validation/external saxon-9 saxon.jar saxon9B.jar
|
||||
# java-pkg_jar-from --into libs.freemarker/external freemarker-2.3 freemarker.jar freemarker-2.3.19.jar
|
||||
java-pkg_jar-from --into libs.jvyamlb/external jvyamlb jvyamlb.jar jvyamlb-0.2.3.jar
|
||||
java-pkg_jar-from --into libs.lucene/external lucene-3.5 lucene-core.jar lucene-core-3.5.0.jar
|
||||
java-pkg_jar-from --into libs.smack/external smack-2.2 smack.jar smack.jar
|
||||
java-pkg_jar-from --into libs.smack/external smack-2.2 smackx.jar smackx.jar
|
||||
# java-pkg_jar-from --into libs.svnClientAdapter.javahl/external subversion svn-javahl.jar svnjavahl-1.8.4.jar
|
||||
java-pkg_jar-from --into libs.xerces/external xerces-2 xercesImpl.jar xerces-2.8.0.jar
|
||||
java-pkg_jar-from --build-only --into o.apache.commons.codec/external commons-codec commons-codec.jar apache-commons-codec-1.3.jar
|
||||
java-pkg_jar-from --into o.apache.commons.httpclient/external commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.1.jar
|
||||
java-pkg_jar-from --into o.apache.commons.lang/external commons-lang-2.1 commons-lang.jar commons-lang-2.4.jar
|
||||
java-pkg_jar-from --into o.apache.commons.logging/external commons-logging commons-logging.jar commons-logging-1.1.1.jar
|
||||
java-pkg_jar-from --into o.apache.ws.commons.util/external ws-commons-util ws-commons-util.jar ws-commons-util-1.0.1.jar
|
||||
java-pkg_jar-from --into servletapi/external tomcat-servlet-api-2.2 servlet.jar servlet-2.2.jar
|
||||
java-pkg_jar-from --into xml.jaxb.api/external sun-jaf activation.jar activation.jar
|
||||
java-pkg_jar-from --into xml.jaxb.api/external jsr173 jsr173.jar jsr173_1.0_api.jar
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
unset DISPLAY
|
||||
eant -f ${EANT_BUILD_XML} ${EANT_EXTRA_ARGS} ${EANT_BUILD_TARGET} || die "Compilation failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd nbbuild/netbeans/ide >/dev/null || die
|
||||
|
||||
insinto ${INSTALL_DIR}
|
||||
|
||||
grep -E "/ide$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||
|
||||
doins -r *
|
||||
rm -fr "${D}"/${INSTALL_DIR}/bin/nativeexecution || die
|
||||
rm -fr "${D}"/${INSTALL_DIR}/modules/lib || die
|
||||
|
||||
insinto ${INSTALL_DIR}/bin/nativeexecution
|
||||
doins bin/nativeexecution/*
|
||||
|
||||
pushd "${D}"/${INSTALL_DIR}/bin/nativeexecution >/dev/null || die
|
||||
for file in *.sh ; do
|
||||
fperms 755 ${file}
|
||||
done
|
||||
popd >/dev/null || die
|
||||
|
||||
if use x86 ; then
|
||||
doins -r bin/nativeexecution/Linux-x86
|
||||
pushd "${D}"/${INSTALL_DIR}/bin/nativeexecution/Linux-x86 >/dev/null || die
|
||||
for file in * ; do
|
||||
fperms 755 ${file}
|
||||
done
|
||||
popd >/dev/null || die
|
||||
elif use amd64 ; then
|
||||
doins -r bin/nativeexecution/Linux-x86_64
|
||||
pushd "${D}"/${INSTALL_DIR}/bin/nativeexecution/Linux-x86_64 >/dev/null || die
|
||||
for file in * ; do
|
||||
fperms 755 ${file}
|
||||
done
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
local instdir=${INSTALL_DIR}/modules/ext
|
||||
pushd "${D}"/${instdir} >/dev/null || die
|
||||
# rm freemarker-2.3.19.jar && dosym /usr/share/freemarker-2.3/lib/freemarker.jar ${instdir}/freemarker-2.3.19.jar || die
|
||||
rm icu4j-4_4_2.jar && dosym /usr/share/icu4j-4.4/lib/icu4j.jar ${instdir}/icu4j-4_4_2.jar || die
|
||||
rm isorelax.jar && dosym /usr/share/iso-relax/lib/isorelax.jar ${instdir}/isorelax.jar || die
|
||||
rm json-simple-1.1.1.jar && dosym /usr/share/json-simple/lib/json-simple.jar ${instdir}/json-simple-1.1.1.jar || die
|
||||
rm jvyamlb-0.2.3.jar && dosym /usr/share/jvyamlb/lib/jvyamlb.jar ${instdir}/jvyamlb-0.2.3.jar || die
|
||||
rm log4j-1.2.15.jar && dosym /usr/share/log4j/lib/log4j.jar ${instdir}/log4j-1.2.15.jar || die
|
||||
rm lucene-core-3.5.0.jar && dosym /usr/share/lucene-3.5/lib/lucene-core.jar ${instdir}/lucene-core-3.5.0.jar || die
|
||||
rm mysql-connector-java-5.1.23-bin.jar && dosym /usr/share/jdbc-mysql/lib/jdbc-mysql.jar ${instdir}/mysql-connector-java-5.1.23-bin.jar || die
|
||||
rm postgresql-9.2-1002.jdbc4.jar && dosym /usr/share/jdbc-postgresql/lib/jdbc-postgresql.jar ${instdir}/postgresql-9.2-1002.jdbc4.jar || die
|
||||
rm saxon9B.jar && dosym /usr/share/saxon-9/lib/saxon.jar ${instdir}/saxon9B.jar || die
|
||||
rm servlet-2.2.jar && dosym /usr/share/tomcat-servlet-api-2.2/lib/servlet.jar ${instdir}/servlet-2.2.jar || die
|
||||
rm smack.jar && dosym /usr/share/smack-2.2/lib/smack.jar ${instdir}/smack.jar || die
|
||||
rm smackx.jar && dosym /usr/share/smack-2.2/lib/smackx.jar ${instdir}/smackx.jar || die
|
||||
# rm svnjavahl.jar && dosym /usr/share/subversion/lib/svn-javahl.jar ${instdir}/svnjavahl.jar || die
|
||||
rm xerces-2.8.0.jar && dosym /usr/share/xerces-2/lib/xercesImpl.jar ${instdir}/xerces-2.8.0.jar || die
|
||||
popd >/dev/null || die
|
||||
|
||||
local instdir=${INSTALL_DIR}/modules/ext/jaxb
|
||||
pushd "${D}"/${instdir} >/dev/null || die
|
||||
rm activation.jar && dosym /usr/share/sun-jaf/lib/activation.jar ${instdir}/activation.jar || die
|
||||
popd >/dev/null || die
|
||||
|
||||
local instdir=${INSTALL_DIR}/modules/ext/jaxb/api
|
||||
pushd "${D}"/${instdir} >/dev/null || die
|
||||
rm jsr173_1.0_api.jar && dosym /usr/share/jsr173/lib/jsr173.jar ${instdir}/jsr173_1.0_api.jar || die
|
||||
popd >/dev/null || die
|
||||
|
||||
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/ide
|
||||
}
|
@ -1,134 +0,0 @@
|
||||
--- build.xml.orig 2015-05-12 16:41:01.813664913 +0000
|
||||
+++ build.xml 2015-05-12 16:44:10.434652444 +0000
|
||||
@@ -28,7 +28,7 @@
|
||||
<property name="tool.dir" value="tools" />
|
||||
<property name="bin.dir" value="bin" />
|
||||
|
||||
- <property name="project.version" value="1.8.7" />
|
||||
+ <property name="project.version" value="1.8.8" />
|
||||
|
||||
<!-- pdfbox -->
|
||||
<property name="pdfbox.project.name" value="pdfbox"/>
|
||||
@@ -95,9 +95,6 @@
|
||||
<property name="testoutput-ext.dir" value="${pdfbox.target.dir}/test-output-ext"/>
|
||||
<property name="testinput-ext.dir" value="${pdfbox.target.dir}/test-input-ext"/>
|
||||
|
||||
- <property name="adobefiles.url" value="${maven.repo2}/com/adobe/pdf/pcfi/2010.08.09/pcfi-2010.08.09.jar"/>
|
||||
- <property name="adobefiles.jar" value="${download.dir}/pcfi-2010.08.09.jar"/>
|
||||
-
|
||||
<property name="file" value=""/>
|
||||
|
||||
<!--.NET properties -->
|
||||
@@ -171,7 +168,7 @@
|
||||
<mkdir dir="${jempbox.dest.dir}"/>
|
||||
</target>
|
||||
|
||||
- <target name="pdfbox.compile" depends="fontbox.package,jempbox.package,pdfbox.init,get.adobefiles"
|
||||
+ <target name="pdfbox.compile" depends="fontbox.package,jempbox.package,pdfbox.init"
|
||||
description="Compile Java source files">
|
||||
<!-- required encoding flag to be able to build using ibm-jdk on redhat ES-->
|
||||
<javac srcdir="${pdfbox.src.dir}" destdir="${pdfbox.dest.dir}"
|
||||
@@ -206,31 +203,6 @@
|
||||
|
||||
<target name="test" depends="testextract,test-junit,testimage" description="Run all the junit tests"/>
|
||||
|
||||
- <target name="find.adobefiles">
|
||||
- <available property="adobefiles.found" file="${dest.dir}/org/apache/pdfbox/resources/cmap"/>
|
||||
- </target>
|
||||
-
|
||||
- <target name="get.adobefiles"
|
||||
- unless="adobefiles.found" depends="find.adobefiles"
|
||||
- description="Download and unpack afm and cmap files from Adobe">
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${adobefiles.url}"/>
|
||||
- <param name="destfile" value="${adobefiles.jar}"/>
|
||||
- </antcall>
|
||||
- <unjar src="${adobefiles.jar}" dest="${pdfbox.dest.dir}/org/apache/pdfbox/resources/afm">
|
||||
- <patternset>
|
||||
- <include name="com/adobe/pdf/pcfi/afm/*.afm"/>
|
||||
- </patternset>
|
||||
- <mapper type="flatten"/>
|
||||
- </unjar>
|
||||
- <unjar src="${adobefiles.jar}" dest="${pdfbox.dest.dir}/org/apache/pdfbox/resources">
|
||||
- <patternset>
|
||||
- <include name="com/adobe/pdf/pcfi/glyphlist.txt"/>
|
||||
- </patternset>
|
||||
- <mapper type="flatten"/>
|
||||
- </unjar>
|
||||
- </target>
|
||||
-
|
||||
<target name="testextract" depends="clean,pdfbox.compile" description="Test text extraction">
|
||||
<junit printsummary="off" fork="on" dir=".">
|
||||
<jvmarg value="-Xmx1024M"/>
|
||||
@@ -341,52 +313,7 @@
|
||||
</checkstyle>
|
||||
</target>
|
||||
|
||||
- <target name="get.externallibs.pdfbox">
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${bcmail.url}"/>
|
||||
- <param name="destfile" value="${bcmail.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${bcprov.url}"/>
|
||||
- <param name="destfile" value="${bcprov.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${junit.url}"/>
|
||||
- <param name="destfile" value="${junit.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${logging.url}"/>
|
||||
- <param name="destfile" value="${logging.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${icu4j.url}"/>
|
||||
- <param name="destfile" value="${icu4j.jar}"/>
|
||||
- </antcall>
|
||||
- </target>
|
||||
-
|
||||
- <target name="get.externallibs.fontbox">
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${junit.url}"/>
|
||||
- <param name="destfile" value="${junit.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${logging.url}"/>
|
||||
- <param name="destfile" value="${logging.jar}"/>
|
||||
- </antcall>
|
||||
- </target>
|
||||
-
|
||||
- <target name="get.externallibs.jempbox">
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${junit.url}"/>
|
||||
- <param name="destfile" value="${junit.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${logging.url}"/>
|
||||
- <param name="destfile" value="${logging.jar}"/>
|
||||
- </antcall>
|
||||
- </target>
|
||||
-
|
||||
- <target name="pdfbox.package" depends="get.externallibs.pdfbox,pdfbox.compile" description="Package pdfbox into a jar file">
|
||||
+ <target name="pdfbox.package" depends="pdfbox.compile" description="Package pdfbox into a jar file">
|
||||
<propertyfile file="${pdfbox.resources.dir}/org/apache/pdfbox/resources/pdfbox.version">
|
||||
<entry key="pdfbox.version" value="${pdfbox.release.name}"/>
|
||||
</propertyfile>
|
||||
@@ -405,7 +332,7 @@
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
- <target name="fontbox.package" depends="get.externallibs.fontbox,fontbox.compile" description="Package fontbox into a jar file">
|
||||
+ <target name="fontbox.package" depends="fontbox.compile" description="Package fontbox into a jar file">
|
||||
<jar jarfile="${fontbox.jar}">
|
||||
<fileset dir="${fontbox.dest.dir}"/>
|
||||
<metainf dir="." includes="*.txt"/>
|
||||
@@ -419,7 +346,7 @@
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
- <target name="jempbox.package" depends="get.externallibs.jempbox,jempbox.compile" description="Package jempbox into a jar file">
|
||||
+ <target name="jempbox.package" depends="jempbox.compile" description="Package jempbox into a jar file">
|
||||
<jar jarfile="${jempbox.jar}">
|
||||
<fileset dir="${jempbox.dest.dir}"/>
|
||||
<metainf dir="." includes="*.txt"/>
|
@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
EAPI=5
|
||||
|
||||
JAVA_PKG_IUSE="source test"
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Java library and utilities for working with PDF documents"
|
||||
HOMEPAGE="http://pdfbox.apache.org/"
|
||||
ADOBE_FILES="pcfi-2010.08.09.jar"
|
||||
SRC_URI="mirror://apache/${PN}/${PV}/${P}-src.zip
|
||||
http://repo2.maven.org/maven2/com/adobe/pdf/pcfi/2010.08.09/${ADOBE_FILES}"
|
||||
LICENSE="BSD"
|
||||
SLOT="1.8"
|
||||
KEYWORDS="amd64 ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="dev-java/icu4j:4
|
||||
dev-java/junit:4
|
||||
dev-java/bcprov:1.45
|
||||
dev-java/bcmail:1.45
|
||||
>=dev-java/commons-logging-1.1.1:0"
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
${CDEPEND}"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
app-arch/unzip
|
||||
test? (
|
||||
dev-java/ant-junit:0 )
|
||||
${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
||||
|
||||
EANT_GENTOO_CLASSPATH="bcprov-1.45,bcmail-1.45,commons-logging,junit-4,icu4j-4"
|
||||
EANT_BUILD_TARGET="pdfbox.package"
|
||||
WANT_ANT_TASKS="ant-nodeps"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# This patch:
|
||||
# - turns off downloads
|
||||
# - increments version number (silly mistake from upstream)
|
||||
epatch "${FILESDIR}"/${P}-build.xml.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
java-pkg-2_src_compile
|
||||
mv target/${P}.jar ${P}.jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar ${P}.jar ${PN}.jar
|
||||
|
||||
if use source; then
|
||||
java-pkg_dosrc src/main/java/org
|
||||
fi
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue