Sync with portage [Wed Nov 9 18:25:13 MSK 2016].

mhiretskiy
root 8 years ago
parent ff6eb3ad6c
commit f71bda104d

@ -1,2 +1,3 @@
DIST orca-3.20.3.tar.xz 2312864 SHA256 86a03b504f626e39247694d8d76c272a298874887a40bd044f8a535b8d689fd7 SHA512 5dc04cec821f7a47be0cb6e820a531e9753dd24685771e6b70488d30502bc111a4b107f8d63440139bfa9579015f224f6fda6cd8f0ecc0fc7fbfa3ce684d75f9 WHIRLPOOL c96795a9d6f9486cce7150041c5608d5beb39b8fdd33c7312beee40100aba67f3846f4c449ea8ae8b393c334be27197dbb5b2415d8a8a38cba9d775144b1bbfd
DIST orca-3.22.1.tar.xz 2348012 SHA256 8622d45733c05f21fd1a126aa50b165c37fcfa083a1e25e20b317864394d0993 SHA512 4f65a6c2bf667c0a65158c6e01a5ee1800b8c7b7ada0bfb04bdf91c73accd9d6659ab313930862127645376c0371fe8cfe71f0080a8725e4cc31c9db9374a708 WHIRLPOOL ddc87ac21c739e621f9f0f514d4e626418629325b57d4ac1bfb05fe6e59dae4ec0539b71b29742ec5242c252606fcb25f7cb104121c7e465f263f85e3c94b671
DIST orca-3.22.2.tar.xz 2345292 SHA256 599beeeec99fcf24aed7b97c832140f9355c79504c9250fcae90f611680368ca SHA512 0c4f3055509fd983da1081c4e33a4675ca498e75a8f2701318c000810cf691758eaded01969a6b56a2c25cf507bc4cb7e099f8498d1a0f6fa739d074a23528c5 WHIRLPOOL 9d6a88310a6e53ab93d16740e90eed8af54185b47b93fa2e0f7ffdda37178be2f07f5d1db38bc23b526ba2f3ec408aab15749a97f81367bfd5951a72e5967c53

@ -0,0 +1,73 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
GNOME2_LA_PUNT="yes"
PYTHON_COMPAT=( python3_{4,5} )
PYTHON_REQ_USE="threads"
inherit gnome2 python-r1
DESCRIPTION="Extensible screen reader that provides access to the desktop"
HOMEPAGE="https://wiki.gnome.org/Projects/Orca"
LICENSE="LGPL-2.1+ CC-BY-SA-3.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="+braille"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
COMMON_DEPEND="${PYTHON_DEPS}
>=app-accessibility/at-spi2-atk-2.12:2
>=app-accessibility/at-spi2-core-2.12:2[introspection]
>=dev-libs/atk-2.10
>=dev-libs/glib-2.28:2
dev-python/gst-python:1.0[${PYTHON_USEDEP}]
>=dev-python/pygobject-3.10:3[${PYTHON_USEDEP}]
media-libs/gstreamer:1.0[introspection]
>=x11-libs/gtk+-3.6.2:3[introspection]
braille? (
>=app-accessibility/brltty-5.0-r3[python,${PYTHON_USEDEP}]
dev-libs/liblouis[python,${PYTHON_USEDEP}] )
"
RDEPEND="${COMMON_DEPEND}
>=app-accessibility/speech-dispatcher-0.8[python,${PYTHON_USEDEP}]
dev-libs/atk[introspection]
dev-python/pyatspi[${PYTHON_USEDEP}]
dev-python/setproctitle[${PYTHON_USEDEP}]
x11-libs/libwnck:3[introspection]
x11-libs/pango[introspection]
"
DEPEND="${COMMON_DEPEND}
>=dev-util/intltool-0.50
dev-util/itstool
virtual/pkgconfig
"
# app-text/yelp-tools
src_prepare() {
gnome2_src_prepare
python_copy_sources
}
src_configure() {
python_foreach_impl run_in_build_dir gnome2_src_configure \
$(use_with braille liblouis)
}
src_compile() {
python_foreach_impl run_in_build_dir gnome2_src_compile
}
src_install() {
installing() {
gnome2_src_install
# Massage shebang to make python_doscript happy
sed -e 's:#!'"${PYTHON}:#!/usr/bin/python:" \
-i src/orca/orca || die
python_doscript src/orca/orca
}
python_foreach_impl run_in_build_dir installing
}

@ -1,2 +1 @@
DIST cfv-1.18.2.tar.gz 67970 SHA256 73fc368e3717cdc7062c3c909778d03d15128bc9a18a76c7e4f7a75e8a99f391 SHA512 8999349485a404b71aec8abe21b554a867c6a94ed77dda2441f418c5798a243039685d72ccfb5e020885c8bab2a571da48d98a3171339bf14becfacca3ae5508 WHIRLPOOL b6d2d19bb69975b3cecfd884be034983318e118ee609dea0ebd9491a42c945a53e0e613daafd99fdc76542364013749989880ebe6969e8acdd3a48e3a942bb18
DIST cfv-1.18.3.tar.gz 68030 SHA256 ff28a8aa679932b83eb3b248ed2557c6da5860d5f8456ffe24686253a354cff6 SHA512 dbca82df850703ab68a20db9314475025ac2e7012f34a12abbb358677e81cbb29a465adf4a1b002f6cf1c1dd84f1588fc1072791d6bbaad0c02cc563e5fe7d71 WHIRLPOOL 895211c61ff57068f28945fd374d3b9e2f00dc2739e1b884bbdb7cfa0a799d50ee36ff6791bb6457e2eba5f613a8b57b77bd1b3bacc7c4a329f0326d58375b13

@ -1,32 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
PYTHON_DEPEND="2"
inherit python
DESCRIPTION="Utility to test and create .sfv, .csv, .crc and md5sum files"
HOMEPAGE="http://cfv.sourceforge.net/"
SRC_URI="mirror://sourceforge/cfv/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="amd64 hppa ppc sparc x86 ~x86-fbsd"
DEPEND=""
RDEPEND="dev-python/python-fchksum"
src_compile() {
true
}
src_install() {
dobin cfv || die "dobin failed"
doman cfv.1 || die "doman failed"
dodoc README Changelog || die "dodoc failed"
python_convert_shebangs -r 2 "${ED}"
}

@ -1,2 +1,3 @@
DIST file-roller-3.20.3.tar.xz 1432400 SHA256 6b5c2de4c6bd52318cacd2a398cdfa45a5f1df8a77c6652a38a6a1d3e53644e9 SHA512 afa7a7e49b357f11a8e8c2678c02f9ce1c20e3bef4c64be0930342127b11dc271369958b634985fb1305fe913182a2e5a63326afc2d1839ab116ad773ee668c3 WHIRLPOOL aa96b158971ed0105f416fc5e83d9a8810d5ececa30a5b9761b9caeeaa607e50ce635629c4aaf05fabb9391959db149cd8b4b2d69c1c765c78001e9f2a11c467
DIST file-roller-3.22.1.tar.xz 1423712 SHA256 8106791dcecbd2ab64194f4aeb5cb709a15e9e0d28e6470528c7bf56969be552 SHA512 118b33e70dea357d3320ee8a1e13d161499682725a981806a6333918fb4f76eed8c10aa22db5d797cada893e38dea4d280d84f6fcd3303b4ea0782ef45295939 WHIRLPOOL 385fecf68f39413bd8b80ffdda9ce991ad84950c84017d1ede52f8a7d1abcc468c33f3356a42dd41ccf03817b8ebbdef305023510b1ee52334d12f9545cb45e9
DIST file-roller-3.22.2.tar.xz 1423992 SHA256 27158cdcc366f82100312b1e0a02ad1f3aa7a6c32d4eba68fc5a2a8829685df9 SHA512 cd4ed804d7291868acd351b4f1b5d3fca48c1e493c37d9e20463dfbca11fe9859a2d1b8fd6d13c8ac2d4f2967f0734e6ff07efc08ca292f73640e631bea2fb22 WHIRLPOOL f79c7f50f62cf88100577721e7b5017fcc90cc2ed86946dfda40e0addea1ecb995e3536aa5901fcccac78f86e5269f459b04462163dcde5301d84e3e6c331fd9

@ -0,0 +1,87 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
GNOME2_LA_PUNT="yes"
inherit eutils gnome2 readme.gentoo-r1
DESCRIPTION="Archive manager for GNOME"
HOMEPAGE="https://wiki.gnome.org/Apps/FileRoller"
LICENSE="GPL-2+ CC-BY-SA-3.0"
SLOT="0"
IUSE="libnotify packagekit"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
# gdk-pixbuf used extensively in the source
# cairo used in eggtreemultidnd.c
# pango used in fr-window
RDEPEND="
>=app-arch/libarchive-3:=
>=dev-libs/glib-2.36:2
>=dev-libs/json-glib-0.14
>=x11-libs/gtk+-3.13.2:3
sys-apps/file
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/pango
libnotify? ( >=x11-libs/libnotify-0.4.3:= )
packagekit? ( app-admin/packagekit-base )
"
DEPEND="${RDEPEND}
>=dev-util/intltool-0.50.1
dev-util/itstool
sys-devel/gettext
virtual/pkgconfig
"
# eautoreconf needs:
# gnome-base/gnome-common
DISABLE_AUTOFORMATTING="yes"
DOC_CONTENTS="
${PN} is a frontend for several archiving utilities. If you want a
particular archive format support, see ${HOMEPAGE}
and install the relevant package. For example:
7-zip - app-arch/p7zip
ace - app-arch/unace
arj - app-arch/arj
cpio - app-arch/cpio
deb - app-arch/dpkg
iso - app-cdr/cdrtools
jar,zip - app-arch/zip and app-arch/unzip
lha - app-arch/lha
lzop - app-arch/lzop
rar - app-arch/unrar or app-arch/unar
rpm - app-arch/rpm
unstuff - app-arch/stuffit
zoo - app-arch/zoo"
src_prepare() {
# File providing Gentoo package names for various archivers
cp -f "${FILESDIR}"/3.6.0-packages.match data/packages.match || die
gnome2_src_prepare
}
src_configure() {
# --disable-debug because enabling it adds -O0 to CFLAGS
gnome2_src_configure \
--disable-run-in-place \
--disable-static \
--disable-debug \
--enable-magic \
--enable-libarchive \
$(use_enable libnotify notification) \
$(use_enable packagekit)
}
src_install() {
gnome2_src_install
readme.gentoo_create_doc
}
pkg_postinst() {
gnome2_pkg_postinst
readme.gentoo_print_elog
}

@ -1,7 +1,4 @@
DIST bacula-5.2.13.tar.gz 4243395 SHA256 a4bed458bf001889bd06bf31671b5d9908055a1d1e8113fd750ae4d326607ad8 SHA512 dfdff353f5b6ed4d85013dc292526706bbd67066f7057a114012172926c819c8df1eb8779166d5a90db3a49a5584f0a8daf7566cc93cf4fa3f1bdda245b55cf0 WHIRLPOOL f559a3650ae45e149a80cdc74ab84e32c94f492321c2222c18003bacfb6690615befc3a37826055f6c436a4af6ace4b81497181f2ec4f641b0ad3a13817488a7
DIST bacula-7.0.5.tar.gz 3216406 SHA256 1457849eb33011b43371801b62ffa13d29bebe51be8d5a36da563b87bb094a49 SHA512 df7908769fd13a1cb2e0491d3773577db40c0f1c010b887c6dc6d7e0bc0b408fbfc260e6d5a2a34975e5b424152c7f558b33aeedea45f366636739295641394b WHIRLPOOL 47642c52928d84a50c01adfb8afa49c0c9376cba3b0f709d0c5113cba3380e047ded04980ffad339deeb1ce6d3a8ec59f58cf1968223973def7074a446a09da5
DIST bacula-7.4.0.tar.gz 3314218 SHA256 fe850b783523edb19fb4dbfa8c44752d20955121b71a52b0740a9e765bfd73cb SHA512 615cb4d9a4fd597bc794b6d4c901c777d544472f3f5b6e1cdc74d8e41279a3fd0bd6d2c30511095933a3a47a7f24da4372c538ab472eb48c0fb1db59c2a59e1a WHIRLPOOL 669d0e4de172fb1c35a3a5a91e371aa2b87cd90f664974de8dcdf1677f442ac269f66c430627c81ea8a17bf02dd54590158b8b09e0c110ac32e83e0a0d41861d
DIST bacula-7.4.1.tar.gz 3310144 SHA256 d0874e94c0534274455efd91d6f9477c57c7f14882138f03b3572eff2660e861 SHA512 38d03d437c43fea18160ec9e1d0367e08dca3831bc90b52c2f357cc47da4d4cd00bbfdadad4cd61c684c7729a99c76dd153d00bd3b581e91fc485a7480d35e8a WHIRLPOOL 5c6708ff00ee83580c56e2979865f66864c5eca9fe67fecdbf3537eac357d6737d147002e76d193ea90db7c842bb58feb944043ab18b75072caef717ecbb8f9d
DIST bacula-7.4.2.tar.gz 3311355 SHA256 0c5f7fe1d35fc2aa4ffba73e977b710b955b1fe3e45ab90c67b47b279152ad67 SHA512 50b04666f759a6b5a37708478851f3439d027c670adf1e44827350eb26de8caab4e5f8bf1bd0f4b784bd2576067d0c1cc9da3627499d14130583296b22f504bd WHIRLPOOL 6a9f6313f8629a9c8b0c67757762a8e6bf2717351f20a4db080c80b6237b75993023a2a967be79f55107eafbe00186da5cc3253293ab078d9433d234987c2ac8
DIST bacula-7.4.3.tar.gz 3311152 SHA256 597db51997fcdb4c8bdc201f2dc22b466e69152bc2945e2222a27f4ffaeba5bc SHA512 2fe5e852a77e6e1db8ea2d71909646d0e1ff164b5ef792c149cb8ce80ce790086a9f34ec31c126ce7d161d5c6f74dc27fe3ccf34fe62c08077c72a02c3d23ded WHIRLPOOL d606bb79451e0d982be0528d1c71a5c8167890f639efbdc28758818bd0e3cba7416b86c0559887652f4c9e029ea981a498d275998a1a1450379e3e911256b90d
DIST bacula-7.4.4.tar.gz 3312271 SHA256 01a53d4501b17aeea0c25f0b63e49b4586ac221107834a6c471c43bc602c4c47 SHA512 37f1fd0d91f027fc12cd43b5e575abf0f8d9ccad805775bd308a06cff843b77cfc599e0d45eaf83536c1be669a5189c35744b5774adaefa606fed31d63888029 WHIRLPOOL 53a45d30b2188cacfa092dae4f791c4bb9c3cd4fc0f30fa2fc1e212dfdaccb1fc50a3b709f2d69e71458916916e887362f09a1aabe0219c34867bb6c4d93d0e9

@ -1,423 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="threads"
inherit eutils multilib python-single-r1 qt4-r2 systemd user libtool
MY_PV=${PV/_beta/-b}
MY_P=${PN}-${MY_PV}
DESCRIPTION="Featureful client/server network backup suite"
HOMEPAGE="http://www.bacula.org/"
SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="acl bacula-clientonly bacula-nodir bacula-nosd examples ipv6 libressl logwatch mysql postgres python qt4 readline +sqlite ssl static tcpd vim-syntax X"
DEPEND="
dev-libs/gmp:0
!bacula-clientonly? (
postgres? ( dev-db/postgresql:*[threads] )
mysql? ( virtual/mysql )
sqlite? ( dev-db/sqlite:3 )
!bacula-nodir? ( virtual/mta )
)
qt4? (
dev-qt/qtsvg:4
x11-libs/qwt:5
)
logwatch? ( sys-apps/logwatch )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
readline? ( sys-libs/readline:0 )
static? (
acl? ( virtual/acl[static-libs] )
sys-libs/zlib[static-libs]
dev-libs/lzo[static-libs]
sys-libs/ncurses:=[static-libs]
ssl? (
!libressl? ( dev-libs/openssl:0=[static-libs] )
libressl? ( dev-libs/libressl:0=[static-libs] )
)
)
!static? (
acl? ( virtual/acl )
sys-libs/zlib
dev-libs/lzo
sys-libs/ncurses:=
ssl? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
)
)
python? ( ${PYTHON_DEPS} )
"
RDEPEND="${DEPEND}
!bacula-clientonly? (
!bacula-nosd? (
sys-block/mtx
app-arch/mt-st
)
)
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
REQUIRED_USE="|| ( ^^ ( mysql postgres sqlite ) bacula-clientonly )
static? ( bacula-clientonly )
python? ( ${PYTHON_REQUIRED_USE} )"
S=${WORKDIR}/${MY_P}
pkg_setup() {
#XOR and !bacula-clientonly controlled by REQUIRED_USE
use mysql && export mydbtype="mysql"
use postgres && export mydbtype="postgresql"
use sqlite && export mydbtype="sqlite3"
# create the daemon group and user
if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
enewgroup bacula
einfo
einfo "The group 'bacula' has been created. Any users you add to this"
einfo "group have access to files created by the daemons."
einfo
fi
if use bacula-clientonly && use static && use qt4; then
ewarn
ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
ewarn
fi
if ! use bacula-clientonly; then
if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
einfo
einfo "The user 'bacula' has been created. Please see the bacula manual"
einfo "for information about running bacula as a non-root user."
einfo
fi
fi
use python && python-single-r1_pkg_setup
}
src_prepare() {
# adjusts default configuration files for several binaries
# to /etc/bacula/<config> instead of ./<config>
pushd src >&/dev/null || die
for f in console/console.c dird/dird.c filed/filed.c \
stored/bcopy.c stored/bextract.c stored/bls.c \
stored/bscan.c stored/btape.c stored/stored.c \
qt-console/main.cpp; do
sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
|| die "sed on ${f} failed"
done
popd >&/dev/null || die
# bug 466688 drop deprecated categories from Desktop file
sed -i -e 's/Application;//' scripts/bat.desktop.in || die
# bug 466690 Use CXXFLAGS instead of CFLAGS
sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
# drop automatic install of unneeded documentation (for bug 356499)
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-doc.patch
# bug #310087
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
# bug #311161
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-lib-search-path.patch
# stop build for errors in subdirs
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-Makefile.patch
# bat needs to respect LDFLAGS
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-ldflags.patch
# bug #328701
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
epatch "${FILESDIR}"/5.2.10/${PN}-5.2.10-fix-static.patch
# do not strip binaries
sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
# fix file not found error during make depend
epatch "${FILESDIR}"/5.2.12/${PN}-5.2.12-depend.patch
# Fix systemd unit files:
# bug 497748
sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
# bug 504370
sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
# Fix tmpfiles config for client-only (no bacula user) install
# NOTE: Change only first occurance (user) not second (group)
# bug 528398 and 577486
if use bacula-clientonly; then
sed -i -e 's/bacula/root/' platforms/systemd/bacula.conf.in || die
fi
# fix bundled libtool (bug 466696)
# But first move directory with M4 macros out of the way.
# It is only needed by i autoconf and gives errors during elibtoolize.
mv autoconf/libtool autoconf/libtool1 || die
elibtoolize
}
src_configure() {
local myconf=''
if use bacula-clientonly; then
myconf="${myconf} \
$(use_enable bacula-clientonly client-only) \
$(use_enable !static libtool) \
$(use_enable static static-cons) \
$(use_enable static static-fd)"
else
myconf="${myconf} \
$(use_enable !bacula-nodir build-dird) \
$(use_enable !bacula-nosd build-stored)"
# bug #311099
# database support needed by dir-only *and* sd-only
# build as well (for building bscan, btape, etc.)
myconf="${myconf} \
--with-${mydbtype} \
--enable-batch-insert"
fi
# do not build bat if 'static' clientonly
if ! use bacula-clientonly || ! use static; then
myconf="${myconf} \
$(use_enable qt4 bat)"
fi
myconf="${myconf} \
--disable-tray-monitor \
$(use_with X x) \
$(use_with python) \
$(use_enable !readline conio) \
$(use_enable readline) \
$(use_with readline readline /usr) \
$(use_with ssl openssl) \
$(use_enable ipv6) \
$(use_enable acl) \
$(use_with tcpd tcp-wrappers)"
econf \
--libdir=/usr/$(get_libdir) \
--docdir=/usr/share/doc/${PF} \
--htmldir=/usr/share/doc/${PF}/html \
--with-pid-dir=/var/run \
--sysconfdir=/etc/bacula \
--with-subsys-dir=/var/lock/subsys \
--with-working-dir=/var/lib/bacula \
--with-logdir=/var/lib/bacula \
--with-scriptdir=/usr/libexec/bacula \
--with-systemd=$(systemd_get_unitdir) \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=root \
--with-sd-group=bacula \
--with-fd-user=root \
--with-fd-group=bacula \
--enable-smartalloc \
--disable-afs \
--host=${CHOST} \
${myconf}
# correct configuration for QT based bat
if use qt4 ; then
pushd src/qt-console
eqmake4
popd
fi
}
src_compile() {
# Make build log verbose (bug #447806)
emake NO_ECHO=""
}
src_install() {
emake DESTDIR="${D}" install
doicon scripts/bacula.png
# install bat icon and desktop file when enabled
# (for some reason ./configure doesn't pick this up)
if use qt4 && ! use static ; then
doicon src/qt-console/images/bat_icon.png
domenu scripts/bat.desktop
fi
# remove some scripts we don't need at all
rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
# rename statically linked apps
if use bacula-clientonly && use static ; then
pushd "${D}"/usr/sbin || die
mv static-bacula-fd bacula-fd || die
mv static-bconsole bconsole || die
popd || die
fi
# extra files which 'make install' doesn't cover
if ! use bacula-clientonly; then
# the database update scripts
diropts -m0750
insinto /usr/libexec/bacula/updatedb
insopts -m0754
doins "${S}"/updatedb/*
fperms 0640 /usr/libexec/bacula/updatedb/README
# the logrotate configuration
# (now unconditional wrt bug #258187)
diropts -m0755
insinto /etc/logrotate.d
insopts -m0644
newins "${S}"/scripts/logrotate bacula
# the logwatch scripts
if use logwatch; then
diropts -m0750
dodir /etc/log.d/scripts/services
dodir /etc/log.d/scripts/shared
dodir /etc/log.d/conf/logfiles
dodir /etc/log.d/conf/services
pushd "${S}"/scripts/logwatch >&/dev/null || die
emake DESTDIR="${D}" install
popd >&/dev/null || die
fi
fi
rm -vf "${D}"/usr/share/man/man1/bacula-bwxconsole.1*
if ! use qt4; then
rm -vf "${D}"/usr/share/man/man1/bat.1*
fi
rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
if use bacula-clientonly || use bacula-nodir; then
rm -vf "${D}"/usr/share/man/man8/bacula-dir.8*
rm -vf "${D}"/usr/share/man/man8/dbcheck.8*
rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
rm -vf "${D}"/usr/libexec/bacula/create_*_database
rm -vf "${D}"/usr/libexec/bacula/drop_*_database
rm -vf "${D}"/usr/libexec/bacula/make_*_tables
rm -vf "${D}"/usr/libexec/bacula/update_*_tables
rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
fi
if use bacula-clientonly || use bacula-nosd; then
rm -vf "${D}"/usr/share/man/man8/bacula-sd.8*
rm -vf "${D}"/usr/share/man/man8/bcopy.8*
rm -vf "${D}"/usr/share/man/man8/bextract.8*
rm -vf "${D}"/usr/share/man/man8/bls.8*
rm -vf "${D}"/usr/share/man/man8/bscan.8*
rm -vf "${D}"/usr/share/man/man8/btape.8*
rm -vf "${D}"/usr/libexec/bacula/disk-changer
rm -vf "${D}"/usr/libexec/bacula/mtx-changer
rm -vf "${D}"/usr/libexec/bacula/dvd-handler
fi
# documentation
dodoc ChangeLog ReleaseNotes SUPPORT technotes
# install examples (bug #457504)
if use examples; then
docinto examples/
dodoc -r examples/*
fi
# vim-files
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins scripts/bacula.vim
insinto /usr/share/vim/vimfiles/ftdetect
newins scripts/filetype.vim bacula_ft.vim
fi
# setup init scripts
myscripts="bacula-fd"
if ! use bacula-clientonly; then
if ! use bacula-nodir; then
myscripts="${myscripts} bacula-dir"
fi
if ! use bacula-nosd; then
myscripts="${myscripts} bacula-sd"
fi
fi
for script in ${myscripts}; do
# copy over init script and config to a temporary location
# so we can modify them as needed
cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
# now set the database dependancy for the director init script
case "${script}" in
bacula-dir)
case "${mydbtype}" in
sqlite3)
# sqlite databases don't have a daemon
sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
;;
*)
# all other databases have daemons
sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
;;
esac
;;
*)
;;
esac
# install init script and config
newinitd "${T}/${script}".initd "${script}"
newconfd "${T}/${script}".confd "${script}"
done
systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
systemd_dotmpfilesd "${S}"/platforms/systemd/bacula.conf
# make sure the working directory exists
diropts -m0750
keepdir /var/lib/bacula
# make sure bacula group can execute bacula libexec scripts
fowners -R root:bacula /usr/libexec/bacula
}
pkg_postinst() {
if use bacula-clientonly; then
fowners root:bacula /var/lib/bacula
else
fowners bacula:bacula /var/lib/bacula
fi
if ! use bacula-clientonly && ! use bacula-nodir; then
einfo
einfo "If this is a new install, you must create the ${mydbtype} databases with:"
einfo " /usr/libexec/bacula/create_${mydbtype}_database"
einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
einfo
fi
if use sqlite; then
einfo
einfo "Be aware that Bacula does not officially support SQLite database anymore."
einfo "Best use it only for a client-only installation. See Bug #445540."
einfo
fi
einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
einfo "you have to enable 'USE=qt4'."
einfo
}

@ -1,410 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils multilib qt4-r2 systemd user libtool
MY_PV=${PV/_beta/-b}
MY_P=${PN}-${MY_PV}
DESCRIPTION="Featureful client/server network backup suite"
HOMEPAGE="http://www.bacula.org/"
SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="acl bacula-clientonly bacula-nodir bacula-nosd examples ipv6 libressl logwatch mysql postgres qt4 readline +sqlite ssl static tcpd vim-syntax X"
DEPEND="
dev-libs/gmp:0
!bacula-clientonly? (
postgres? ( dev-db/postgresql:*[threads] )
mysql? ( virtual/mysql )
sqlite? ( dev-db/sqlite:3 )
!bacula-nodir? ( virtual/mta )
)
qt4? (
dev-qt/qtsvg:4
x11-libs/qwt:5
)
logwatch? ( sys-apps/logwatch )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
readline? ( sys-libs/readline:0 )
static? (
acl? ( virtual/acl[static-libs] )
sys-libs/zlib[static-libs]
dev-libs/lzo[static-libs]
sys-libs/ncurses:=[static-libs]
ssl? (
!libressl? ( dev-libs/openssl:0=[static-libs] )
libressl? ( dev-libs/libressl:0=[static-libs] )
)
)
!static? (
acl? ( virtual/acl )
sys-libs/zlib
dev-libs/lzo
sys-libs/ncurses:=
ssl? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
)
)"
RDEPEND="${DEPEND}
!bacula-clientonly? (
!bacula-nosd? (
sys-block/mtx
app-arch/mt-st
)
)
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
REQUIRED_USE="|| ( ^^ ( mysql postgres sqlite ) bacula-clientonly )
static? ( bacula-clientonly )"
S=${WORKDIR}/${MY_P}
pkg_setup() {
#XOR and !bacula-clientonly controlled by REQUIRED_USE
use mysql && export mydbtype="mysql"
use postgres && export mydbtype="postgresql"
use sqlite && export mydbtype="sqlite3"
# create the daemon group and user
if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
enewgroup bacula
einfo
einfo "The group 'bacula' has been created. Any users you add to this"
einfo "group have access to files created by the daemons."
einfo
fi
if use bacula-clientonly && use static && use qt4; then
ewarn
ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
ewarn
fi
if ! use bacula-clientonly; then
if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
einfo
einfo "The user 'bacula' has been created. Please see the bacula manual"
einfo "for information about running bacula as a non-root user."
einfo
fi
fi
}
src_prepare() {
# adjusts default configuration files for several binaries
# to /etc/bacula/<config> instead of ./<config>
pushd src >&/dev/null || die
for f in console/console.c dird/dird.c filed/filed.c \
stored/bcopy.c stored/bextract.c stored/bls.c \
stored/bscan.c stored/btape.c stored/stored.c \
qt-console/main.cpp; do
sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
|| die "sed on ${f} failed"
done
popd >&/dev/null || die
# bug 466688 drop deprecated categories from Desktop file
sed -i -e 's/Application;//' scripts/bat.desktop.in || die
# bug 466690 Use CXXFLAGS instead of CFLAGS
sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
# drop automatic install of unneeded documentation (for bug 356499)
epatch "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
# bug #310087
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
# bug #311161
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-lib-search-path.patch
# bat needs to respect LDFLAGS
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-ldflags.patch
# bug #328701
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
epatch "${FILESDIR}"/7.2.0/${PN}-7.2.0-fix-static.patch
# do not strip binaries
sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
# fix file not found error during make depend
epatch "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
# Fix systemd unit files:
# bug 497748
sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
# bug 504370
sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
# bug 584442 and 504368
sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die
# fix bundled libtool (bug 466696)
# But first move directory with M4 macros out of the way.
# It is only needed by autoconf and gives errors during elibtoolize.
mv autoconf/libtool autoconf/libtool1 || die
elibtoolize
}
src_configure() {
local myconf=''
if use bacula-clientonly; then
myconf="${myconf} \
$(use_enable bacula-clientonly client-only) \
$(use_enable !static libtool) \
$(use_enable static static-cons) \
$(use_enable static static-fd)"
else
myconf="${myconf} \
$(use_enable !bacula-nodir build-dird) \
$(use_enable !bacula-nosd build-stored)"
# bug #311099
# database support needed by dir-only *and* sd-only
# build as well (for building bscan, btape, etc.)
myconf="${myconf} \
--with-${mydbtype} \
--enable-batch-insert"
fi
# do not build bat if 'static' clientonly
if ! use bacula-clientonly || ! use static; then
myconf="${myconf} \
$(use_enable qt4 bat)"
fi
myconf="${myconf} \
$(use_with X x) \
$(use_enable !readline conio) \
$(use_enable readline) \
$(use_with readline readline /usr) \
$(use_with ssl openssl) \
$(use_enable ipv6) \
$(use_enable acl) \
$(use_with tcpd tcp-wrappers)"
econf \
--libdir=/usr/$(get_libdir) \
--docdir=/usr/share/doc/${PF} \
--htmldir=/usr/share/doc/${PF}/html \
--with-pid-dir=/var/run \
--sysconfdir=/etc/bacula \
--with-subsys-dir=/var/lock/subsys \
--with-working-dir=/var/lib/bacula \
--with-logdir=/var/lib/bacula \
--with-scriptdir=/usr/libexec/bacula \
--with-systemd=$(systemd_get_unitdir) \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=root \
--with-sd-group=bacula \
--with-fd-user=root \
--with-fd-group=bacula \
--enable-smartalloc \
--disable-afs \
--host=${CHOST} \
${myconf}
# correct configuration for QT based bat
if use qt4 ; then
pushd src/qt-console
eqmake4
popd
fi
}
src_compile() {
# Make build log verbose (bug #447806)
emake NO_ECHO=""
}
src_install() {
emake DESTDIR="${D}" install
doicon scripts/bacula.png
# install bat icon and desktop file when enabled
# (for some reason ./configure doesn't pick this up)
if use qt4 && ! use static ; then
doicon src/qt-console/images/bat_icon.png
domenu scripts/bat.desktop
fi
# remove some scripts we don't need at all
rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
# rename statically linked apps
if use bacula-clientonly && use static ; then
pushd "${D}"/usr/sbin || die
mv static-bacula-fd bacula-fd || die
mv static-bconsole bconsole || die
popd || die
fi
# extra files which 'make install' doesn't cover
if ! use bacula-clientonly; then
# the database update scripts
diropts -m0750
insinto /usr/libexec/bacula/updatedb
insopts -m0754
doins "${S}"/updatedb/*
fperms 0640 /usr/libexec/bacula/updatedb/README
# the logrotate configuration
# (now unconditional wrt bug #258187)
diropts -m0755
insinto /etc/logrotate.d
insopts -m0644
newins "${S}"/scripts/logrotate bacula
# the logwatch scripts
if use logwatch; then
diropts -m0750
dodir /etc/log.d/scripts/services
dodir /etc/log.d/scripts/shared
dodir /etc/log.d/conf/logfiles
dodir /etc/log.d/conf/services
pushd "${S}"/scripts/logwatch >&/dev/null || die
emake DESTDIR="${D}" install
popd >&/dev/null || die
fi
fi
if ! use qt4; then
rm -vf "${D}"/usr/share/man/man1/bat.1*
fi
rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
if use bacula-clientonly || use bacula-nodir; then
rm -vf "${D}"/usr/share/man/man8/bacula-dir.8*
rm -vf "${D}"/usr/share/man/man8/dbcheck.8*
rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
rm -vf "${D}"/usr/libexec/bacula/create_*_database
rm -vf "${D}"/usr/libexec/bacula/drop_*_database
rm -vf "${D}"/usr/libexec/bacula/make_*_tables
rm -vf "${D}"/usr/libexec/bacula/update_*_tables
rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
fi
if use bacula-clientonly || use bacula-nosd; then
rm -vf "${D}"/usr/share/man/man8/bacula-sd.8*
rm -vf "${D}"/usr/share/man/man8/bcopy.8*
rm -vf "${D}"/usr/share/man/man8/bextract.8*
rm -vf "${D}"/usr/share/man/man8/bls.8*
rm -vf "${D}"/usr/share/man/man8/bscan.8*
rm -vf "${D}"/usr/share/man/man8/btape.8*
rm -vf "${D}"/usr/libexec/bacula/disk-changer
rm -vf "${D}"/usr/libexec/bacula/mtx-changer
rm -vf "${D}"/usr/libexec/bacula/dvd-handler
fi
# documentation
dodoc ChangeLog ReleaseNotes SUPPORT
# install examples (bug #457504)
if use examples; then
docinto examples/
dodoc -r examples/*
fi
# vim-files
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins scripts/bacula.vim
insinto /usr/share/vim/vimfiles/ftdetect
newins scripts/filetype.vim bacula_ft.vim
fi
# setup init scripts
myscripts="bacula-fd"
if ! use bacula-clientonly; then
if ! use bacula-nodir; then
myscripts="${myscripts} bacula-dir"
fi
if ! use bacula-nosd; then
myscripts="${myscripts} bacula-sd"
fi
fi
for script in ${myscripts}; do
# copy over init script and config to a temporary location
# so we can modify them as needed
cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
# now set the database dependancy for the director init script
case "${script}" in
bacula-dir)
case "${mydbtype}" in
sqlite3)
# sqlite databases don't have a daemon
sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
;;
*)
# all other databases have daemons
sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
;;
esac
;;
*)
;;
esac
# install init script and config
newinitd "${T}/${script}".initd "${script}"
newconfd "${T}/${script}".confd "${script}"
done
systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
# make sure the working directory exists
diropts -m0750
keepdir /var/lib/bacula
# make sure bacula group can execute bacula libexec scripts
fowners -R root:bacula /usr/libexec/bacula
}
pkg_postinst() {
if use bacula-clientonly; then
fowners root:bacula /var/lib/bacula
else
fowners bacula:bacula /var/lib/bacula
fi
if ! use bacula-clientonly && ! use bacula-nodir; then
einfo
einfo "If this is a new install, you must create the ${mydbtype} databases with:"
einfo " /usr/libexec/bacula/create_${mydbtype}_database"
einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
einfo
ewarn "ATTENTION!"
ewarn "The format of the database may have changed."
ewarn "If you just upgraded from a version below 7.2.0 you must run"
ewarn "'update_bacula_tables' now."
ewarn "Make sure to have a backup of your catalog before."
ewarn
fi
if use sqlite; then
einfo
einfo "Be aware that Bacula does not officially support SQLite database anymore."
einfo "Best use it only for a client-only installation. See Bug #445540."
einfo
fi
einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
einfo "you have to enable 'USE=qt4'."
einfo
}

@ -1,408 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils multilib qt4-r2 systemd user libtool
MY_PV=${PV/_beta/-b}
MY_P=${PN}-${MY_PV}
DESCRIPTION="Featureful client/server network backup suite"
HOMEPAGE="http://www.bacula.org/"
SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="acl bacula-clientonly bacula-nodir bacula-nosd examples ipv6 libressl logwatch mysql postgres qt4 readline +sqlite ssl static tcpd vim-syntax X"
DEPEND="
dev-libs/gmp:0
!bacula-clientonly? (
postgres? ( dev-db/postgresql:*[threads] )
mysql? ( virtual/mysql )
sqlite? ( dev-db/sqlite:3 )
!bacula-nodir? ( virtual/mta )
)
qt4? (
dev-qt/qtsvg:4
x11-libs/qwt:5
)
logwatch? ( sys-apps/logwatch )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
readline? ( sys-libs/readline:0 )
static? (
acl? ( virtual/acl[static-libs] )
sys-libs/zlib[static-libs]
dev-libs/lzo[static-libs]
sys-libs/ncurses:=[static-libs]
ssl? (
!libressl? ( dev-libs/openssl:0=[static-libs] )
libressl? ( dev-libs/libressl:0=[static-libs] )
)
)
!static? (
acl? ( virtual/acl )
sys-libs/zlib
dev-libs/lzo
sys-libs/ncurses:=
ssl? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
)
)"
RDEPEND="${DEPEND}
!bacula-clientonly? (
!bacula-nosd? (
sys-block/mtx
app-arch/mt-st
)
)
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
REQUIRED_USE="|| ( ^^ ( mysql postgres sqlite ) bacula-clientonly )
static? ( bacula-clientonly )"
S=${WORKDIR}/${MY_P}
pkg_setup() {
#XOR and !bacula-clientonly controlled by REQUIRED_USE
use mysql && export mydbtype="mysql"
use postgres && export mydbtype="postgresql"
use sqlite && export mydbtype="sqlite3"
# create the daemon group and user
if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
enewgroup bacula
einfo
einfo "The group 'bacula' has been created. Any users you add to this"
einfo "group have access to files created by the daemons."
einfo
fi
if use bacula-clientonly && use static && use qt4; then
ewarn
ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
ewarn
fi
if ! use bacula-clientonly; then
if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
einfo
einfo "The user 'bacula' has been created. Please see the bacula manual"
einfo "for information about running bacula as a non-root user."
einfo
fi
fi
}
src_prepare() {
# adjusts default configuration files for several binaries
# to /etc/bacula/<config> instead of ./<config>
pushd src >&/dev/null || die
for f in console/console.c dird/dird.c filed/filed.c \
stored/bcopy.c stored/bextract.c stored/bls.c \
stored/bscan.c stored/btape.c stored/stored.c \
qt-console/main.cpp; do
sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
|| die "sed on ${f} failed"
done
popd >&/dev/null || die
# bug 466688 drop deprecated categories from Desktop file
sed -i -e 's/Application;//' scripts/bat.desktop.in || die
# bug 466690 Use CXXFLAGS instead of CFLAGS
sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
# drop automatic install of unneeded documentation (for bug 356499)
epatch "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
# bug #310087
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
# bug #311161
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-lib-search-path.patch
# bat needs to respect LDFLAGS
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-ldflags.patch
# bug #328701
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
epatch "${FILESDIR}"/7.2.0/${PN}-7.2.0-fix-static.patch
# do not strip binaries
sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
# fix file not found error during make depend
epatch "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
# Fix systemd unit files:
# bug 497748
sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
# bug 504370
sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
# fix bundled libtool (bug 466696)
# But first move directory with M4 macros out of the way.
# It is only needed by autoconf and gives errors during elibtoolize.
mv autoconf/libtool autoconf/libtool1 || die
elibtoolize
}
src_configure() {
local myconf=''
if use bacula-clientonly; then
myconf="${myconf} \
$(use_enable bacula-clientonly client-only) \
$(use_enable !static libtool) \
$(use_enable static static-cons) \
$(use_enable static static-fd)"
else
myconf="${myconf} \
$(use_enable !bacula-nodir build-dird) \
$(use_enable !bacula-nosd build-stored)"
# bug #311099
# database support needed by dir-only *and* sd-only
# build as well (for building bscan, btape, etc.)
myconf="${myconf} \
--with-${mydbtype} \
--enable-batch-insert"
fi
# do not build bat if 'static' clientonly
if ! use bacula-clientonly || ! use static; then
myconf="${myconf} \
$(use_enable qt4 bat)"
fi
myconf="${myconf} \
$(use_with X x) \
$(use_enable !readline conio) \
$(use_enable readline) \
$(use_with readline readline /usr) \
$(use_with ssl openssl) \
$(use_enable ipv6) \
$(use_enable acl) \
$(use_with tcpd tcp-wrappers)"
econf \
--libdir=/usr/$(get_libdir) \
--docdir=/usr/share/doc/${PF} \
--htmldir=/usr/share/doc/${PF}/html \
--with-pid-dir=/var/run \
--sysconfdir=/etc/bacula \
--with-subsys-dir=/var/lock/subsys \
--with-working-dir=/var/lib/bacula \
--with-logdir=/var/lib/bacula \
--with-scriptdir=/usr/libexec/bacula \
--with-systemd=$(systemd_get_unitdir) \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=root \
--with-sd-group=bacula \
--with-fd-user=root \
--with-fd-group=bacula \
--enable-smartalloc \
--disable-afs \
--host=${CHOST} \
${myconf}
# correct configuration for QT based bat
if use qt4 ; then
pushd src/qt-console
eqmake4
popd
fi
}
src_compile() {
# Make build log verbose (bug #447806)
emake NO_ECHO=""
}
src_install() {
emake DESTDIR="${D}" install
doicon scripts/bacula.png
# install bat icon and desktop file when enabled
# (for some reason ./configure doesn't pick this up)
if use qt4 && ! use static ; then
doicon src/qt-console/images/bat_icon.png
domenu scripts/bat.desktop
fi
# remove some scripts we don't need at all
rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
# rename statically linked apps
if use bacula-clientonly && use static ; then
pushd "${D}"/usr/sbin || die
mv static-bacula-fd bacula-fd || die
mv static-bconsole bconsole || die
popd || die
fi
# extra files which 'make install' doesn't cover
if ! use bacula-clientonly; then
# the database update scripts
diropts -m0750
insinto /usr/libexec/bacula/updatedb
insopts -m0754
doins "${S}"/updatedb/*
fperms 0640 /usr/libexec/bacula/updatedb/README
# the logrotate configuration
# (now unconditional wrt bug #258187)
diropts -m0755
insinto /etc/logrotate.d
insopts -m0644
newins "${S}"/scripts/logrotate bacula
# the logwatch scripts
if use logwatch; then
diropts -m0750
dodir /etc/log.d/scripts/services
dodir /etc/log.d/scripts/shared
dodir /etc/log.d/conf/logfiles
dodir /etc/log.d/conf/services
pushd "${S}"/scripts/logwatch >&/dev/null || die
emake DESTDIR="${D}" install
popd >&/dev/null || die
fi
fi
if ! use qt4; then
rm -vf "${D}"/usr/share/man/man1/bat.1*
fi
rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
if use bacula-clientonly || use bacula-nodir; then
rm -vf "${D}"/usr/share/man/man8/bacula-dir.8*
rm -vf "${D}"/usr/share/man/man8/dbcheck.8*
rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
rm -vf "${D}"/usr/libexec/bacula/create_*_database
rm -vf "${D}"/usr/libexec/bacula/drop_*_database
rm -vf "${D}"/usr/libexec/bacula/make_*_tables
rm -vf "${D}"/usr/libexec/bacula/update_*_tables
rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
fi
if use bacula-clientonly || use bacula-nosd; then
rm -vf "${D}"/usr/share/man/man8/bacula-sd.8*
rm -vf "${D}"/usr/share/man/man8/bcopy.8*
rm -vf "${D}"/usr/share/man/man8/bextract.8*
rm -vf "${D}"/usr/share/man/man8/bls.8*
rm -vf "${D}"/usr/share/man/man8/bscan.8*
rm -vf "${D}"/usr/share/man/man8/btape.8*
rm -vf "${D}"/usr/libexec/bacula/disk-changer
rm -vf "${D}"/usr/libexec/bacula/mtx-changer
rm -vf "${D}"/usr/libexec/bacula/dvd-handler
fi
# documentation
dodoc ChangeLog ReleaseNotes SUPPORT
# install examples (bug #457504)
if use examples; then
docinto examples/
dodoc -r examples/*
fi
# vim-files
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins scripts/bacula.vim
insinto /usr/share/vim/vimfiles/ftdetect
newins scripts/filetype.vim bacula_ft.vim
fi
# setup init scripts
myscripts="bacula-fd"
if ! use bacula-clientonly; then
if ! use bacula-nodir; then
myscripts="${myscripts} bacula-dir"
fi
if ! use bacula-nosd; then
myscripts="${myscripts} bacula-sd"
fi
fi
for script in ${myscripts}; do
# copy over init script and config to a temporary location
# so we can modify them as needed
cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
# now set the database dependancy for the director init script
case "${script}" in
bacula-dir)
case "${mydbtype}" in
sqlite3)
# sqlite databases don't have a daemon
sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
;;
*)
# all other databases have daemons
sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
;;
esac
;;
*)
;;
esac
# install init script and config
newinitd "${T}/${script}".initd "${script}"
newconfd "${T}/${script}".confd "${script}"
done
systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
# make sure the working directory exists
diropts -m0750
keepdir /var/lib/bacula
# make sure bacula group can execute bacula libexec scripts
fowners -R root:bacula /usr/libexec/bacula
}
pkg_postinst() {
if use bacula-clientonly; then
fowners root:bacula /var/lib/bacula
else
fowners bacula:bacula /var/lib/bacula
fi
if ! use bacula-clientonly && ! use bacula-nodir; then
einfo
einfo "If this is a new install, you must create the ${mydbtype} databases with:"
einfo " /usr/libexec/bacula/create_${mydbtype}_database"
einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
einfo
ewarn "ATTENTION!"
ewarn "The format of the database may have changed."
ewarn "If you just upgraded from a version below 7.2.0 you must run"
ewarn "'update_bacula_tables' now."
ewarn "Make sure to have a backup of your catalog before."
ewarn
fi
if use sqlite; then
einfo
einfo "Be aware that Bacula does not officially support SQLite database anymore."
einfo "Best use it only for a client-only installation. See Bug #445540."
einfo
fi
einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
einfo "you have to enable 'USE=qt4'."
einfo
}

@ -1,410 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils multilib qt4-r2 systemd user libtool
MY_PV=${PV/_beta/-b}
MY_P=${PN}-${MY_PV}
DESCRIPTION="Featureful client/server network backup suite"
HOMEPAGE="http://www.bacula.org/"
SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="acl bacula-clientonly bacula-nodir bacula-nosd examples ipv6 libressl logwatch mysql postgres qt4 readline +sqlite ssl static tcpd vim-syntax X"
DEPEND="
dev-libs/gmp:0
!bacula-clientonly? (
postgres? ( dev-db/postgresql:*[threads] )
mysql? ( virtual/mysql )
sqlite? ( dev-db/sqlite:3 )
!bacula-nodir? ( virtual/mta )
)
qt4? (
dev-qt/qtsvg:4
x11-libs/qwt:5
)
logwatch? ( sys-apps/logwatch )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
readline? ( sys-libs/readline:0 )
static? (
acl? ( virtual/acl[static-libs] )
sys-libs/zlib[static-libs]
dev-libs/lzo[static-libs]
sys-libs/ncurses:=[static-libs]
ssl? (
!libressl? ( dev-libs/openssl:0=[static-libs] )
libressl? ( dev-libs/libressl:0=[static-libs] )
)
)
!static? (
acl? ( virtual/acl )
sys-libs/zlib
dev-libs/lzo
sys-libs/ncurses:=
ssl? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
)
)"
RDEPEND="${DEPEND}
!bacula-clientonly? (
!bacula-nosd? (
sys-block/mtx
app-arch/mt-st
)
)
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
REQUIRED_USE="|| ( ^^ ( mysql postgres sqlite ) bacula-clientonly )
static? ( bacula-clientonly )"
S=${WORKDIR}/${MY_P}
pkg_setup() {
#XOR and !bacula-clientonly controlled by REQUIRED_USE
use mysql && export mydbtype="mysql"
use postgres && export mydbtype="postgresql"
use sqlite && export mydbtype="sqlite3"
# create the daemon group and user
if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
enewgroup bacula
einfo
einfo "The group 'bacula' has been created. Any users you add to this"
einfo "group have access to files created by the daemons."
einfo
fi
if use bacula-clientonly && use static && use qt4; then
ewarn
ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
ewarn
fi
if ! use bacula-clientonly; then
if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
einfo
einfo "The user 'bacula' has been created. Please see the bacula manual"
einfo "for information about running bacula as a non-root user."
einfo
fi
fi
}
src_prepare() {
# adjusts default configuration files for several binaries
# to /etc/bacula/<config> instead of ./<config>
pushd src >&/dev/null || die
for f in console/console.c dird/dird.c filed/filed.c \
stored/bcopy.c stored/bextract.c stored/bls.c \
stored/bscan.c stored/btape.c stored/stored.c \
qt-console/main.cpp; do
sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
|| die "sed on ${f} failed"
done
popd >&/dev/null || die
# bug 466688 drop deprecated categories from Desktop file
sed -i -e 's/Application;//' scripts/bat.desktop.in || die
# bug 466690 Use CXXFLAGS instead of CFLAGS
sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
# drop automatic install of unneeded documentation (for bug 356499)
epatch "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
# bug #310087
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
# bug #311161
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-lib-search-path.patch
# bat needs to respect LDFLAGS
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-ldflags.patch
# bug #328701
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
epatch "${FILESDIR}"/7.2.0/${PN}-7.2.0-fix-static.patch
# do not strip binaries
sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
# fix file not found error during make depend
epatch "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
# Fix systemd unit files:
# bug 497748
sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
# bug 504370
sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
# bug 584442 and 504368
sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die
# fix bundled libtool (bug 466696)
# But first move directory with M4 macros out of the way.
# It is only needed by autoconf and gives errors during elibtoolize.
mv autoconf/libtool autoconf/libtool1 || die
elibtoolize
}
src_configure() {
local myconf=''
if use bacula-clientonly; then
myconf="${myconf} \
$(use_enable bacula-clientonly client-only) \
$(use_enable !static libtool) \
$(use_enable static static-cons) \
$(use_enable static static-fd)"
else
myconf="${myconf} \
$(use_enable !bacula-nodir build-dird) \
$(use_enable !bacula-nosd build-stored)"
# bug #311099
# database support needed by dir-only *and* sd-only
# build as well (for building bscan, btape, etc.)
myconf="${myconf} \
--with-${mydbtype} \
--enable-batch-insert"
fi
# do not build bat if 'static' clientonly
if ! use bacula-clientonly || ! use static; then
myconf="${myconf} \
$(use_enable qt4 bat)"
fi
myconf="${myconf} \
$(use_with X x) \
$(use_enable !readline conio) \
$(use_enable readline) \
$(use_with readline readline /usr) \
$(use_with ssl openssl) \
$(use_enable ipv6) \
$(use_enable acl) \
$(use_with tcpd tcp-wrappers)"
econf \
--libdir=/usr/$(get_libdir) \
--docdir=/usr/share/doc/${PF} \
--htmldir=/usr/share/doc/${PF}/html \
--with-pid-dir=/var/run \
--sysconfdir=/etc/bacula \
--with-subsys-dir=/var/lock/subsys \
--with-working-dir=/var/lib/bacula \
--with-logdir=/var/lib/bacula \
--with-scriptdir=/usr/libexec/bacula \
--with-systemd=$(systemd_get_unitdir) \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=root \
--with-sd-group=bacula \
--with-fd-user=root \
--with-fd-group=bacula \
--enable-smartalloc \
--disable-afs \
--host=${CHOST} \
${myconf}
# correct configuration for QT based bat
if use qt4 ; then
pushd src/qt-console
eqmake4
popd
fi
}
src_compile() {
# Make build log verbose (bug #447806)
emake NO_ECHO=""
}
src_install() {
emake DESTDIR="${D}" install
doicon scripts/bacula.png
# install bat icon and desktop file when enabled
# (for some reason ./configure doesn't pick this up)
if use qt4 && ! use static ; then
doicon src/qt-console/images/bat_icon.png
domenu scripts/bat.desktop
fi
# remove some scripts we don't need at all
rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
# rename statically linked apps
if use bacula-clientonly && use static ; then
pushd "${D}"/usr/sbin || die
mv static-bacula-fd bacula-fd || die
mv static-bconsole bconsole || die
popd || die
fi
# extra files which 'make install' doesn't cover
if ! use bacula-clientonly; then
# the database update scripts
diropts -m0750
insinto /usr/libexec/bacula/updatedb
insopts -m0754
doins "${S}"/updatedb/*
fperms 0640 /usr/libexec/bacula/updatedb/README
# the logrotate configuration
# (now unconditional wrt bug #258187)
diropts -m0755
insinto /etc/logrotate.d
insopts -m0644
newins "${S}"/scripts/logrotate bacula
# the logwatch scripts
if use logwatch; then
diropts -m0750
dodir /etc/log.d/scripts/services
dodir /etc/log.d/scripts/shared
dodir /etc/log.d/conf/logfiles
dodir /etc/log.d/conf/services
pushd "${S}"/scripts/logwatch >&/dev/null || die
emake DESTDIR="${D}" install
popd >&/dev/null || die
fi
fi
if ! use qt4; then
rm -vf "${D}"/usr/share/man/man1/bat.1*
fi
rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
if use bacula-clientonly || use bacula-nodir; then
rm -vf "${D}"/usr/share/man/man8/bacula-dir.8*
rm -vf "${D}"/usr/share/man/man8/dbcheck.8*
rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
rm -vf "${D}"/usr/libexec/bacula/create_*_database
rm -vf "${D}"/usr/libexec/bacula/drop_*_database
rm -vf "${D}"/usr/libexec/bacula/make_*_tables
rm -vf "${D}"/usr/libexec/bacula/update_*_tables
rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
fi
if use bacula-clientonly || use bacula-nosd; then
rm -vf "${D}"/usr/share/man/man8/bacula-sd.8*
rm -vf "${D}"/usr/share/man/man8/bcopy.8*
rm -vf "${D}"/usr/share/man/man8/bextract.8*
rm -vf "${D}"/usr/share/man/man8/bls.8*
rm -vf "${D}"/usr/share/man/man8/bscan.8*
rm -vf "${D}"/usr/share/man/man8/btape.8*
rm -vf "${D}"/usr/libexec/bacula/disk-changer
rm -vf "${D}"/usr/libexec/bacula/mtx-changer
rm -vf "${D}"/usr/libexec/bacula/dvd-handler
fi
# documentation
dodoc ChangeLog ReleaseNotes SUPPORT
# install examples (bug #457504)
if use examples; then
docinto examples/
dodoc -r examples/*
fi
# vim-files
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins scripts/bacula.vim
insinto /usr/share/vim/vimfiles/ftdetect
newins scripts/filetype.vim bacula_ft.vim
fi
# setup init scripts
myscripts="bacula-fd"
if ! use bacula-clientonly; then
if ! use bacula-nodir; then
myscripts="${myscripts} bacula-dir"
fi
if ! use bacula-nosd; then
myscripts="${myscripts} bacula-sd"
fi
fi
for script in ${myscripts}; do
# copy over init script and config to a temporary location
# so we can modify them as needed
cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
# now set the database dependancy for the director init script
case "${script}" in
bacula-dir)
case "${mydbtype}" in
sqlite3)
# sqlite databases don't have a daemon
sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
;;
*)
# all other databases have daemons
sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
;;
esac
;;
*)
;;
esac
# install init script and config
newinitd "${T}/${script}".initd "${script}"
newconfd "${T}/${script}".confd "${script}"
done
systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
# make sure the working directory exists
diropts -m0750
keepdir /var/lib/bacula
# make sure bacula group can execute bacula libexec scripts
fowners -R root:bacula /usr/libexec/bacula
}
pkg_postinst() {
if use bacula-clientonly; then
fowners root:bacula /var/lib/bacula
else
fowners bacula:bacula /var/lib/bacula
fi
if ! use bacula-clientonly && ! use bacula-nodir; then
einfo
einfo "If this is a new install, you must create the ${mydbtype} databases with:"
einfo " /usr/libexec/bacula/create_${mydbtype}_database"
einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
einfo
ewarn "ATTENTION!"
ewarn "The format of the database may have changed."
ewarn "If you just upgraded from a version below 7.2.0 you must run"
ewarn "'update_bacula_tables' now."
ewarn "Make sure to have a backup of your catalog before."
ewarn
fi
if use sqlite; then
einfo
einfo "Be aware that Bacula does not officially support SQLite database anymore."
einfo "Best use it only for a client-only installation. See Bug #445540."
einfo
fi
einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
einfo "you have to enable 'USE=qt4'."
einfo
}

@ -1,410 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils multilib qt4-r2 systemd user libtool
MY_PV=${PV/_beta/-b}
MY_P=${PN}-${MY_PV}
DESCRIPTION="Featureful client/server network backup suite"
HOMEPAGE="http://www.bacula.org/"
SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="acl bacula-clientonly bacula-nodir bacula-nosd examples ipv6 libressl logwatch mysql postgres qt4 readline +sqlite ssl static tcpd vim-syntax X"
DEPEND="
dev-libs/gmp:0
!bacula-clientonly? (
postgres? ( dev-db/postgresql:*[threads] )
mysql? ( virtual/mysql )
sqlite? ( dev-db/sqlite:3 )
!bacula-nodir? ( virtual/mta )
)
qt4? (
dev-qt/qtsvg:4
x11-libs/qwt:5
)
logwatch? ( sys-apps/logwatch )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
readline? ( sys-libs/readline:0 )
static? (
acl? ( virtual/acl[static-libs] )
sys-libs/zlib[static-libs]
dev-libs/lzo[static-libs]
sys-libs/ncurses:=[static-libs]
ssl? (
!libressl? ( dev-libs/openssl:0=[static-libs] )
libressl? ( dev-libs/libressl:0=[static-libs] )
)
)
!static? (
acl? ( virtual/acl )
sys-libs/zlib
dev-libs/lzo
sys-libs/ncurses:=
ssl? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
)
)"
RDEPEND="${DEPEND}
!bacula-clientonly? (
!bacula-nosd? (
sys-block/mtx
app-arch/mt-st
)
)
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
REQUIRED_USE="|| ( ^^ ( mysql postgres sqlite ) bacula-clientonly )
static? ( bacula-clientonly )"
S=${WORKDIR}/${MY_P}
pkg_setup() {
#XOR and !bacula-clientonly controlled by REQUIRED_USE
use mysql && export mydbtype="mysql"
use postgres && export mydbtype="postgresql"
use sqlite && export mydbtype="sqlite3"
# create the daemon group and user
if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
enewgroup bacula
einfo
einfo "The group 'bacula' has been created. Any users you add to this"
einfo "group have access to files created by the daemons."
einfo
fi
if use bacula-clientonly && use static && use qt4; then
ewarn
ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
ewarn
fi
if ! use bacula-clientonly; then
if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
einfo
einfo "The user 'bacula' has been created. Please see the bacula manual"
einfo "for information about running bacula as a non-root user."
einfo
fi
fi
}
src_prepare() {
# adjusts default configuration files for several binaries
# to /etc/bacula/<config> instead of ./<config>
pushd src >&/dev/null || die
for f in console/console.c dird/dird.c filed/filed.c \
stored/bcopy.c stored/bextract.c stored/bls.c \
stored/bscan.c stored/btape.c stored/stored.c \
qt-console/main.cpp; do
sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
|| die "sed on ${f} failed"
done
popd >&/dev/null || die
# bug 466688 drop deprecated categories from Desktop file
sed -i -e 's/Application;//' scripts/bat.desktop.in || die
# bug 466690 Use CXXFLAGS instead of CFLAGS
sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
# drop automatic install of unneeded documentation (for bug 356499)
epatch "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
# bug #310087
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
# bug #311161
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-lib-search-path.patch
# bat needs to respect LDFLAGS
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-ldflags.patch
# bug #328701
epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
epatch "${FILESDIR}"/7.2.0/${PN}-7.2.0-fix-static.patch
# do not strip binaries
sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
# fix file not found error during make depend
epatch "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
# Fix systemd unit files:
# bug 497748
sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
# bug 504370
sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
# bug 584442 and 504368
sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die
# fix bundled libtool (bug 466696)
# But first move directory with M4 macros out of the way.
# It is only needed by autoconf and gives errors during elibtoolize.
mv autoconf/libtool autoconf/libtool1 || die
elibtoolize
}
src_configure() {
local myconf=''
if use bacula-clientonly; then
myconf="${myconf} \
$(use_enable bacula-clientonly client-only) \
$(use_enable !static libtool) \
$(use_enable static static-cons) \
$(use_enable static static-fd)"
else
myconf="${myconf} \
$(use_enable !bacula-nodir build-dird) \
$(use_enable !bacula-nosd build-stored)"
# bug #311099
# database support needed by dir-only *and* sd-only
# build as well (for building bscan, btape, etc.)
myconf="${myconf} \
--with-${mydbtype} \
--enable-batch-insert"
fi
# do not build bat if 'static' clientonly
if ! use bacula-clientonly || ! use static; then
myconf="${myconf} \
$(use_enable qt4 bat)"
fi
myconf="${myconf} \
$(use_with X x) \
$(use_enable !readline conio) \
$(use_enable readline) \
$(use_with readline readline /usr) \
$(use_with ssl openssl) \
$(use_enable ipv6) \
$(use_enable acl) \
$(use_with tcpd tcp-wrappers)"
econf \
--libdir=/usr/$(get_libdir) \
--docdir=/usr/share/doc/${PF} \
--htmldir=/usr/share/doc/${PF}/html \
--with-pid-dir=/var/run \
--sysconfdir=/etc/bacula \
--with-subsys-dir=/var/lock/subsys \
--with-working-dir=/var/lib/bacula \
--with-logdir=/var/lib/bacula \
--with-scriptdir=/usr/libexec/bacula \
--with-systemd=$(systemd_get_unitdir) \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=root \
--with-sd-group=bacula \
--with-fd-user=root \
--with-fd-group=bacula \
--enable-smartalloc \
--disable-afs \
--host=${CHOST} \
${myconf}
# correct configuration for QT based bat
if use qt4 ; then
pushd src/qt-console
eqmake4
popd
fi
}
src_compile() {
# Make build log verbose (bug #447806)
emake NO_ECHO=""
}
src_install() {
emake DESTDIR="${D}" install
doicon scripts/bacula.png
# install bat icon and desktop file when enabled
# (for some reason ./configure doesn't pick this up)
if use qt4 && ! use static ; then
doicon src/qt-console/images/bat_icon.png
domenu scripts/bat.desktop
fi
# remove some scripts we don't need at all
rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
# rename statically linked apps
if use bacula-clientonly && use static ; then
pushd "${D}"/usr/sbin || die
mv static-bacula-fd bacula-fd || die
mv static-bconsole bconsole || die
popd || die
fi
# extra files which 'make install' doesn't cover
if ! use bacula-clientonly; then
# the database update scripts
diropts -m0750
insinto /usr/libexec/bacula/updatedb
insopts -m0754
doins "${S}"/updatedb/*
fperms 0640 /usr/libexec/bacula/updatedb/README
# the logrotate configuration
# (now unconditional wrt bug #258187)
diropts -m0755
insinto /etc/logrotate.d
insopts -m0644
newins "${S}"/scripts/logrotate bacula
# the logwatch scripts
if use logwatch; then
diropts -m0750
dodir /etc/log.d/scripts/services
dodir /etc/log.d/scripts/shared
dodir /etc/log.d/conf/logfiles
dodir /etc/log.d/conf/services
pushd "${S}"/scripts/logwatch >&/dev/null || die
emake DESTDIR="${D}" install
popd >&/dev/null || die
fi
fi
if ! use qt4; then
rm -vf "${D}"/usr/share/man/man1/bat.1*
fi
rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
if use bacula-clientonly || use bacula-nodir; then
rm -vf "${D}"/usr/share/man/man8/bacula-dir.8*
rm -vf "${D}"/usr/share/man/man8/dbcheck.8*
rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
rm -vf "${D}"/usr/libexec/bacula/create_*_database
rm -vf "${D}"/usr/libexec/bacula/drop_*_database
rm -vf "${D}"/usr/libexec/bacula/make_*_tables
rm -vf "${D}"/usr/libexec/bacula/update_*_tables
rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
fi
if use bacula-clientonly || use bacula-nosd; then
rm -vf "${D}"/usr/share/man/man8/bacula-sd.8*
rm -vf "${D}"/usr/share/man/man8/bcopy.8*
rm -vf "${D}"/usr/share/man/man8/bextract.8*
rm -vf "${D}"/usr/share/man/man8/bls.8*
rm -vf "${D}"/usr/share/man/man8/bscan.8*
rm -vf "${D}"/usr/share/man/man8/btape.8*
rm -vf "${D}"/usr/libexec/bacula/disk-changer
rm -vf "${D}"/usr/libexec/bacula/mtx-changer
rm -vf "${D}"/usr/libexec/bacula/dvd-handler
fi
# documentation
dodoc ChangeLog ReleaseNotes SUPPORT
# install examples (bug #457504)
if use examples; then
docinto examples/
dodoc -r examples/*
fi
# vim-files
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins scripts/bacula.vim
insinto /usr/share/vim/vimfiles/ftdetect
newins scripts/filetype.vim bacula_ft.vim
fi
# setup init scripts
myscripts="bacula-fd"
if ! use bacula-clientonly; then
if ! use bacula-nodir; then
myscripts="${myscripts} bacula-dir"
fi
if ! use bacula-nosd; then
myscripts="${myscripts} bacula-sd"
fi
fi
for script in ${myscripts}; do
# copy over init script and config to a temporary location
# so we can modify them as needed
cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
# now set the database dependancy for the director init script
case "${script}" in
bacula-dir)
case "${mydbtype}" in
sqlite3)
# sqlite databases don't have a daemon
sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
;;
*)
# all other databases have daemons
sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
;;
esac
;;
*)
;;
esac
# install init script and config
newinitd "${T}/${script}".initd "${script}"
newconfd "${T}/${script}".confd "${script}"
done
systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
# make sure the working directory exists
diropts -m0750
keepdir /var/lib/bacula
# make sure bacula group can execute bacula libexec scripts
fowners -R root:bacula /usr/libexec/bacula
}
pkg_postinst() {
if use bacula-clientonly; then
fowners root:bacula /var/lib/bacula
else
fowners bacula:bacula /var/lib/bacula
fi
if ! use bacula-clientonly && ! use bacula-nodir; then
einfo
einfo "If this is a new install, you must create the ${mydbtype} databases with:"
einfo " /usr/libexec/bacula/create_${mydbtype}_database"
einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
einfo
ewarn "ATTENTION!"
ewarn "The format of the database may have changed."
ewarn "If you just upgraded from a version below 7.2.0 you must run"
ewarn "'update_bacula_tables' now."
ewarn "Make sure to have a backup of your catalog before."
ewarn
fi
if use sqlite; then
einfo
einfo "Be aware that Bacula does not officially support SQLite database anymore."
einfo "Best use it only for a client-only installation. See Bug #445540."
einfo
fi
einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
einfo "you have to enable 'USE=qt4'."
einfo
}

@ -1,26 +0,0 @@
--- Makefile.in.orig 2010-07-20 16:53:44.000000000 +0000
+++ Makefile.in 2010-07-20 16:55:50.000000000 +0000
@@ -44,9 +44,8 @@
all: Makefile
@for I in ${all_subdirs}; \
- do (cd $$I; echo "==>Entering directory `pwd`"; \
- $(MAKE) DESTDIR=$(DESTDIR) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
- echo ""; echo ""; exit 1;)); \
+ do \
+ $(MAKE) DESTDIR=$(DESTDIR) -C $$I $@ || exit 1; \
done
depend:
@@ -55,9 +54,8 @@
bacula-fd: Makefile
@for I in ${fd_subdirs}; \
- do (cd $$I; echo "==>Entering directory `pwd`"; \
- $(MAKE) DESTDIR=$(DESTDIR) all || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
- echo ""; echo ""; exit 1;)); \
+ do \
+ $(MAKE) DESTDIR=$(DESTDIR) -C $$I all || exit 1; \
done
#-------------------------------------------------------------------------

@ -1,33 +0,0 @@
diff -urN bacula-5.0.3.orig/src/findlib/Makefile.in bacula-5.0.3/src/findlib/Makefile.in
--- bacula-5.0.3.orig/src/findlib/Makefile.in 2010-02-24 16:33:48.000000000 +0100
+++ bacula-5.0.3/src/findlib/Makefile.in 2010-03-22 17:37:43.772805754 +0100
@@ -59,7 +59,7 @@
libbacfind.la: Makefile $(LIBBACFIND_LOBJS)
@echo "Making $@ ..."
- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_RELEASE)
+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_RELEASE) -L../lib -lbac $(LIBS) $(OPENSSL_LIBS)
Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
cd $(topdir) \
diff -urN bacula-5.0.1.orig/src/lib/Makefile.in bacula-5.0.1/src/lib/Makefile.in
--- bacula-5.0.1.orig/src/lib/Makefile.in 2010-02-24 16:33:48.000000000 +0100
+++ bacula-5.0.1/src/lib/Makefile.in 2010-03-22 17:37:05.352226188 +0100
@@ -126,7 +126,7 @@
libbac.la: Makefile $(LIBBAC_LOBJS)
@echo "Making $@ ..."
- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBAC_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBAC_LT_RELEASE) $(WRAPLIBS) $(CAP_LIBS) $(ZLIBS)
+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBAC_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBAC_LT_RELEASE) $(WRAPLIBS) $(CAP_LIBS) $(ZLIBS) $(LIBS) $(OPENSSL_LIBS)
libbaccfg.a: $(LIBBACCFG_OBJS)
@echo "Making $@ ..."
@@ -135,7 +135,7 @@
libbaccfg.la: Makefile $(LIBBACCFG_LOBJS)
@echo "Making $@ ..."
- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACCFG_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACCFG_LT_RELEASE)
+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACCFG_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACCFG_LT_RELEASE) $(LIBS) $(OPENSSL_LIBS)
libbacpy.a: $(LIBBACPY_OBJS)
@echo "Making $@ ..."

@ -1,125 +0,0 @@
From 67debcecd3d530c429e817e1d778e79dcd1db905 Mon Sep 17 00:00:00 2001
From: Kern Sibbald <kern@sibbald.com>
Date: Sat, 18 Aug 2012 13:46:03 +0000
Subject: Make dump_resource respect console ACL's
---
diff --git a/bacula/src/dird/dird_conf.c b/bacula/src/dird/dird_conf.c
index 7dcf591..2f2eb00 100644
--- a/bacula/src/dird/dird_conf.c
+++ b/bacula/src/dird/dird_conf.c
@@ -554,6 +554,7 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
bool recurse = true;
char ed1[100], ed2[100], ed3[100];
DEVICE *dev;
+ UAContext *ua = (UAContext *)sock;
if (res == NULL) {
sendit(sock, _("No %s resource defined\n"), res_to_str(type));
@@ -599,6 +600,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
break;
case R_CLIENT:
+ if (!acl_access_ok(ua, Client_ACL, res->res_client.hdr.name)) {
+ break;
+ }
sendit(sock, _("Client: name=%s address=%s FDport=%d MaxJobs=%u\n"),
res->res_client.hdr.name, res->res_client.address, res->res_client.FDport,
res->res_client.MaxConcurrentJobs);
@@ -626,6 +630,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
break;
case R_STORAGE:
+ if (!acl_access_ok(ua, Storage_ACL, res->res_store.hdr.name)) {
+ break;
+ }
sendit(sock, _("Storage: name=%s address=%s SDport=%d MaxJobs=%u\n"
" DeviceName=%s MediaType=%s StorageId=%s\n"),
res->res_store.hdr.name, res->res_store.address, res->res_store.SDport,
@@ -636,6 +643,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
break;
case R_CATALOG:
+ if (!acl_access_ok(ua, Catalog_ACL, res->res_cat.hdr.name)) {
+ break;
+ }
sendit(sock, _("Catalog: name=%s address=%s DBport=%d db_name=%s\n"
" db_driver=%s db_user=%s MutliDBConn=%d\n"),
res->res_cat.hdr.name, NPRT(res->res_cat.db_address),
@@ -646,6 +656,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
case R_JOB:
case R_JOBDEFS:
+ if (!acl_access_ok(ua, Job_ACL, res->res_job.hdr.name)) {
+ break;
+ }
sendit(sock, _("%s: name=%s JobType=%d level=%s Priority=%d Enabled=%d\n"),
type == R_JOB ? _("Job") : _("JobDefs"),
res->res_job.hdr.name, res->res_job.JobType,
@@ -767,6 +780,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
case R_FILESET:
{
int i, j, k;
+ if (!acl_access_ok(ua, FileSet_ACL, res->res_fs.hdr.name)) {
+ break;
+ }
sendit(sock, _("FileSet: name=%s\n"), res->res_fs.hdr.name);
for (i=0; i<res->res_fs.num_includes; i++) {
INCEXE *incexe = res->res_fs.include_items[i];
@@ -854,6 +870,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
}
case R_SCHEDULE:
+ if (!acl_access_ok(ua, Schedule_ACL, res->res_sch.hdr.name)) {
+ break;
+ }
if (res->res_sch.run) {
int i;
RUN *run = res->res_sch.run;
@@ -942,6 +961,9 @@ next_run:
break;
case R_POOL:
+ if (!acl_access_ok(ua, Pool_ACL, res->res_pool.hdr.name)) {
+ break;
+ }
sendit(sock, _("Pool: name=%s PoolType=%s\n"), res->res_pool.hdr.name,
res->res_pool.pool_type);
sendit(sock, _(" use_cat=%d use_once=%d cat_files=%d\n"),
--
From 2be20d549211f7984156674116f9239acf6d79bd Mon Sep 17 00:00:00 2001
From: Kern Sibbald <kern@sibbald.com>
Date: Sun, 19 Aug 2012 06:33:15 +0000
Subject: Fix Makefile.in so that testfind builds with acl dependency
---
diff --git a/bacula/src/tools/Makefile.in b/bacula/src/tools/Makefile.in
index 0c3f305..5731140 100644
--- a/bacula/src/tools/Makefile.in
+++ b/bacula/src/tools/Makefile.in
@@ -29,12 +29,12 @@ dummy:
GETTEXT_LIBS = @LIBINTL@
-FINDOBJS = testfind.o ../dird/dird_conf.o ../dird/inc_conf.o ../dird/run_conf.o
+FINDOBJS = testfind.o ../dird/dird_conf.o ../dird/inc_conf.o ../dird/ua_acl.o ../dird/run_conf.o
# these are the objects that are changed by the .configure process
EXTRAOBJS = @OBJLIST@
-DIRCONFOBJS = ../dird/dird_conf.o ../dird/run_conf.o ../dird/inc_conf.o
+DIRCONFOBJS = ../dird/dird_conf.o ../dird/ua_acl.o ../dird/run_conf.o ../dird/inc_conf.o
NODIRTOOLS = bsmtp
DIRTOOLS = bsmtp dbcheck drivetype fstype testfind testls bregex bwild bbatch bregtest bvfs_test ing_test
@@ -79,6 +79,9 @@ drivetype: Makefile drivetype.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../findlib/
dird_conf.o: ../dird/dird_conf.c
$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
+ua_acl.o: ../dird/ua_acl.c
+ $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
+
run_conf.o: ../dird/run_conf.c
$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
--

@ -1,13 +0,0 @@
# drop automatic installation of doc files
--- Makefile.in.orig 2011-02-26 09:05:21.000000000 +0000
+++ Makefile.in 2011-02-26 09:06:01.000000000 +0000
@@ -34,8 +34,7 @@
autoconf/config.h.in autoconf/acconfig.h autoconf/Make.common.in \
autoconf/install-sh autoconf/mkinstalldirs
-doc_files = VERIFYING technotes ChangeLog README ReleaseNotes LICENSE \
- INSTALL
+doc_files =
MKDIR = $(srcdir)/autoconf/mkinstalldirs
LIBTOOL_DEPS = @LIBTOOL_DEPS@

@ -1,47 +0,0 @@
--- src/console/Makefile.in.orig 2010-12-28 16:01:28.000000000 +0000
+++ src/console/Makefile.in 2010-12-28 16:02:19.000000000 +0000
@@ -31,6 +31,7 @@
CONS_INC=@CONS_INC@
CONS_LIBS=@CONS_LIBS@
CONS_LDFLAGS=@CONS_LDFLAGS@
+ZLIBS=@ZLIBS@
.SUFFIXES: .c .o
.PHONY:
@@ -48,13 +48,12 @@
bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
$(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
- $(OPENSSL_LIBS)
+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
+ $(OPENSSL_LIBS) $(LIBS)
static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
$(LIBTOOL_LINK) $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
- $(OPENSSL_LIBS)
- strip $@
+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
+ $(OPENSSL_LIBS) $(LIBS)
--- src/filed/Makefile.in.orig 2010-12-28 16:19:34.000000000 +0000
+++ src/filed/Makefile.in 2010-12-28 16:26:28.000000000 +0000
@@ -94,13 +94,12 @@
bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
@echo "Linking $@ ..."
$(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \
- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS)
+ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) \
+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS)
static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
$(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \
- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS)
- strip $@
+ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) \
+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS)

@ -1,10 +0,0 @@
--- src/qt-console/bat.pro.in.orig 2010-07-20 18:28:50.000000000 +0000
+++ src/qt-console/bat.pro.in 2010-07-20 18:29:25.000000000 +0000
@@ -26,6 +26,7 @@
QMAKE_LINK = $${LIBTOOL_LINK} $(CXX)
QMAKE_INSTALL_PROGRAM = $${LIBTOOL_INSTALL} install -m @SBINPERM@ -p
QMAKE_CLEAN += .libs/* bat
+QMAKE_LFLAGS += @LDFLAGS@
qwt {
INCLUDEPATH += @QWT_INC@

@ -1,12 +0,0 @@
# If upgrading the old libraries gets linked first. So fix order of lib search path.
--- src/console/Makefile.in.orig 2010-03-29 11:35:00.000000000 +0000
+++ src/console/Makefile.in 2010-03-29 11:45:14.000000000 +0000
@@ -47,7 +47,7 @@
bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
$(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
$(OPENSSL_LIBS)

@ -1,25 +0,0 @@
http://bugs.gentoo.org/328701
http://cvs.fedoraproject.org/viewvc/rpms/bacula/devel/bacula-5.0.2-openssl.patch?revision=1.3&view=markup
--- src/lib/crypto.c
+++ src/lib/crypto.c
@@ -51,7 +51,7 @@
* For OpenSSL version 1.x, EVP_PKEY_encrypt no longer
* exists. It was not an official API.
*/
-#ifdef HAVE_OPENSSLv1
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
#define EVP_PKEY_encrypt EVP_PKEY_encrypt_old
#define EVP_PKEY_decrypt EVP_PKEY_decrypt_old
#endif
--- src/lib/tls.c
+++ src/lib/tls.c
@@ -315,7 +315,7 @@ bool tls_postconnect_verify_host(JCR *jc
extname = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
if (strcmp(extname, "subjectAltName") == 0) {
-#ifdef HAVE_OPENSSLv1
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
const X509V3_EXT_METHOD *method;
#else
X509V3_EXT_METHOD *method;

@ -1 +0,0 @@
DIST mlview-0.9.0.tar.bz2 754148 SHA256 568ce3fefe83eb163b4fbd7d62954ec3cad3000e966cd9f7461c2c9a3edb4dca SHA512 646f375afa27d1e050f17ded2154af9667e51e345e3a66b4354fa1babe49a45f940114ee6c1106e04cab678ba68618aea0182872dab1c9628e2cabf3561521c7 WHIRLPOOL dc289552f057e977ae713b27a580fa8b552a275995cb9cf373989abf12dd18188945ce96c2080b8581a2addaeac2831b6a26721dc8203d42d20341d1ce60aacd

@ -1,20 +0,0 @@
--- mlview.desktop.in
+++ mlview.desktop.in
@@ -1,13 +1,10 @@
[Desktop Entry]
-Version=0.9.4
-Encoding=UTF-8
Type=Application
Name=MlView XML Editor
GenericName=MlView Generic XML Editor
-Categories=Application;Development;
+Categories=Development;
Comment=A generic simple XML editor for GNOME
-Icon=mlview-app-icon.xpm
-TryExec=mlv
-Exec=@MLVIEW_EXE@ %F
+Icon=mlview-app-icon
+TryExec=mlview
+Exec=mlview %F
Terminal=false
-

@ -1,82 +0,0 @@
http://bugs.gentoo.org/311573
--- src/mlview-tree-view.h
+++ src/mlview-tree-view.h
@@ -178,7 +178,7 @@
enum MlViewStatus build_app_edit_menu () ;
- GtkDialog * TreeView::get_expand_tree_dialog () ;
+ GtkDialog * get_expand_tree_dialog () ;
void clear_completion_popup_submenus () ;
--- src/mlview-source-view.h
+++ src/mlview-source-view.h
@@ -53,7 +53,7 @@
enum MlViewStatus set_default_options () ;
- MlViewXMLDocument* SourceView::get_document () ;
+ MlViewXMLDocument* get_document () ;
GtkUIManager * get_ui_manager () ;
--- src/mlview-validator.cc
+++ src/mlview-validator.cc
@@ -25,6 +25,7 @@
#include "mlview-validator.h"
#include "mlview-safe-ptr-utils.h"
+#include <memory>
#define MESSAGE_LINE_LENGTH 55
namespace mlview
--- src/mlview-plugin.h
+++ src/mlview-plugin.h
@@ -46,12 +46,12 @@
//forbid assignation/copy
Plugin& operator= (Plugin const&) ;
- Plugin::Plugin (Plugin const&) ;
+ Plugin (Plugin const&) ;
public:
Plugin (const PluginDescriptor &a_descr) ;
- Plugin::Plugin (const UString &a_url) ;
+ Plugin (const UString &a_url) ;
virtual ~Plugin () ;
--- src/mlview-editor.cc
+++ src/mlview-editor.cc
@@ -157,7 +157,7 @@
contextual_menu (NULL)
{}
- static void EditorPriv::schemas_window_destroy_cb
+ static void schemas_window_destroy_cb
(GtkWidget *a_widget, struct DocumentWindowData *a_win) ;
static void validation_window_destroy_cb
@@ -406,17 +406,13 @@
gtk_dialog_run (GTK_DIALOG (dialog));
- switch (button) {
- case GTK_RESPONSE_OK:
+ if (button == GTK_RESPONSE_OK) {
sel_menu_item = gtk_menu_get_active(GTK_MENU(menu));
result = (ViewDescriptor *)g_object_get_data
(G_OBJECT(sel_menu_item), "mlview_view_desc");
- break;
-
- default:
+ } else {
result = NULL ;
- break;
}
gtk_widget_destroy (dialog);
return result;

@ -1,15 +0,0 @@
Fix building with gcc 4.5
http://bugs.gentoo.org/show_bug.cgi?id=320377
--- src/mlview-ustring.cc
+++ src/mlview-ustring.cc
@@ -59,7 +59,7 @@
UString::~UString ()
{}
-UString::UString&
+UString&
UString::operator= (const char *a_cstr)
{
if (!a_cstr)

@ -1,218 +0,0 @@
Downloaded from http://patch-tracker.debian.org/patch/series/view/mlview/0.9.0-2.2/10_port_to_gtksourceview2.patch
diff -Nur -x '*.orig' -x '*~' mlview-0.9.0/configure.in mlview-0.9.0.new/configure.in
--- mlview-0.9.0/configure.in 2005-08-07 09:42:07.000000000 +0200
+++ mlview-0.9.0.new/configure.in 2009-08-18 02:45:29.000000000 +0200
@@ -29,7 +29,7 @@
LIBGNOME2_VERSION=2.4.1
GCONF2_VERSION=2.6.2
SEWFOX_VERSION=0.0.1
-GTKSOURCEVIEW_VERSION=1.0
+GTKSOURCEVIEW_VERSION=2.0
VTE_VERSION=0.11.12
DBUS_VERSION=0.22
GTKMM2_VERSION=2.4.0
@@ -306,7 +306,7 @@
dnl **********************
dnl libgtksourceview
dnl **********************
-PKG_CHECK_MODULES(GTKSOURCEVIEW, gtksourceview-1.0 >= $GTKSOURCEVIEW_VERSION)
+PKG_CHECK_MODULES(GTKSOURCEVIEW, gtksourceview-2.0 >= $GTKSOURCEVIEW_VERSION)
dnl **********************
dnl vte
diff -Nur -x '*.orig' -x '*~' mlview-0.9.0/src/mlview-source-view.cc mlview-0.9.0.new/src/mlview-source-view.cc
--- mlview-0.9.0/src/mlview-source-view.cc 2005-08-07 09:42:28.000000000 +0200
+++ mlview-0.9.0.new/src/mlview-source-view.cc 2009-08-18 02:44:12.000000000 +0200
@@ -25,9 +25,10 @@
#include <string.h>
#include <gtk/gtk.h>
+#include "config.h"
#include <gtksourceview/gtksourceview.h>
#include <gtksourceview/gtksourcelanguage.h>
-#include <gtksourceview/gtksourcelanguagesmanager.h>
+#include <gtksourceview/gtksourcelanguagemanager.h>
#include <gtksourceview/gtksourcebuffer.h>
#include "mlview-safe-ptr-utils.h"
#include "mlview-source-view.h"
@@ -36,6 +37,7 @@
#include "mlview-prefs.h"
#include "mlview-prefs-category-sourceview.h"
+
namespace mlview
{
struct SourceViewPriv
@@ -48,7 +50,7 @@
SafePtr<GtkSourceView, GtkSourceViewRef, GtkSourceViewUnref> native_sv_ptr ;
SafePtr<Gtk::Widget, GtkWidgetMMRef, GtkWidgetMMUnref> native_sv_wrapper_ptr ;
/* The language manager, used by native_sv */
- GtkSourceLanguagesManager *languages_manager ;
+ GtkSourceLanguageManager *languages_manager ;
GtkUIManager *ui_manager ;
@@ -165,8 +167,8 @@
gtk_source_view_set_show_line_numbers (source_view,
m_prefs->show_line_numbers ());
- gtk_source_view_set_tabs_width (source_view,
- m_prefs->get_tabs_width ());
+ gtk_source_view_set_tab_width (source_view,
+ m_prefs->get_tabs_width ());
gtk_source_view_set_auto_indent (source_view,
m_prefs->auto_indent ());
@@ -175,11 +177,11 @@
(source_view,
m_prefs->replace_tabs_with_spaces ());
- gtk_source_view_set_show_margin (source_view,
- m_prefs->show_margin ());
+ gtk_source_view_set_show_right_margin (source_view,
+ m_prefs->show_margin ());
- gtk_source_view_set_margin (source_view,
- m_prefs->get_margin_position ());
+ gtk_source_view_set_right_margin_position (source_view,
+ m_prefs->get_margin_position ());
const char* fontname = const_cast<char*> (
m_prefs->get_font_name ().c_str ());
@@ -240,8 +242,8 @@
{
GtkSourceView *source_view = (GtkSourceView*)native_sv_ptr;
- gtk_source_view_set_tabs_width (source_view,
- m_prefs->get_tabs_width ());
+ gtk_source_view_set_tab_width (source_view,
+ m_prefs->get_tabs_width ());
}
void
@@ -268,8 +270,8 @@
{
GtkSourceView *source_view = (GtkSourceView*)native_sv_ptr;
- gtk_source_view_set_show_margin (source_view,
- m_prefs->show_margin ());
+ gtk_source_view_set_show_right_margin (source_view,
+ m_prefs->show_margin ());
}
void
@@ -277,8 +279,8 @@
{
GtkSourceView *source_view = (GtkSourceView*)native_sv_ptr;
- gtk_source_view_set_margin (source_view,
- m_prefs->get_margin_position ());
+ gtk_source_view_set_right_margin_position (source_view,
+ m_prefs->get_margin_position ());
}
void
@@ -469,14 +471,13 @@
return false;
}
-GtkSourceLanguagesManager *
+GtkSourceLanguageManager *
SourceView::get_languages_manager ()
{
THROW_IF_FAIL (m_priv) ;
if (!m_priv->languages_manager) {
- m_priv->languages_manager =
- gtk_source_languages_manager_new () ;
+ m_priv->languages_manager = gtk_source_language_manager_new () ;
THROW_IF_FAIL (m_priv->languages_manager) ;
}
return m_priv->languages_manager ;
@@ -492,7 +493,7 @@
(gtk_text_view_get_buffer (GTK_TEXT_VIEW (m_priv->native_sv_ptr.get ()))) ;
THROW_IF_FAIL (source_buffer) ;
- gtk_source_buffer_set_highlight (source_buffer, TRUE) ;
+ gtk_source_buffer_set_highlight_syntax (source_buffer, TRUE) ;
gtk_source_buffer_set_language (source_buffer, a_language) ;
return MLVIEW_OK ;
@@ -501,22 +502,22 @@
enum MlViewStatus
SourceView::set_language_from_mime_type (const UString &a_mime_type)
{
- GtkSourceLanguagesManager *lm = NULL ;
+ GtkSourceLanguageManager *lm = NULL ;
GtkSourceLanguage *language = NULL ;
THROW_IF_FAIL (m_priv) ;
lm = get_languages_manager () ;
THROW_IF_FAIL (lm) ;
- language = gtk_source_languages_manager_get_language_from_mime_type
- (lm, a_mime_type.c_str ()) ;
+ language = gtk_source_language_manager_guess_language
+ (lm, NULL, a_mime_type.c_str ()) ;
LOG_TO_ERROR_STREAM ("language associated to '"
<< a_mime_type
<<"'mime type: "
<< language) ;
if (!language) {
language =
- gtk_source_languages_manager_get_language_from_mime_type
- (lm,"text/xml") ;
+ gtk_source_language_manager_guess_language
+ (lm, NULL, "text/xml") ;
THROW_IF_FAIL (language) ;
LOG_TO_ERROR_STREAM ("falling back to the language associated to"
"mime type 'text/xml'") ;
@@ -1305,7 +1306,7 @@
m_priv->show_line_numbers) ;
m_priv->tabs_width = 4 ;
- gtk_source_view_set_tabs_width
+ gtk_source_view_set_tab_width
(m_priv->native_sv_ptr,
m_priv->tabs_width) ;
@@ -1314,11 +1315,11 @@
m_priv->set_autoindent) ;
m_priv->set_show_margin = FALSE ;
- gtk_source_view_set_show_margin (m_priv->native_sv_ptr,
- m_priv->set_show_margin) ;
+ gtk_source_view_set_show_right_margin (m_priv->native_sv_ptr,
+ m_priv->set_show_margin) ;
m_priv->margin = 2 ;
- gtk_source_view_set_margin (m_priv->native_sv_ptr,
- m_priv->margin) ;
+ gtk_source_view_set_right_margin_position (m_priv->native_sv_ptr,
+ m_priv->margin) ;
set_default_language () ;
diff -Nur -x '*.orig' -x '*~' mlview-0.9.0/src/mlview-source-view.h mlview-0.9.0.new/src/mlview-source-view.h
--- mlview-0.9.0/src/mlview-source-view.h 2005-08-07 09:42:28.000000000 +0200
+++ mlview-0.9.0.new/src/mlview-source-view.h 2009-08-18 02:39:22.000000000 +0200
@@ -25,9 +25,10 @@
#ifndef __MLVIEW_SOURCE_VIEW_H
#define __MLVIEW_SOURCE_VIEW_H
+#include "config.h"
#include <gtksourceview/gtksourceview.h>
#include <gtksourceview/gtksourcelanguage.h>
-#include <gtksourceview/gtksourcelanguagesmanager.h>
+#include <gtksourceview/gtksourcelanguagemanager.h>
#include <gtksourceview/gtksourcebuffer.h>
#include "mlview-view-adapter.h"
#include "mlview-xml-document.h"
@@ -112,7 +113,7 @@
enum MlViewStatus build_edit_menu_body (const UString &a_menu_root_path) ;
- GtkSourceLanguagesManager * get_languages_manager () ;
+ GtkSourceLanguageManager * get_languages_manager () ;
enum MlViewStatus set_language (GtkSourceLanguage *a_language) ;

@ -1,25 +0,0 @@
--- mlview-0.9.0/configure.in
+++ mlview-0.9.0/configure.in
@@ -77,11 +77,10 @@
MLVIEW_EXE=$prefix/bin/mlv
AC_SUBST(MLVIEW_VERSION_NUMBER)
AC_SUBST(MLVIEW_VERSION)
-AC_SUBST(AC_PACKAGE_VERSION)
+AC_SUBST([AC_PACKAGE_VERSION])
AC_SUBST(LIBMLVIEW_VERSION_NUMBER)
AC_SUBST(LIBMLVIEW_VERSION_INFO)
AC_SUBST(LIBMLVIEW_VERSION)
-AC_SUBST(AC_PACKAGE_VERSION)
AC_SUBST(MLVIEW_EXE)
dnl *********************
--- mlview-0.9.0/pixmaps/Makefile.am
+++ mlview-0.9.0/pixmaps/Makefile.am
@@ -4,7 +4,6 @@
xml-root.png \
xml-root-open.png \
xml-comment-node.png \
- xml-text-node.png \
xml-pi-node.png \
xml-entity-ref-node.png \
mlview-xsd-schema.png \

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xmw@gentoo.org</email>
<name>Michael Weber</name>
</maintainer>
<longdescription>
The MlView project is an on going effort to develop an xml editor
for GNOME environment. It is written in C and uses the gnome
libraries (libxml2, gtk+, libgnome*, etc).
</longdescription>
</pkgmetadata>

@ -1,64 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
GCONF_DEBUG="no"
GNOME_TARBALL_SUFFIX="bz2"
inherit autotools eutils flag-o-matic gnome2
DESCRIPTION="XML editor for the GNOME environment"
HOMEPAGE="http://www.nongnu.org/mlview/mlview-internals.html"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~x86-interix ~amd64-linux ~x86-linux"
IUSE="debug"
RDEPEND="
>=dev-libs/libxml2-2.6.11:2
>=dev-libs/libxslt-1.1.8
>=dev-libs/glib-2.6:2
>=x11-libs/gtk+-2.6:2
>=dev-cpp/gtkmm-2.4:2.4
>=gnome-base/libglade-2.4:2.0
>=dev-cpp/libglademm-2.6:2.4
>=gnome-base/libgnome-2.8.1
>=gnome-base/gnome-vfs-2.6:2
>=gnome-base/libgnomeui-2.2
>=gnome-base/gconf-2.6.2:2
x11-libs/gtksourceview:2.0
>=x11-libs/vte-0.11.12:0
sys-libs/zlib
"
DEPEND="${RDEPEND}
virtual/pkgconfig
dev-util/intltool
sys-devel/gettext
"
src_prepare() {
DOCS="AUTHORS BRANCHES ChangeLog NEWS README"
# Fix tests
echo "ui/mlview-exec-command.glade" >> po/POTFILES.in || die
echo "ui/mlview-plugins-window.glade" >> po/POTFILES.in || die
epatch "${FILESDIR}"/${P}-desktop.patch
epatch "${FILESDIR}"/${P}-gcc44.patch
epatch "${FILESDIR}"/${P}-gcc45.patch
epatch "${FILESDIR}"/${PF}-10_port_to_gtksourceview2.patch
epatch "${FILESDIR}"/${PF}-autoreconf.patch
mkdir m4 || die
eautoreconf
gnome2_src_prepare
}
src_configure() {
append-cxxflags -std=c++11
gnome2_src_configure \
--disable-static \
$(use_enable debug)
}

@ -0,0 +1,87 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit autotools db-use flag-o-matic
DESCRIPTION="Vi clone"
HOMEPAGE="https://sites.google.com/a/bostic.com/keithbostic/vi"
SRC_URI="http://garage.linux.student.kuleuven.be/~skimo/nvi/devel/${P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="perl tcl unicode"
CDEPEND=">=sys-libs/db-4.2.52_p5:=
>=sys-libs/ncurses-5.6-r2:=
perl? ( dev-lang/perl )
tcl? ( >=dev-lang/tcl-8.5:0= )"
DEPEND="${CDEPEND}
virtual/pkgconfig"
RDEPEND="${CDEPEND}
app-eselect/eselect-vi"
REQUIRED_USE="tcl? ( !unicode )"
PATCHES=(
"${FILESDIR}"/${P}-strlen-macro-renaming.patch
"${FILESDIR}"/${P}-db44.patch
"${FILESDIR}"/${P}-db.patch
"${FILESDIR}"/${P}-perl-as-needed.patch
"${FILESDIR}"/${P}-perl-shortnames.patch
"${FILESDIR}"/${P}-ac_config_header.patch
"${FILESDIR}"/${P}-use_pkgconfig_for_ncurses.patch
"${FILESDIR}"/${P}-printf-types.patch
)
src_prepare() {
default
cd dist || die
chmod +x findconfig || die
mv configure.{in,ac} || die
sed -i -e "s@-ldb@-l$(db_libname)@" configure.ac || die
sed -i -e "s@^install-\(.*\)-local:@install-\1-hook:@" Makefile.am || die
eautoreconf -Im4
}
src_configure() {
local myconf
use perl && myconf="${myconf} --enable-perlinterp"
use unicode && myconf="${myconf} --enable-widechar"
use tcl && myconf="${myconf} --enable-tclinterp"
append-cppflags "-D_PATH_MSGCAT=\"\\\"${EPREFIX%/}/usr/share/vi/catalog/\\\"\""
append-cppflags -I"$(db_includedir)"
pushd dist 2>/dev/null || die
econf \
--program-prefix=n \
${myconf}
popd 2>/dev/null || die
}
src_compile() {
emake -C dist
}
src_install() {
emake -C dist DESTDIR="${D}" install
}
pkg_postinst() {
einfo "Setting /usr/bin/vi symlink"
eselect vi update --if-unset
}
pkg_postrm() {
einfo "Updating /usr/bin/vi symlink"
eselect vi update --if-unset
}

@ -1 +0,0 @@
DIST configure-trackpoint-0.7.tar.gz 118439 SHA256 6c2dfbd0dd2b9df97dd1f2c468f91de34012d8138486be57cf9db6d792058bdf SHA512 cc43a8d4f7c7c58e151d5663701dcdadfbea2b2fa7ed424245ee13a108487cc2eba9a03c6a7867f21db43c744b2321adff6266af23280c95d2a75adc53b74d1a WHIRLPOOL da5bbf3b4912df75c4697c4769c054258347f23cbc2054c69bb0ab7802110aa4048c1ea1d4180d5b3088635ab72e421ae243d9a43a5ecccebb15f97c6722d032

@ -1,47 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
GCONF_DEBUG="no"
inherit gnome2 readme.gentoo
DESCRIPTION="Thinkpad GNOME configuration utility for TrackPoint (For the linux
kernel 2.6 TrackPoint driver)"
HOMEPAGE="http://tpctl.sourceforge.net/configure-trackpoint.html"
SRC_URI="mirror://sourceforge/tpctl/${PN}/${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="app-laptop/tp_smapi
>=x11-libs/gtk+-2.2:2
|| ( x11-libs/gksu kde-apps/kdesu )
>=gnome-base/libgnomeui-2.4
>=sys-devel/gettext-0.11"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
DOC_CONTENTS="The ${PN} does not automatically load the app-laptop/tp_smapi modules
so you need to do it manually"
if has_version kde-apps/kdesu && ! has_version x11-libs/gksu; then
sed -i -e "/^Exec/s:gksu:kdesu:" ${PN}.desktop \
|| die "Failed to replace gksu with kdesu"
fi
gnome2_src_prepare
}
src_install() {
gnome2_src_install
readme.gentoo_create_doc
}
pkg_postinst() {
gnome2_pkg_postinst
readme.gentoo_print_elog
}

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>m4rk@silverarrow.org</email>
<name>Markellos Orfanos</name>
<description>Assign bugs to him</description>
</maintainer>
<maintainer type="person">
<email>hwoarang@gentoo.org</email>
<name>Markos Chandras</name>
<description>Proxy maintainer. CC him on bugs</description>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription lang="en">
</longdescription>
<upstream>
<remote-id type="sourceforge">tpctl</remote-id>
</upstream>
</pkgmetadata>

@ -1 +0,0 @@
DIST easy-slow-down-manager-0.3.tar.gz 5636 SHA256 c9296226d4e0d41955988d0dbd7f143ff2e06a40744705c78f89f9a51c1c0253 SHA512 9974fb3af48a529f050aa5730988614a91b615e3fd2e5b6edc5b70ac6a1faffb4f4a1423cb634aff671dc7228bb70be8ef150c274bf57895048fae5566aac77a WHIRLPOOL 8820c937e308b940f58fe7c0132394a17b0d6e78844b0b72757f8f8f76c000a548fb291a508b8e803460ba75c745ce045f54541480f25756c976129d64236ff0

@ -1,33 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit eutils linux-mod
DESCRIPTION="provides Linux users with functionality similar to Samsung Easy Speed Up Manager"
HOMEPAGE="https://code.google.com/p/easy-slow-down-manager/"
SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
S=${WORKDIR}
BUILD_TARGETS="all"
MODULE_NAMES="samsung-backlight() easy_slow_down_manager()"
src_prepare() {
get_version
if kernel_is -ge 3 10; then
epatch "${FILESDIR}"/${P}-kernel-3.10-1.patch
fi
epatch "${FILESDIR}"/${P}-kv_dir.patch
}
src_compile() {
BUILD_PARAMS="KERN_DIR=${KV_DIR}"
linux-mod_src_compile
}

@ -1,205 +0,0 @@
diff --git a/easy_slow_down_manager.c b/easy_slow_down_manager.c
index 7b2d1e9..1336557 100644
--- a/easy_slow_down_manager.c
+++ b/easy_slow_down_manager.c
@@ -4,6 +4,7 @@
#include <linux/proc_fs.h>
#include <linux/pci.h>
#include <linux/delay.h>
+#include <linux/version.h>
#include <asm/uaccess.h>
#include <linux/dmi.h>
@@ -101,7 +102,7 @@ MODULE_PARM_DESC(debug, "Verbose output");
int sabi_exec_command(u8 command, u8 data, struct sabi_retval *sretval)
{
int retval = 0;
-
+
mutex_lock(&sabi_mutex);
/* enable memory to be able to write to it */
@@ -141,22 +142,25 @@ int sabi_exec_command(u8 command, u8 data, struct sabi_retval *sretval)
return retval;
}
-int easy_slow_down_read(char *page, char **start, off_t off,
- int count, int *eof, void *data) {
+ssize_t easy_slow_down_read(struct file *filp, char __user *buffer,
+ size_t length, loff_t *off) {
struct sabi_retval sretval;
-
- if (off > 0) {
- *eof = 1;
- }
- else if (!sabi_exec_command(SABI_GET_ETIQUETTE_MODE, 0, &sretval)) {
- page[0] = sretval.retval[0] + '0';
+
+ if (*off > 0)
+ return 0;
+
+ if (!sabi_exec_command(SABI_GET_ETIQUETTE_MODE, 0, &sretval)) {
+ char mode = sretval.retval[0] + '0';
+ if (copy_to_user(buffer, &mode, 1))
+ return -EFAULT;
+ (*off)++;
return 1;
}
return 0;
}
-int easy_slow_down_write(struct file *file, const char __user *buffer,
- unsigned long count, void *data) {
+ssize_t easy_slow_down_write(struct file *filp, const char __user *buffer,
+ size_t count, loff_t *off) {
char mode = '0';
if (copy_from_user(&mode, buffer, 1)) {
return -EFAULT;
@@ -167,22 +171,25 @@ int easy_slow_down_write(struct file *file, const char __user *buffer,
return count;
}
-int easy_backlight_read(char *page, char **start, off_t off,
- int count, int *eof, void *data) {
+ssize_t easy_backlight_read(struct file *filp, char __user *buffer,
+ size_t length, loff_t *off) {
struct sabi_retval sretval;
-
- if (off > 0) {
- *eof = 1;
- }
- else if (!sabi_exec_command(SABI_GET_BACKLIGHT, 0, &sretval)) {
- page[0] = sretval.retval[0] + '0';
+
+ if (*off > 0)
+ return 0;
+
+ if (!sabi_exec_command(SABI_GET_BACKLIGHT, 0, &sretval)) {
+ char mode = sretval.retval[0] + '0';
+ if (copy_to_user(buffer, &mode, 1))
+ return -EFAULT;
+ (*off)++;
return 1;
}
return 0;
}
-int easy_backlight_write(struct file *file, const char __user *buffer,
- unsigned long count, void *data) {
+ssize_t easy_backlight_write(struct file *file, const char __user *buffer,
+ size_t count, loff_t *off) {
char mode = '0';
if (copy_from_user(&mode, buffer, 1)) {
return -EFAULT;
@@ -193,22 +200,25 @@ int easy_backlight_write(struct file *file, const char __user *buffer,
return count;
}
-int easy_wifi_kill_read(char *page, char **start, off_t off,
- int count, int *eof, void *data) {
+ssize_t easy_wifi_kill_read(struct file *filp, char __user *buffer,
+ size_t length, loff_t *off) {
struct sabi_retval sretval;
-
- if (off > 0) {
- *eof = 1;
- }
- else if (!sabi_exec_command(SABI_GET_WIRELESS_BUTTON, 0, &sretval)) {
- page[0] = sretval.retval[0] + '0';
+
+ if (*off > 0)
+ return 0;
+
+ if (!sabi_exec_command(SABI_GET_WIRELESS_BUTTON, 0, &sretval)) {
+ char mode = sretval.retval[0] + '0';
+ if (copy_to_user(buffer, &mode, 1))
+ return -EFAULT;
+ (*off)++;
return 1;
}
return 0;
}
-int easy_wifi_kill_write(struct file *file, const char __user *buffer,
- unsigned long count, void *data) {
+ssize_t easy_wifi_kill_write(struct file *file, const char __user *buffer,
+ size_t count, loff_t *off) {
char mode = '0';
if (copy_from_user(&mode, buffer, 1)) {
return -EFAULT;
@@ -219,8 +229,26 @@ int easy_wifi_kill_write(struct file *file, const char __user *buffer,
return count;
}
+static const struct file_operations proc_fops_slow_down = {
+ .owner = THIS_MODULE,
+ .read = easy_slow_down_read,
+ .write = easy_slow_down_write
+};
+
+static const struct file_operations proc_fops_wifi_kill = {
+ .owner = THIS_MODULE,
+ .read = easy_wifi_kill_read,
+ .write = easy_wifi_kill_write
+};
+
+static const struct file_operations proc_fops_backlight = {
+ .owner = THIS_MODULE,
+ .read = easy_backlight_read,
+ .write = easy_backlight_write
+};
+
int __init easy_slow_down_init(void) {
-
+
const char *test_str = "SwSmi@";
int pos;
int index = 0;
@@ -290,19 +318,15 @@ int __init easy_slow_down_init(void) {
}
- proc_entry_slow_down = create_proc_entry("easy_slow_down_manager", 0666, NULL);
+ proc_entry_slow_down = proc_create("easy_slow_down_manager", 0666, NULL, &proc_fops_slow_down);
if (proc_entry_slow_down == NULL) {
printk(KERN_INFO "Easy slow down manager: Couldn't create proc entry\n");
iounmap(sabi_iface);
iounmap(f0000_segment);
return -ENOMEM;
}
- else {
- proc_entry_slow_down->read_proc = easy_slow_down_read;
- proc_entry_slow_down->write_proc = easy_slow_down_write;
- }
- proc_entry_wifi_kill = create_proc_entry("easy_wifi_kill", 0666, NULL);
+ proc_entry_wifi_kill = proc_create("easy_wifi_kill", 0666, NULL, &proc_fops_wifi_kill);
if (proc_entry_wifi_kill == NULL) {
printk(KERN_INFO "Easy slow down manager: Couldn't create proc entry\n");
remove_proc_entry("easy_slow_down_manager", NULL);
@@ -310,12 +334,8 @@ int __init easy_slow_down_init(void) {
iounmap(f0000_segment);
return -ENOMEM;
}
- else {
- proc_entry_wifi_kill->read_proc = easy_wifi_kill_read;
- proc_entry_wifi_kill->write_proc = easy_wifi_kill_write;
- }
-
- proc_entry_backlight = create_proc_entry("easy_backlight", 0666, NULL);
+
+ proc_entry_backlight = proc_create("easy_backlight", 0666, NULL, &proc_fops_backlight);
if (proc_entry_backlight == NULL) {
printk(KERN_INFO "Easy slow down manager: Couldn't create proc entry\n");
remove_proc_entry("easy_slow_down_manager", NULL);
@@ -324,10 +344,6 @@ int __init easy_slow_down_init(void) {
iounmap(f0000_segment);
return -ENOMEM;
}
- else {
- proc_entry_backlight->read_proc = easy_backlight_read;
- proc_entry_backlight->write_proc = easy_backlight_write;
- }
return 0;
}

@ -1,16 +0,0 @@
diff --git a/Makefile b/Makefile
index 60a649c..fbdc332 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
obj-m := easy_slow_down_manager.o samsung-backlight.o
-KVERSION = $(shell uname -r)
+KERN_DIR=/usr/src/linux
all:
- $(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
+ $(MAKE) -C /$(KERN_DIR) M=$(PWD) modules
clean:
- $(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
+ $(MAKE) -C /$(KERN_DIR) M=$(PWD) clean

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="google-code">easy-slow-down-manager</remote-id>
</upstream>
</pkgmetadata>

@ -1,2 +0,0 @@
DIST samsung-tools-2.1.tar.gz 415254 SHA256 dc5a4d7f24e621785ca9c73f07d18e88cacf0e4b9d77e0f798f7abd9290d6ab9 SHA512 c7e60ef9accd5707913951d37442f9cf1c2363ca4150f0058c1345ea0a8027ddc32b9cf6da386e2c001c75d163034a48dbe16bf0936ade03e7067082257d42bd WHIRLPOOL b629ed0bc7a891148e3c1e9df5d3591a1391ed350d5373b52c44a443d156226dbf02d65afb5c1dcd7270ace3a84365813fccfb87bc84e565f9032e7a6b800673
DIST samsung-tools-2.3.1.tar.gz 425379 SHA256 423ec128d75035b77d9bdeaa3662acbf0e644ae7a6b15671943e7a5764d7b370 SHA512 1234972ceea3925c95d631a2429b9669ba8ece078adb5790784a8ee2f88ec269b5fef98e915604f9c68b404bb37a37a79c8192554c3a5aca97ec654f291d74f1 WHIRLPOOL f7b45eb94406102febd3fcb8079a7a1ebdf31d26d397a900fae20ec052aa262baf20b95deeddba411efd7a17644a889cba06df3e14a909bd5e6fb781e0fc0f2d

@ -1,15 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need dbus
}
start() {
ebegin "Setting up samsung-tools"
dbus-send --system --print-reply=literal --dest='org.voria.SamsungTools.System' \
'/' org.voria.SamsungTools.System.SetInitialDevicesStatus
eend $?
}

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>brendan@horan.hk</email>
<name>Brendan Horan</name>
<description>Proxy maintainer for assignee of bugs</description>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="launchpad">samsung-tools</remote-id>
</upstream>
</pkgmetadata>

@ -1,43 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit fdo-mime python-r1
DESCRIPTION="Tools for Samsung laptops"
HOMEPAGE="https://launchpad.net/samsung-tools"
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="app-laptop/easy-slow-down-manager
dev-python/dbus-python
dev-python/notify-python
dev-python/pygtk
net-wireless/rfkill
sys-apps/vbetool
sys-power/pm-utils
x11-misc/xbindkeys"
RDEPEND="${DEPEND}"
src_compile() {
return
}
src_install() {
emake DESTDIR="${D}" install
newinitd "${FILESDIR}"/${PN}.init ${PN}
}
pkg_postinst() {
fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}

@ -1,55 +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 fdo-mime python-single-r1
DESCRIPTION="Tools for Samsung laptops"
HOMEPAGE="https://launchpad.net/samsung-tools"
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="${PYTHON_DEPS}
dev-python/dbus-python[${PYTHON_USEDEP}]
dev-python/notify-python[${PYTHON_USEDEP}]
dev-python/pygtk[${PYTHON_USEDEP}]
app-laptop/easy-slow-down-manager
net-wireless/rfkill
sys-apps/vbetool
sys-power/pm-utils
x11-misc/xbindkeys"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
pkg_setup() {
python-single-r1_pkg_setup
}
src_compile() {
return
}
src_install() {
emake DESTDIR="${D}" install
newinitd "${FILESDIR}"/${PN}.init ${PN}
python_fix_shebang "${D}"/usr/bin
python_fix_shebang "${D}"/usr/share/samsung-tools/system-service.py
python_fix_shebang "${D}"/usr/share/samsung-tools/session-service.py
python_optimize "${D}"/usr/share/samsung-tools/backends
}
pkg_postinst() {
fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}

@ -1,9 +1,9 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_4} )
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
inherit distutils-r1 udev user linux-info gnome2-utils

@ -1,2 +0,0 @@
DIST sms-2.0.3.tar.gz 48450 SHA256 e7f8792732772e56489232f0e671128e39472609466424d9ac33c1956ebb451f SHA512 0d4c201328c52378bf6671addee0771c25ab22c7edc9e848657dcf815f8fd31c0d0433020d85906ae02b7702616d734d2d763e1737b23e2e7b2acd4d8d529a97 WHIRLPOOL fe8c3a53101718997c70b4976858e70a936ab31a7880da417f2ec3984fc8b85ba0e931f629d0795007e5a9ccf2e36320a740258eb4a53afacd7684b5e1d11262
DIST sms-2.1.0.tar.gz 45668 SHA256 105dc13661ac35608e8dab39de76797362bef420b64113f1cf0a6e3a3d3e990c SHA512 a0a172f66127a90b86b9b80590420718d00d715921928b8dea9d0ea1b219835b747c583db86b859cfb2f4c79191da3f3965d608ee97edf335f2132956c4aa3c0 WHIRLPOOL f4653872a659b69274646f019bc401e6d18d37cd7938a0a6fd5621a7d1a201839179f9972e9cb27f710163e03052566d02397e097ed13e80500e929a310af166

@ -1,38 +0,0 @@
diff -Nru sms-2.0.3.orig/lib/mr_curl/mr_curl.cc sms-2.0.3/lib/mr_curl/mr_curl.cc
--- sms-2.0.3.orig/lib/mr_curl/mr_curl.cc 2005-02-04 02:37:39.000000000 +0200
+++ sms-2.0.3/lib/mr_curl/mr_curl.cc 2006-09-24 13:48:25.725464250 +0300
@@ -4,6 +4,18 @@
using namespace std;
+size_t Curl_write_data(const void *ptr, size_t size,
+ size_t nmemb, Curl *curl) {
+ curl->buffer->write((const char*)ptr, size * nmemb);
+ return curl->buffer->bad() ? 0 : size*nmemb;
+}
+
+size_t Curl_write_header(const void *ptr, size_t size,
+ size_t nmemb, Curl *curl) {
+ curl->headers->write((const char*)ptr, size * nmemb);
+ return curl->headers->bad() ? 0 : size*nmemb;
+}
+
void FormParser::SetPage(const std::string &new_html)
{
action = "";
@@ -428,15 +440,3 @@
SetOpt(CURLOPT_SSL_VERIFYHOST, 0);
}
-size_t Curl_write_data(const void *ptr, size_t size,
- size_t nmemb, Curl *curl) {
- curl->buffer->write((const char*)ptr, size * nmemb);
- return curl->buffer->bad() ? 0 : size*nmemb;
-}
-
-size_t Curl_write_header(const void *ptr, size_t size,
- size_t nmemb, Curl *curl) {
- curl->headers->write((const char*)ptr, size * nmemb);
- return curl->headers->bad() ? 0 : size*nmemb;
-}
-

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<longdescription>Command line program for sending SMS to Polish GSM mobile phone users.
Ma?a reorganizacja. Z racji licznych downloadw ww. programu postanowi?em zrobi?
mu specjaln? stron? domow?. A niech ma pomy?la?em sobie :-) Teraz jest jeszcze lepiej: codziennie
z crona jest sprawdzana wersja aktualnej kopii sms. Wiec na stronie jest podawana zawsze
wlasciwa, a ja nie musze sie meczyc z aktualizacja. To samo dotyczy wycinka z pliku</longdescription>
</pkgmetadata>

@ -1,35 +0,0 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit toolchain-funcs eutils
DESCRIPTION="Command line program for sending SMS to Polish GSM mobile phone users"
HOMEPAGE="http://ceti.pl/~miki/komputery/sms.html"
SRC_URI="http://ceti.pl/~miki/komputery/download/sms/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="ppc x86"
IUSE=""
DEPEND="sys-libs/gdbm
dev-libs/libpcre
dev-libs/pcre++
net-misc/curl"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}/${P}-gcc41.patch"
}
src_compile() {
emake CXX=$(tc-getCXX) CXXFLAGS="${CXXFLAGS} -I./lib" LDFLAGS="-lc" || die "make failed"
}
src_install() {
dobin sms smsaddr
dodoc README README.smsrc Changelog doc/readme.html
dodoc contrib/mimecut contrib/procmailrc
}

@ -1,29 +0,0 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit toolchain-funcs
DESCRIPTION="Command line program for sending SMS to Polish GSM mobile phone users"
HOMEPAGE="http://ceti.pl/~miki/komputery/sms.html"
SRC_URI="http://ceti.pl/~miki/komputery/download/sms/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND="sys-libs/gdbm
dev-libs/libpcre
dev-libs/pcre++
net-misc/curl"
src_compile() {
emake CXX=$(tc-getCXX) CXXFLAGS="${CXXFLAGS} -I./lib" LDFLAGS="${LDFLAGS} -lc" || die "make failed"
}
src_install() {
dobin sms smsaddr
dodoc README README.smsrc Changelog doc/readme.html
dodoc contrib/mimecut contrib/procmailrc
}

@ -1,2 +0,0 @@
DIST yaps-0.96.c4.tgz 109682 SHA256 4afab43b8f0bed7c48d91cef56bc7aee44a1887c38efb8788be3ec761caf54c9 SHA512 16d326903c7aa54c9930f581d9ec6285fe51d52e8b03a0cff899745b41371e3ce939201f529e15c2473bb8917e3e45f0a3872355986ecd03df52079ec9c484ca WHIRLPOOL bf8e37fc2135dfb851af0e26ee508b286548e0b0b1d3d460263507585c580e5058c567013aac63283861dc79e26aa437ad2392b9061b1b083714b5d4b88a8554
DIST yaps-0.96.tar.gz 91060 SHA256 6474a507d1f3d769c80562164ad38454c73fb49be043bab1128ca9eaf20c5b98 SHA512 799559af2726b669df08ad68de1f01b5b1a6ac8b332e5f8b54d82474b183ef7714abd4482aefdd5ccff6197a9da2b051fa94b38d84eb037b262d066fffc7d145 WHIRLPOOL d7f6de6c7aca320a95afc78aad1ae1b7d27a1b4ef1f6e40dd8ad02c4ba8ecb1138ef41b507672ccbfdc197e2c7591819c58311c9cff796e56f03ebe41594dcd8

@ -1,56 +0,0 @@
--- a/Config
+++ b/Config
@@ -24,9 +24,9 @@
# Name of local configuration file (location is $HOME.)
YAPS_LCFGFILE = .yapsrc
# Directory for installing the binary
-YAPS_BINDIR = /usr/local/bin
+YAPS_BINDIR = /usr/bin
# Directory for optional support files
-YAPS_LIBDIR = /usr/local/lib/yaps
+YAPS_LIBDIR = /usr/lib/yaps
# User/Group/Mode for yaps
YAPS_USER = bin
YAPS_GROUP = uucp
@@ -43,12 +43,12 @@
ifdef SLANG
LDEFS += -DSCRIPT_SLANG
LLIBS += -lslang
-MATH = True
+#MATH = True
endif
ifdef LUA
LDEFS += -DSCRIPT_LUA
-LLIBS += -llualib -llua
-MATH = True
+LLIBS += `pkg-config --libs lua`
+#MATH = True
endif
ifdef MATH
LLIBS += -lm
--- a/Makefile
+++ b/Makefile
@@ -33,19 +33,19 @@
lynx -cfg=/dev/null -nolist -dump $< > $@
install: $(DSTFLE) $(CFGFILE)
- if [ ! -d $(YAPS_LIBDIR) ]; then \
- install -d -m 755 -o $(YAPS_USER) -g $(YAPS_GROUP) $(YAPS_LIBDIR) ; \
+ if [ ! -d $(DESTDIR)$(YAPS_LIBDIR) ]; then \
+ install -d -m 755 $(DESTDIR)$(YAPS_LIBDIR) ; \
fi
@if [ -f contrib/Makefile ]; then \
$(MAKE) -C contrib install ; \
fi
$(DSTFLE): yaps
- install -o $(YAPS_USER) -g $(YAPS_GROUP) -m $(YAPS_MODE) -s yaps $@
+ install -m $(YAPS_MODE) -s yaps $(DESTDIR)$@
$(CFGFILE): yaps.rc
@if [ ! -f $@ ]; then \
- install -o $(YAPS_RCUSER) -g $(YAPS_RCGROUP) -m $(YAPS_RCMODE) -s yaps.rc $@ ; \
+ install -m $(YAPS_RCMODE) -s yaps.rc $(DESTDIR)$@ ; \
fi
clean:

@ -1,64 +0,0 @@
--- a/cfg.c
+++ b/cfg.c
@@ -203,7 +203,7 @@
fcur -> fp = fp;
fcur -> up = NULL;
while (fcur) {
- while (gline = getline (fcur -> fp, True)) {
+ while (gline = my_getline (fcur -> fp, True)) {
for (line = gline; isspace (*line); ++line)
;
if ((! *line) || (*line == '#')) {
@@ -279,7 +279,7 @@
done = False;
siz = 0;
len = 0;
- while (ptr = getline (fcur -> fp, False)) {
+ while (ptr = my_getline (fcur -> fp, False)) {
if ((*ptr != '}') || *(ptr + 1)) {
plen = strlen (ptr);
if (len + plen + 2 >= siz) {
--- a/cv.c
+++ b/cv.c
@@ -151,7 +151,7 @@
MCHK (c);
if ((! c) || (! (fp = fopen (fname, "r"))))
return -1;
- while (line = getline (fp, True)) {
+ while (line = my_getline (fp, True)) {
for (sp = line; isspace (*sp); ++sp)
;
if (*sp && (*sp != '#')) {
--- a/pager.h
+++ b/pager.h
@@ -67,7 +67,7 @@
/*{{{ utility */
extern char *skip (char *str);
extern char *skipch (char *str, char ch);
-extern char *getline (FILE *fp, Bool cont);
+extern char *my_getline (FILE *fp, Bool cont);
extern int verbose_out (char *, ...);
/*}}}*/
/*{{{ string handling */
--- a/util.c
+++ b/util.c
@@ -36,7 +36,7 @@
}
char *
-getline (FILE *fp, Bool cont)
+my_getline (FILE *fp, Bool cont)
{
char *buf;
int size;
--- a/yaps.c
+++ b/yaps.c
@@ -1177,7 +1177,7 @@
fprintf (stderr, "Unable to open message file %s for reading\n", mfile);
return NULL;
}
- while (ptr = getline (fp, False)) {
+ while (ptr = my_getline (fp, False)) {
sav = skip (ptr);
if (*ptr && *sav) {
if (rcnt + 2 >= rsiz) {

@ -1,10 +0,0 @@
--- a/scr.c
+++ b/scr.c
@@ -2,6 +2,7 @@
# include "config.h"
# include <stdio.h>
# include <stdlib.h>
+# include <string.h>
# include "pager.h"
# include "script.h"

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<longdescription lang="en">
Yet Another Pager Software (optional with CAPI support).
</longdescription>
<use>
<flag name="capi">Enable CAPI support</flag>
</use>
</pkgmetadata>

@ -1,68 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils toolchain-funcs
DESCRIPTION="Yet Another Pager Software (optional with CAPI support)"
HOMEPAGE="ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/machines/"
SRC_URI="capi? ( ftp://ftp.melware.net/capi4yaps/${P}.c4.tgz )
!capi? ( ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/machines/${P}.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE="+capi lua slang"
RDEPEND="
capi? ( net-dialup/capi4k-utils )
slang? ( >=sys-libs/slang-1.4 )
lua? ( dev-lang/lua )
!media-sound/abcmidi
"
DEPEND="
${RDEPEND}
lua? ( virtual/pkgconfig )
"
src_unpack() {
default
use capi && S="${WORKDIR}"/${P}.c4
}
src_prepare() {
# apply patches
epatch "${FILESDIR}/${P}-gentoo.diff"
epatch "${FILESDIR}/${P}-getline-rename.patch"
# fix compile warning
if ! use capi; then
epatch "${FILESDIR}"/${P}-string.patch
fi
}
src_compile() {
emake \
$(usex lua LUA=true '') \
$(usex slang SLANG=true '') \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
CXX="$(tc-getCXX)"
}
src_install() {
dobin yaps
insinto /etc
doins yaps.rc
keepdir /usr/lib/yaps
doman yaps.1
dohtml yaps.html
dodoc BUGREPORT COPYRIGHT README yaps.lsm yaps.doc
newdoc contrib/README README.contrib
insinto /usr/share/doc/${PF}/contrib
doins contrib/{m2y.pl,tap.sl}
}

@ -0,0 +1 @@
DIST kexi-3.0.0.tar.xz 3678724 SHA256 8acfdf9f933139544aa8a8f53b04f5266c1cec6b3844963d04404e8b7f72ffe0 SHA512 c42b50aaa0878171c0a238226b47774a3370f6ca4411c344a7d31e78ee3cb5b930be4a493290a887dc239146d49c7d7da71028587aabbf8e5497704dab7bf826 WHIRLPOOL 0c4ae66e3985cd36d4687ca0ffcfeac6a19aa838a765cc0211efe4d11fc7be661c1beb8792b83f8f54cabbc274e7d8859dbcb2a294c173712e2df3271806aa95

@ -0,0 +1,79 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
# KDE_HANDBOOK="true"
KDE_TEST="forceoptional"
inherit kde5
DESCRIPTION="Visual database applications creator"
HOMEPAGE="https://www.kde.org/applications/office/kexi/ http://www.kexi-project.org/"
[[ ${KDE_BUILD_TYPE} != live ]] && SRC_URI="mirror://kde/stable/${PN}/src/${P}.tar.xz"
KEYWORDS="~amd64 ~x86"
IUSE="marble mdb mysql postgres sqlite webkit"
COMMON_DEPEND="
$(add_frameworks_dep karchive)
$(add_frameworks_dep kcodecs)
$(add_frameworks_dep kcompletion)
$(add_frameworks_dep kconfig)
$(add_frameworks_dep kconfigwidgets)
$(add_frameworks_dep kcoreaddons)
$(add_frameworks_dep kcrash)
$(add_frameworks_dep kguiaddons)
$(add_frameworks_dep ki18n)
$(add_frameworks_dep kiconthemes)
$(add_frameworks_dep kio)
$(add_frameworks_dep kitemviews)
$(add_frameworks_dep ktexteditor)
$(add_frameworks_dep ktextwidgets)
$(add_frameworks_dep kwidgetsaddons)
$(add_frameworks_dep kxmlgui)
$(add_qt_dep designer)
$(add_qt_dep qtgui)
$(add_qt_dep qtnetwork)
$(add_qt_dep qtprintsupport)
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
dev-db/kdb[mysql?,postgres?,sqlite?]
dev-libs/kproperty
dev-libs/kreport
marble? ( $(add_kdeapps_dep marble) )
mdb? ( dev-libs/glib:2 )
mysql? ( virtual/libmysqlclient )
postgres? (
dev-db/postgresql:*
dev-libs/libpqxx
)
webkit? ( $(add_qt_dep qtwebkit) )
"
DEPEND="${COMMON_DEPEND}
sys-devel/gettext
"
RDEPEND="${COMMON_DEPEND}
$(add_frameworks_dep breeze-icons-rcc)
!app-office/calligra:4[calligra_features_kexi]
!app-office/calligra-l10n:4[calligra_features_kexi(+)]
"
src_prepare() {
if ! use webkit; then
punt_bogus_dep Qt5 WebKit
punt_bogus_dep Qt5 WebKitWidgets
fi
kde5_src_prepare
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_find_package marble KexiMarble)
$(cmake-utils_use_find_package mdb GLIB2)
$(cmake-utils_use_find_package mysql MySQL)
$(cmake-utils_use_find_package postgres KexiPostgreSQL)
)
kde5_src_configure
}

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>kde@gentoo.org</email>
<name>Gentoo KDE Project</name>
</maintainer>
<use>
<flag name="marble">Enable displaying of maps using <pkg>kde-apps/marble</pkg></flag>
<flag name="mdb">Enable support for Microsoft Access database</flag>
<flag name="webkit">Enable web form designer widget using <pkg>dev-qt/qtwebkit</pkg></flag>
</use>
</pkgmetadata>

@ -46,11 +46,3 @@ python_install_all() {
doicon "icons.in/${PN}.png"
make_desktop_entry ${PN}.py "Task Coach" ${PN} Office
}
pkg_postinst() {
if [[ -n ${REPLACING_VERSIONS} ]]; then
if ! version_is_at_least 1.3.40 ${REPLACING_VERSIONS}; then
elog "Since version 1.3.40, the Task Coach executable is called ${PN}.py"
fi
fi
}

@ -1 +0,0 @@
DIST jpilot-backup-0.60.tar.gz 377983 SHA256 1acdf3924fdf6f0da7dec1b586e2780fc8f472552adecf3b0d9f529a01eb52a5 SHA512 3d34a66a031f71a5e73388bc7dd717b141f7378d2b7e109f3b8d4cda47624e0a615c14e236e131c1fa020dd73453b5150ba2617837a670f89cf5784afccd926e WHIRLPOOL 1de4344774f84934469fe538c500e774a421306b3d3c094e9c6576679112be375224e148543a506a82012783f0f53a807880a7211c9e9eff90c84c5105f4028a

@ -1,39 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=2
inherit flag-o-matic multilib
DESCRIPTION="Backup plugin for jpilot"
HOMEPAGE="http://www.jlogday.com/code/jpilot-backup/index.html"
SRC_URI="http://www.jlogday.com/code/jpilot-backup/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
RDEPEND=">=x11-libs/gtk+-2.18.9:2
>=app-pda/pilot-link-0.12.3
>=app-pda/jpilot-0.99.9
sys-libs/gdbm"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_configure() {
append-cppflags -DENABLE_GTK2
econf \
--enable-gtk2
}
src_install() {
emake \
DESTDIR="${D}" \
libdir="/usr/$(get_libdir)/jpilot/plugins" \
install || die
dodoc ChangeLog CREDITS README* TODO
find "${D}" -name '*.la' -delete
}

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
</pkgmetadata>

@ -1 +0,0 @@
DIST jpilot-Mail-0.1.7.tar.gz 481041 SHA256 99169a74564053ef6c62da1738951570fcb3fcc044276f7040d334f553966bbe SHA512 79b74a27d9a3bfcd46791f0c5b6a5750ec5d8463d71843c0b64eed146871e7633bb2803ac742e5b48723e395295ed42e8ae5530d9047bbf930829028c18c8a6c WHIRLPOOL a9cce33788ee6dd9203bfbb6a91a509f26b594702d6701f3d9a8e3324984c5bb950a63f9f34353662b11dd0e41e25082327ebd6fc488d494a2e833bf9f9b9d59

@ -1,172 +0,0 @@
diff -Nru jpilot-Mail-0.1.7.orig/src/connect.c jpilot-Mail-0.1.7/src/connect.c
--- jpilot-Mail-0.1.7.orig/src/connect.c 2003-01-11 17:52:28.000000000 +0200
+++ jpilot-Mail-0.1.7/src/connect.c 2007-01-02 11:43:09.000000000 +0200
@@ -24,7 +24,7 @@
if(inet_aton(ip, &ia)){
mxip_addr mxip;
- mxip.name = g_strdup(ip);
+ mxip.name = (guchar*)g_strdup(ip);
mxip.pref = 0;
mxip.ip = (guint32) *(guint32 *)(&ia);
list = g_list_append(list, g_memdup(&mxip, sizeof(mxip)));
diff -Nru jpilot-Mail-0.1.7.orig/src/lookup.c jpilot-Mail-0.1.7/src/lookup.c
--- jpilot-Mail-0.1.7.orig/src/lookup.c 2002-06-27 21:36:26.000000000 +0300
+++ jpilot-Mail-0.1.7/src/lookup.c 2007-01-02 11:43:48.000000000 +0200
@@ -325,7 +325,7 @@
mxip_addr mxip;
mxip.ip = *(guint32 *)(haddr);
mxip.pref = 0;
- mxip.name = g_strdup(hent->h_name);
+ mxip.name = (guchar*)g_strdup(hent->h_name);
list = g_list_append(list, g_memdup(&mxip, sizeof(mxip)));
}
}
diff -Nru jpilot-Mail-0.1.7.orig/src/mail.c jpilot-Mail-0.1.7/src/mail.c
--- jpilot-Mail-0.1.7.orig/src/mail.c 2004-07-18 21:06:42.000000000 +0300
+++ jpilot-Mail-0.1.7/src/mail.c 2007-01-02 12:15:30.000000000 +0200
@@ -56,7 +56,7 @@
static int show_category = 0;
static int glob_row_selected;
-static struct MyMail *glob_mymail_list = NULL;
+struct MyMail *glob_mymail_list = NULL;
struct Preferences prefs;
struct MailSyncPref mailSyncPref;
@@ -75,6 +75,8 @@
*minor_version = 99;
}
+void multibyte_safe_strncpy(char *dst, char *src, size_t len);
+
static void free_mymail_list(struct MyMail **ppM)
{
struct MyMail *pM, *next_pM;
@@ -195,7 +197,7 @@
if (fptr)
{
gchar *line = NULL;
- gint line_size = 0;
+ size_t line_size = 0;
while (!feof(fptr))
{
@@ -1001,7 +1003,7 @@
if (size > 0)
{
- char *buf = g_malloc(size);
+ unsigned char *buf = g_malloc(size);
if (buf)
{
@@ -1030,7 +1032,7 @@
if (size > 0)
{
buf_rec br;
- char *buf = g_malloc(size);
+ unsigned char *buf = g_malloc(size);
if (buf)
{
@@ -1212,7 +1214,7 @@
temp_str = malloc((len = strlen(mai.category.name[i])*2+1));
multibyte_safe_strncpy(temp_str, mai.category.name[i], len);
- jp_charset_p2j(temp_str, len);
+ jp_charset_p2j((unsigned char *)temp_str, len);
categories[i] = temp_str;
}
categories[i] = NULL;
diff -Nru jpilot-Mail-0.1.7.orig/src/mail_get.c jpilot-Mail-0.1.7/src/mail_get.c
--- jpilot-Mail-0.1.7.orig/src/mail_get.c 2004-07-18 20:31:28.000000000 +0300
+++ jpilot-Mail-0.1.7/src/mail_get.c 2007-01-02 12:16:29.000000000 +0200
@@ -68,7 +68,7 @@
{
GList *id_list = NULL;
gchar *line = NULL;
- gint line_size = 0;
+ size_t line_size = 0;
while (!feof(fptr))
{
@@ -179,7 +179,7 @@
{
FILE *in;
char *line = NULL;
- gint line_size = 0;
+ size_t line_size = 0;
GList *id_list = read_msgids();
// conf.debug_level = 5;
diff -Nru jpilot-Mail-0.1.7.orig/src/mail_send.c jpilot-Mail-0.1.7/src/mail_send.c
--- jpilot-Mail-0.1.7.orig/src/mail_send.c 2004-04-29 20:27:48.000000000 +0300
+++ jpilot-Mail-0.1.7/src/mail_send.c 2007-01-02 12:16:58.000000000 +0200
@@ -233,7 +233,7 @@
if (pMail->mail.body != NULL)
{
- guchar *p = pMail->mail.body;
+ gchar *p = pMail->mail.body;
while (*p)
{
diff -Nru jpilot-Mail-0.1.7.orig/src/mbox.c jpilot-Mail-0.1.7/src/mbox.c
--- jpilot-Mail-0.1.7.orig/src/mbox.c 2004-04-17 19:24:15.000000000 +0300
+++ jpilot-Mail-0.1.7/src/mbox.c 2007-01-02 11:49:55.000000000 +0200
@@ -25,7 +25,8 @@
gboolean mbox_read(message * msg, FILE * in, gchar ** from_line, int max_size)
{
gchar *line = NULL;
- gint line_size = 0, line_cnt = 0;
+// gint line_size = 0, line_cnt = 0;
+ size_t line_size = 0;
gint data_size = 0;
gboolean in_headers = TRUE;
int l_no = 1;
@@ -91,7 +92,7 @@
msg->data_list = g_list_append(msg->data_list, g_strdup(line));
data_size += strlen(line);
}
- line_cnt++;
+// line_cnt++;
}
}
diff -Nru jpilot-Mail-0.1.7.orig/src/smtp_out.c jpilot-Mail-0.1.7/src/smtp_out.c
--- jpilot-Mail-0.1.7.orig/src/smtp_out.c 2003-01-11 17:52:28.000000000 +0200
+++ jpilot-Mail-0.1.7/src/smtp_out.c 2007-01-02 12:11:27.000000000 +0200
@@ -66,7 +66,7 @@
gchar *set_heloname(smtp_base *psb, gchar *default_name, gboolean do_correct)
{
struct sockaddr_in sname;
- int len = sizeof(struct sockaddr_in);
+ socklen_t len = sizeof(struct sockaddr_in);
struct hostent *host_entry;
if(do_correct){
@@ -479,11 +479,11 @@
if((addr = connect_resolvelist(&sock, host, port, resolve_list))){
/* create structure to hold status data: */
psb = create_smtpbase(sock);
- psb->remote_host = addr->name;
+ psb->remote_host = (gchar*)addr->name;
DEBUG(5){
struct sockaddr_in name;
- int len = sizeof(struct sockaddr);
+ socklen_t len = sizeof(struct sockaddr);
getsockname(sock, (struct sockaddr *)(&name), &len);
debugf("socket: name.sin_addr = %s\n", inet_ntoa(name.sin_addr));
}
diff -Nru jpilot-Mail-0.1.7.orig/src/utils.h jpilot-Mail-0.1.7/src/utils.h
--- jpilot-Mail-0.1.7.orig/src/utils.h 2002-06-27 21:36:26.000000000 +0300
+++ jpilot-Mail-0.1.7/src/utils.h 2007-01-02 11:28:45.000000000 +0200
@@ -21,4 +21,6 @@
int get_home_file_name(char *file, char *full_name, int max_size);
+extern void multibyte_safe_strncpy(char *dst, char *src, size_t len);
+
#endif

@ -1,48 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=2
inherit eutils multilib
MY_PN=jpilot-Mail
DESCRIPTION="jpilot-Mail is a jpilot plugin to deliver mail from the pilot and upload mail to it"
HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/jpilot-Mail/"
SRC_URI="http://ludovic.rousseau.free.fr/softwares/${MY_PN}/${MY_PN}-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="x11-libs/gtk+:2
>=app-pda/jpilot-0.99.7-r1"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/${MY_PN}-${PV}
src_prepare() {
epatch "${FILESDIR}"/${P}.patch
}
src_configure() {
econf \
--enable-gtk2
}
src_compile() {
emake -j1 || die
}
src_install() {
emake DESTDIR="${D}" \
datadir="/usr/share/doc/${PF}/html" \
libdir="/usr/$(get_libdir)/jpilot/plugins" \
install || die
dodoc AUTHORS ChangeLog README TODO
find "${D}" -name '*.la' -exec rm -f {} +
}

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
</pkgmetadata>

@ -1 +0,0 @@
DIST jpilot-plucker-0.02.tar.gz 346902 SHA256 b88ecf504771a90f47248373ad3b0d03fa9edfc4295cb42e70096ca2e983e782 SHA512 9f401110d0461ce0d953ba8b0c48c195ae9f2b6708699f7e9c2fb7aab491cd54fcbf44f894ca82718ea3176bf300ca65293438b4bd97617d2459f362330632bf WHIRLPOOL 3990aebf7a8a3d14f491ab47f67fcd52d49b65cdb0cae5b962e4b465fa1f442c10245e2955488b0804de281725ba4e52e339f9b9fdddcd8776c79cb8ec3f66b4

@ -1,37 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=2
inherit multilib
DESCRIPTION="Plucker plugin for jpilot"
HOMEPAGE="http://www.jlogday.com/code/jpilot-plucker/index.html"
SRC_URI="http://www.jlogday.com/code/jpilot-plucker/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~ppc x86"
IUSE=""
RDEPEND=">=x11-libs/gtk+-2.18.9:2
>=app-pda/pilot-link-0.12.3
>=app-pda/jpilot-0.99.7-r1"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_configure() {
econf \
--enable-gtk2
}
src_install() {
emake \
DESTDIR="${D}" \
libdir="/usr/$(get_libdir)/jpilot/plugins" \
install || die
dodoc AUTHORS ChangeLog README TODO
find "${D}" -name '*.la' -delete
}

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
</pkgmetadata>

@ -1 +0,0 @@
DIST cbind-6.0.1.tar.bz2 69865 SHA256 dd602e065e1c925995c1b5bdaaef338f94053bfd4391f18527ce96e8ca521689 SHA512 160535ac298ad5e2873cc3de5455a25750dba6df9c7a56a28474a02985b8f7ffdab0039392586e742b0fea1e4e8dcddef2e674205b0b408459b768a0dc1a5b05 WHIRLPOOL 3b8f59643990c8d30f70cfabd83937d28ec0a6f9bdf0274e1cb007cac8433d6534107a658c296f7bb14c07d7a04ebd62f56c0bbe1e421b2815f68a733d382476

@ -1,28 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# !NOTE!
# this is a utility, no libs generated, no reason to do the gnat.eclass dance
# so, "inherit gnat" should not appear here!
DESCRIPTION="This tool is designed to aid in the creation of Ada bindings to C"
SRC_URI="https://dev.gentoo.org/~george/src/${P}.tar.bz2"
HOMEPAGE="http://www.rational.com/"
LICENSE="GMGPL"
DEPEND="virtual/ada"
RDEPEND="${DEPEND}"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
src_compile() {
MAKEOPTS="${MAKEOPTS} -j1" emake || die
}
src_install () {
make PREFIX="${D}"/usr/ install || die
dodoc README DOCS
}

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>ada@gentoo.org</email>
<name>Gentoo Resources for Ada</name>
</maintainer>
<longdescription>This tool is designed to AID in the creation of Ada bindings to C. Bindings generated by this translator will be generally not be complete. This tool MAY/MAY NOT be useful as an AID to generating bindings. Hopefully it can do a lot of the grunt work for you.</longdescription>
</pkgmetadata>

@ -1 +0,0 @@
DIST glade-2006.0.tar.bz2 393969 SHA256 0a0ef4b7aeb426b4b298b38fcdb9d7236b56a9c5aa6d16c24745450587b6ef85 SHA512 eb35f0ea13b415cf5a17d0b175bf395079d90640a69d9d3ace30df5feaa19618f2cb2dfbd70c1da9dd420c34717e015cec632675772a11faeb8aaf14644eab40 WHIRLPOOL ff141503f9f9199d128811aaaf168c6e82b5a1f3bd3c3e44e79d8be7aa65f838de4d942a2a1b57deb9fa438fd24ed02420ea8c03fe5f7881742b4d71881050ff

@ -1,96 +0,0 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit gnat
IUSE=""
DESCRIPTION="An implementation of the Distributed Systems Annex for the GNAT compiler"
HOMEPAGE="http://libre2.adacore.com/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
DEPEND="=virtual/ada-1995*"
RDEPEND="${DEPEND}"
# temporary install pool
DN="${WORKDIR}/LocalD"
src_unpack() {
unpack ${A}
cd "${S}"
# configure performs some stupid check and in a wrong way, we will surely
# have a modern enough gnat
sed -i -e "s:-le \"\$am_gnatls_date\":-le \"20040909\":" configure
}
lib_compile()
{
econf --with-optimization="${CFLAGS}" || die "econf failed"
emake || die "make failed"
einfo "lib_compile completed"
}
# NOTE: we are using $1 - the passed gnat profile name
lib_install()
{
# This package expands the libs and sources provided by compiler. Therefore
# we install in yet another local location, to bypass gnat's automation.
# The compiler specific stuf is then moved to ${D} directly. Not ideal, as
# this hook is called from within src_compile, but alternatives are more
# complex. The next version should probably be done mirroring the asis-xxx.
make prefix="${DN}" \
bindir="${DN}"/$(get_gnat_value PATH) \
install || die "make install failed"
#
# Makefile does not seem to accept much more than bindir, so the rest we
# will move manually
local Gnat_Libdir=$(get_gnat_value ADA_OBJECTS_PATH)
local Gnat_Incdir=$(get_gnat_value ADA_INCLUDE_PATH)
mkdir -p "${DN}/${Gnat_Libdir}"
mv "${DN}/lib/garlic"/*.ali "${DN}/lib/garlic"/libgarlic.a "${DN}/${Gnat_Libdir}"
mkdir -p "${DN}/${Gnat_Incdir}"
mv "${DN}/lib/garlic"/*.ad? "${DN}/${Gnat_Incdir}"
rm -rf "${DN}/lib"
# remove files already provided by compiler
pushd "${DN}"
for fn in "${Gnat_Libdir:1}"/*.ali "${Gnat_Incdir:1}"/*.ad?; do
# Gnat_Lib/Incdir are global, need to remove leading /
if [[ -e /${fn} ]]; then
rm -f ${fn}
fi
done
popd
}
src_install ()
{
# library is installed into the corresponding gnat, no extra env setting
# necessary
echo "" > ${LibEnv}
gnat_src_install
# clean empty dirs
rm -rf "${D}"/usr/share/gnat/ "${D}"/usr/lib/ada/
# move prepared stuff over
cp -rp "${DN}"/* "${D}"
dodoc README NEWS
insinto /usr/share/doc/${PF}
doins -r Examples/
}
pkg_postinst() {
echo
elog "GLADE has been installed at the gnat compiler location, expanding System Library."
elog "No further configuration is necessary. Enjoy."
echo
}

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>ada@gentoo.org</email>
<name>Gentoo Resources for Ada</name>
</maintainer>
</pkgmetadata>

@ -0,0 +1 @@
DIST kdb-3.0.0.tar.xz 478500 SHA256 b7dcc4f90a6adf069faa725bb2182639b59ff4f570f7fd1b790c3012c68913a0 SHA512 68fbb9e13c3bd702f398ae554d9b436973aab29d9ce71fb350b962cc9ab9bfdf096e718d46d1b8ea69f265ee8e7094df9923aebfaa1609fda45d54bd9cf0723e WHIRLPOOL bbc471b5818f3b28f1aafd636996e4c4d6460541557dc3d5b2231e0c1dff622b4b69834e432d226f3aaa411e9c0d2ad30f1f1a2b2bc3976bfde239d823f1a456

@ -0,0 +1,42 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit kde5 python-any-r1
DESCRIPTION="Database connectivity and creation framework for various vendors"
[[ ${KDE_BUILD_TYPE} != live ]] && SRC_URI="mirror://kde/stable/${PN}/src/${P}.tar.xz"
LICENSE="LGPL-2+"
KEYWORDS="~amd64 ~x86"
IUSE="mysql postgres sqlite"
RDEPEND="
$(add_frameworks_dep kcoreaddons)
$(add_qt_dep qtgui)
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
dev-libs/icu:=
mysql? ( virtual/mysql )
postgres? ( dev-db/postgresql:* )
sqlite? ( dev-db/sqlite:3 )
"
DEPEND="${RDEPEND}
${PYTHON_DEPS}
"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_find_package mysql MySQL)
$(cmake-utils_use_find_package postgres PostgreSQL)
$(cmake-utils_use_find_package sqlite Sqlite)
)
kde5_src_configure
}

@ -2,7 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>vdr@gentoo.org</email>
<name>Gentoo VDR Project</name>
<email>kde@gentoo.org</email>
<name>Gentoo KDE Project</name>
</maintainer>
</pkgmetadata>

@ -1,2 +0,0 @@
DIST mono-nat-1.1.0.tar.gz 79637 SHA256 34095f6524f9e6bebe0b696d76fbfcaba84cfe3ac04f811ba9d37fe14ba0bca1 SHA512 bc3aee9f31966c9726f94a89929a13d900aea27cb3dc57d6fa953f5eab4fdb36b00a3180c150f9fd5a7c2fd58c122e4b64b046e4f4b8f3ca4d6313298459985d WHIRLPOOL 262e2808aea33a7d45bbb6bde989bf2ad8afdd9107c6bddb0702bd889ae3af721af3b82359f6b2da8a433032898f893057804e103ac8a53822db1dee6256fc34
DIST mono.snk.bz2 785 SHA256 0cc2ca58f90773eafa8460dfb8ff4ac6238b68106eb1631348a800091a6ff3de SHA512 de64da7a9e4fa53e5a5abaee00aae05ce3560c72ad8251fd79e2ff9ffa7fb2d5e7c1a4bdb2dbc2eeeeac6450aaad8c40649ff4675ddf95365ef8604a93333224 WHIRLPOOL 05882dd5cc9e2b99b78dc882fed49547dc6b6c133616574987322623e3bd734dc74435b69a6c864f928eb087df7a1ab42910adc47a7d0e70d54178e6b319f628

@ -1,8 +0,0 @@
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${exec_prefix}/@LIBDIR@
Name: @PACKAGENAME@
Description: @DESCRIPTION@
Version: @VERSION@
Libs: @LIBS@

@ -1,42 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
inherit mono multilib
MY_PN=Mono.Nat
DESCRIPTION="Mono.Nat is a C# library used for automatic port forwarding, using either uPnP or nat-pmp"
HOMEPAGE="http://projects.qnetp.net/projects/show/mono-nat"
SRC_URI="http://projects.qnetp.net/attachments/download/76/${P}.tar.gz
mirror://gentoo/mono.snk.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND=">=dev-lang/mono-2.0.1"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_compile() {
emake -j1 ASSEMBLY_COMPILER_COMMAND="/usr/bin/gmcs -keyfile:${WORKDIR}/mono.snk"
}
src_install() {
egacinstall $(find . -name "Mono.Nat.dll")
dodir /usr/$(get_libdir)/pkgconfig
ebegin "Installing .pc file"
sed \
-e "s:@LIBDIR@:$(get_libdir):" \
-e "s:@PACKAGENAME@:${MY_PN}:" \
-e "s:@DESCRIPTION@:${DESCRIPTION}:" \
-e "s:@VERSION@:${PV}:" \
-e 's;@LIBS@;-r:${libdir}/mono/mono-nat/Mono.Nat.dll;' \
"${FILESDIR}"/${PN}.pc.in > "${D}"/usr/$(get_libdir)/pkgconfig/mono.nat.pc \
|| die "sed failed"
PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists mono.nat || die ".pc file failed to validate."
eend $?
}

@ -1,2 +0,0 @@
DIST mono.snk.bz2 785 SHA256 0cc2ca58f90773eafa8460dfb8ff4ac6238b68106eb1631348a800091a6ff3de SHA512 de64da7a9e4fa53e5a5abaee00aae05ce3560c72ad8251fd79e2ff9ffa7fb2d5e7c1a4bdb2dbc2eeeeac6450aaad8c40649ff4675ddf95365ef8604a93333224 WHIRLPOOL 05882dd5cc9e2b99b78dc882fed49547dc6b6c133616574987322623e3bd734dc74435b69a6c864f928eb087df7a1ab42910adc47a7d0e70d54178e6b319f628
DIST monotorrent-0.80.tar.gz 290837 SHA256 d9c079dc4757e637f1e81a4d8b8a153394fcbeff8dd572bb0622e3430c5a34cf SHA512 91f5559c278d5b89d43231eb545a4ba4b182e2ab1f56cc338a6db00464b8f97f2968c40a1f002d53ced30fb2199c024077157cbd853f30cd5af468c6fb5f6af2 WHIRLPOOL 234558edf10cce26dd7466c515f4fb54d6ebabdca7c79fef925ddb45d1058a88e934a5540a1ed4218e75413c4631748f8c68404c3f2e5f6097ffdfb3325c275c

@ -1,8 +0,0 @@
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${exec_prefix}/@LIBDIR@
Name: @PACKAGENAME@
Description: @DESCRIPTION@
Version: @VERSION@
Libs: @LIBS@

@ -1,49 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=2
inherit mono multilib
DESCRIPTION="Monotorrent is an open source C# bittorrent library"
HOMEPAGE="http://projects.qnetp.net/projects/show/monotorrent"
SRC_URI="http://projects.qnetp.net/attachments/download/28/${P}.tar.gz
mirror://gentoo/mono.snk.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND=">=dev-lang/mono-2.0.1"
DEPEND="${RDEPEND}
virtual/pkgconfig"
# The hack we do to get the dll installed in the GAC makes the unit-tests
# defunct.
RESTRICT="test"
src_prepare() {
sed -i \
-e "/InternalsVisibleTo/d" \
MonoTorrent/AssemblyInfo.cs* || die
}
src_compile() {
emake -j1 ASSEMBLY_COMPILER_COMMAND="/usr/bin/gmcs -keyfile:${WORKDIR}/mono.snk"
}
src_install() {
egacinstall $(find . -name "MonoTorrent.dll")
dodir /usr/$(get_libdir)/pkgconfig
ebegin "Installing .pc file"
sed \
-e "s:@LIBDIR@:$(get_libdir):" \
-e "s:@PACKAGENAME@:${PN}:" \
-e "s:@DESCRIPTION@:${DESCRIPTION}:" \
-e "s:@VERSION@:${PV}:" \
-e 's;@LIBS@;-r:${libdir}/mono/monotorrent/MonoTorrent.dll;' \
"${FILESDIR}"/${PN}.pc.in > "${D}"/usr/$(get_libdir)/pkgconfig/${PN}.pc
PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists monotorrent || die ".pc file failed to validate."
eend $?
}

@ -1,2 +0,0 @@
DIST nant-0.92-src.tar.gz 1601180 SHA256 72d4d585267ed7f03e1aa75087d96f4f8d49ee976c32d974c5ab1fef4d4f8305 SHA512 4172b208ef22af19c456802113005652ac54b41e1baad8130eb4a9321872ee55fbc50379087aeaff7188f40d178519b35f1d74fa7e799c1fbfa046c619536005 WHIRLPOOL b5389dcf693d9e1c41297d5e59ba8caba584b819c53bb7ab8dd9810fe904c155941e0613ff9123fd2b57d1462452c9083f828cb4192d22f995f7981c0a6ac131
DIST nant-0.93_pre20130131.tar.bz2 10828155 SHA256 c5f88105984dd6de886e7b7f61a1258806e5da5c1f2f0d6459bc5b97b817a9b7 SHA512 ab4fa73d979d6b8485ed4ad5d7938b7a7bf10030435955d0c5615ac27f0543edb823869f1773f3e9fcd1bdfe67a25a93af111daae4f8fadb7c64b65d87232e42 WHIRLPOOL d0a373d1c5b6e63919854aa2f863ca948800b873233bca1e686db0e82c8596608f35b07b8177caec7fe311378f8b68ca09bded8d1e3453f84e911ba9e573ad68

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>dotnet@gentoo.org</email>
<name>Gentoo Dotnet Project</name>
</maintainer>
<upstream>
<remote-id type="sourceforge">nant</remote-id>
</upstream>
</pkgmetadata>

@ -1,39 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
inherit mono multilib eutils
DESCRIPTION=".NET build tool"
HOMEPAGE="http://nant.sourceforge.net/"
SRC_URI="mirror://sourceforge/nant/${P/_/-}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
RDEPEND=">=dev-lang/mono-2.0"
DEPEND="${RDEPEND}
virtual/pkgconfig"
# This build is not parallel build friendly
MAKEOPTS="${MAKEOPTS} -j1"
S="${WORKDIR}/${P/_/-}"
src_install() {
emake prefix="${ED}/usr" install
# Fix ${ED} showing up in the nant wrapper script, as well as silencing
# warnings related to the log4net library
sed -i \
-e "s:${ED}::" \
-e "2iexport MONO_SILENT_WARNING=1" \
-e "s:${ED}::" \
"${ED}"/usr/bin/nant || die "Sed nant failed"
dodoc README.txt
}

@ -1,43 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit mono-env eutils
DESCRIPTION=".NET build tool"
HOMEPAGE="http://nant.sourceforge.net/"
SRC_URI="https://dev.gentoo.org/~pacho/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND=">=dev-lang/mono-2.0"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
# This build is not parallel build friendly
MAKEOPTS="${MAKEOPTS} -j1"
S="${WORKDIR}/${PN}"
src_compile() {
emake TARGET=mono-4.5 MCS="gmcs -sdk:4"
}
src_install() {
emake prefix="${ED}/usr" TARGET=mono-4.5 MCS="gmcs -sdk:4" install
# Fix ${ED} showing up in the nant wrapper script, as well as silencing
# warnings related to the log4net library
sed -i \
-e "s:${ED}::" \
-e "2iexport MONO_SILENT_WARNING=1" \
-e "s:${ED}::" \
"${ED}"/usr/bin/nant || die "Sed nant failed"
dodoc README.txt
}

@ -1,3 +0,0 @@
DIST pocl-0.11.tar.gz 1561743 SHA256 24bb801fb87d104b66faaa95d1890776fdeabb37ad1b12fb977281737c7f29bb SHA512 052cbac36a12a5b015779740c45b64adde5fa58a090f298b69de1df3ac9875d7bfc6dfe9f7ae95d14d974d7b44dc64e53ce6ad3a9b8e74708d546ef6e1032151 WHIRLPOOL 860a87904408eb7394e126bf5c8cab619d8f1d48a57440e9d73f585c5eaa1a70e53c5843f4ffbaa742447cd0e8ebf9c11fc0917357f6af203ecb1c3c48c0fa87
DIST pocl-0.12.tar.gz 1741325 SHA256 5160d7a59721e6a7d0fc85868381c0afceaa7c07b9956c9be1e3b51e80c29f76 SHA512 3c0d3377a866e8bc7e3e911598b8b50ce473e545586c8755ec22f5bf0e5cf55fdebb0eb3fa521521a7ea2919b1c985d04531fcdad18997250c02de852b80e9ee WHIRLPOOL c7ab4bde1d7a0baef8bf00ea6bd8dff5c4e4c893da918c8ed7fb84f7247d9ea6c5adb78fb560132e564a4a49cba3286790abce70723bfdcf603727e5c62ff972
DIST pocl-0.13.tar.gz 1901208 SHA256 a17f37d8f26819c0c8efc6de2b57f67a0c8a81514fc9cd5005434e49d67499f9 SHA512 1892a6167bb5d48acaa79de4a9a76355c624e01a3bec31599947d6972eddcfd0b7523d61a3bd08018a30e34ab5a1b225a7ca2feaa2c2f6fcf03403fb887a6c0d WHIRLPOOL 5e56bff8471750a143dc735b435f8cbc111d624f732c541843e3b230f2675a089c6db4a62cfa3a0cd478abb56ba98c7a512c10f5e8f79f84e8e582248b5edfc5

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>patrick@gentoo.org</email>
<name>Patrick Lauer</name>
</maintainer>
</pkgmetadata>

@ -1,32 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
DESCRIPTION="PortableCL: opensource implementation of the OpenCL standard"
HOMEPAGE="http://portablecl.org/"
SRC_URI="http://portablecl.org/downloads/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64"
IUSE=""
RDEPEND="dev-libs/ocl-icd
=sys-devel/llvm-3.6*
sys-apps/hwloc"
DEPEND="${RDEPEND}
virtual/pkgconfig"
pkg_pretend() {
# Needs an OpenCL 1.2 ICD, mesa and nvidia are invalid
# Maybe ati works, feel free to add/fix if you can test
if [[ $(eselect opencl show) == 'ocl-icd' ]]; then
einfo "Valid OpenCL ICD set"
else
eerror "Please use a supported ICD:"
eerror "eselect opencl set ocl-icd"
die "OpenCL ICD not set to a supported value"
fi
}

@ -1,32 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
DESCRIPTION="PortableCL: opensource implementation of the OpenCL standard"
HOMEPAGE="http://portablecl.org/"
SRC_URI="http://portablecl.org/downloads/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64"
IUSE=""
RDEPEND="dev-libs/ocl-icd
sys-devel/llvm[clang]
sys-apps/hwloc"
DEPEND="${RDEPEND}
virtual/pkgconfig"
pkg_pretend() {
# Needs an OpenCL 1.2 ICD, mesa and nvidia are invalid
# Maybe ati works, feel free to add/fix if you can test
if [[ $(eselect opencl show) == 'ocl-icd' ]]; then
einfo "Valid OpenCL ICD set"
else
eerror "Please use a supported ICD:"
eerror "eselect opencl set ocl-icd"
die "OpenCL ICD not set to a supported value"
fi
}

@ -1,39 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools
DESCRIPTION="PortableCL: opensource implementation of the OpenCL standard"
HOMEPAGE="http://portablecl.org/"
SRC_URI="http://portablecl.org/downloads/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64"
IUSE=""
RDEPEND="dev-libs/ocl-icd
>=sys-devel/llvm-3.7[clang]
sys-apps/hwloc
>=app-eselect/eselect-opencl-1.1.0-r4"
DEPEND="${RDEPEND}
virtual/pkgconfig"
pkg_pretend() {
# Needs an OpenCL 1.2 ICD, mesa and nvidia are invalid
# Maybe ati works, feel free to add/fix if you can test
if [[ $(eselect opencl show) == 'ocl-icd' ]]; then
einfo "Valid OpenCL ICD set"
else
eerror "Please use a supported ICD:"
eerror "eselect opencl set ocl-icd"
die "OpenCL ICD not set to a supported value"
fi
}
src_prepare() {
eautoreconf
}

@ -1,141 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit eutils flag-o-matic toolchain-funcs autotools multilib-minimal
DESCRIPTION="International Components for Unicode"
HOMEPAGE="http://www.icu-project.org/"
SRC_URI="http://download.icu-project.org/files/icu4c/${PV/_/}/icu4c-${PV//./_}-src.tgz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
IUSE="debug doc examples static-libs"
DEPEND="
virtual/pkgconfig
doc? (
app-doc/doxygen[dot]
)
"
S="${WORKDIR}/${PN}/source"
MULTILIB_CHOST_TOOLS=(
/usr/bin/icu-config
)
PATCHES=(
"${FILESDIR}/${PN}-58.1-remove-bashisms.patch"
)
src_prepare() {
# apply patches
default
local variable
# Disable renaming as it is stupid thing to do
sed -i \
-e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" \
common/unicode/uconfig.h || die
# Fix linking of icudata
sed -i \
-e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" \
config/mh-linux || die
# Append doxygen configuration to configure
sed -i \
-e 's:icudefs.mk:icudefs.mk Doxyfile:' \
configure.ac || die
eautoreconf
}
src_configure() {
# Use C++14
append-cxxflags -std=c++14
if tc-is-cross-compiler; then
mkdir "${WORKDIR}"/host || die
pushd "${WORKDIR}"/host >/dev/null || die
CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \
CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \
RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \
"${S}"/configure --disable-renaming --disable-debug \
--disable-samples --enable-static || die
emake
popd >/dev/null || die
fi
multilib-minimal_src_configure
}
multilib_src_configure() {
local myeconfargs=(
--disable-renaming
--disable-samples
--disable-layoutex
$(use_enable debug)
$(use_enable static-libs static)
)
multilib_is_native_abi && myeconfargs+=(
$(use_enable examples samples)
)
tc-is-cross-compiler && myeconfargs+=(
--with-cross-build="${WORKDIR}"/host
)
# icu tries to use clang by default
tc-export CC CXX
ECONF_SOURCE=${S} \
econf "${myeconfargs[@]}"
}
multilib_src_compile() {
default
if multilib_is_native_abi && use doc; then
doxygen -u Doxyfile || die
doxygen Doxyfile || die
fi
}
multilib_src_test() {
# INTLTEST_OPTS: intltest options
# -e: Exhaustive testing
# -l: Reporting of memory leaks
# -v: Increased verbosity
# IOTEST_OPTS: iotest options
# -e: Exhaustive testing
# -v: Increased verbosity
# CINTLTST_OPTS: cintltst options
# -e: Exhaustive testing
# -v: Increased verbosity
emake -j1 VERBOSE="1" check
}
multilib_src_install() {
default
if multilib_is_native_abi && use doc; then
docinto html
dodoc -r doc/html/*
fi
}
multilib_src_install_all() {
einstalldocs
docinto html
dodoc ../readme.html
}

@ -0,0 +1 @@
DIST kproperty-3.0.0.tar.xz 98484 SHA256 86cd24007d6b313a0217e4a0a7e4b594f46b3fc2d2d4aee2db1d14fdf16b0e99 SHA512 e46be69f1b3bf38b3886cb8d11588c354e320aa6ae2b67de36da7d2e09325d7f60b0b004cc44d06d4434823347e571c33a012fdba093fb46a6d3f647c1e785e3 WHIRLPOOL f5ecd1555cf92dd380c84510fcad71c03be0a5ffbe712d3fc689d265647c41875a682f7913ddfe91ff340b744f779be02bf607721b291b5e7a407e8e08209321

@ -0,0 +1,24 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit kde5
DESCRIPTION="Property editing framework with editor widget similar to Qt Designer"
[[ ${KDE_BUILD_TYPE} != live ]] && SRC_URI="mirror://kde/stable/${PN}/src/${P}.tar.xz"
LICENSE="LGPL-2+"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
$(add_frameworks_dep kconfig)
$(add_frameworks_dep kcoreaddons)
$(add_frameworks_dep kguiaddons)
$(add_frameworks_dep kwidgetsaddons)
$(add_qt_dep qtgui)
$(add_qt_dep qtwidgets)
"
RDEPEND="${DEPEND}"

@ -2,7 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>dotnet@gentoo.org</email>
<name>Gentoo Dotnet Project</name>
<email>kde@gentoo.org</email>
<name>Gentoo KDE Project</name>
</maintainer>
</pkgmetadata>

@ -0,0 +1 @@
DIST kreport-3.0.0.tar.xz 225868 SHA256 c3d8a310fd4b68bbce83370796ea2efdf93b9ce9f8cafb66e331b0db94ec2a00 SHA512 a52b168804f5d6e03aed7da568fefe93fc45499a41ce204c0a565e7110bab7924db22008c66658cb6c1cf92c3afdaf4f03cadfae5dc742e8dc3295e54b433793 WHIRLPOOL b6bdc494a74ce52dab0c2f1e2843ea2e4e5334bdee5c1e08bb4971f963da744ad969fcaad2fd91b86c013f72abb352cbebd19368a837c98168e4e8852d137a46

@ -0,0 +1,36 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python2_7 )
KDE_TEST="true"
VIRTUALX_REQUIRED="test"
inherit kde5 python-any-r1
DESCRIPTION="Framework for creation and generation of reports in multiple formats"
[[ ${KDE_BUILD_TYPE} != live ]] && SRC_URI="mirror://kde/stable/${PN}/src/${P}.tar.xz"
LICENSE="LGPL-2+"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
$(add_frameworks_dep kconfig)
$(add_frameworks_dep kcoreaddons)
$(add_frameworks_dep kguiaddons)
$(add_frameworks_dep kwidgetsaddons)
$(add_frameworks_dep kross)
$(add_qt_dep qtgui)
$(add_qt_dep qtprintsupport)
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
dev-libs/kproperty
"
DEPEND="${RDEPEND}
${PYTHON_DEPS}
"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

@ -2,7 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>dotnet@gentoo.org</email>
<name>Gentoo Dotnet Project</name>
<email>kde@gentoo.org</email>
<name>Gentoo KDE Project</name>
</maintainer>
</pkgmetadata>

@ -12,7 +12,7 @@ SRC_URI="http://download.libsodium.org/${PN}/releases/${P}.tar.gz"
LICENSE="ISC"
SLOT="0/18"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="+asm minimal static-libs +urandom cpu_flags_x86_sse4_1 cpu_flags_x86_aes"
PATCHES=( "${FILESDIR}"/${PN}-1.0.10-cpuflags.patch )

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save