parent
2b94b04210
commit
85207707ce
@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4"
|
||||
HOMEPAGE="http://backintime.le-web.org/"
|
||||
SRC_URI="http://${PN}.le-web.org/wp-content/uploads/2009/03/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="kde gnome"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/keyring[${PYTHON_USEDEP}]
|
||||
dev-python/notify-python[${PYTHON_USEDEP}]
|
||||
net-misc/openssh
|
||||
net-misc/rsync[xattr,acl]
|
||||
kde? (
|
||||
>=kde-base/kdelibs-4
|
||||
kde-base/pykde4[${PYTHON_USEDEP}]
|
||||
kde-apps/kompare:4
|
||||
kde-apps/kdesu:4
|
||||
)
|
||||
gnome? (
|
||||
gnome-base/libglade
|
||||
dev-util/meld
|
||||
gnome-base/gnome-session
|
||||
dev-python/gnome-vfs-python
|
||||
dev-python/libgnome-python
|
||||
dev-python/pygobject:2[${PYTHON_USEDEP}]
|
||||
dev-python/pygtk[${PYTHON_USEDEP}]
|
||||
x11-libs/gksu
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-dont-install-license.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.0.4-fix-configure-warning.diff
|
||||
|
||||
#fix doc install location
|
||||
sed -i "s:/doc/kde4/HTML/:/doc/HTML/:g" kde4/Makefile.template || die
|
||||
sed -i "s:/doc/backintime:/doc/${PF}:g" common/Makefile.template || die
|
||||
|
||||
cp "${FILESDIR}"/backintime-1.0.4-kde4-root.desktop \
|
||||
kde4/backintime-kde4-root.desktop || die
|
||||
|
||||
#bug 482106
|
||||
epatch "${FILESDIR}"/${P}-wrapper.patch
|
||||
sed -e "s:^python2 :${PYTHON} :" \
|
||||
-e "s:APP_PATH=\"/usr:APP_PATH=\"${EPREFIX}/usr:" \
|
||||
-i kde4/backintime-kde4 gnome/backintime-gnome \
|
||||
common/backintime || die
|
||||
|
||||
backintime_variants="common $(usex gnome gnome '') $(usex kde kde4 '')"
|
||||
backintime_run() {
|
||||
local variant
|
||||
for variant in ${backintime_variants} ; do
|
||||
einfo "$variant: run \"$@\""
|
||||
pushd "${S}"/${variant} || die
|
||||
"${@}" || die
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
if [ -n ${LINGUAS+x} ] ; then
|
||||
cd common/po || die
|
||||
for po in *.po ; do
|
||||
if ! has ${po/.po} ${LINGUAS} ; then
|
||||
rm ${po} || die
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
backintime_run econf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
backintime_run emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
backintime_run emake DESTDIR="${D}" install
|
||||
python_optimize "${D}"
|
||||
}
|
@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4"
|
||||
HOMEPAGE="http://backintime.le-web.org/"
|
||||
SRC_URI="http://${PN}.le-web.org/download/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="kde gnome"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/keyring[${PYTHON_USEDEP}]
|
||||
dev-python/notify-python[${PYTHON_USEDEP}]
|
||||
net-misc/openssh
|
||||
net-misc/rsync[xattr,acl]
|
||||
kde? (
|
||||
>=kde-base/kdelibs-4
|
||||
kde-base/pykde4[${PYTHON_USEDEP}]
|
||||
kde-apps/kompare:4
|
||||
kde-apps/kdesu:4
|
||||
)
|
||||
gnome? (
|
||||
gnome-base/libglade
|
||||
dev-util/meld
|
||||
gnome-base/gnome-session
|
||||
dev-python/gnome-vfs-python
|
||||
dev-python/libgnome-python
|
||||
dev-python/pygobject:2[${PYTHON_USEDEP}]
|
||||
dev-python/pygtk[${PYTHON_USEDEP}]
|
||||
x11-libs/gksu
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.0.24-dont-install-license.patch
|
||||
|
||||
#fix doc install location
|
||||
sed -i "s:/doc/kde4/HTML/:/doc/HTML/:g" kde4/Makefile.template || die
|
||||
sed -i "s:/doc/backintime:/doc/${PF}:g" common/Makefile.template || die
|
||||
|
||||
cp "${FILESDIR}"/backintime-1.0.4-kde4-root.desktop \
|
||||
kde4/backintime-kde4-root.desktop || die
|
||||
|
||||
#bug 482106
|
||||
epatch "${FILESDIR}"/${P}-wrapper.patch
|
||||
sed -e "s:^python2 :${PYTHON} :" \
|
||||
-e "s:APP_PATH=\"/usr:APP_PATH=\"${EPREFIX}/usr:" \
|
||||
-i kde4/backintime-kde4 gnome/backintime-gnome \
|
||||
common/backintime || die
|
||||
|
||||
backintime_variants="common $(usex gnome gnome '') $(usex kde kde4 '')"
|
||||
backintime_run() {
|
||||
local variant
|
||||
for variant in ${backintime_variants} ; do
|
||||
einfo "$variant: run \"$@\""
|
||||
pushd "${S}"/${variant} || die
|
||||
"${@}" || die
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
if [ -n ${LINGUAS+x} ] ; then
|
||||
cd common/po || die
|
||||
for po in *.po ; do
|
||||
if ! has ${po/.po} ${LINGUAS} ; then
|
||||
rm ${po} || die
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
backintime_run econf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
backintime_run emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
backintime_run emake DESTDIR="${D}" install
|
||||
python_optimize "${D}"
|
||||
}
|
@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4"
|
||||
HOMEPAGE="http://backintime.le-web.org/"
|
||||
SRC_URI="http://${PN}.le-web.org/download/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="kde gnome"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/keyring[${PYTHON_USEDEP}]
|
||||
dev-python/notify-python[${PYTHON_USEDEP}]
|
||||
net-misc/openssh
|
||||
net-misc/rsync[xattr,acl]
|
||||
kde? (
|
||||
>=kde-base/kdelibs-4
|
||||
kde-base/pykde4[${PYTHON_USEDEP}]
|
||||
kde-apps/kompare:4
|
||||
kde-apps/kdesu:4
|
||||
)
|
||||
gnome? (
|
||||
gnome-base/libglade
|
||||
dev-util/meld
|
||||
gnome-base/gnome-session
|
||||
dev-python/gnome-vfs-python
|
||||
dev-python/libgnome-python
|
||||
dev-python/pygobject:2[${PYTHON_USEDEP}]
|
||||
dev-python/pygtk[${PYTHON_USEDEP}]
|
||||
x11-libs/gksu
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.0.24-dont-install-license.patch
|
||||
|
||||
#fix doc install location
|
||||
sed -i "s:/doc/kde4/HTML/:/doc/HTML/:g" kde4/Makefile.template || die
|
||||
sed -i "s:/doc/backintime:/doc/${PF}:g" common/Makefile.template || die
|
||||
|
||||
cp "${FILESDIR}"/backintime-1.0.4-kde4-root.desktop \
|
||||
kde4/backintime-kde4-root.desktop || die
|
||||
|
||||
#bug 482106
|
||||
epatch "${FILESDIR}"/${PN}-1.0.36-wrapper.patch
|
||||
sed -e "s:^python2 :${PYTHON} :" \
|
||||
-e "s:APP_PATH=\"/usr:APP_PATH=\"${EPREFIX}/usr:" \
|
||||
-i kde4/backintime-kde4 gnome/backintime-gnome \
|
||||
common/backintime || die
|
||||
|
||||
backintime_variants="common $(usex gnome gnome '') $(usex kde kde4 '')"
|
||||
backintime_run() {
|
||||
local variant
|
||||
for variant in ${backintime_variants} ; do
|
||||
einfo "$variant: run \"$@\""
|
||||
pushd "${S}"/${variant} || die
|
||||
"${@}" || die
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
if [ -n ${LINGUAS+x} ] ; then
|
||||
cd common/po || die
|
||||
for po in *.po ; do
|
||||
if ! has ${po/.po} ${LINGUAS} ; then
|
||||
rm ${po} || die
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
backintime_run econf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
backintime_run emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
backintime_run emake DESTDIR="${D}" install
|
||||
python_optimize "${D}"
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
DESCRIPTION="(pseudo) incremental backup with different exclude lists using
|
||||
hardlinks and rsync"
|
||||
HOMEPAGE="http://unix.schottelius.org/ccollect/"
|
||||
SRC_URI="http://unix.schottelius.org/ccollect/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 hppa ppc x86"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="doc? ( >=app-text/asciidoc-7.0.2 )"
|
||||
RDEPEND="net-misc/rsync"
|
||||
|
||||
src_compile() {
|
||||
if use doc; then
|
||||
make documentation
|
||||
else
|
||||
einfo 'Nothing to compile'
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ccollect.sh
|
||||
|
||||
insinto /usr/share/${PN}/tools
|
||||
doins tools/*
|
||||
|
||||
if use doc; then
|
||||
dodoc doc/*
|
||||
|
||||
# dodoc is not recursive. So do a workaround.
|
||||
insinto /usr/share/doc/${PF}/examples/
|
||||
doins -r "${S}"/conf
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "If you're upgrading from 0.3.X or less, please run"
|
||||
ewarn "/usr/share/ccollect/tools/config-pre-0.4-to-0.4.sh"
|
||||
ewarn "because the old configuration is no longer compatible."
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="2"
|
||||
|
||||
DESCRIPTION="(pseudo) incremental backup with different exclude lists using hardlinks and rsync"
|
||||
HOMEPAGE="http://unix.schottelius.org/ccollect/"
|
||||
SRC_URI="http://unix.schottelius.org/ccollect/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="doc examples"
|
||||
|
||||
DEPEND="doc? ( >=app-text/asciidoc-8.1.0
|
||||
app-text/docbook-xsl-stylesheets
|
||||
app-text/docbook-xml-dtd:4.2
|
||||
dev-libs/libxslt )"
|
||||
RDEPEND="net-misc/rsync"
|
||||
|
||||
src_compile() {
|
||||
if use doc; then
|
||||
emake XSL=/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl documentation || die "building docs failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ccollect.sh
|
||||
dosym ccollect.sh /usr/bin/ccollect
|
||||
|
||||
local tools="add_source analyse_logs check_config delete_source list_intervals logwrapper stats"
|
||||
for t in ${tools} ; do
|
||||
newbin tools/ccollect_${t}.sh ccollect_${t}
|
||||
done
|
||||
|
||||
insinto /usr/share/${PN}/tools
|
||||
doins tools/config-pre* tools/{gnu-du-backup-size-compare,report_success}.sh
|
||||
|
||||
dodoc CREDITS README
|
||||
pushd doc/changes
|
||||
for n in * ; do
|
||||
newdoc ${n} NEWS-${n}
|
||||
done
|
||||
popd
|
||||
|
||||
if use doc; then
|
||||
dohtml doc/*.htm doc/*.html
|
||||
dohtml -r doc/man
|
||||
doman doc/man/*.1
|
||||
fi
|
||||
|
||||
if use examples ; then
|
||||
# dodoc is not recursive. So do a workaround.
|
||||
insinto /usr/share/doc/${PF}/examples/
|
||||
cp -Rdp "${S}/conf" "${D}/usr/share/doc/${PF}/examples/"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "If you're upgrading from 0.6.x or less, you'll have to"
|
||||
ewarn "upgrade your existing configuration as follows:"
|
||||
ewarn "1. Make the scripts in /usr/share/ccollect/scripts executable"
|
||||
ewarn "2. Run all config-pre-\$VER-to-\$VER.sh in /usr/share/ccollect/scripts"
|
||||
ewarn " ascending order, where \$VER is greater or equal than the version"
|
||||
ewarn " you upgraded from."
|
||||
ewarn "Example:"
|
||||
ewarn " You upgraded from 0.5, thus you have to run:"
|
||||
ewarn " /usr/share/ccollect/tools/config-pre-0.6-to-0.6.sh"
|
||||
ewarn " /usr/share/ccollect/tools/config-pre-0.7-to-0.7.sh"
|
||||
elog "Please note that many tools are now installed directly to /usr/bin"
|
||||
elog "as recommended by upstream."
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Allows streaming backup utilities to dump/restore from CD-R(W)s or DVD(+/-RW)s"
|
||||
HOMEPAGE="http://www.muempf.de/index.html"
|
||||
SRC_URI="http://www.muempf.de/down/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-cdr/cdrtools-1.11.28"
|
||||
DEPEND=""
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
sed -i -e '/cd\(backup\|restore\)/,+1 s:CFLAGS:LDFLAGS:' \
|
||||
"${S}"/Makefile || die "sed Makefile failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "make failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin cdbackup cdrestore || die "dobin failed"
|
||||
doman cdbackup.1 cdrestore.1 || die "doman failed"
|
||||
dodoc CHANGES CREDITS README || die "dodoc failed"
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
DESCRIPTION="A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)"
|
||||
HOMEPAGE="http://dar.linux.free.fr/"
|
||||
SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc sparc x86"
|
||||
IUSE="acl dar32 dar64 doc nls ssl"
|
||||
|
||||
RDEPEND=">=sys-libs/zlib-1.2.3
|
||||
>=app-arch/bzip2-1.0.2
|
||||
acl? ( sys-apps/attr )
|
||||
nls? ( virtual/libintl )
|
||||
ssl? ( dev-libs/openssl )"
|
||||
DEPEND="${RDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
pkg_setup() {
|
||||
if use dar32 && use dar64 ; then
|
||||
eerror "dar32 and dar64 cannot be enabled together."
|
||||
eerror "Please remove one of them and try the emerge again."
|
||||
die "Please remove dar32 or dar64."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
sed -i -e '/^dist_noinst_DATA/s/$/ macro_tools.hpp/' \
|
||||
-e '/^noinst_HEADERS/s/macro_tools.hpp//' \
|
||||
src/libdar/Makefile* || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconf="--disable-upx"
|
||||
|
||||
# Bug 103741
|
||||
filter-flags -fomit-frame-pointer
|
||||
|
||||
use acl || myconf="${myconf} --disable-ea-support"
|
||||
use dar32 && myconf="${myconf} --enable-mode=32"
|
||||
use dar64 && myconf="${myconf} --enable-mode=64"
|
||||
use doc || myconf="${myconf} --disable-build-html"
|
||||
# use examples && myconf="${myconf} --enable-examples"
|
||||
use nls || myconf="${myconf} --disable-nls"
|
||||
use ssl || myconf="${myconf} --disable-libcrypto-linking"
|
||||
|
||||
econf ${myconf} || die
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" pkgdatadir=/usr/share/doc/${PF}/html install || die
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="3"
|
||||
inherit confutils eutils flag-o-matic
|
||||
|
||||
DESCRIPTION="A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)"
|
||||
HOMEPAGE="http://dar.linux.free.fr/"
|
||||
SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux"
|
||||
IUSE="acl dar32 dar64 doc gcrypt lzo nls static static-libs"
|
||||
|
||||
RESTRICT="test" # need to be run as root
|
||||
|
||||
RDEPEND=">=sys-libs/zlib-1.2.3
|
||||
>=app-arch/bzip2-1.0.2
|
||||
acl? (
|
||||
static? ( sys-apps/attr[static-libs] )
|
||||
!static? ( sys-apps/attr )
|
||||
)
|
||||
gcrypt? ( dev-libs/libgcrypt:0 )
|
||||
lzo? ( dev-libs/lzo )
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
pkg_setup() {
|
||||
confutils_use_conflict dar32 dar64
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--disable-upx"
|
||||
|
||||
# Bug 103741
|
||||
filter-flags -fomit-frame-pointer
|
||||
|
||||
use acl || myconf="${myconf} --disable-ea-support"
|
||||
use dar32 && myconf="${myconf} --enable-mode=32"
|
||||
use dar64 && myconf="${myconf} --enable-mode=64"
|
||||
use doc || myconf="${myconf} --disable-build-html"
|
||||
# use examples && myconf="${myconf} --enable-examples"
|
||||
use gcrypt || myconf="${myconf} --disable-libgcrypt-linking"
|
||||
use lzo || myconf="${myconf} --disable-liblzo2-linking"
|
||||
use nls || myconf="${myconf} --disable-nls"
|
||||
if ! use static ; then
|
||||
myconf="${myconf} --disable-dar-static"
|
||||
if ! use static-libs ; then
|
||||
myconf="${myconf} --disable-static"
|
||||
fi
|
||||
fi
|
||||
|
||||
econf ${myconf} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install || die
|
||||
|
||||
if ! use static-libs ; then
|
||||
find "${ED}" "(" -name '*.la' -o -name '*.a' ")" -delete || die
|
||||
fi
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
DESCRIPTION="mylvmbackup is a tool for quickly creating backups of MySQL server's data files using LVM snapshots"
|
||||
HOMEPAGE="http://lenzg.net/mylvmbackup/"
|
||||
SRC_URI="http://lenzg.net/${PN}/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~ppc ~amd64"
|
||||
IUSE=""
|
||||
DEPEND=">=app-text/asciidoc-8.1.0"
|
||||
RDEPEND="dev-perl/Config-IniFiles
|
||||
>=sys-fs/lvm2-2.02.06
|
||||
dev-perl/DBD-mysql
|
||||
virtual/mysql
|
||||
dev-perl/TimeDate"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
sed -i \
|
||||
-e '/^prefix/s,/usr/local,/usr,' \
|
||||
"${S}"/Makefile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 install DESTDIR="${D}" mandir="/usr/share/man" || die
|
||||
dodoc ChangeLog README TODO
|
||||
keepdir /var/tmp/${PN}/{backup,mnt}
|
||||
fperms 0700 /var/tmp/${PN}/
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
DESCRIPTION="mylvmbackup is a tool for quickly creating backups of MySQL server's data files using LVM snapshots"
|
||||
HOMEPAGE="http://lenzg.net/mylvmbackup/"
|
||||
SRC_URI="http://lenzg.net/${PN}/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~ppc ~amd64"
|
||||
IUSE=""
|
||||
DEPEND=""
|
||||
RDEPEND="dev-perl/Config-IniFiles
|
||||
>=sys-fs/lvm2-2.02.06
|
||||
dev-perl/DBD-mysql
|
||||
virtual/mysql
|
||||
dev-perl/TimeDate"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
sed -i \
|
||||
-e '/^prefix/s,/usr/local,/usr,' \
|
||||
"${S}"/Makefile
|
||||
sed -i 's|mycnf=/etc/my.cnf|mycnf=/etc/mysql/my.cnf|' "${S}"/mylvmbackup.conf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}" mandir="/usr/share/man" || die
|
||||
dodoc ChangeLog README TODO
|
||||
keepdir /var/tmp/${PN}/{backup,mnt}
|
||||
fperms 0700 /var/tmp/${PN}/
|
||||
}
|
@ -1,9 +1,6 @@
|
||||
AUX rdiff-backup-1.2.8-popen2.patch 775 SHA256 f03636261abc2e38865cf32e8deed655aeb9261938663a0456e6153906abaf74 SHA512 28fec1cfa705c9e3e2761a73139dedb29c79b5a6b4b8635fbf1cd9c4d7f9d14a407ba93e2cb441547a17ecfe77ed47a7ffef5b5a861e4226a59c856a664b0651 WHIRLPOOL 1d33de06f142a15e66fd39d705a0b734f94106d2067a6340f99b6ad7ea54bb49434c52ce46c1cc6ecd3184a599fe4443612d9d73b6823e684f15fa9725471b02
|
||||
DIST rdiff-backup-1.2.8.tar.gz 196526 SHA256 0d91a85b40949116fa8aaf15da165c34a2d15449b3cbe01c8026391310ac95db SHA512 4230bdfca7fc2a5ffd7bdc92ca899cde3276042115b4f488255a201e6ea361eab4ce4ebaae15841c357f189e1c88ad037e2727dec0a05c61b1c6016fa807739c WHIRLPOOL 7ca049a78ac3d19083cfc08bfc09348837179e9c0cb151293e1cc972df48a21a9885d89bbeb2c9cacb443f5a8267df6720dce10c4673710bbcc51b98658df9ff
|
||||
DIST rdiff-backup-1.3.3.tar.gz 198412 SHA256 ee030ce638df0eb1047cf72578e0de15d9a3ee9ab24da2dc0023e2978be30c06 SHA512 e2731464a6ff146cdecac49d2d99275dc5e6b4a3ff5b8209fe6dc71fd80cdbf573d029531325a879e9a169c12b31568f75fdcb812f53df33896784c5bc550280 WHIRLPOOL 04f3257c8a1dd6b8c81ec1f7d3fb7d1e4bba9bb97020b0932d2a72d9279924147ec98c74e5f9952b5c14c50675ac03f7d7956875ce58c1e677571c9cfab57f89
|
||||
EBUILD rdiff-backup-1.2.8-r1.ebuild 874 SHA256 b177354438015a59221ab9fc7a29afb3df57f26c4732b93ad301ca1077485bc2 SHA512 9e079780fa7df1b50e0da5f020f1fec547df2566e990fe73ff3a2051c3a67777b45369c02e62742c20f000f636bc34ed75c467212607932fbe5b2d99789e674f WHIRLPOOL c09e699e27d541416033661fb1cea5745cb0c6dcd297adb3f2d01c3069262b0b285ea3b4cba19a658a3dbca438a6b5945a2a3c81ac58a04fcd6179a31dcbb1ab
|
||||
EBUILD rdiff-backup-1.3.3-r1.ebuild 731 SHA256 6cbd624eeb536f4c89ad6d53bd8bf1d3959f80d3b781b1c1606c9b46ff89ea5b SHA512 e2d1b2b37a707f0c709bd14b18a386948672a5154936e0d2afd62b3af84d6db899d92eddf6ea7bade97fab703b6f1dc43b00ca91a3fae47d2f0e3dafc3414688 WHIRLPOOL 53c27e6a49f155d02331ec618710d138ff931b56fdfdde1cb5bb4bec4f03ec6f0e02530160164a91caae048a216268a4b41ae7f27c5c375ab26c6fd33c5b6f9e
|
||||
EBUILD rdiff-backup-1.3.3.ebuild 795 SHA256 f0757f3e2c19c50981e46fa4e70aff50351a70637983406053ac679cffde97cc SHA512 be1fba7ef4e4290c74122ac26e6c8751e46b1040521c7ebd809edd671b0e2f4bde661a99a0ca972a675cb8f8ec34849b5d3f341fd54ee91301d02825988c3ef0 WHIRLPOOL 6e2d4727623be6058e5ffcce06e33ce5dbf713d6b167b0bb94314d120f7a13a4b5494f4926a640cf2cb01ec65c790cf3e6c3f1d6acf6835177b65a74cdf3253a
|
||||
MISC ChangeLog 2609 SHA256 20d594aac1b9e1199db545c4e43b45af48808e2c48c0b602713fd5ac97210e61 SHA512 8e63057320043226e248e04225577165f6270909c78b1ac9ae22f9dca19e61f3eb26c6a0bee9a3115f313cc150e31c96c1c45ec591c97e2232f03e85384c08c0 WHIRLPOOL 5c62595f9745cbf2006887017eddc76cd94ec72b24c8233e2565fc6d41004a1616cc815abcb9483ee9c4be5db1928b3ebfd64dbdd64413060c9ee236705f8b19
|
||||
MISC ChangeLog-2015 14577 SHA256 d4de71d323d7c94108af7e12c24c50b05d70a04b4ce3b52e0076c73bb82d144a SHA512 4758280334c0acbce2a2863905a7051ce3010e8d0bb99c39045e580aa22cc78f9fdb4f09569d266dfa078f3a2a82aa50f2b664c2142080ecc33d9d818432f749 WHIRLPOOL 4a3ad8b7fda7dacddb702e6aee4c2c85f42adb03359447bb635d9b6bd2618912bff35454a3f45aa496666d266b0c1a954720c5b2c00fa6bbdbcae6875f8a9e65
|
||||
MISC metadata.xml 257 SHA256 6ec127437432502b53292765bf57ff0ef93489778b6bc66d842173f7bef99f5d SHA512 5837da2703972e42926e0681864b2c872f4b0af866da550c79367dcfc225844a466237e83449b4789cc179a4aa51fda4b42c88d3daab7812d82739f142a97299 WHIRLPOOL 6bbdfd02f3a949af0b836c8219439ba244f8645344392c23c6b6206026aa9683e0bdef26e6d430982d84e88032cd53230187e85aa73e11f2b1ba5a87d4abd9ad
|
||||
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-jython"
|
||||
|
||||
inherit distutils eutils
|
||||
|
||||
DESCRIPTION="Remote incremental file backup utility; uses librsync's rdiff utility to create concise, versioned backups"
|
||||
HOMEPAGE="http://www.nongnu.org/rdiff-backup/"
|
||||
SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ppc ppc64 sh sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="acl xattr"
|
||||
|
||||
DEPEND="~net-libs/librsync-0.9.7
|
||||
!arm? ( xattr? ( dev-python/pyxattr )
|
||||
acl? ( dev-python/pylibacl ) )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS="examples.html"
|
||||
PYTHON_MODNAME="rdiff_backup"
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
epatch "${FILESDIR}"/rdiff-backup-1.2.8-popen2.patch
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-jython"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="Remote incremental file backup utility; uses librsync's rdiff utility to create concise, versioned backups"
|
||||
HOMEPAGE="http://www.nongnu.org/rdiff-backup/"
|
||||
SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm ~mips ppc ppc64 sh sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||
IUSE="acl xattr"
|
||||
|
||||
DEPEND="~net-libs/librsync-0.9.7
|
||||
!arm? ( xattr? ( dev-python/pyxattr )
|
||||
acl? ( dev-python/pylibacl ) )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS="examples.html"
|
||||
PYTHON_MODNAME="rdiff_backup"
|
@ -1,77 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools eutils readme.gentoo
|
||||
|
||||
DESCRIPTION="A testsuite for the linux kernel"
|
||||
HOMEPAGE="http://linux-test-project.github.io/"
|
||||
SRC_URI="https://github.com/linux-test-project/ltp/archive/20130503.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="expect perl pm open-posix python rt"
|
||||
|
||||
DEPEND="expect? ( dev-tcltk/expect )
|
||||
perl? ( dev-lang/perl )
|
||||
python? ( dev-lang/python )"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup() {
|
||||
# Don't create groups
|
||||
export CREATE=0
|
||||
|
||||
DOC_CONTENTS="LTP requires root access to run the tests.
|
||||
The LTP root directory is located in /opt/${PN}.
|
||||
For more information please read the ltp-howto located in
|
||||
/usr/share/doc/${PF}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# regenerate
|
||||
AT_M4DIR="m4" eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# FIXME: improve me
|
||||
local myconf=
|
||||
use open-posix && myconf+="--with-open-posix-testsuite "
|
||||
use pm && mytconf+="--with-power-management-testsuite "
|
||||
use rt && myconf+="--with-realtime-testsuite "
|
||||
use perl && myconf+="--with-perl "
|
||||
use python && myconf+="--with-python "
|
||||
use expect && myconf+="--with-expect "
|
||||
|
||||
# Better put it into /opt/${PN} as everything needs to
|
||||
# be under the same directory..
|
||||
|
||||
econf --prefix=/opt/${PN} ${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Posix testsuite does not seem to build with -j>1
|
||||
# Is this maintained anymore?
|
||||
if use open-posix; then
|
||||
export MAKEOPTS="-j1"
|
||||
fi
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dosym /usr/libexec/${PN}/runltp /usr/bin/runltp
|
||||
# install docs
|
||||
dodoc doc/MaintNotes
|
||||
for txt in doc/*.txt; do
|
||||
dodoc ${txt}
|
||||
done
|
||||
dodoc -r doc/examples doc/testcases
|
||||
dohtml -r doc/automation-*.html
|
||||
doman doc/man1/*.1
|
||||
doman doc/man3/*.3
|
||||
readme.gentoo_create_doc
|
||||
}
|
@ -1,79 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools eutils readme.gentoo
|
||||
|
||||
DESCRIPTION="A testsuite for the linux kernel"
|
||||
HOMEPAGE="http://linux-test-project.github.io/"
|
||||
SRC_URI="https://github.com/linux-test-project/ltp/archive/20140828.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="expect perl pm open-posix python rt"
|
||||
|
||||
DEPEND="expect? ( dev-tcltk/expect )
|
||||
perl? ( dev-lang/perl )
|
||||
python? ( dev-lang/python )"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup() {
|
||||
# Don't create groups
|
||||
export CREATE=0
|
||||
|
||||
DOC_CONTENTS="LTP requires root access to run the tests.
|
||||
The LTP root directory is located in /opt/${PN}.
|
||||
For more information please read the ltp-howto located in
|
||||
/usr/share/doc/${PF}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# regenerate
|
||||
AT_M4DIR="m4" eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# FIXME: improve me
|
||||
local myconf=
|
||||
use open-posix && myconf+="--with-open-posix-testsuite "
|
||||
use pm && mytconf+="--with-power-management-testsuite "
|
||||
use rt && myconf+="--with-realtime-testsuite "
|
||||
use perl && myconf+="--with-perl "
|
||||
use python && myconf+="--with-python "
|
||||
use expect && myconf+="--with-expect "
|
||||
# Prevent any kernel stuff for now as it leads to sandbox violations
|
||||
myconf+="--without-modules --with-linux-dir=/dev/null"
|
||||
|
||||
# Better put it into /opt/${PN} as everything needs to
|
||||
# be under the same directory..
|
||||
|
||||
econf --prefix=/opt/${PN} ${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Posix testsuite does not seem to build with -j>1
|
||||
# Is this maintained anymore?
|
||||
if use open-posix; then
|
||||
export MAKEOPTS="-j1"
|
||||
fi
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dosym /usr/libexec/${PN}/runltp /usr/bin/runltp
|
||||
# install docs
|
||||
dodoc doc/MaintNotes
|
||||
for txt in doc/*.txt; do
|
||||
dodoc ${txt}
|
||||
done
|
||||
dodoc -r doc/testcases
|
||||
dohtml -r doc/automation-*.html
|
||||
doman doc/man1/*.1
|
||||
doman doc/man3/*.3
|
||||
readme.gentoo_create_doc
|
||||
}
|
@ -1,88 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
inherit eutils gnome2-utils versionator
|
||||
|
||||
MY_P=${PN}-$(replace_version_separator 2 '.')
|
||||
|
||||
DESCRIPTION="Data-protection and recovery tool for DVDs"
|
||||
HOMEPAGE="http://dvdisaster.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
SLOT="0"
|
||||
IUSE="debug linguas_cs linguas_de linguas_it linguas_ru cpu_flags_x86_sse2"
|
||||
|
||||
RDEPEND=">=x11-libs/gtk+-2.6:2
|
||||
media-libs/libpng
|
||||
sys-libs/zlib"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.72.1-libpng15.patch
|
||||
}
|
||||
|
||||
# - There is no autotools, use_ functions won't work
|
||||
# - NLS disabled because sys-devel/gettext fails, if you enable it
|
||||
# you need also virtual/libintl because it links to it for FreeBSD
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if use cpu_flags_x86_sse2; then
|
||||
myconf+=" --with-sse2=yes"
|
||||
else
|
||||
myconf+=" --with-sse2=no"
|
||||
fi
|
||||
|
||||
use debug && myconf+=" --with-memdebug=yes"
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--mandir=/usr/share/man \
|
||||
--docdir=/usr/share/doc \
|
||||
--docsubdir=${PF} \
|
||||
--localedir=/usr/share/locale \
|
||||
--buildroot="${D}" \
|
||||
--with-nls=no \
|
||||
${myconf} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install
|
||||
|
||||
newicon contrib/${PN}48.png ${PN}.png
|
||||
make_desktop_entry ${PN} ${PN} ${PN} "System;Utility"
|
||||
|
||||
for res in 16 32 48 64; do
|
||||
insinto /usr/share/icons/hicolor/${res}x${res}/apps
|
||||
newins contrib/${PN}${res}.png ${PN}.png
|
||||
done
|
||||
|
||||
local dest="${D}/usr/share"
|
||||
|
||||
for lang in cs de it ru; do
|
||||
use linguas_${lang} || rm -rf ${dest}/doc/${PF}/${lang} \
|
||||
${dest}/doc/${PF}/CREDITS.${lang} ${dest}/man/${lang}
|
||||
done
|
||||
|
||||
rm -f "${D}"/usr/bin/*.sh
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools-utils linux-info udev user
|
||||
|
||||
DESCRIPTION="Yubico Universal 2nd Factor (U2F) Host C Library"
|
||||
HOMEPAGE="https://developers.yubico.com/libu2f-host/"
|
||||
SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="kernel_linux static-libs systemd"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/hidapi
|
||||
dev-libs/json-c"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${RDEPEND}
|
||||
systemd? ( sys-apps/systemd[acl] )"
|
||||
|
||||
CONFIG_CHECK="~HIDRAW"
|
||||
|
||||
pkg_setup() {
|
||||
# The U2F device node will be owned by group 'plugdev'
|
||||
# in non-systemd configurations
|
||||
if ! use systemd; then
|
||||
enewgroup plugdev
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
autotools-utils_src_prepare
|
||||
|
||||
sed -e 's:TAG+="uaccess":MODE="0664", GROUP="plugdev":g' \
|
||||
70-u2f.rules > 70-u2f-udev.rules || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
if use kernel_linux; then
|
||||
if use systemd; then
|
||||
udev_dorules 70-u2f.rules
|
||||
else
|
||||
udev_newrules 70-u2f-udev.rules 70-u2f.rules
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use systemd; then
|
||||
elog "Users must be a member of the 'plugdev' group"
|
||||
elog "to be able to access U2F devices"
|
||||
fi
|
||||
}
|
@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
PYTHON_DEPEND="python? 2"
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
|
||||
inherit autotools-utils python
|
||||
|
||||
DESCRIPTION="Library that implements the AFF image standard"
|
||||
HOMEPAGE="https://github.com/simsong/AFFLIBv3"
|
||||
SRC_URI="mirror://github/simsong/AFFLIBv3/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 hppa ppc x86"
|
||||
IUSE="fuse ncurses python qemu readline s3 static-libs threads"
|
||||
|
||||
RDEPEND="dev-libs/expat
|
||||
dev-libs/openssl:0
|
||||
sys-libs/zlib
|
||||
fuse? ( sys-fs/fuse )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
readline? ( sys-libs/readline:0 )
|
||||
s3? ( net-misc/curl )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-python-module.patch
|
||||
"${FILESDIR}"/${PN}-3.6.12-pyaff-header.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if use python ; then
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -e '/FLAGS/s: -g::' \
|
||||
-e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \
|
||||
-i configure.ac || die
|
||||
|
||||
sed -i -e '/-static/d' tools/Makefile.am || die
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Hacks for automagic dependencies
|
||||
use ncurses || export ac_cv_lib_ncurses_initscr=no
|
||||
use readline || export ac_cv_lib_readline_readline=no
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_enable fuse)
|
||||
$(use_enable python)
|
||||
$(use_enable qemu)
|
||||
$(use_enable s3)
|
||||
$(use_enable threads threading)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
AUTOTOOLS_PRUNE_LIBTOOL_FILES=modules
|
||||
|
||||
inherit autotools-utils python-single-r1
|
||||
|
||||
MY_PN=AFFLIBv3
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Library that implements the AFF image standard"
|
||||
HOMEPAGE="https://github.com/simsong/AFFLIBv3/"
|
||||
SRC_URI="https://github.com/simsong/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="fuse ncurses python qemu readline s3 static-libs threads"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="dev-libs/expat
|
||||
dev-libs/openssl:0
|
||||
sys-libs/zlib
|
||||
fuse? ( sys-fs/fuse )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0 )
|
||||
s3? ( net-misc/curl )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.7.1-python-module.patch
|
||||
"${FILESDIR}"/${PN}-3.6.12-pyaff-header.patch
|
||||
)
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i '/FLAGS/s: -g::' configure.ac || die
|
||||
sed -i '/-static/d' tools/Makefile.am || die
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Hacks for automagic dependencies
|
||||
use ncurses || export ac_cv_lib_ncurses_initscr=no
|
||||
use readline || export ac_cv_lib_readline_readline=no
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_enable fuse)
|
||||
$(use_enable python)
|
||||
$(use_enable qemu)
|
||||
$(use_enable s3)
|
||||
$(use_enable threads threading)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
@ -1,146 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a replacement for Tripwire"
|
||||
HOMEPAGE="http://aide.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/aide/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="acl curl mhash nls postgres selinux static xattr zlib"
|
||||
#IUSE="acl audit curl mhash nls postgres selinux static xattr zlib"
|
||||
|
||||
# libsandbox: Can't dlopen libc: (null)
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="acl? ( sys-apps/acl )
|
||||
curl? ( net-misc/curl )
|
||||
mhash? ( >=app-crypt/mhash-0.9.2 )
|
||||
!mhash? ( dev-libs/libgcrypt )
|
||||
nls? ( virtual/libintl )
|
||||
postgres? ( dev-db/postgresql )
|
||||
selinux? (
|
||||
sys-libs/libselinux
|
||||
sec-policy/selinux-aide
|
||||
)
|
||||
xattr? ( sys-apps/attr )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
# audit? ( sys-process/audit )
|
||||
|
||||
RDEPEND="!static? ( ${DEPEND} )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
sys-devel/bison
|
||||
sys-devel/flex"
|
||||
|
||||
pkg_setup() {
|
||||
if use mhash && use postgres ; then
|
||||
eerror "We cannot emerge aide with mhash and postgres USE flags at the same time."
|
||||
eerror "Please remove mhash OR postgres USE flags."
|
||||
die "Please remove either mhash or postgres USE flag."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
epatch "${FILESDIR}/${P}-gentoo.patch"
|
||||
|
||||
# fix configure switch
|
||||
epatch "${FILESDIR}/${P}-configure.patch"
|
||||
|
||||
# fix equal match issue, bug #204217
|
||||
epatch "${FILESDIR}/${P}-equ-matching.patch"
|
||||
|
||||
# fix libgcrypt issue, bug #266175
|
||||
epatch "${FILESDIR}/${P}-libgrypt_init.patch"
|
||||
|
||||
if ! use mhash ; then
|
||||
# dev-libs/libgcrypt doesn't support whirlpool algorithm
|
||||
sed -i -e 's/\+whirlpool//' doc/aide.conf.in || die
|
||||
fi
|
||||
|
||||
if ! use selinux ; then
|
||||
sed -i -e 's/\+selinux//' doc/aide.conf.in || die
|
||||
fi
|
||||
|
||||
if ! use xattr ; then
|
||||
sed -i -e 's/\+xattrs//' doc/aide.conf.in || die
|
||||
fi
|
||||
|
||||
if ! use acl ; then
|
||||
sed -i -e 's/\+acl//' doc/aide.conf.in || die
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconf="
|
||||
$(use_with acl posix-acl)
|
||||
$(use_with !mhash gcrypt)
|
||||
$(use_with mhash mhash)
|
||||
$(use_with nls locale)
|
||||
$(use_with postgres psql)
|
||||
$(use_with selinux)
|
||||
$(use_enable static)
|
||||
$(use_with xattr)
|
||||
$(use_with zlib)
|
||||
--sysconfdir=/etc/aide"
|
||||
# $(use_with audit)
|
||||
|
||||
# curl doesn't work with static
|
||||
use curl && ! use static && myconf="${myconf} --with-curl"
|
||||
|
||||
econf ${myconf} || die "econf failed"
|
||||
# parallel make borked
|
||||
emake -j1 || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
keepdir /var/lib/aide
|
||||
fowners root:0 /var/lib/aide
|
||||
fperms 0755 /var/lib/aide
|
||||
|
||||
keepdir /var/log/aide
|
||||
|
||||
insinto /etc/aide
|
||||
doins "${FILESDIR}"/aide.conf
|
||||
|
||||
dosbin "${FILESDIR}"/aideinit
|
||||
|
||||
dodoc ChangeLog AUTHORS NEWS README "${FILESDIR}"/aide.cron
|
||||
dohtml doc/manual.html
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "A sample configuration file has been installed as"
|
||||
elog "/etc/aide/aide.conf. Please edit to meet your needs."
|
||||
elog "Read the aide.conf(5) manual page for more information."
|
||||
elog "A helper script, aideinit, has been installed and can"
|
||||
elog "be used to make AIDE management easier. Please run"
|
||||
elog "aideinit --help for more information"
|
||||
elog
|
||||
|
||||
if use postgres; then
|
||||
elog "Due to a bad assumption by aide, you must issue the following"
|
||||
elog "command after the database initialization (aide --init ...):"
|
||||
elog
|
||||
elog 'psql -c "update pg_index set indisunique=false from pg_class \\ '
|
||||
elog " where pg_class.relname='TABLE_pkey' and \ "
|
||||
elog ' pg_class.oid=pg_index.indexrelid" -h HOSTNAME -p PORT DBASE USER'
|
||||
elog
|
||||
elog "where TABLE, HOSTNAME, PORT, DBASE, and USER are the same as"
|
||||
elog "your aide.conf."
|
||||
elog
|
||||
fi
|
||||
}
|
@ -1,152 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a replacement for Tripwire"
|
||||
HOMEPAGE="http://aide.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/aide/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="acl curl mhash nls postgres selinux static xattr zlib"
|
||||
#IUSE="acl audit curl mhash nls postgres selinux static xattr zlib"
|
||||
|
||||
# libsandbox: Can't dlopen libc: (null)
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="acl? ( sys-apps/acl )
|
||||
curl? ( net-misc/curl )
|
||||
mhash? ( >=app-crypt/mhash-0.9.2 )
|
||||
!mhash? ( dev-libs/libgcrypt )
|
||||
nls? ( virtual/libintl )
|
||||
postgres? ( dev-db/postgresql )
|
||||
selinux? (
|
||||
sys-libs/libselinux
|
||||
sec-policy/selinux-aide
|
||||
)
|
||||
xattr? ( sys-apps/attr )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
# audit? ( sys-process/audit )
|
||||
|
||||
RDEPEND="!static? ( ${DEPEND} )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
sys-devel/bison
|
||||
sys-devel/flex"
|
||||
|
||||
pkg_setup() {
|
||||
if use mhash && use postgres ; then
|
||||
eerror "We cannot emerge aide with mhash and postgres USE flags at the same time."
|
||||
eerror "Please remove mhash OR postgres USE flags."
|
||||
die "Please remove either mhash or postgres USE flag."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
epatch "${FILESDIR}/${P}-gentoo.patch"
|
||||
|
||||
# fix configure switch
|
||||
epatch "${FILESDIR}/${P}-configure.patch"
|
||||
|
||||
# fix equal match issue, bug #204217
|
||||
epatch "${FILESDIR}/${P}-equ-matching.patch"
|
||||
|
||||
# fix libgcrypt issue, bug #266175
|
||||
epatch "${FILESDIR}/${P}-libgrypt_init.patch"
|
||||
|
||||
# fix as-need issue, bug #271326
|
||||
epatch "${FILESDIR}/${P}-as-needed.patch"
|
||||
|
||||
# fix zlib issue, bug #316665
|
||||
epatch "${FILESDIR}/${P}-zlib.patch"
|
||||
|
||||
if ! use mhash ; then
|
||||
# dev-libs/libgcrypt doesn't support whirlpool algorithm
|
||||
sed -i -e 's/\+whirlpool//' doc/aide.conf.in || die
|
||||
fi
|
||||
|
||||
if ! use selinux ; then
|
||||
sed -i -e 's/\+selinux//' doc/aide.conf.in || die
|
||||
fi
|
||||
|
||||
if ! use xattr ; then
|
||||
sed -i -e 's/\+xattrs//' doc/aide.conf.in || die
|
||||
fi
|
||||
|
||||
if ! use acl ; then
|
||||
sed -i -e 's/\+acl//' doc/aide.conf.in || die
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconf="
|
||||
$(use_with acl posix-acl)
|
||||
$(use_with !mhash gcrypt)
|
||||
$(use_with mhash mhash)
|
||||
$(use_with nls locale)
|
||||
$(use_with postgres psql)
|
||||
$(use_with selinux)
|
||||
$(use_enable static)
|
||||
$(use_with xattr)
|
||||
$(use_with zlib)
|
||||
--sysconfdir=/etc/aide"
|
||||
# $(use_with audit)
|
||||
|
||||
# curl doesn't work with static
|
||||
use curl && ! use static && myconf="${myconf} --with-curl"
|
||||
|
||||
econf ${myconf} || die "econf failed"
|
||||
# parallel make borked
|
||||
emake -j1 || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
keepdir /var/lib/aide
|
||||
fowners root:0 /var/lib/aide
|
||||
fperms 0755 /var/lib/aide
|
||||
|
||||
keepdir /var/log/aide
|
||||
|
||||
insinto /etc/aide
|
||||
doins "${FILESDIR}"/aide.conf
|
||||
|
||||
dosbin "${FILESDIR}"/aideinit
|
||||
|
||||
dodoc ChangeLog AUTHORS NEWS README "${FILESDIR}"/aide.cron
|
||||
dohtml doc/manual.html
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "A sample configuration file has been installed as"
|
||||
elog "/etc/aide/aide.conf. Please edit to meet your needs."
|
||||
elog "Read the aide.conf(5) manual page for more information."
|
||||
elog "A helper script, aideinit, has been installed and can"
|
||||
elog "be used to make AIDE management easier. Please run"
|
||||
elog "aideinit --help for more information"
|
||||
elog
|
||||
|
||||
if use postgres; then
|
||||
elog "Due to a bad assumption by aide, you must issue the following"
|
||||
elog "command after the database initialization (aide --init ...):"
|
||||
elog
|
||||
elog 'psql -c "update pg_index set indisunique=false from pg_class \\ '
|
||||
elog " where pg_class.relname='TABLE_pkey' and \ "
|
||||
elog ' pg_class.oid=pg_index.indexrelid" -h HOSTNAME -p PORT DBASE USER'
|
||||
elog
|
||||
elog "where TABLE, HOSTNAME, PORT, DBASE, and USER are the same as"
|
||||
elog "your aide.conf."
|
||||
elog
|
||||
fi
|
||||
}
|
@ -1,141 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit eutils autotools
|
||||
|
||||
DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a replacement for Tripwire"
|
||||
HOMEPAGE="http://aide.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/aide/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="acl curl mhash nls postgres selinux static xattr zlib"
|
||||
#IUSE="acl audit curl mhash nls postgres selinux static xattr zlib"
|
||||
|
||||
DEPEND="acl? ( sys-apps/acl )
|
||||
curl? ( net-misc/curl )
|
||||
mhash? ( >=app-crypt/mhash-0.9.2 )
|
||||
!mhash? ( dev-libs/libgcrypt )
|
||||
nls? ( virtual/libintl )
|
||||
postgres? ( dev-db/postgresql )
|
||||
selinux? (
|
||||
sys-libs/libselinux
|
||||
sec-policy/selinux-aide
|
||||
)
|
||||
xattr? ( sys-apps/attr )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
# audit? ( sys-process/audit )
|
||||
|
||||
RDEPEND="!static? ( ${DEPEND} )
|
||||
virtual/mailx"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
sys-devel/bison
|
||||
sys-devel/flex"
|
||||
|
||||
pkg_setup() {
|
||||
if use mhash && use postgres ; then
|
||||
eerror "We cannot emerge aide with mhash and postgres USE flags at the same time."
|
||||
eerror "Please remove mhash OR postgres USE flags."
|
||||
die "Please remove either mhash or postgres USE flag."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/${P}-gentoo.patch
|
||||
|
||||
if ! use mhash ; then
|
||||
# dev-libs/libgcrypt doesn't support whirlpool algorithm
|
||||
sed -i -e 's/\+whirlpool//' doc/aide.conf.in || die
|
||||
fi
|
||||
|
||||
if ! use selinux ; then
|
||||
sed -i -e 's/\+selinux//' doc/aide.conf.in || die
|
||||
fi
|
||||
|
||||
if ! use xattr ; then
|
||||
sed -i -e 's/\+xattrs//' doc/aide.conf.in || die
|
||||
fi
|
||||
|
||||
if ! use acl ; then
|
||||
sed -i -e 's/\+acl//' doc/aide.conf.in || die
|
||||
fi
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconf="--sysconfdir=/etc/aide $(use_enable static)"
|
||||
|
||||
# --without-* borked
|
||||
use zlib && myconf="${myconf} --with-zlib"
|
||||
use nls && myconf="${myconf} --with-locale"
|
||||
use postgres && myconf="${myconf} --with-psql"
|
||||
use selinux && myconf="${myconf} --with-selinux"
|
||||
use acl && myconf="${myconf} --with-posix-acl"
|
||||
use xattr && myconf="${myconf} --with-xattr"
|
||||
# use audit && myconf="${myconf} --with-audit"
|
||||
|
||||
# curl doesn't work with static
|
||||
use curl && ! use static && myconf="${myconf} --with-curl"
|
||||
|
||||
# If you use dev-libs/libgcrypt, --without-mhash is needed.
|
||||
use mhash \
|
||||
&& myconf="${myconf} --with-mhash" \
|
||||
|| myconf="${myconf} --with-gcrypt --without-mhash"
|
||||
|
||||
econf ${myconf} || die
|
||||
# parallel make borked
|
||||
emake -j1 || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
keepdir /var/lib/aide
|
||||
keepdir /var/log/aide
|
||||
|
||||
insinto /etc/aide
|
||||
doins "${FILESDIR}"/aide.conf
|
||||
# doins doc/aide.conf
|
||||
|
||||
dosbin "${FILESDIR}"/aideinit
|
||||
|
||||
exeinto /etc/cron.daily
|
||||
doexe "${FILESDIR}"/aide.cron
|
||||
|
||||
dodoc ChangeLog AUTHORS NEWS README
|
||||
dohtml doc/manual.html
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
chown root:0 /var/lib/aide
|
||||
chmod 0755 /var/lib/aide
|
||||
|
||||
elog
|
||||
elog "A sample configuration file has been installed as"
|
||||
elog "/etc/aide/aide.conf. Please edit to meet your needs."
|
||||
elog "Read the aide.conf(5) manual page for more information."
|
||||
elog "A cron file has been installed in /etc/cron.daily/aide.cron"
|
||||
elog "A helper script, aideinit, has been installed and can"
|
||||
elog "be used to make AIDE management easier. Please run"
|
||||
elog "aideinit --help for more information"
|
||||
elog
|
||||
|
||||
if use postgres; then
|
||||
elog "Due to a bad assumption by aide, you must issue the following"
|
||||
elog "command after the database initialization (aide --init ...):"
|
||||
elog
|
||||
elog 'psql -c "update pg_index set indisunique=false from pg_class \\ '
|
||||
elog " where pg_class.relname='TABLE_pkey' and \ "
|
||||
elog ' pg_class.oid=pg_index.indexrelid" -h HOSTNAME -p PORT DBASE USER'
|
||||
elog
|
||||
elog "where TABLE, HOSTNAME, PORT, DBASE, and USER are the same as"
|
||||
elog "your aide.conf."
|
||||
elog
|
||||
fi
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
diff -Naur aide-0.13.1.orig/configure.in aide-0.13.1/configure.in
|
||||
--- aide-0.13.1.orig/configure.in 2006-12-09 06:49:21.000000000 +0900
|
||||
+++ aide-0.13.1/configure.in 2009-12-16 19:30:17.000000000 +0900
|
||||
@@ -546,12 +546,12 @@
|
||||
if test x$with_zlib = xyes; then
|
||||
AC_CHECK_HEADERS(zlib.h,,
|
||||
[AC_MSG_ERROR([You don't have zlib properly installed. Install it or try --without-zlib.])])
|
||||
- save_LDFLAGS=$LDFLAGS
|
||||
- LDFLAGS="$LDFLAGS $LD_STATIC_FLAG"
|
||||
+# saveLIBS=$LIBS
|
||||
+ LIBS="$LIBS -lz $LD_STATIC_FLAG"
|
||||
AC_CHECK_LIB(z,gzdopen,,
|
||||
[AC_MSG_ERROR([You don't have zlib properly installed. Install it or try --without-zlib.])]
|
||||
)
|
||||
- LDFLAGS=$save_LDFLAGS
|
||||
+# LIBS=$saveLIBS
|
||||
AC_DEFINE(WITH_ZLIB,1,[use zlib])
|
||||
fi
|
||||
|
||||
@@ -565,13 +565,13 @@
|
||||
fi
|
||||
AC_CHECK_HEADERS(curl/curl.h,,
|
||||
[AC_MSG_ERROR([You don't have curl properly installed. Install it or try --without-curl.])])
|
||||
-# save_LDFLAGS=$LDFLAGS
|
||||
+# saveLIBS=$LIBS
|
||||
CFLAGS="$CFLAGS $CURL_CFLAGS"
|
||||
- LDFLAGS="$LDFLAGS $CURL_LIBS $LD_STATIC_FLAG"
|
||||
+ LIBS="$LIBS $CURL_LIBS $LD_STATIC_FLAG"
|
||||
AC_CHECK_LIB(curl,curl_easy_init,havecurl=yes,
|
||||
[AC_MSG_ERROR([You don't have curl properly installed. Install it or try --without-curl.])]
|
||||
)
|
||||
-# LDFLAGS=$save_LDFLAGS
|
||||
+# LIBS=$saveLIBS
|
||||
AC_DEFINE(WITH_CURL,1,[use curl])
|
||||
compoptionstring="${compoptionstring}WITH_CURL\\n"],
|
||||
fi
|
@ -1,74 +0,0 @@
|
||||
--- configure.in.old 2008-01-26 15:07:28.000000000 +0100
|
||||
+++ configure.in 2008-01-26 15:14:05.000000000 +0100
|
||||
@@ -160,7 +160,9 @@
|
||||
fi
|
||||
|
||||
# Check whether static linking has explicitly been disabled
|
||||
-AC_ARG_ENABLE(static,[ --disable-static Disable static linking (lowers the security of aide)], [aide_static_choice=$enableval], [aide_static_choice=yes])
|
||||
+AC_ARG_ENABLE(static,
|
||||
+ AC_HELP_STRING([--disable-static],[Disable static linking (lowers the security of aide)]),
|
||||
+ [aide_static_choice=$enableval], [aide_static_choice=yes])
|
||||
|
||||
if test "$aide_static_choice" != "yes"; then
|
||||
LD_STATIC_FLAG=""
|
||||
@@ -190,8 +192,8 @@
|
||||
AC_CHECK_FUNCS(stricmp strnstr strnlen)
|
||||
|
||||
AC_ARG_WITH([mmap],
|
||||
- [AC_HELP_STRING([--with-mmap],
|
||||
- [use mmap @<:@default=check@:>@])],
|
||||
+ AC_HELP_STRING([--with-mmap],
|
||||
+ [use mmap @<:@default=check@:>@]),
|
||||
[],
|
||||
[with_mmap=check]
|
||||
)
|
||||
@@ -283,8 +285,8 @@
|
||||
AC_CHECK_HEADERS(syslog.h inttypes.h fcntl.h)
|
||||
|
||||
AC_ARG_WITH([locale],
|
||||
- [AC_HELP_STRING([--with-locale],
|
||||
- [use locale stuff])],
|
||||
+ AC_HELP_STRING([--with-locale],
|
||||
+ [use locale stuff]),
|
||||
[],
|
||||
[with_locale=no]
|
||||
)
|
||||
@@ -369,10 +371,10 @@
|
||||
[AC_HELP_STRING([--with-posix-acl],
|
||||
[use POSIX ACLs (no checking)])],
|
||||
[],
|
||||
- [with_posix_acl_support=no]
|
||||
+ [with_posix_acl=no]
|
||||
)
|
||||
|
||||
-AS_IF([test "x$with_posix_acl_support" != xno],
|
||||
+AS_IF([test "x$with_posix_acl" != xno],
|
||||
[AC_DEFINE(WITH_POSIX_ACL,1,[use POSIX ACLs])
|
||||
AC_DEFINE(WITH_ACL,1,[use ACL])
|
||||
ACLLIB="-lacl"
|
||||
@@ -388,10 +390,10 @@
|
||||
[AC_HELP_STRING([--with-selinux],
|
||||
[use SELinux (no checking)])],
|
||||
[],
|
||||
- [with_selinux_support=no]
|
||||
+ [with_selinux=no]
|
||||
)
|
||||
|
||||
-AS_IF([test "x$with_selinux_support" != xno],
|
||||
+AS_IF([test "x$with_selinux" != xno],
|
||||
[AC_DEFINE(WITH_SELINUX,1,[use SELinux])
|
||||
if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists libselinux; then
|
||||
SELINUXLIB=$(${PKG_CONFIG} --libs libselinux --static)
|
||||
@@ -410,10 +412,10 @@
|
||||
[AC_HELP_STRING([--with-xattr],
|
||||
[use xattr (no checking)])],
|
||||
[],
|
||||
- [with_xattr_support=no]
|
||||
+ [with_xattr=no]
|
||||
)
|
||||
|
||||
-AS_IF([test "x$with_xattr_support" != xno],
|
||||
+AS_IF([test "x$with_xattr" != xno],
|
||||
[AC_DEFINE(WITH_XATTR,1,[use xattr])
|
||||
ATTRLIB=-lattr
|
||||
compoptionstring="${compoptionstring}WITH_XATTR\\n"
|
@ -1,83 +0,0 @@
|
||||
--- src/gen_list.c.orig 2007-12-19 15:37:13.000000000 -0800
|
||||
+++ src/gen_list.c 2007-12-19 16:19:43.000000000 -0800
|
||||
@@ -732,33 +732,6 @@
|
||||
return retval;
|
||||
}
|
||||
|
||||
-//this is used to check if $text if equal to a node in $rxrlist
|
||||
-//should be used to check equ_rx_lst only
|
||||
-int check_list_for_equal(list* rxrlist,char* text,DB_ATTR_TYPE* attr)
|
||||
-{
|
||||
- list* r=NULL;
|
||||
- int retval=1;
|
||||
- char *temp;
|
||||
-
|
||||
- for(r=rxrlist;r;r=r->next){
|
||||
- temp=((rx_rule*)r->data)->rx;
|
||||
-
|
||||
- //FIXME, if rx not begin with ^, may need to do something else
|
||||
- if(temp[0]=='^') //^ is for reg exp, we can ignore this character
|
||||
- temp++;
|
||||
-
|
||||
- //we don't need to worry about buff-overflow, so strcmp is safe
|
||||
- if((retval=strcmp(temp, text))==0){
|
||||
- *attr=((rx_rule*)r->data)->attr;
|
||||
- error(231,"\"%s\" matches string from line #%ld: %s\n",text,((rx_rule*)r->data)->conf_lineno,((rx_rule*)r->data)->rx);
|
||||
- break;
|
||||
- } else {
|
||||
- error(231,"\"%s\" doesn't match string from line #%ld: %s\n",text,((rx_rule*)r->data)->conf_lineno,((rx_rule*)r->data)->rx);
|
||||
- }
|
||||
- }
|
||||
- return retval;
|
||||
-}
|
||||
-
|
||||
/*
|
||||
* Function check_node_for_match()
|
||||
* calls itself recursively to go to the top and then back down.
|
||||
@@ -783,35 +756,24 @@
|
||||
return retval;
|
||||
}
|
||||
|
||||
- /* We need this to check whether this was the first one *
|
||||
- * to be called and not a recursive call */
|
||||
- if(!((retval&16)==16)){
|
||||
- retval|=16;
|
||||
+ /* if this call is not recursive we check the equals list and we set top *
|
||||
+ * and retval so we know following calls are recursive */
|
||||
+ if(!(retval&16)){
|
||||
top=1;
|
||||
- } else {
|
||||
- top=0;
|
||||
- }
|
||||
-
|
||||
- /* if no deeper match found */
|
||||
- if(!((retval&8)==8)&&!((retval&4)==4)){
|
||||
+ retval|=16;
|
||||
+
|
||||
if(!check_list_for_match(node->equ_rx_lst,text,attr)){
|
||||
- /*
|
||||
- Zhi Wen Wong added this line to fix bug that equ not work for
|
||||
- compare
|
||||
- if we do "=/bin", we should only check /bin
|
||||
- so, /bin/bash or /bin/something should return 0 as neg
|
||||
- */
|
||||
- if(!check_list_for_equal(node->equ_rx_lst,text,attr))
|
||||
- retval|=(2|4);
|
||||
- };
|
||||
- };
|
||||
+ retval|=2|4;
|
||||
+ }
|
||||
+ }
|
||||
/* We'll use retval to pass information on whether to recurse
|
||||
* the dir or not */
|
||||
|
||||
|
||||
- if(!((retval&8)==8)&&!((retval&4)==4)){
|
||||
+ /* If 4 and 8 are not set, we will check for matches */
|
||||
+ if(!(retval&(4|8))){
|
||||
if(!check_list_for_match(node->sel_rx_lst,text,attr))
|
||||
- retval|=(1|8);
|
||||
+ retval|=1|8;
|
||||
}
|
||||
|
||||
/* Now let's check the ancestors */
|
@ -1,36 +0,0 @@
|
||||
diff -Naur aide-0.13.1.orig/Makefile.am aide-0.13.1/Makefile.am
|
||||
--- aide-0.13.1.orig/Makefile.am 2006-10-11 03:39:01.000000000 +0900
|
||||
+++ aide-0.13.1/Makefile.am 2007-09-27 01:35:39.000000000 +0900
|
||||
@@ -33,7 +33,7 @@
|
||||
src/aide -c doc/aide.conf -V20
|
||||
|
||||
update-db: all
|
||||
- src/aide -B "database_out=file://$(top_srcdir)/doc/aide.db" -c doc/aide.conf -i
|
||||
+ src/aide -B "database_out=file://$(abs_top_srcdir)/doc/aide.db" -c doc/aide.conf -i
|
||||
|
||||
dist-hook: configure
|
||||
mkdir $(distdir)/include
|
||||
diff -Naur aide-0.13.1.orig/doc/aide.conf.in aide-0.13.1/doc/aide.conf.in
|
||||
--- aide-0.13.1.orig/doc/aide.conf.in 2006-11-25 04:53:56.000000000 +0900
|
||||
+++ aide-0.13.1/doc/aide.conf.in 2007-09-27 01:35:39.000000000 +0900
|
||||
@@ -19,7 +19,7 @@
|
||||
# corresponding line.
|
||||
#
|
||||
|
||||
-@@define TOPDIR @top_srcdir@
|
||||
+@@define TOPDIR @abs_top_srcdir@
|
||||
|
||||
@@ifndef TOPDIR
|
||||
@@define TOPDIR /
|
||||
diff -Naur aide-0.13.1.orig/src/Makefile.am aide-0.13.1/src/Makefile.am
|
||||
--- aide-0.13.1.orig/src/Makefile.am 2006-10-28 06:10:38.000000000 +0900
|
||||
+++ aide-0.13.1/src/Makefile.am 2007-09-27 01:35:39.000000000 +0900
|
||||
@@ -20,6 +20,8 @@
|
||||
# This is no longer needed
|
||||
# SUBDIRS = crypt
|
||||
|
||||
+DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
|
||||
+
|
||||
bin_PROGRAMS = aide
|
||||
|
||||
aide_SOURCES = \
|
@ -1,49 +0,0 @@
|
||||
diff -urp aide-0.13.1.orig/doc/aide.1 aide-0.13.1/doc/aide.1
|
||||
--- aide-0.13.1.orig/doc/aide.1 2009-04-14 15:46:20.000000000 -0700
|
||||
+++ aide-0.13.1/doc/aide.1 2009-04-14 15:49:18.000000000 -0700
|
||||
@@ -67,6 +67,7 @@ conditions:
|
||||
.IP "16 Unimplemented function error"
|
||||
.IP "17 Invalid configureline error"
|
||||
.IP "18 IO error"
|
||||
+.IP "19 Version mismatch error"
|
||||
.PP
|
||||
.SH NOTES
|
||||
Please note that due to mmap issues, aide cannot be terminated with
|
||||
diff -urp aide-0.13.1.orig/doc/aide.1.in aide-0.13.1/doc/aide.1.in
|
||||
--- aide-0.13.1.orig/doc/aide.1.in 2009-04-14 15:46:20.000000000 -0700
|
||||
+++ aide-0.13.1/doc/aide.1.in 2009-04-14 15:49:56.000000000 -0700
|
||||
@@ -67,6 +67,7 @@ conditions:
|
||||
.IP "16 Unimplemented function error"
|
||||
.IP "17 Invalid configureline error"
|
||||
.IP "18 IO error"
|
||||
+.IP "19 Version mismatch error"
|
||||
.PP
|
||||
.SH NOTES
|
||||
Please note that due to mmap issues, aide cannot be terminated with
|
||||
diff -urp aide-0.13.1.orig/include/report.h aide-0.13.1/include/report.h
|
||||
--- aide-0.13.1.orig/include/report.h 2009-04-14 15:46:20.000000000 -0700
|
||||
+++ aide-0.13.1/include/report.h 2009-04-14 15:46:28.000000000 -0700
|
||||
@@ -31,6 +31,7 @@
|
||||
#define UNIMPLEMENTED_FUNCTION_ERROR 16
|
||||
#define INVALID_CONFIGURELINE_ERROR 17
|
||||
#define IO_ERROR 18
|
||||
+#define VERSION_MISMATCH_ERROR 19
|
||||
|
||||
/* Errorcodes */
|
||||
#define HASH_ALGO_ERROR 30
|
||||
diff -urp aide-0.13.1.orig/src/md.c aide-0.13.1/src/md.c
|
||||
--- aide-0.13.1.orig/src/md.c 2009-04-14 15:46:20.000000000 -0700
|
||||
+++ aide-0.13.1/src/md.c 2009-04-14 15:46:28.000000000 -0700
|
||||
@@ -201,6 +201,12 @@ int init_md(struct md_container* md) {
|
||||
#endif
|
||||
#ifdef WITH_GCRYPT
|
||||
error(255,"Gcrypt library initialization\n");
|
||||
+ if(!gcry_check_version(GCRYPT_VERSION)) {
|
||||
+ error(0,"libgcrypt version mismatch\n");
|
||||
+ exit(VERSION_MISMATCH_ERROR);
|
||||
+ }
|
||||
+ gcry_control(GCRYCTL_DISABLE_SECMEM, 0);
|
||||
+ gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0);
|
||||
if(gcry_md_open(&md->mdh,0,0)!=GPG_ERR_NO_ERROR){
|
||||
error(0,"gcrypt_md_open failed\n");
|
||||
exit(IO_ERROR);
|
@ -1,12 +0,0 @@
|
||||
diff -Naur aide-0.13.1.orig//src/be.c aide-0.13.1//src/be.c
|
||||
--- aide-0.13.1.orig//src/be.c 2006-12-15 01:09:24.000000000 +0900
|
||||
+++ aide-0.13.1//src/be.c 2010-05-26 20:08:10.000000000 +0900
|
||||
@@ -161,7 +161,7 @@
|
||||
#endif
|
||||
#ifdef WITH_ZLIB
|
||||
if(iszipped && !inout){
|
||||
- fh=gzdopen(fd,"wb9+");
|
||||
+ fh=gzdopen(fd,"wb9");
|
||||
if(fh==NULL){
|
||||
error(0,_("Couldn't open file %s for %s"),u->value,
|
||||
inout?"reading\n":"writing\n");
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="a tool to locally check for signs of a rootkit"
|
||||
HOMEPAGE="http://www.chkrootkit.org/"
|
||||
SRC_URI="ftp://ftp.pangeia.com.br/pub/seg/pac/${P}.tar.gz
|
||||
mirror://gentoo/${P}-gentoo.diff.bz2"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
|
||||
IUSE=""
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
epatch "${WORKDIR}/${P}-gentoo.diff"
|
||||
epatch "${FILESDIR}/${P}-shell-history-anomalies.diff"
|
||||
epatch "${FILESDIR}/${P}-chkutmp.c-some-overruns-fixes.patch"
|
||||
sed -i 's:/var/adm/:/var/log/:g' chklastlog.c || die "sed chklastlog.c failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC=$(tc-getCC) STRIP=true sense || die "emake sense failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin chkdirs chklastlog chkproc chkrootkit chkwtmp chkutmp ifpromisc \
|
||||
strings-static || die
|
||||
dodoc ACKNOWLEDGMENTS README*
|
||||
|
||||
exeinto /etc/cron.weekly
|
||||
newexe "${FILESDIR}"/${PN}.cron ${PN} || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!"
|
||||
elog
|
||||
elog "Some applications, such as portsentry, will cause chkrootkit"
|
||||
elog "to produce false positives. Read the chkrootkit FAQ at"
|
||||
elog "http://www.chkrootkit.org/ for more information."
|
||||
echo
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
=== modified file 'chkutmp.c'
|
||||
--- chkutmp.c 2008-10-06 19:07:51 +0000
|
||||
+++ chkutmp.c 2007-10-20 07:56:19 +0000
|
||||
@@ -23,6 +23,7 @@
|
||||
*
|
||||
* Changelog:
|
||||
* Ighighi X - Improved speed via break command - 2005/03/27
|
||||
+ * Stewart Gebbie - fixed buffer overrun bug related to MAXREAD and UT_PIDLENGTH - 2007-10-20
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -42,7 +43,7 @@
|
||||
#endif
|
||||
#include <ctype.h>
|
||||
|
||||
-#define MAXREAD 1024
|
||||
+#define MAXREAD 4096
|
||||
#define MAXBUF 4096
|
||||
#define MAXLENGTH 256
|
||||
#define UT_PIDSIZE 12
|
||||
@@ -57,13 +58,13 @@
|
||||
#endif
|
||||
|
||||
struct ps_line {
|
||||
- char ps_tty[UT_LINESIZE];
|
||||
- char ps_user[UT_NAMESIZE];
|
||||
- char ps_args[MAXLENGTH];
|
||||
+ char ps_tty[UT_LINESIZE+1];
|
||||
+ char ps_user[UT_NAMESIZE+1];
|
||||
+ char ps_args[MAXLENGTH+1];
|
||||
int ps_pid;
|
||||
};
|
||||
struct utmp_line {
|
||||
- char ut_tty[UT_LINESIZE];
|
||||
+ char ut_tty[UT_LINESIZE+1];
|
||||
int ut_pid;
|
||||
int ut_type;
|
||||
};
|
||||
@@ -77,7 +78,7 @@
|
||||
int fetchps(struct ps_line *psl_p)
|
||||
{
|
||||
FILE *ps_fp;
|
||||
- char line[MAXREAD + 1], pid[UT_PIDSIZE];
|
||||
+ char line[MAXREAD + 1], pid[UT_PIDSIZE+1];
|
||||
char *s, *d;
|
||||
struct ps_line *curp = &psl_p[0];
|
||||
struct ps_line *endp = &psl_p[MAXBUF];
|
||||
@@ -97,7 +98,7 @@
|
||||
while (isspace(*s)) /* skip spaces */
|
||||
s++;
|
||||
d = pid;
|
||||
- for (x = 0; (!isspace(*s)) && (*d++ = *s++) && x <= UT_LINESIZE; x++) /* grab pid */
|
||||
+ for (x = 0; (!isspace(*s)) && (*d++ = *s++) && x <= UT_PIDSIZE; x++) /* grab pid */
|
||||
;
|
||||
*d = '\0';
|
||||
curp->ps_pid = atoi(pid);
|
||||
|
@ -1,21 +0,0 @@
|
||||
http://bugs.gentoo.org/show_bug.cgi?id=226067
|
||||
|
||||
*** a/chkrootkit Thu Jun 12 15:20:01 2008
|
||||
--- b/chkrootkit Thu Jun 12 15:28:09 2008
|
||||
***************
|
||||
*** 1098,1104 ****
|
||||
echo "Warning: \`${files}' file size is zero"
|
||||
files1=`${find} ${ROOTDIR}${HOME} ${findargs} -name '.*history' \( -links 2 -o -type l \)`
|
||||
[ ! -z "${files1}" ] && \
|
||||
! echo "Warning: \`${files}' is linked to another file"
|
||||
fi
|
||||
if [ -z "${files}" -a -z "${files1}" ]; then
|
||||
if [ "${QUIET}" != "t" ]; then echo "nothing found"; fi
|
||||
--- 1098,1104 ----
|
||||
echo "Warning: \`${files}' file size is zero"
|
||||
files1=`${find} ${ROOTDIR}${HOME} ${findargs} -name '.*history' \( -links 2 -o -type l \)`
|
||||
[ ! -z "${files1}" ] && \
|
||||
! echo "Warning: \`${files1}' is linked to another file"
|
||||
fi
|
||||
if [ -z "${files}" -a -z "${files1}" ]; then
|
||||
if [ "${QUIET}" != "t" ]; then echo "nothing found"; fi
|
@ -1,78 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Free implementation of OVAL"
|
||||
HOMEPAGE="http://oval.mitre.org/language/interpreter.html"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ldap rpm selinux"
|
||||
|
||||
DEPEND="rpm? ( app-arch/rpm )
|
||||
dev-libs/libgcrypt:0
|
||||
dev-libs/libpcre
|
||||
dev-libs/xalan-c
|
||||
dev-libs/xerces-c
|
||||
ldap? ( net-nds/openldap )"
|
||||
RDEPEND="${DEPEND}
|
||||
selinux? ( sys-libs/libselinux )"
|
||||
|
||||
S="${WORKDIR}/${P}-src"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-xerces3.patch
|
||||
epatch "${FILESDIR}"/${P}-strnicmp.patch
|
||||
epatch "${FILESDIR}"/${P}-missing-memory-header.patch
|
||||
if ! use ldap ; then
|
||||
einfo "Disabling LDAP probes"
|
||||
epatch "${FILESDIR}"/${P}-disable-ldap-probes.patch
|
||||
sed -i 's/-lldap//' project/linux/Makefile || die
|
||||
sed -i 's/.*LDAPProbe.h.*//' src/linux/ProbeFactory.h || die
|
||||
rm src/probes/independent/LDAPProbe.{cpp,h} || die
|
||||
fi
|
||||
|
||||
# rpm probes support is build dependant only on the presence of the rpm binary
|
||||
if use rpm ; then
|
||||
#Same problems as bug 274679, so i do a local copy of the header and patch it
|
||||
cp /usr/include/rpm/rpmdb.h src/probes/linux/ || die
|
||||
epatch "${FILESDIR}"/use_local_rpmdb.patch
|
||||
epatch "${FILESDIR}"/rpmdb.patch
|
||||
else
|
||||
einfo "Disabling rpm probes"
|
||||
sed -i 's/^PACKAGE_RPM/#PACKAGE_RPM/' project/linux/Makefile || die
|
||||
fi
|
||||
# same thing for dpkg, but package dpkg is not sufficient, needs app-arch/apt-pkg that is not on tree
|
||||
einfo "Disabling dpkg probes"
|
||||
sed -i 's/^PACKAGE_DPKG/#PACKAGE_DPKG/' project/linux/Makefile || die
|
||||
|
||||
#Disabling SELinux support
|
||||
if ! use selinux ; then
|
||||
rm src/probes/linux/SelinuxSecurityContextProbe.cpp || die
|
||||
rm src/probes/linux/SelinuxBooleanProbe.cpp || die
|
||||
rm src/probes/linux/SelinuxBooleanProbe.h || die
|
||||
epatch "${FILESDIR}"/${P}-disable-selinux-probes.patch
|
||||
else
|
||||
epatch "${FILESDIR}"/${P}-add-selinux-libs.patch
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile () {
|
||||
emake -C project/linux || die
|
||||
}
|
||||
|
||||
src_install () {
|
||||
# no make install in Makefile
|
||||
dosbin project/linux/Release/ovaldi project/linux/ovaldi.sh || die
|
||||
dodir /var/log/${PN} || die
|
||||
insinto /usr/share/${PN}
|
||||
doins xml/* || die
|
||||
dodoc docs/{README.txt,version.txt} || die
|
||||
doman docs/ovaldi.1 || die
|
||||
}
|
@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Free implementation of OVAL"
|
||||
HOMEPAGE="http://oval.mitre.org/language/interpreter.html"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ldap rpm"
|
||||
|
||||
DEPEND="rpm? ( app-arch/rpm )
|
||||
dev-libs/libgcrypt:0
|
||||
dev-libs/libpcre
|
||||
dev-libs/xalan-c
|
||||
dev-libs/xerces-c
|
||||
ldap? ( net-nds/openldap )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${P}-src"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-xerces3.patch
|
||||
epatch "${FILESDIR}"/${P}-strnicmp.patch
|
||||
if ! use ldap ; then
|
||||
einfo "Disabling LDAP probes"
|
||||
epatch "${FILESDIR}"/${P}-disable-ldap-probes.patch
|
||||
rm src/probes/independent/LDAPProbe.{cpp,h} || die
|
||||
fi
|
||||
|
||||
# rpm probes support is build dependant only on the presence of the rpm binary
|
||||
if use rpm ; then
|
||||
#Same problems as bug 274679, so i do a local copy of the header and patch it
|
||||
cp /usr/include/rpm/rpmdb.h src/probes/linux/ || die
|
||||
epatch "${FILESDIR}"/use_local_rpmdb.patch
|
||||
epatch "${FILESDIR}"/rpmdb.patch
|
||||
else
|
||||
einfo "Disabling rpm probes"
|
||||
sed -i 's/^PACKAGE_RPM/#PACKAGE_RPM/' project/linux/Makefile || die
|
||||
fi
|
||||
# same thing for dpkg, but package dpkg is not sufficient, needs app-arch/apt-pkg that is not on tree
|
||||
einfo "Disabling dpkg probes"
|
||||
sed -i 's/^PACKAGE_DPKG/#PACKAGE_DPKG/' project/linux/Makefile || die
|
||||
}
|
||||
|
||||
src_compile () {
|
||||
emake -C project/linux || die
|
||||
}
|
||||
|
||||
src_install () {
|
||||
# no make install in Makefile
|
||||
dosbin project/linux/Release/ovaldi project/linux/ovaldi.sh || die
|
||||
dodir /var/log/${PN} || die
|
||||
insinto /usr/share/${PN}
|
||||
doins xml/* || die
|
||||
dodoc docs/{README.txt,version.txt} || die
|
||||
doman docs/ovaldi.1 || die
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils bash-completion-r1
|
||||
|
||||
DESCRIPTION="Rootkit Hunter scans for known and unknown rootkits, backdoors, and sniffers"
|
||||
HOMEPAGE="http://rkhunter.sf.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~mips ppc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
app-shells/bash
|
||||
dev-lang/perl
|
||||
sys-process/lsof[rpc]
|
||||
virtual/cron
|
||||
virtual/mailx
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${P}/files"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}.conf.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# rkhunter requires to be root
|
||||
dosbin ${PN}
|
||||
|
||||
# rkhunter doesn't create it by itself
|
||||
dodir /var/lib/${PN}/tmp
|
||||
|
||||
insinto /etc
|
||||
doins ${PN}.conf
|
||||
|
||||
exeinto /usr/lib/${PN}/scripts
|
||||
doexe *.pl
|
||||
|
||||
insinto /var/lib/${PN}/db
|
||||
doins *.dat
|
||||
|
||||
insinto /var/lib/${PN}/db/i18n
|
||||
doins i18n/*
|
||||
|
||||
doman ${PN}.8
|
||||
dodoc ACKNOWLEDGMENTS CHANGELOG FAQ README
|
||||
|
||||
exeinto /etc/cron.daily
|
||||
newexe "${FILESDIR}/${PN}-1.3.cron" ${PN}
|
||||
|
||||
newbashcomp "${FILESDIR}/${PN}.bash-completion" ${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "A cron script has been installed to /etc/cron.daily/rkhunter."
|
||||
elog "To enable it, edit /etc/cron.daily/rkhunter and follow the"
|
||||
elog "directions."
|
||||
elog "If you want ${PN} to send mail, you will need to install"
|
||||
elog "virtual/mailx or alter the EMAIL_CMD variable in the"
|
||||
elog "cron script and possibly the MAIL_CMD variable in the"
|
||||
elog "${PN}.conf file to use another mail client."
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
DIST anki-2.0.31.tgz 3329290 SHA256 4b969629255b00db9a9eb8a2fd70271cc41c92c47752eb1c78e8609ff025be2f SHA512 3e6e29247d83b026ece6974007c848822360a812838dbb718cf3f1423fc9d015236b027944cd99f3b419e0fe4fe6cb2390d185f00646af727ec8e76f4aa3cbb8 WHIRLPOOL 42b1ecf2cc856c15ad1fe690d45e8051a8b79ef0b850e701a6a8a510a56cc4e6711bf4c8acc8ae9add7a3c761788005979c9a6398a71e1b28c9821043d5f6053
|
||||
DIST anki-2.0.33.tgz 3376646 SHA256 b9fe2c35a68e90f3fa31f5c67f3447a7e1033d1c909baa381a1525ce5e71b9b4 SHA512 ac2df1ac94e5aa4cc04c17d41b8f96788b5f321860bc20b4a167d5ee0161ca4f7f586fda08ac9910a706ec3e7d1bd692d2e74f3de56997c9ce480122396e0d6d WHIRLPOOL fdddc9c51f2226373bdf5c6547a3b643b94aac37d68cf1e1430ee9355d4f5b11ae3e4cca218d65e7a76a0921f8d2e3e0676c2022aef4e49998e596531ce93848
|
||||
EBUILD anki-2.0.31.ebuild 1517 SHA256 4c1e6000057606916e5d305c01d96daaf606fcc03ddc491e58bac88b8b45b422 SHA512 3d59229f1bea607fd09639f554753fd91dd9079097f6ae19f083b3ac3795fea3634e72b94dd420980e8308da113142630e33517fb91d00ff29ea14234bbdbade WHIRLPOOL d4633a4886da4d5c5dc96aa6eb64ae45a61a939f28f7820d0d23c5f27ee4853dcd467f7775d2449c3ce24e50a112cc417513f7d4a86cbffc33b4a70f820ffdd8
|
||||
EBUILD anki-2.0.33.ebuild 1265 SHA256 ef163daf0c4a597c9887fb3428bc7047fe6b1c5a7d6e5391aab1f07d06ced02b SHA512 4f73f5c3a2334ceb0d2fced5e7086b1141f14194be421de6ba93c88674268b73e7b78d3e6a523ec50a89ae6bc4f5c7bf7a3e09b119d2acde8a7e7795cbc2a417 WHIRLPOOL 40fd7fc4ba423f10e0388b3d939887ee74dcb8fd1f9cf90fa44220a2e3b1600fd55245054363733d6cb66011af8f717e4a49df33d9a48ad5ccca64838145536c
|
||||
MISC ChangeLog 2466 SHA256 8949bf7cd157eb53f6bcf00edcb56ccb897d02aacfc0ed0ad0b186397861adeb SHA512 3b33231d21ac55b22e0f5ba880641da713827a519dcd97a265e5e07ca203a57f603e3c36b8102c2fdd038c4074f64fd754802bd21f7b4dcbe4c91315b9486267 WHIRLPOOL c593489ad1473b628174ee621a65dfec3efd16c1068c2ad193f19aac754ea9dc6c2fdf72beebea70f9ad1ec131076858c6170f551df9f0ca1f48ad8fce59c05d
|
||||
EBUILD anki-2.0.33.ebuild 1264 SHA256 447dda7400a6f8fa954c3fc5e6f6f035d8992d1b94518e06b3d3e11662edfeb1 SHA512 c546292cef613751ff80c73f752a6915e0904ae5ca745205389a40fca2e07939ed7bdf11dd41bf8c53559639df4f15288baf7d61d25f32cbaa886a30475a57b8 WHIRLPOOL a3db357602a3f019be8a1268b0c7df9dd5309e2517135e3dce33b04794cb6fa402c7a47041b3e9b338e2b1364d32aab2f71597e3ab7e47789a4968ea2fcec704
|
||||
MISC ChangeLog 2697 SHA256 7eb3b64ec08a739d9b4d1e9459861f6cbac01ec22fc45dae67fd0d4d679dbe4f SHA512 db58918703b04c4980b0f4de7cfbf354e4d5ffcbe781e03878e576ff8d864fb42ed550e244b06aaabe7061df82456ce96dd8a1bd188d3b789114060c4e9a6b17 WHIRLPOOL d0afe76a871ccc6c35ba21bf072de92272de1aed4248a3b4d15ee5b603e0bb6333fbbd1bad2b6ab5fd4f62dc4c54a1cef2a55c2dc4c8a54abc32e0109458ea6f
|
||||
MISC ChangeLog-2015 13597 SHA256 f169f73f5e36840c9b281c98f2d420597ea86866573b224c12c87f054be9c23b SHA512 8a148eca4be6552c783d903eea48cab5ea7f6a4bca1b9c9f3d80a3fe80f989855943069c99a7f361d3ee85b98d2f8f94d4a751fc7a456292fe7ffa02105cce22 WHIRLPOOL fd93017f71140b91cad14d2a30d2c1dd30e355c95db551c03e64aae79dced66f3ad4fd12e54ae8516c87b4a8ff85f074cb23bd8b5eb545c9dc5b7dbe9a1bc43c
|
||||
MISC metadata.xml 752 SHA256 24ab3347c88cbfc3277da0fee9bab86a68d86565bbc0e1a9168998f54eb7a021 SHA512 4c0492455131a4ab214c68cbed806102de4df1894380cf8a4ad1f0c4a593b2738d50a4bf6e6dde15dbfa914b0075a636469d366f3e7cceaf7c8098369cff6c37 WHIRLPOOL 3062f8b144f7102ae7bc6516b8ee8d5820430535420967c6d9093a94e9ad4dc26cc500f3e6cd4207f0555529f7d748a0086d8149aa48bdc4fe39c4c97c69d813
|
||||
|
@ -1,9 +1,7 @@
|
||||
DIST sigil-0.8.7.tar.gz 19394061 SHA256 0352cc46714ebb5067a0fbdbbc76dded8f10ea0f4f43374c7dbcac6eba49e104 SHA512 24b74c835ae1f8fb887c9d2c59b3ccc6720ce1fe8d19a6b0056754ab5ea6e63c34c4b229f4e4b3a880e722876d288e58385f5a0ad15b295f147b77b1acf28652 WHIRLPOOL 2cb7a8a928069a2f005396faa9bdacde1f77f3cca3a3ba2458b8562e48298a127b9de9d7ecea5f106ad68865d5074b13fff5a234497b2b6655ac1a3c3edef827
|
||||
DIST sigil-0.9.0.tar.gz 17446877 SHA256 39887e1f76236e796d29c679f327c7183907c47b522794a00090eb1aa04dac92 SHA512 f83e5e8ae233e8784ad25345890a33424cf951a3d385d26a69b0efbabe87b22ab9466a6faed93f1106875642ef395c6f20c69b556661b6fe24388946d677746b WHIRLPOOL d6cca23116a428fc032538ab7fda1ab1d2afa703b8f665d58c03bcd5568e6174f1efbc43b7c5cb7f9e8b91866ea93d8cf01428fbd47748a26b4906152de972c8
|
||||
DIST sigil-0.9.1.tar.gz 17451106 SHA256 7ef13ae9f570ac51aa8d80890ff31bcdf8d1b488c1c4bbb315f1ca4b75237a63 SHA512 41327a67aea80f655f8662c0fcf7159db7d44a5cf89274777c719bcff2960e8ef11788c767c8ffba095c1fb4be320b055e1826bff8f6d0ca89999d52e750f7e0 WHIRLPOOL 49d3b4d10abebce045e55fac7350d7a7e09ebef9293593db6b5bc148507e289a9ab26ddaf6f0b53dfe7252be78f53fbcdc0c760b78ed642c74ee8f73a026a302
|
||||
DIST sigil-0.9.2.tar.gz 17448786 SHA256 d3c34ba1b63b080cb889dc5f11ba28f4db246151fbc3de162178290c8b9b3304 SHA512 8adc9571f653f126bf287a264325b3bf231c2022ddc9b1350e0e31125883c1d6b7b983660ccf2b1838ae2f3b15f968cee1e751afd51e2923f291e08f457315f9 WHIRLPOOL 2ee6fd609b9ffbd1c380a34ea0e5001a2ba92ba565dc1023ec0d02e90c3e693194792c962db516924578db82c7b56f97c01852f96e6ea3d0f80d05bc4a393acc
|
||||
EBUILD sigil-0.8.7-r1.ebuild 1313 SHA256 59fd479e5b3e7dd4710542efa82aec21e4d69cfe29e62ced1b57060b1573c70b SHA512 6d87ad704a8f48f59d09506c972d7444ea979dae8bbd89ffe2ab6482803fe31c25c7b76f8c4b06a14089d846e7a9cf3a5dab9859ebb4e085f17dabe22b0935ab WHIRLPOOL 9d989d88cb3755f6d26069f918aa6efafa6c227313690d75f55ecd2b57e729cbf97d6c72ed1c1e25cf563e0db47919b1f72d725a638bd51a3b1c169d2dd4d384
|
||||
EBUILD sigil-0.9.0.ebuild 1817 SHA256 7d17c86b1a57d335998ad9c0eee152616ea4c8a9678e439257661bd2cb22b649 SHA512 a22a43590f60dfe3b7d849701af7352f4d0821ba2fbd471a557c19281025b3f2412f79117fa1a95407c7dff99327c6cbe76b3be140c847fe915843663477385d WHIRLPOOL bf0ebc77a0215f4615fb99ae8226580721588a3db82962c66a8d064e60d9da2c3c4de89cbc5e71df08574e06b5b0395f81cff724f2d205a76eda3b91f99ad465
|
||||
EBUILD sigil-0.9.1.ebuild 1817 SHA256 7d17c86b1a57d335998ad9c0eee152616ea4c8a9678e439257661bd2cb22b649 SHA512 a22a43590f60dfe3b7d849701af7352f4d0821ba2fbd471a557c19281025b3f2412f79117fa1a95407c7dff99327c6cbe76b3be140c847fe915843663477385d WHIRLPOOL bf0ebc77a0215f4615fb99ae8226580721588a3db82962c66a8d064e60d9da2c3c4de89cbc5e71df08574e06b5b0395f81cff724f2d205a76eda3b91f99ad465
|
||||
MISC ChangeLog 3738 SHA256 22b6279669ba74f9c02545525e39c53ab6ac23189bd27d5fce8675f03c95a6ca SHA512 797f1d8826eaf7fd9b018936d8e0c6521ccdecf46abcbf933dfdc4dc7f32f090630a528813209b05b92e8cf350b3f2cbdeb527d49e9c9eb15c4b686fa0c6e159 WHIRLPOOL d236899ecbb0f8f64a11b28c4cbee2aaf8b61ca0404925929fdc85700c87f5064e8ba4366268c30332d803426792d7a28d567020630901d1a83aa4558dd32d13
|
||||
EBUILD sigil-0.9.2.ebuild 1817 SHA256 7d17c86b1a57d335998ad9c0eee152616ea4c8a9678e439257661bd2cb22b649 SHA512 a22a43590f60dfe3b7d849701af7352f4d0821ba2fbd471a557c19281025b3f2412f79117fa1a95407c7dff99327c6cbe76b3be140c847fe915843663477385d WHIRLPOOL bf0ebc77a0215f4615fb99ae8226580721588a3db82962c66a8d064e60d9da2c3c4de89cbc5e71df08574e06b5b0395f81cff724f2d205a76eda3b91f99ad465
|
||||
MISC ChangeLog 3905 SHA256 3ee80ffe097bbcaf450a1e0c323182e7f0e5342b5c473a7d8e7e9e3661b631f8 SHA512 2044edb55b9a968b0eb11f2662d3103827c3d6878dad652ad62ade1a81c058cb9319a3c95f61c8e372937a5e20f49ac5c8e8646322eb2666a6852c933923cfcf WHIRLPOOL 20243f8247329b126b0a5a6b92bbda1b86304b889ccd775321d571d4cadf9e12c916908c6bb5aa067cee0010fcc3867f4b11f33dbe36443000fea220f079c5e0
|
||||
MISC ChangeLog-2015 2643 SHA256 d4a27d050f4fb657eef3ad487c632eb8f9afca6e7760b4d89e628a16295e7c2f SHA512 15270b02a9bcbcf23225a53efff1d0fac71a1eea3fd51c20aeed1804553a9703a29341dca9ad772d08f467612f5cae089d55d4a051c84fa06390ad7310b28d66 WHIRLPOOL 90e0e673221edeaae669ad2167a6679cdc00b6fd36ebb34e5bcdf95c5601de220c5da03a455555176abb89d0020bef45144785324a9511a6b3d533edf888df5a
|
||||
MISC metadata.xml 565 SHA256 b86403dfd085183081ddfb747c844ab2e21e1a4bb08c33403ff1aae452de9d61 SHA512 6a968225e62318b833497262ddc240ae34226a32625c02ef0f6631c03bfa5302aff90fc346f6cb77d3bb938548ca5d75ed2c3d2f4625dd48d3afe2623b01634b WHIRLPOOL 1e9ba4b68cd07abdb2718cb19817b30d17475c87c3596138fb01c4ece7a25c9fc618aeb5012fddc7c4bceb7b648f3d4b6f7c1b1fc48bace6a686b20eb0bc8a47
|
||||
|
@ -1,74 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
CMAKE_MIN_VERSION="3.0"
|
||||
|
||||
# Sigil supports Python 3.5 already. Include it when our deps support it.
|
||||
PYTHON_COMPAT=( python3_4 )
|
||||
|
||||
inherit eutils cmake-utils python-single-r1
|
||||
|
||||
MY_PN="Sigil"
|
||||
|
||||
DESCRIPTION="Sigil is a multi-platform WYSIWYG ebook editor for ePub format"
|
||||
HOMEPAGE="http://sigil-ebook.com/"
|
||||
SRC_URI="https://github.com/Sigil-Ebook/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
app-text/hunspell
|
||||
dev-libs/boost[threads,${PYTHON_USEDEP}]
|
||||
dev-libs/libpcre[pcre16]
|
||||
dev-libs/xerces-c[icu]
|
||||
dev-python/chardet[${PYTHON_USEDEP}]
|
||||
dev-python/cssselect[${PYTHON_USEDEP}]
|
||||
dev-python/cssutils[${PYTHON_USEDEP}]
|
||||
dev-python/html5lib[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/regex[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
>=dev-qt/qtconcurrent-5.4:5
|
||||
>=dev-qt/qtcore-5.4:5
|
||||
>=dev-qt/qtgui-5.4:5
|
||||
>=dev-qt/qtnetwork-5.4:5
|
||||
>=dev-qt/qtprintsupport-5.4:5
|
||||
>=dev-qt/qtsvg-5.4:5
|
||||
>=dev-qt/qtwebkit-5.4:5
|
||||
>=dev-qt/qtwidgets-5.4:5
|
||||
>=dev-qt/qtxml-5.4:5
|
||||
>=dev-qt/qtxmlpatterns-5.4:5
|
||||
sys-libs/zlib[minizip]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
>=sys-devel/gcc-4.8
|
||||
virtual/pkgconfig
|
||||
>=dev-qt/linguist-tools-5.4:5
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
DOCS=( ChangeLog.txt README.md )
|
||||
|
||||
src_prepare() {
|
||||
# sigil tries to copy non-needed qt libs for deb package, safe to ignore this completely
|
||||
sed -e '/set( QT_LIBS/d' -i src/CMakeLists.txt || die "sed failed"
|
||||
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DUSE_SYSTEM_LIBS=1
|
||||
-DSYSTEM_LIBS_REQUIRED=1
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
GCONF_DEBUG="no"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
CMAKE_MIN_VERSION="2.8.11.1"
|
||||
|
||||
inherit gnome2 eutils flag-o-matic python-single-r1 cmake-utils
|
||||
|
||||
MY_P="${PN}-community-${PV}-src"
|
||||
|
||||
DESCRIPTION="MySQL Workbench"
|
||||
HOMEPAGE="http://dev.mysql.com/workbench/"
|
||||
SRC_URI="mirror://mysql/Downloads/MySQLGUITools/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="debug doc gnome-keyring"
|
||||
|
||||
# glibc: deprecated mutex functions, removed in 2.36.0
|
||||
CDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/glib:2
|
||||
dev-cpp/atkmm
|
||||
dev-cpp/pangomm
|
||||
>=dev-cpp/glibmm-2.14:2
|
||||
>=dev-cpp/gtkmm-2.14:2.4
|
||||
dev-libs/atk
|
||||
x11-libs/pango
|
||||
>=x11-libs/gtk+-2.20:2
|
||||
gnome-base/libglade:2.0
|
||||
>=x11-libs/cairo-1.5.12[glib,svg]
|
||||
dev-libs/libsigc++:2
|
||||
>=dev-libs/boost-1.55.0[nls]
|
||||
>=dev-cpp/ctemplate-0.95
|
||||
>=dev-libs/libxml2-2.6.2:2
|
||||
dev-libs/libzip
|
||||
>=virtual/mysql-5.1
|
||||
dev-libs/libpcre
|
||||
>=sci-libs/gdal-1.11.1-r1[-mdb]
|
||||
virtual/opengl
|
||||
>=dev-lang/lua-5.1:0[deprecated]
|
||||
|| ( sys-libs/e2fsprogs-libs dev-libs/ossp-uuid )
|
||||
dev-libs/tinyxml[stl]
|
||||
dev-db/mysql-connector-c++
|
||||
dev-db/vsqlite++
|
||||
|| ( dev-db/libiodbc dev-db/unixODBC )
|
||||
gnome-keyring? ( gnome-base/libgnome-keyring )
|
||||
dev-python/pexpect
|
||||
>=dev-python/paramiko-1.7.4
|
||||
"
|
||||
|
||||
# lua perhaps no longer needed? Was used via libgrt only
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
app-admin/sudo
|
||||
>=sys-apps/net-tools-1.60_p20120127084908"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
dev-java/antlr:3.5
|
||||
dev-lang/swig
|
||||
virtual/jre
|
||||
virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}"/"${MY_P}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${PN}-community-${PV}-src.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
## Patch CMakeLists.txt
|
||||
epatch "${FILESDIR}/${PN}-6.2.3-CMakeLists.patch" \
|
||||
"${FILESDIR}/${PN}-6.2.5-wbcopytables.patch" \
|
||||
"${FILESDIR}/${PN}-6.3.3-mysql_options4.patch" \
|
||||
"${FILESDIR}/${PN}-6.3.4-cxx11.patch"
|
||||
|
||||
sed -i -e '/target_link_libraries/ s/sqlparser.grt/sqlparser.grt sqlparser/' \
|
||||
modules/db.mysql.sqlparser/CMakeLists.txt
|
||||
|
||||
## remove hardcoded CXXFLAGS
|
||||
sed -i -e 's/-O0 -g3//' ext/scintilla/gtk/CMakeLists.txt || die
|
||||
|
||||
## package is very fragile...
|
||||
strip-flags
|
||||
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cxxflags -std=c++11
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_use gnome-keyring GNOME_KEYRING)
|
||||
-DLIB_INSTALL_DIR="/usr/$(get_libdir)"
|
||||
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
|
||||
-DPYTHON_LIBRARY="$(python_get_library_path)"
|
||||
)
|
||||
ANTLR_JAR_PATH="/usr/share/antlr-3.5/antlr-runtime.jar" cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Work around parallel build issues, bug 507838
|
||||
cmake-utils_src_compile -j1
|
||||
}
|
@ -1,8 +1,6 @@
|
||||
AUX javax-inject-1-build.xml 7142 SHA256 557e7ba0db5bad5a7300485c221ed524614f2038a6cf36d8acbb504d90b9c53f SHA512 30d8d0685d15db3266ea5d197704859e12243fc1865c179a8e1bcb1eb339e32031523fdcd51dbef5198a63bc72db64ccae5745754cbd6fb4a8b986479bf356dd WHIRLPOOL 2c67ef0ea4cb5a36920e4fbdb5b03af0af9f4fa1940d12d647ce25227c55c5e7e1a01c75fa0418d87be091e367f2d537b106b9064d00891c9433d8d6526a2cad
|
||||
DIST javax.inject-1-bundle.jar 43323 SHA256 efe257736656de99747098ceafd64dae7b5722a585176eb79ee9dbf7cd995ee5 SHA512 397db77e3426a4539b895535557cbe9e1795c186a9bc397efa716b42d02b03c4403f20c4c13fb2b99b25e5a14abd3407e9d0d843cd4c3442a1386a2b30ba50e3 WHIRLPOOL 466ae846ad0c8abcc1279e314f79121bd17c627d3729e7dd1c144b5d67f161e0f5fdee278b51c689cdcdcc01ac5fe5f2c8b8b103d94e18413f2b37cfb1b4b7f7
|
||||
DIST javax.inject-1-sources.jar 10928 SHA256 c4b87ee2911c139c3daf498a781967f1eb2e75bc1a8529a2e7b328a15d0e433e SHA512 8bcfae4933073c212c3370a36cdacbff0474648720766df5d0acfc2dafd3307a514b7fb49c08762d32bfca9d8afce47cbfe1eba7399b459b6543472ac9de715b WHIRLPOOL 4ae44b7088d381f8875d910bafb74e99b724277bffc5274bde75588b614aa0defd66b43a0774957f9cba4d28435397b3e130d9373b0e68e3a29857f0a36cf18b
|
||||
EBUILD javax-inject-1-r1.ebuild 1096 SHA256 6bc556cdeb55a995065a4138139023a07ac4d9c3d3847f98b8c3a2361db19867 SHA512 4b40895c2c7c493c15dc4c183a921cd4340504501eefb4ae2a1279a9e3b53b29c3adca9a97adb2e960e605532f1843b8292bc273fcef93c4e53c0a841f14d75d WHIRLPOOL 2d0d1f957a8ce55df8628713830f3f2764bcd811c2334748ca74b0d454d1ecdb617d8a8fc6a5f533bdb1bdcf400a746dfb8d04f887367dea5627d29db9c17103
|
||||
EBUILD javax-inject-1-r2.ebuild 593 SHA256 cf0dbe3e459c6199c75bc006581e9362a54f5f14347e2eb8d15be88fbc24899c SHA512 74c9b985cbedc5ee6460cf9fbf9c4d6599e08b8ae4c5453565fa3ae8b3f414b0b179c7872058e36c341feef0a740b0fc6b3033c2cd537c46cff5b43f752ff1e1 WHIRLPOOL 7a33f2f41953293731bff9371b10dd753ef802af52527a01af5ee8dfd5e47cebd3861a2d64e29eee45766ae92cf1a9d77286916350bb7bbf8f55350386a5b325
|
||||
EBUILD javax-inject-1-r2.ebuild 589 SHA256 703fa0e6d3b2e57213c5b716552ee60b33c570a292c8a93bd6d51dcb528077ed SHA512 dc4f76e7970b88d82d34e58d013c76976fd58f84b61f7a8ca6c3b423938d72f775ce79cb056501ba9bcade32c00b0b54ad71472fa62bc24708161664fa1e4935 WHIRLPOOL 1b0b2cd7e6593c4b9f41c90f4c1e7a4949596f3d6d6e5bd443f45e2e82ad5f01c392c91b88af61afeb7a454f58d1e36b65d668fd0a16eed58ca6cd6043170f9c
|
||||
MISC ChangeLog 2830 SHA256 9905affcc1aa65785ec0e453e06b240982beaae1c0d4cee6faa319ef7dd95fb8 SHA512 931c28cd8c6c5866456d448ce8153d272bd9b346eb17473e77b4c1ccc94880dbaa0219e6af7e3d81e5ea1b9b584ba3007695a576d9a7e4daeb9100e8d39c2d6b WHIRLPOOL 8e9daf4da3b268bb2c9677e0f097e6c0ec2bd232de01eb13d67112e11e572d034adcc307ff7738afc2759f0aaacf5e78c896d950a5af17d30185b4cfc5b8ac8c
|
||||
MISC ChangeLog-2015 1014 SHA256 2ce2020a379cd7335540f65ac922d275f3fd6353026fe690d703181196509327 SHA512 211723245921b92fa352d39e69c9eb73cbc008d5577c7e677eac9519970fcbb3a8db1952ba9a7853d9dd23392440bdef332ad7e37bc3045b5420e9b5cc906e99 WHIRLPOOL c59dc272a7de39d6605c87ad3d13efc91038503e04071ba1cc05267d4f1ab3dc17cefdae7a072358777d926a42c490f1190e956ad44df0e5334c4e15268f1cf0
|
||||
MISC metadata.xml 159 SHA256 a4ced33e98b00e3a3f725c4c40ef8e76c338db53389465ef871105fbe6e8cbbb SHA512 74dc9ada199a90543b8e1c168c7054f2e973fbfa2551e2b959d67501f2538e269cfb4b2f0905a88a1afa04c20b33961336310ba876f80d47c8e7615b2d7c830a WHIRLPOOL a0ac49efeca233ec4d8f63eb69c8e46e1d4ecbd926693c25b1b8c7415e4c565680936aec46f0c4197116fd7a19a3bb571beee493c18bdae1e5e978e3db84f17a
|
||||
|
@ -1,54 +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
|
||||
|
||||
MY_P=${PN/-/.}-${PV}
|
||||
|
||||
DESCRIPTION="Dependency injection for Java (JSR-330)"
|
||||
HOMEPAGE="https://code.google.com/p/atinject/"
|
||||
SRC_URI="https://atinject.googlecode.com/files/${MY_P}-bundle.jar"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc ~ppc64 x86"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
app-arch/unzip"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
cd "${S}"
|
||||
unzip -q ${MY_P}-sources.jar || die
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
cp "${FILESDIR}"/${P}-build.xml build.xml || die
|
||||
|
||||
sed -i 's/\(<mkdir dir="${maven.build.outputDir}"\/>\)/\1<javac srcdir="." destdir="${maven.build.outputDir}" \/>/g' build.xml || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
java-pkg-2_src_compile
|
||||
|
||||
if use doc ; then
|
||||
javadoc -d javadoc $(find javax -name "*.java") || die "Javadoc failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar target/javax.inject-${PV}.jar
|
||||
|
||||
use doc && java-pkg_dojavadoc javadoc
|
||||
use source && java-pkg_dosrc javax
|
||||
}
|
@ -0,0 +1,318 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
# Until bug #537330 glib is a reverse dependency of pkgconfig and, then
|
||||
# adding new dependencies end up making stage3 to grow. Every addition needs
|
||||
# then to be think very closely.
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
# Building with --disable-debug highly unrecommended. It will build glib in
|
||||
# an unusable form as it disables some commonly used API. Please do not
|
||||
# convert this to the use_enable form, as it results in a broken build.
|
||||
GCONF_DEBUG="yes"
|
||||
# Completely useless with or without USE static-libs, people need to use
|
||||
# pkg-config
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit autotools bash-completion-r1 gnome2 libtool eutils flag-o-matic multilib \
|
||||
pax-utils python-r1 toolchain-funcs versionator virtualx linux-info multilib-minimal
|
||||
|
||||
DESCRIPTION="The GLib library of C routines"
|
||||
HOMEPAGE="http://www.gtk.org/"
|
||||
SRC_URI="${SRC_URI}
|
||||
http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="2"
|
||||
IUSE="dbus fam kernel_linux +mime selinux static-libs systemtap test utils xattr"
|
||||
REQUIRED_USE="
|
||||
utils? ( ${PYTHON_REQUIRED_USE} )
|
||||
test? ( ${PYTHON_REQUIRED_USE} )
|
||||
"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
||||
|
||||
RDEPEND="
|
||||
!<dev-util/gdbus-codegen-${PV}
|
||||
>=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
|
||||
>=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
|
||||
selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] )
|
||||
xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] )
|
||||
fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] )
|
||||
utils? (
|
||||
${PYTHON_DEPS}
|
||||
>=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
>=dev-libs/elfutils-0.142
|
||||
>=dev-libs/libelf-0.8.12
|
||||
>=sys-freebsd/freebsd-lib-9.2_rc1
|
||||
)
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
>=dev-libs/libxslt-1.0
|
||||
>=sys-devel/gettext-0.11
|
||||
>=dev-util/gtk-doc-am-1.20
|
||||
systemtap? ( >=dev-util/systemtap-1.3 )
|
||||
test? (
|
||||
sys-devel/gdb
|
||||
${PYTHON_DEPS}
|
||||
>=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
|
||||
>=sys-apps/dbus-1.2.14 )
|
||||
!<dev-util/gtk-doc-1.15-r2
|
||||
"
|
||||
# gobject-introspection blocker to ensure people don't mix
|
||||
# different g-i and glib major versions
|
||||
|
||||
PDEPEND="!<gnome-base/gvfs-1.6.4-r990
|
||||
dbus? ( gnome-base/dconf )
|
||||
mime? ( x11-misc/shared-mime-info )
|
||||
"
|
||||
# shared-mime-info needed for gio/xdgmime, bug #409481
|
||||
# dconf is needed to be able to save settings, bug #498436
|
||||
# Earlier versions of gvfs do not work with glib
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/gio-querymodules
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if use kernel_linux ; then
|
||||
CONFIG_CHECK="~INOTIFY_USER"
|
||||
if use test; then
|
||||
CONFIG_CHECK="~IPV6"
|
||||
WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them."
|
||||
fi
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Prevent build failure in stage3 where pkgconfig is not available, bug #481056
|
||||
mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die
|
||||
|
||||
if use test; then
|
||||
# Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163
|
||||
if ! has_version dev-util/desktop-file-utils ; then
|
||||
ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
|
||||
ewarn "think on installing it to get these tests run."
|
||||
sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
|
||||
sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die
|
||||
fi
|
||||
|
||||
# gdesktopappinfo requires existing terminal (gnome-terminal or any
|
||||
# other), falling back to xterm if one doesn't exist
|
||||
if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then
|
||||
ewarn "Some tests will be skipped due to missing terminal program"
|
||||
sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die
|
||||
fi
|
||||
|
||||
# Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853
|
||||
if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then
|
||||
ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3"
|
||||
ewarn "not being present on your system, think on installing them to get these tests run."
|
||||
sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die
|
||||
sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die
|
||||
sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die
|
||||
sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die
|
||||
sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die
|
||||
sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die
|
||||
sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die
|
||||
# needed to prevent gdbus-threading from asserting
|
||||
ln -sfn $(type -P true) gio/tests/gdbus-testserver.py
|
||||
fi
|
||||
|
||||
# Some tests need ipv6, upstream bug #667468
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=508752
|
||||
if [[ ! -f /proc/net/if_net6 ]]; then
|
||||
sed -i -e "/gdbus\/peer-to-peer/d" gio/tests/gdbus-peer.c || die
|
||||
sed -i -e "/gdbus\/delayed-message-processing/d" gio/tests/gdbus-peer.c || die
|
||||
sed -i -e "/gdbus\/nonce-tcp/d" gio/tests/gdbus-peer.c || die
|
||||
fi
|
||||
|
||||
# This test is prone to fail, bug #504024, upstream bug #723719
|
||||
sed -i -e '/gdbus-close-pending/d' gio/tests/Makefile.am || die
|
||||
else
|
||||
# Don't build tests, also prevents extra deps, bug #512022
|
||||
sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die
|
||||
fi
|
||||
|
||||
# gdbus-codegen is a separate package
|
||||
epatch "${FILESDIR}"/${PN}-2.40.0-external-gdbus-codegen.patch
|
||||
|
||||
# leave python shebang alone
|
||||
sed -e '/${PYTHON}/d' \
|
||||
-i glib/Makefile.{am,in} || die
|
||||
|
||||
epatch_user
|
||||
|
||||
# Also needed to prevent cross-compile failures, see bug #267603
|
||||
eautoreconf
|
||||
|
||||
gnome2_src_prepare
|
||||
|
||||
epunt_cxx
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Avoid circular depend with dev-util/pkgconfig and
|
||||
# native builds (cross-compiles won't need pkg-config
|
||||
# in the target ROOT to work here)
|
||||
if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then
|
||||
if has_version sys-apps/dbus; then
|
||||
export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include"
|
||||
export DBUS1_LIBS="-ldbus-1"
|
||||
fi
|
||||
export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)"
|
||||
export LIBFFI_LIBS="-lffi"
|
||||
fi
|
||||
|
||||
# These configure tests don't work when cross-compiling.
|
||||
if tc-is-cross-compiler ; then
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=756473
|
||||
case ${CHOST} in
|
||||
hppa*|metag*) export glib_cv_stack_grows=yes ;;
|
||||
*) export glib_cv_stack_grows=no ;;
|
||||
esac
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=756474
|
||||
export glib_cv_uscore=no
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=756475
|
||||
export ac_cv_func_posix_get{pwuid,grgid}_r=yes
|
||||
fi
|
||||
|
||||
local myconf
|
||||
|
||||
case "${CHOST}" in
|
||||
*-mingw*) myconf="${myconf} --with-threads=win32" ;;
|
||||
*) myconf="${myconf} --with-threads=posix" ;;
|
||||
esac
|
||||
|
||||
# FIXME: Always use internal libpcre, bug #254659
|
||||
# (maybe consider going back to system lib)
|
||||
# libelf used only by the gresource bin
|
||||
ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \
|
||||
$(use_enable xattr) \
|
||||
$(use_enable fam) \
|
||||
$(use_enable selinux) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable systemtap dtrace) \
|
||||
$(use_enable systemtap systemtap) \
|
||||
$(multilib_native_use_enable utils libelf) \
|
||||
--disable-compile-warnings \
|
||||
--enable-man \
|
||||
--with-pcre=internal \
|
||||
--with-xml-catalog="${EPREFIX}/etc/xml/catalog"
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
local d
|
||||
for d in glib gio gobject; do
|
||||
ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
export XDG_CONFIG_DIRS=/etc/xdg
|
||||
export XDG_DATA_DIRS=/usr/local/share:/usr/share
|
||||
export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
|
||||
export LC_TIME=C # bug #411967
|
||||
python_export_best
|
||||
|
||||
# Related test is a bit nitpicking
|
||||
mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
|
||||
chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
|
||||
|
||||
# Hardened: gdb needs this, bug #338891
|
||||
if host-is-pax ; then
|
||||
pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \
|
||||
|| die "Hardened adjustment failed"
|
||||
fi
|
||||
|
||||
# Need X for dbus-launch session X11 initialization
|
||||
Xemake check
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
gnome2_src_install completiondir="$(get_bashcompdir)"
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
DOCS="AUTHORS ChangeLog* NEWS* README"
|
||||
einstalldocs
|
||||
|
||||
if use utils ; then
|
||||
python_replicate_script "${ED}"/usr/bin/gtester-report
|
||||
else
|
||||
rm "${ED}usr/bin/gtester-report"
|
||||
rm "${ED}usr/share/man/man1/gtester-report.1"
|
||||
fi
|
||||
|
||||
# Do not install charset.alias even if generated, leave it to libiconv
|
||||
rm -f "${ED}/usr/lib/charset.alias"
|
||||
|
||||
# Don't install gdb python macros, bug 291328
|
||||
rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_pkg_preinst
|
||||
|
||||
# Make gschemas.compiled belong to glib alone
|
||||
local cache="usr/share/glib-2.0/schemas/gschemas.compiled"
|
||||
|
||||
if [[ -e ${EROOT}${cache} ]]; then
|
||||
cp "${EROOT}"${cache} "${ED}"/${cache} || die
|
||||
else
|
||||
touch "${ED}"/${cache} || die
|
||||
fi
|
||||
|
||||
multilib_pkg_preinst() {
|
||||
# Make giomodule.cache belong to glib alone
|
||||
local cache="usr/$(get_libdir)/gio/giomodule.cache"
|
||||
|
||||
if [[ -e ${EROOT}${cache} ]]; then
|
||||
cp "${EROOT}"${cache} "${ED}"/${cache} || die
|
||||
else
|
||||
touch "${ED}"/${cache} || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_preinst
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# force (re)generation of gschemas.compiled
|
||||
GNOME2_ECLASS_GLIB_SCHEMAS="force"
|
||||
|
||||
gnome2_pkg_postinst
|
||||
|
||||
multilib_pkg_postinst() {
|
||||
gnome2_giomodule_cache_update \
|
||||
|| die "Update GIO modules cache failed (for ${ABI})"
|
||||
}
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
|
||||
if has_version '<x11-libs/gtk+-3.0.12:3'; then
|
||||
# To have a clear upgrade path for gtk+-3.0.x users, have to resort to
|
||||
# a warning instead of a blocker
|
||||
ewarn
|
||||
ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes."
|
||||
ewarn "You should upgrade to a newer version of gtk+:3 immediately."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_pkg_postrm
|
||||
|
||||
if [[ -z ${REPLACED_BY_VERSION} ]]; then
|
||||
multilib_pkg_postrm() {
|
||||
rm -f "${EROOT}"usr/$(get_libdir)/gio/giomodule.cache
|
||||
}
|
||||
multilib_foreach_abi multilib_pkg_postrm
|
||||
rm -f "${EROOT}"usr/share/glib-2.0/schemas/gschemas.compiled
|
||||
fi
|
||||
}
|
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit autotools eutils gnome2
|
||||
|
||||
DESCRIPTION="A Query Object Framework"
|
||||
HOMEPAGE="https://alioth.debian.org/projects/qof/"
|
||||
SRC_URI="mirror://debian//pool/main/q/${PN}/${PN}_${PV}.orig.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SLOT="2"
|
||||
KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86"
|
||||
IUSE="doc nls sqlite"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libxml2
|
||||
dev-libs/glib:2
|
||||
sqlite? ( >=dev-db/sqlite-2.8.0:0 )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
virtual/yacc
|
||||
>=sys-devel/gettext-0.19.2
|
||||
!dev-libs/qof:0
|
||||
doc? (
|
||||
app-doc/doxygen
|
||||
dev-texlive/texlive-latex )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
# Remove some CFLAGS
|
||||
epatch "${FILESDIR}"/${PN}-0.8.8-cflags.patch
|
||||
|
||||
# Delay build of unittests, bug #197999
|
||||
epatch "${FILESDIR}"/${PN}-0.8.8-unittest.patch
|
||||
|
||||
# Fix use and build with yacc
|
||||
epatch "${FILESDIR}"/${PN}-0.8.8-unistd-define.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.8.8-yacc-build.patch
|
||||
rm lib/libsql/{lexer.c,parser.c,parser.h} || die
|
||||
|
||||
eautoreconf
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
--disable-error-on-warning \
|
||||
--disable-static \
|
||||
--disable-gdasql \
|
||||
--disable-gdabackend \
|
||||
$(use_enable nls) \
|
||||
$(use_enable sqlite) \
|
||||
$(use_enable doc doxygen) \
|
||||
$(use_enable doc latex-docs) \
|
||||
$(use_enable doc html-docs)
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue