parent
100823f32e
commit
53b72bd0d5
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST gopass-1.8.3.tar.gz 6374004 BLAKE2B 1f3b66e8a631d94fbbb33347009a4614f180d7bd30f3d73e98f476fc81a3f5f0aef15c80705b1b4e871f333a3366cc051eb41785082bb90420a5d34f38e35e16 SHA512 bcf8e4cdb37355ae43d0d6d21e3248d3547fb3f1892bb2e8d5d8ddc47a784f75f4f404429733ac824bd66d719fe63fef7a1d58facde65a6d1820ecf14e7bd77e
|
||||
DIST gopass-1.8.4.tar.gz 6437993 BLAKE2B f01ded172ce4d39208325628e6cf9d001e6f97c23b604fd82b55c00996e3cea5f2597bab624aa333f88ac79f53ed34bc72c6b998fbded4346b36bf4131390693 SHA512 9884ddc9ec570261d4de2b873228092e0e503f47ffa62e034959a58aa475f16427944c8fe66f17f48e2f9f23ca6ea900950996b4ad7ba1e5b42dde31701839a9
|
||||
DIST gopass-1.8.4.tar.gz 6436185 BLAKE2B ecb086717b09a4a5ea24bc4378fd54369628b0319bfe222b2ca11583eb304c84c05513b1d2ca97089152f41903d5dae24f3aa4acc5e2f6c7e948a8d918308d66 SHA512 53440ff95589f21e1ea1d8a03e3565ad6a3b35dd747ecd62f6496fbe9ba51e94e3081142dfcc094a5986828fcf4724280ee0fdebd9cdc05f0d8720aa4f1c89ae
|
||||
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/liske/${PN}.git"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/liske/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Restart daemons after library updates"
|
||||
HOMEPAGE="https://fiasko-nw.net/~thomas/tag/needrestart.html https://github.com/liske/needrestart"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2+"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-apps/sed-4.2.2
|
||||
dev-lang/perl:=
|
||||
dev-perl/libintl-perl
|
||||
dev-perl/Module-Find
|
||||
dev-perl/Module-ScanDeps
|
||||
dev-perl/Proc-ProcessTable
|
||||
dev-perl/Sort-Naturally
|
||||
dev-perl/TermReadKey
|
||||
sys-apps/init-system-helpers
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
doman man/*.1
|
||||
dodoc -r ex
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST okteta-0.25.4.tar.xz 950344 BLAKE2B 3a3daf5cdb9e349e145a22afe836c78e18972e1f984472267cd182630b8f8132e10efb49cbc9fac40768aef4dadbb678afa26eb965642f07f407030f15b71dbd SHA512 d9887a90efbad3bb2caa0d3bb12af27708b77d54a90cd0da82eace7ea6dfc2efbcea3d7dc720bf4a088a823a8ed9edf75ab1c3680aa6d99c640d5c9e4c385e16
|
||||
DIST okteta-0.25.5.tar.xz 953492 BLAKE2B ca8c40df7cf3fe40a4be6f6e2b9d1f787baa658910c3c14ced73f3f3d95c942c00ccfe559562b2e0330726723ffba8e4c7c526369453517e1fd45d3d5ce0336e SHA512 dfe45a2bc3b3fbbce8342e6282981a63a342aee47d0d90cf07449f6974ebdbac53adc7fa9f0b37a7d003370994233f002df277ecebdb6f4c03995ce50d1dbd71
|
||||
|
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_HANDBOOK="forceoptional"
|
||||
KDE_TEST="true"
|
||||
VIRTUALX_REQUIRED="test"
|
||||
inherit kde5
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
||||
SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Hex editor by KDE"
|
||||
HOMEPAGE="https://www.kde.org/applications/utilities/okteta
|
||||
https://utils.kde.org/projects/okteta"
|
||||
IUSE="crypt designer"
|
||||
|
||||
DEPEND="
|
||||
$(add_frameworks_dep kbookmarks)
|
||||
$(add_frameworks_dep kcmutils)
|
||||
$(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 kdbusaddons)
|
||||
$(add_frameworks_dep ki18n)
|
||||
$(add_frameworks_dep kiconthemes)
|
||||
$(add_frameworks_dep kio)
|
||||
$(add_frameworks_dep kjobwidgets)
|
||||
$(add_frameworks_dep knewstuff)
|
||||
$(add_frameworks_dep kparts)
|
||||
$(add_frameworks_dep kservice)
|
||||
$(add_frameworks_dep kwidgetsaddons)
|
||||
$(add_frameworks_dep kxmlgui)
|
||||
$(add_qt_dep qtdeclarative)
|
||||
$(add_qt_dep qtgui)
|
||||
$(add_qt_dep qtnetwork)
|
||||
$(add_qt_dep qtprintsupport)
|
||||
$(add_qt_dep qtscript 'scripttools')
|
||||
$(add_qt_dep qtwidgets)
|
||||
$(add_qt_dep qtxml)
|
||||
crypt? ( app-crypt/qca:2[qt5(+)] )
|
||||
designer? ( $(add_qt_dep designer) )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DOMIT_EXAMPLES=ON
|
||||
$(cmake-utils_use_find_package crypt Qca-qt5)
|
||||
-DBUILD_DESIGNERPLUGIN=$(usex designer)
|
||||
)
|
||||
|
||||
kde5_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local myctestargs=( -j1 )
|
||||
|
||||
kde5_src_test
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="A note taking perl program"
|
||||
HOMEPAGE="https://www.daemon.de/NOTE"
|
||||
SRC_URI="https://www.daemon.de/idisk/Apps/note/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="crypt dbm general mysql text"
|
||||
|
||||
DEPEND="dev-perl/TermReadKey
|
||||
dev-perl/Term-ReadLine-Perl
|
||||
virtual/perl-Storable
|
||||
dev-perl/Config-General
|
||||
crypt? ( dev-perl/Crypt-CBC
|
||||
dev-perl/Crypt-Blowfish
|
||||
dev-perl/Crypt-DES )
|
||||
mysql? ( dev-perl/DBD-mysql )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
# extraneous README that gets installed into the perl module
|
||||
PERL_RM_FILES=( NOTEDB/README )
|
||||
|
||||
src_prepare() {
|
||||
# Supressing file not needed
|
||||
local v
|
||||
for v in mysql text dbm general; do
|
||||
if ! use ${v}; then
|
||||
PERL_RM_FILES+=( NOTEDB/${v}.pm )
|
||||
fi
|
||||
done
|
||||
perl-module_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
perl-module_src_install
|
||||
|
||||
# Adding some basic utitily for testing note
|
||||
exeinto /usr/share/${PN}
|
||||
doexe bin/stresstest.sh
|
||||
|
||||
# Adding some help for mysql backend driver
|
||||
if use mysql; then
|
||||
insinto /usr/share/${PN}/mysql
|
||||
exeinto /usr/share/${PN}/mysql
|
||||
doins mysql/{README,sql,permissions}
|
||||
doexe mysql/install.sh
|
||||
fi
|
||||
|
||||
# Adding a sample configuration file
|
||||
insinto /etc
|
||||
doins config/noterc
|
||||
|
||||
dodoc UPGRADE VERSION
|
||||
}
|
Binary file not shown.
@ -0,0 +1,139 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit autotools desktop eutils linux-info
|
||||
|
||||
HOMEPAGE="http://www.gnokii.org/"
|
||||
if [[ $PV == *9999 ]]; then
|
||||
EGIT_REPO_URI="
|
||||
git://git.savannah.nongnu.org/${PN}.git
|
||||
http://git.savannah.gnu.org/r/${PN}.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="http://www.gnokii.org/download/${PN}/${P}.tar.bz2"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
fi
|
||||
DESCRIPTION="User space driver and tools for use with mobile phones"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="bluetooth debug ical irda mysql nls +pcsc-lite postgres sms usb X"
|
||||
|
||||
RDEPEND="
|
||||
!app-mobilephone/smstools
|
||||
bluetooth? ( kernel_linux? ( net-wireless/bluez ) )
|
||||
ical? ( dev-libs/libical:= )
|
||||
pcsc-lite? ( sys-apps/pcsc-lite )
|
||||
sms? (
|
||||
dev-libs/glib:2
|
||||
postgres? ( dev-db/postgresql:* )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
)
|
||||
usb? ( virtual/libusb:0 )
|
||||
X? ( x11-libs/gtk+:2 )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/intltool
|
||||
irda? ( virtual/os-headers )
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
CONFIG_CHECK="~UNIX98_PTYS"
|
||||
|
||||
S="${WORKDIR}/${PN}-${PV%.1}"
|
||||
|
||||
# Supported languages and translated documentation
|
||||
# Be sure all languages are prefixed with a single space!
|
||||
MY_AVAILABLE_LINGUAS=" cs de et fi fr it nl pl pt sk sl sv zh_CN"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-fix_xgnokii_inclusion.patch
|
||||
"${FILESDIR}"/${P}-gcc5.patch
|
||||
"${FILESDIR}"/${P}-gcc7.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
[[ $PV == *9999 ]] && \
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-icon.patch
|
||||
"${FILESDIR}"/${P}-translations.patch
|
||||
)
|
||||
|
||||
sed -i -e "s:/usr/local:${EPREFIX}/usr:" Docs/sample/gnokiirc || die
|
||||
|
||||
default
|
||||
mv configure.{in,ac} || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-linguas ${MY_AVAILABLE_LINGUAS}
|
||||
|
||||
local config_xdebug
|
||||
if use X && use debug; then
|
||||
config_xdebug="--enable-xdebug"
|
||||
else
|
||||
config_xdebug="--disable-xdebug"
|
||||
fi
|
||||
|
||||
econf \
|
||||
--disable-static \
|
||||
--enable-security \
|
||||
--disable-unix98test \
|
||||
$(use_enable bluetooth) \
|
||||
${config_xdebug} \
|
||||
$(use_enable debug fulldebug) \
|
||||
$(use_enable debug rlpdebug) \
|
||||
$(use_enable ical libical) \
|
||||
$(use_enable irda) \
|
||||
$(use_enable mysql) \
|
||||
$(use_enable nls) \
|
||||
$(use_enable pcsc-lite libpcsclite) \
|
||||
$(use_enable postgres) \
|
||||
$(use_enable sms smsd) \
|
||||
$(use_enable usb libusb) \
|
||||
$(use_with X x)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo common/phones/fake.c >> po/POTFILES.in || die
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# package provides .pc files
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
|
||||
insinto /etc
|
||||
doins Docs/sample/gnokiirc
|
||||
|
||||
# only one file needs suid root to make a pseudo device
|
||||
fperms 4755 /usr/sbin/mgnokiidev
|
||||
|
||||
use X && newicon Docs/sample/logo/gnokii.xpm xgnokii.xpm
|
||||
|
||||
if use sms; then
|
||||
cd smsd || die
|
||||
|
||||
docinto smsd
|
||||
use mysql && dodoc sms.tables.mysql.sql README.MySQL
|
||||
use postgres && dodoc sms.tables.pq.sql
|
||||
dodoc README ChangeLog README.Tru64 action
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Make sure the user that runs gnokii has read/write access to the device"
|
||||
elog "which your phone is connected to."
|
||||
elog "The simple way of doing that is to add your user to the uucp group."
|
||||
if [[ $PV == *9999 ]]; then
|
||||
elog "This is the GIT version of ${PN}. It is experimental but may have important bug fixes."
|
||||
elog "You can keep track of the most recent commits at:"
|
||||
elog " http://git.savannah.gnu.org/cgit/gnokii.git/"
|
||||
elog "Whenever there is a change you are interested in, you can re-emerge ${P}."
|
||||
fi
|
||||
}
|
@ -0,0 +1,128 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
WANT_AUTOMAKE=none
|
||||
|
||||
inherit autotools flag-o-matic ssl-cert user
|
||||
|
||||
DESCRIPTION="Powerful SMS and WAP gateway"
|
||||
HOMEPAGE="http://www.kannel.org/"
|
||||
SRC_URI="http://www.kannel.org/download/${PV}/gateway-${PV}.tar.gz"
|
||||
|
||||
LICENSE="Apache-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug doc mysql libressl pam pcre postgres sqlite ssl"
|
||||
|
||||
RESTRICT="test" # some tests fail with "address already in use"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/e2fsprogs-libs
|
||||
dev-libs/libxml2:2
|
||||
dev-lang/perl
|
||||
sys-libs/zlib
|
||||
ssl? (
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
!libressl? ( dev-libs/openssl:0= ) )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
postgres? ( dev-db/postgresql:=[server] )
|
||||
pcre? ( dev-libs/libpcre:3 )
|
||||
pam? ( virtual/pam )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/bison-2.2
|
||||
doc? ( media-gfx/transfig
|
||||
app-text/jadetex
|
||||
app-text/docbook-dsssl-stylesheets
|
||||
app-text/docbook-sgml-dtd:3.1 )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/gateway-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.5.0-custom-wap-ports.patch"
|
||||
"${FILESDIR}/${PN}-1.4.3-autotools.patch"
|
||||
"${FILESDIR}/${PN}-1.4.3-external-libuuid.patch"
|
||||
"${FILESDIR}/${PN}-1.5.0-initgroups.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup kannel
|
||||
enewuser kannel -1 -1 /var/log/kannel kannel
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
#by default, use current directory for logging
|
||||
sed -i -e 's:/tmp/::' doc/examples/kannel.conf
|
||||
|
||||
mv configure.in configure.ac || die
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing # some code breaks strict aliasing
|
||||
econf \
|
||||
--enable-localtime \
|
||||
--disable-start-stop-daemon \
|
||||
--without-sqlite2 \
|
||||
$(use_enable pam) \
|
||||
$(use_enable debug debug) \
|
||||
$(use_enable pcre) \
|
||||
$(use_enable doc docs) \
|
||||
$(use_enable ssl) \
|
||||
$(use_with mysql) \
|
||||
$(use_with sqlite sqlite3) \
|
||||
$(use_with postgres pgsql)
|
||||
}
|
||||
|
||||
# phase disabled by RESTRICT
|
||||
# src_test() {
|
||||
# emake check || die "emake check failed"
|
||||
# }
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use doc; then
|
||||
emake -j1 DESTDIR="${D}" install-docs || die "emake install-docs failed"
|
||||
fi
|
||||
|
||||
diropts -g kannel -m0750
|
||||
dodir /etc/kannel
|
||||
insinto /etc/kannel
|
||||
newins doc/examples/kannel.conf kannel.conf.sample
|
||||
|
||||
local f
|
||||
for f in bearerbox smsbox wapbox; do
|
||||
newinitd "${FILESDIR}/kannel-$f.initd" kannel-$f
|
||||
done
|
||||
|
||||
diropts -g kannel -m0770
|
||||
keepdir /var/log/kannel
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use ssl; then
|
||||
elog "SSL certificate can be created by running"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
if use ssl; then
|
||||
if install_cert /etc/ssl/kannel; then
|
||||
chown kannel "${ROOT}"etc/ssl/kannel.{pem,key}
|
||||
einfo "For using this certificate, you have to add following line to your kannel.conf:"
|
||||
einfo ' ssl-client-certkey-file = "/etc/ssl/kannel.pem"'
|
||||
einfo ' ssl-server-cert-file = "/etc/ssl/kannel.crt"'
|
||||
einfo ' ssl-server-key-file = "/etc/ssl/kannel.key"'
|
||||
fi
|
||||
else
|
||||
eerror "This phase exists only for creating kannel SSL certificate"
|
||||
eerror "and ssl USE flag is disabled for this package!"
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST homebank-5.1.3.tar.gz 2686661 BLAKE2B bd43e3bc2d5d2c42e80cfc32b2beaa923b7c9110a71a703e52d45f302d16c5d8582cbb1c8463d4457b578844c357a20e7aed67c71a11d1baabf6dfec54960d3f SHA512 c95ac2871c3219d734aeb35d11e1e678efc50e166e2f8c1f05971fd341ac1598d6d672bd4b7cd7bcc206443af5305c9e1eb0557c3fcaab1ea35f4950acdef103
|
||||
DIST homebank-5.1.8.tar.gz 2745061 BLAKE2B b2e95a65f0d352fe167aa589683f3053d6b623f0240c348ea8c08f02f66b308b84873494eb7c307bbde15be28d7feb71ef966d0ae1bbb4d2cc5d22e53a68de08 SHA512 24c02b30878b920fdf8ee190fd8cfcdead1ecb971495880db8a49ca771f4cd140a2c1ff4eb09f3e6770be694480b84c5ff3b0d49568ce81c86e83b95797dbed4
|
||||
DIST homebank-5.2.2.tar.gz 2601784 BLAKE2B e0a66cebbdc9247aeba9946c4adf5b6677abb49cd93d212fc8008c44c53a21966ee4fa1291f887196fe3168de992a892d54fe82aec228a88f613b45358076dd2 SHA512 83ccf7f96b1eb9f2e5c134b151dce53790092e2ecb06f5e6a5e50057d6a32cde6cf45b9e98c07a81e7f224d33dae5d98e4693e57c413df675f63d21b418525b0
|
||||
|
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit xdg-utils gnome2-utils
|
||||
|
||||
DESCRIPTION="Free, easy, personal accounting for everyone"
|
||||
HOMEPAGE="http://homebank.free.fr/index.php"
|
||||
SRC_URI="http://homebank.free.fr/public/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+ofx"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.39
|
||||
>=net-libs/libsoup-2.26
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf
|
||||
>=x11-libs/gtk+-3.22:3
|
||||
x11-libs/pango
|
||||
ofx? ( >=dev-libs/libofx-0.8.3 )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-lang/perl-5.8.1
|
||||
dev-perl/XML-Parser
|
||||
>=dev-util/intltool-0.40.5
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog README )
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with ofx)
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
Binary file not shown.
@ -1 +1 @@
|
||||
DIST fbpdf-0_p20161202.tar.gz 7795 BLAKE2B 725fb49278ceee0e24bfbdaaa5f93cc78c448666e44ab426739be8db27ad3010911473af6766a45a569356fd322555962d9250f0d655e69594433b29c5d80325 SHA512 c122f12485b9e0055bd5b60d66a5034d20738c6a5a1a9f384ef8cb93e4c6b1275434eea884398590db2b06a746cc0ff00df29ecdc5faecc1730a022435164107
|
||||
DIST fbpdf-0_p20190202-dfe9f0067549f759cdc04f2f62b4f89cd6e1b199.tar.gz 7874 BLAKE2B 873da768b0152559536c73b7ed575c3457efe184934a38d0a9600412ac3a8616297194ab045be1d7eddb470d8d73ead4c655797fd7ba1efe6f2be9a19a5318b4 SHA512 f216a0993573e4e491845638b72ff019910f8a333ed618158e81bcb3f68619596f0354b0039c38c7619dd65c040aa599ed8923ac974717b86fb431e5c6954f3b
|
||||
|
@ -1,14 +0,0 @@
|
||||
diff --git a/fbpdf.c b/fbpdf.c
|
||||
index 6caa08f..48d12f5 100644
|
||||
--- a/fbpdf.c
|
||||
+++ b/fbpdf.c
|
||||
@@ -343,3 +343,3 @@ static void mainloop(void)
|
||||
static char *usage =
|
||||
- "usage: fbpdf [-r rotation] [-z zoom x10] [-p page] filename\n";
|
||||
+ "usage: fbpdf [-r rotation] [-z zoom x10] [-p page] filename";
|
||||
|
||||
@@ -349,3 +349,3 @@ int main(int argc, char *argv[])
|
||||
if (argc < 2) {
|
||||
- printf(usage);
|
||||
+ puts(usage);
|
||||
return 1;
|
@ -1,9 +0,0 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index f986689..374837f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -13,3 +13,3 @@ clean:
|
||||
fbpdf: fbpdf.o mupdf.o draw.o
|
||||
- $(CC) -o $@ $^ $(LDFLAGS) -lmupdf -lmupdfthird -lcrypto -lm
|
||||
+ $(CC) -o $@ $^ $(LDFLAGS) -lmupdf -lcrypto -lm
|
||||
|
@ -0,0 +1,41 @@
|
||||
From 009acf3907bf36cfaa2cb09f16199cfdbe147a0c Mon Sep 17 00:00:00 2001
|
||||
From: "S. Gilles" <sgilles@math.umd.edu>
|
||||
Date: Mon, 4 Feb 2019 09:43:45 -0500
|
||||
Subject: [PATCH] use pkg-config
|
||||
|
||||
---
|
||||
Makefile | 9 +++++----
|
||||
1 file changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -2,6 +2,7 @@ PREFIX = .
|
||||
CC = cc
|
||||
CFLAGS = -Wall -O2 -I$(PREFIX)/include
|
||||
LDFLAGS = -L$(PREFIX)/lib
|
||||
+PKG_CONFIG = pkg-config
|
||||
|
||||
all: fbpdf fbdjvu
|
||||
%.o: %.c doc.h
|
||||
@@ -11,14 +12,14 @@ clean:
|
||||
|
||||
# pdf support using mupdf
|
||||
fbpdf: fbpdf.o mupdf.o draw.o
|
||||
- $(CC) -o $@ $^ $(LDFLAGS) -lmupdf -lmupdf-third -lmupdf-pkcs7 -lmupdf-threads -lm
|
||||
+ $(CC) -o $@ $^ $(LDFLAGS) $(shell $(PKG_CONFIG) --libs mupdf) -lm
|
||||
|
||||
# djvu support
|
||||
fbdjvu: fbpdf.o djvulibre.o draw.o
|
||||
- $(CXX) -o $@ $^ $(LDFLAGS) -ldjvulibre -ljpeg -lm -lpthread
|
||||
+ $(CXX) -o $@ $^ $(LDFLAGS) $(shell $(PKG_CONFIG) --libs ddjvuapi) -ljpeg -lm -lpthread
|
||||
|
||||
# pdf support using poppler
|
||||
poppler.o: poppler.c
|
||||
- $(CXX) -c $(CFLAGS) `pkg-config --cflags poppler-cpp` $<
|
||||
+ $(CXX) -c $(CFLAGS) $(shell $(PKG_CONFIG) --cflags poppler-cpp) $<
|
||||
fbpdf2: fbpdf.o poppler.o draw.o
|
||||
- $(CXX) -o $@ $^ $(LDFLAGS) `pkg-config --libs poppler-cpp`
|
||||
+ $(CXX) -o $@ $^ $(LDFLAGS) $(shell $(PKG_CONFIG) --libs poppler-cpp)
|
||||
--
|
||||
2.20.1
|
||||
|
@ -1,2 +1 @@
|
||||
DIST kbibtex-0.8.1.tar.xz 4060484 BLAKE2B 1dd100b0c469955f273907d79765268fdefdd4ae05faa851f4c1823c41f312810f2992113cda97c1f8e19c4c3bf35e7e79c6a0bc12cde60995edbd903a9b5ae3 SHA512 73c318b1d29de98761f43de9828a48e943528f413c6c2489e916f88ef4ba1424a300bd9eddd10fa763985322248ef863cad1b8cfc681f083eb9acdabd6c6dfea
|
||||
DIST kbibtex-0.8.2.tar.xz 4065904 BLAKE2B 5b862ef48dc3e0fb2895aa2ad0c1fa8e712c5f63d0a279b33f9d41fca0262bbde1bd00423657e2714dfbacb28657e067760192adfa033f70ac5771a7188ad4cb SHA512 f15e2d1969f79f354881ccb1e41c5d6f1628c4850b3bd177cba0b74b1aab9aa61935f65ef280d242d0ef2ac816ce45b8a2e8a4ff51720a2400ec52bd555f594e
|
||||
|
@ -1,80 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_HANDBOOK="optional"
|
||||
KDE_TEST="true"
|
||||
VIRTUALX_REQUIRED="test"
|
||||
inherit kde5
|
||||
|
||||
DESCRIPTION="BibTeX editor to edit bibliographies used with LaTeX"
|
||||
HOMEPAGE="https://userbase.kde.org/KBibTeX"
|
||||
if [[ ${KDE_BUILD_TYPE} != live ]]; then
|
||||
SRC_URI="mirror://kde/stable/KBibTeX/${PV}/${P}.tar.xz"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
IUSE="webengine webkit zotero"
|
||||
|
||||
REQUIRED_USE="?? ( webengine webkit )"
|
||||
|
||||
DEPEND="
|
||||
$(add_frameworks_dep kcompletion)
|
||||
$(add_frameworks_dep kconfig)
|
||||
$(add_frameworks_dep kconfigwidgets)
|
||||
$(add_frameworks_dep kcoreaddons)
|
||||
$(add_frameworks_dep kcrash)
|
||||
$(add_frameworks_dep ki18n)
|
||||
$(add_frameworks_dep kiconthemes)
|
||||
$(add_frameworks_dep kio)
|
||||
$(add_frameworks_dep kitemviews)
|
||||
$(add_frameworks_dep kjobwidgets)
|
||||
$(add_frameworks_dep kparts)
|
||||
$(add_frameworks_dep kservice)
|
||||
$(add_frameworks_dep ktextwidgets)
|
||||
$(add_frameworks_dep kwallet)
|
||||
$(add_frameworks_dep kwidgetsaddons)
|
||||
$(add_frameworks_dep kxmlgui)
|
||||
$(add_qt_dep qtdbus)
|
||||
$(add_qt_dep qtgui)
|
||||
$(add_qt_dep qtnetwork)
|
||||
$(add_qt_dep qtwidgets)
|
||||
$(add_qt_dep qtxml)
|
||||
$(add_qt_dep qtxmlpatterns)
|
||||
app-text/poppler[qt5]
|
||||
dev-libs/icu:=
|
||||
virtual/tex-base
|
||||
webengine? ( $(add_qt_dep qtwebengine 'widgets') )
|
||||
webkit? ( $(add_qt_dep qtwebkit) )
|
||||
zotero? (
|
||||
app-crypt/qca[qt5(+)]
|
||||
dev-libs/qoauth:5
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-text/kbibtex:4
|
||||
dev-tex/bibtex2html
|
||||
x11-misc/shared-mime-info
|
||||
"
|
||||
|
||||
RESTRICT+=" test"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_find_package webengine Qt5WebEngineWidgets)
|
||||
$(cmake-utils_use_find_package webkit Qt5WebKitWidgets)
|
||||
$(cmake-utils_use_find_package zotero Qca-qt5)
|
||||
)
|
||||
|
||||
kde5_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
kde5_pkg_postinst
|
||||
|
||||
if ! has_version "kde-apps/okular:${SLOT}" ; then
|
||||
elog "For PDF or PostScript document preview support, please install kde-apps/okular:${SLOT}"
|
||||
fi
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,21 +0,0 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -1346,17 +1346,7 @@ class PyBuildExt(build_ext):
|
||||
else:
|
||||
missing.append('resource')
|
||||
|
||||
- # Sun yellow pages. Some systems have the functions in libc.
|
||||
- if (host_platform not in ['cygwin', 'atheos', 'qnx6'] and
|
||||
- find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None):
|
||||
- if (self.compiler.find_library_file(lib_dirs, 'nsl')):
|
||||
- libs = ['nsl']
|
||||
- else:
|
||||
- libs = []
|
||||
- exts.append( Extension('nis', ['nismodule.c'],
|
||||
- libraries = libs) )
|
||||
- else:
|
||||
- missing.append('nis')
|
||||
+ missing.append('nis')
|
||||
else:
|
||||
missing.extend(['nis', 'resource', 'termios'])
|
||||
|
@ -1,92 +0,0 @@
|
||||
# From https://github.com/python/cpython/pull/6215
|
||||
|
||||
# LibreSSL 2.7 introduced OpenSSL 1.1.0 API. The ssl module now detects
|
||||
# LibreSSL 2.7 and only provides API shims for OpenSSL < 1.1.0 and
|
||||
# LibreSSL < 2.7.
|
||||
|
||||
# Documentation updates and fixes for failing tests will be provided in
|
||||
# another patch set.
|
||||
|
||||
# Signed-off-by: Christian Heimes christian@python.org.
|
||||
# (cherry picked from commit 4ca0739)
|
||||
|
||||
#Co-authored-by: Christian Heimes christian@python.org
|
||||
|
||||
--- a/Modules/_ssl.c 2017-09-16 17:38:35.000000000 +0000
|
||||
+++ b/Modules/_ssl.c 2018-04-13 15:55:10.919424126 +0000
|
||||
@@ -97,6 +102,12 @@
|
||||
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
# define OPENSSL_VERSION_1_1 1
|
||||
+# define PY_OPENSSL_1_1_API 1
|
||||
+#endif
|
||||
+
|
||||
+/* LibreSSL 2.7.0 provides necessary OpenSSL 1.1.0 APIs */
|
||||
+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x2070000fL
|
||||
+# define PY_OPENSSL_1_1_API 1
|
||||
#endif
|
||||
|
||||
/* Openssl comes with TLSv1.1 and TLSv1.2 between 1.0.0h and 1.0.1
|
||||
@@ -118,24 +129,44 @@
|
||||
#endif
|
||||
|
||||
/* ALPN added in OpenSSL 1.0.2 */
|
||||
-#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(OPENSSL_NO_TLSEXT)
|
||||
-# define HAVE_ALPN
|
||||
+#ifdef TLSEXT_TYPE_application_layer_protocol_negotiation
|
||||
+# define HAVE_ALPN 1
|
||||
+#else
|
||||
+# define HAVE_ALPN 0
|
||||
+#endif
|
||||
+
|
||||
+/* We cannot rely on OPENSSL_NO_NEXTPROTONEG because LibreSSL 2.6.1 dropped
|
||||
+ * NPN support but did not set OPENSSL_NO_NEXTPROTONEG for compatibility
|
||||
+ * reasons. The check for TLSEXT_TYPE_next_proto_neg works with
|
||||
+ * OpenSSL 1.0.1+ and LibreSSL.
|
||||
+ * OpenSSL 1.1.1-pre1 dropped NPN but still has TLSEXT_TYPE_next_proto_neg.
|
||||
+ */
|
||||
+#ifdef OPENSSL_NO_NEXTPROTONEG
|
||||
+# define HAVE_NPN 0
|
||||
+#elif (OPENSSL_VERSION_NUMBER >= 0x10101000L) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
+# define HAVE_NPN 0
|
||||
+#elif defined(TLSEXT_TYPE_next_proto_neg)
|
||||
+# define HAVE_NPN 1
|
||||
+#else
|
||||
+# define HAVE_NPN 0
|
||||
#endif
|
||||
|
||||
#ifndef INVALID_SOCKET /* MS defines this */
|
||||
#define INVALID_SOCKET (-1)
|
||||
#endif
|
||||
|
||||
-#ifdef OPENSSL_VERSION_1_1
|
||||
-/* OpenSSL 1.1.0+ */
|
||||
-#ifndef OPENSSL_NO_SSL2
|
||||
-#define OPENSSL_NO_SSL2
|
||||
-#endif
|
||||
-#else /* OpenSSL < 1.1.0 */
|
||||
-#if defined(WITH_THREAD)
|
||||
+/* OpenSSL 1.0.2 and LibreSSL needs extra code for locking */
|
||||
+#if !defined(OPENSSL_VERSION_1_1) && defined(WITH_THREAD)
|
||||
#define HAVE_OPENSSL_CRYPTO_LOCK
|
||||
#endif
|
||||
|
||||
+#if defined(OPENSSL_VERSION_1_1) && !defined(OPENSSL_NO_SSL2)
|
||||
+#define OPENSSL_NO_SSL2
|
||||
+#endif
|
||||
+
|
||||
+#ifndef PY_OPENSSL_1_1_API
|
||||
+/* OpenSSL 1.1 API shims for OpenSSL < 1.1.0 and LibreSSL < 2.7.0 */
|
||||
+
|
||||
#define TLS_method SSLv23_method
|
||||
|
||||
static int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne)
|
||||
@@ -178,7 +209,7 @@
|
||||
{
|
||||
return store->param;
|
||||
}
|
||||
-#endif /* OpenSSL < 1.1.0 or LibreSSL */
|
||||
+#endif /* OpenSSL < 1.1.0 or LibreSSL < 2.7.0 */
|
||||
|
||||
|
||||
enum py_ssl_error {
|
Binary file not shown.
Binary file not shown.
@ -1,10 +0,0 @@
|
||||
diff -ur cairocffi-0.5.3.orig/docs/conf.py cairocffi-0.5.3/docs/conf.py
|
||||
--- docs/conf.py 2013-05-24 10:33:32.000000000 +0800
|
||||
+++ docs/conf.py 2014-04-08 16:09:39.648229837 +0800
|
||||
@@ -14,6 +14,3 @@
|
||||
exclude_patterns = ['_build']
|
||||
autodoc_member_order = 'bysource'
|
||||
autodoc_default_flags = ['members']
|
||||
-intersphinx_mapping = {
|
||||
- 'http://docs.python.org/': None,
|
||||
- 'http://cairographics.org/documentation/pycairo/2/': None}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST rrdtool-1.6.0.tar.gz 2186538 BLAKE2B b56ef79b9d45a65cacd7c1d8da2158dcaaff3ebc2ffc0640081cdc2fa3ac643be1ce48a2cac60427a836dc3e457ddb042c95533d0ffbcdefa2978f5659150391 SHA512 45a8f16a2bda9d497c5f39de80236adb7a5bd054a14755c4d130f21cd6430bd0a76caef9632994be56fd1ea2364eb218687ea8ebf945a71ca411221c248f3ebd
|
||||
DIST rrdtool-1.7.0.tar.gz 2849994 BLAKE2B f7a91fa661728850af55356a69b61ea1d4343c79579823e025e0a0757d1dab0d2cda6387197ece20e07f33a657743350cadfaf6504500f13be472d18e8826a3f SHA512 36d979561601135d74622eaf183701de15cba5e25118f7a308926a695ba84ecb33c3d16511bf4bc80cff055853e2eb85065bc4ed8aef19fc0277c6430ecd319f
|
||||
DIST rrdtool-1.7.1.tar.gz 2881346 BLAKE2B e538c6ba3fb6726f0515ed655aa8d5e184f6d3066bb32e981b3254e41c53e29529698da5ef73f8365391180c76d15808d1d727a0834b8025893b01c3b9af8f46 SHA512 ee5c9ff234493442ccd9bfc7031700483011de3e05c01e026509b699cb0d7d3e286e2046357c5fff5807f3e709043c8f218b48b43f8b126a23e228a3927d7b14
|
||||
|
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby23 ruby24 ruby25 ruby26"
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
inherit ruby-ng
|
||||
|
||||
MY_P=${P/-bindings}
|
||||
MY_P=${MY_P/_/-}
|
||||
|
||||
DESCRIPTION="Ruby bindings for rrdtool"
|
||||
HOMEPAGE="https://oss.oetiker.ch/rrdtool/"
|
||||
SRC_URI="${HOMEPAGE}pub/${MY_P}.tar.gz"
|
||||
RUBY_S="$MY_P"/bindings/ruby
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||
IUSE="graph test"
|
||||
REQUIRED_USE="test? ( graph )"
|
||||
|
||||
# Block on older versions of rrdtool that install the bindings themselves.
|
||||
# requires rrd_xport which requires rrd_graph
|
||||
RDEPEND="
|
||||
~net-analyzer/rrdtool-${PV}[graph=]
|
||||
"
|
||||
DEPEND="
|
||||
test? ( ~net-analyzer/rrdtool-${PV}[graph] )
|
||||
"
|
||||
|
||||
RUBY_PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.4.8-graph-ruby.patch
|
||||
)
|
||||
|
||||
each_ruby_configure() {
|
||||
rm ../../src/rrd_config.h || die
|
||||
touch ../../src/rrd_config.h || die
|
||||
|
||||
${RUBY} extconf.rb \
|
||||
--with-cflags="${CFLAGS} $(usex graph -DHAVE_RRD_GRAPH -UHAVE_RRD_GRAPH)" || die
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
emake V=1 ABS_TOP_SRCDIR="${PWD}/../.."
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
if use graph; then
|
||||
${RUBY} -I. test.rb || die
|
||||
fi
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
dodoc CHANGES README
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
DESTDIR=${D} emake install
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,268 +0,0 @@
|
||||
Index: umoria/source/main.c
|
||||
===================================================================
|
||||
--- umoria.orig/source/main.c
|
||||
+++ umoria/source/main.c
|
||||
@@ -88,6 +88,7 @@
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
+#ifndef __FreeBSD__
|
||||
#ifndef VMS
|
||||
#ifndef MAC
|
||||
#ifndef GEMDOS
|
||||
@@ -98,6 +99,9 @@ long time();
|
||||
char *getenv();
|
||||
#endif
|
||||
#endif
|
||||
+#else
|
||||
+#include <stdlib.h>
|
||||
+#endif
|
||||
|
||||
#ifndef MAC
|
||||
#ifndef AMIGA
|
||||
@@ -360,7 +364,7 @@ char *argv[];
|
||||
else
|
||||
{ /* Create character */
|
||||
create_character();
|
||||
-#ifdef MAC
|
||||
+#if defined(MAC) || defined(__FreeBSD__)
|
||||
birth_date = time ((time_t *)0);
|
||||
#else
|
||||
birth_date = time ((long *)0);
|
||||
Index: umoria/source/death.c
|
||||
===================================================================
|
||||
--- umoria.orig/source/death.c
|
||||
+++ umoria/source/death.c
|
||||
@@ -123,6 +123,7 @@ static void kingly(void);
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
+#ifndef __FreeBSD__
|
||||
#ifndef VMS
|
||||
#ifndef MAC
|
||||
#if !defined(ATARIST_MWC) && !defined(AMIGA)
|
||||
@@ -130,18 +131,19 @@ long time();
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
static void date(day)
|
||||
char *day;
|
||||
{
|
||||
register char *tmp;
|
||||
-#ifdef MAC
|
||||
+#if defined(MAC) || defined(__FreeBSD__)
|
||||
time_t clockvar;
|
||||
#else
|
||||
long clockvar;
|
||||
#endif
|
||||
|
||||
-#ifdef MAC
|
||||
+#if defined(MAC) || defined(__FreeBSD__)
|
||||
clockvar = time((time_t *) 0);
|
||||
#else
|
||||
clockvar = time((long *) 0);
|
||||
Index: umoria/source/io.c
|
||||
===================================================================
|
||||
--- umoria.orig/source/io.c
|
||||
+++ umoria/source/io.c
|
||||
@@ -13,6 +13,11 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <sys/ioctl_compat.h>
|
||||
+#include <time.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef HPUX
|
||||
#include <sys/bsdtty.h>
|
||||
#endif
|
||||
@@ -245,7 +250,9 @@ int suspend()
|
||||
struct ltchars lcbuf;
|
||||
struct tchars cbuf;
|
||||
int lbuf;
|
||||
+#ifndef __FreeBSD__
|
||||
long time();
|
||||
+#endif
|
||||
|
||||
py.misc.male |= 2;
|
||||
(void) ioctl(0, TIOCGETP, (char *)&tbuf);
|
||||
@@ -313,7 +320,7 @@ void init_curses()
|
||||
#endif
|
||||
|
||||
/* PC curses returns ERR */
|
||||
-#if defined(USG) && !defined(PC_CURSES) && !defined(AMIGA)
|
||||
+#if (defined(USG) && !defined(PC_CURSES) && !defined(AMIGA)) || defined(__FreeBSD__)
|
||||
if (initscr() == NULL)
|
||||
#else
|
||||
if (initscr() == ERR)
|
||||
@@ -331,7 +338,7 @@ void init_curses()
|
||||
#if defined(atarist) && defined(__GNUC__)
|
||||
(void) signal (SIGTSTP, (__Sigfunc)suspend);
|
||||
#else
|
||||
-#ifdef __386BSD__
|
||||
+#if defined(__386BSD__) || defined(__FreeBSD__)
|
||||
(void) signal (SIGTSTP, (sig_t)suspend);
|
||||
#else
|
||||
(void) signal (SIGTSTP, suspend);
|
||||
@@ -757,7 +764,7 @@ void shell_out()
|
||||
msg_print("Fork failed. Try again.");
|
||||
return;
|
||||
}
|
||||
-#if defined(USG) || defined(__386BSD__)
|
||||
+#if defined(USG) || defined(__386BSD__) || defined(__FreeBSD__)
|
||||
(void) wait((int *) 0);
|
||||
#else
|
||||
(void) wait((union wait *) 0);
|
||||
Index: umoria/source/misc1.c
|
||||
===================================================================
|
||||
--- umoria.orig/source/misc1.c
|
||||
+++ umoria/source/misc1.c
|
||||
@@ -28,7 +28,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-#if !defined(ATARIST_MWC) && !defined(MAC) && !defined(VMS) && !defined(AMIGA)
|
||||
+#if !defined(ATARIST_MWC) && !defined(MAC) && !defined(VMS) && !defined(AMIGA) && !defined(__FreeBSD__)
|
||||
long time();
|
||||
#endif
|
||||
struct tm *localtime();
|
||||
@@ -45,7 +45,7 @@ int32u seed;
|
||||
register int32u clock_var;
|
||||
|
||||
if (seed == 0)
|
||||
-#ifdef MAC
|
||||
+#if defined(MAC) || defined(__FreeBSD__)
|
||||
clock_var = time((time_t *)0);
|
||||
#else
|
||||
clock_var = time((long *)0);
|
||||
@@ -89,10 +89,14 @@ void reset_seed()
|
||||
int check_time()
|
||||
{
|
||||
#ifdef MORIA_HOU
|
||||
+#if defined(MAC) || defined(__FreeBSD__)
|
||||
+ time_t clock_var;
|
||||
+#else
|
||||
long clock_var;
|
||||
+#endif
|
||||
register struct tm *tp;
|
||||
|
||||
-#ifdef MAC
|
||||
+#if defined(MAC) || defined(__FreeBSD__)
|
||||
clock_var = time((time_t *)0);
|
||||
#else
|
||||
clock_var = time((long *)0);
|
||||
Index: umoria/source/save.c
|
||||
===================================================================
|
||||
--- umoria.orig/source/save.c
|
||||
+++ umoria/source/save.c
|
||||
@@ -102,7 +102,7 @@ static void rd_monster();
|
||||
#endif
|
||||
|
||||
#if !defined(ATARIST_MWC)
|
||||
-#ifdef MAC
|
||||
+#if defined(MAC) || defined(__FreeBSD__)
|
||||
#include <time.h>
|
||||
#else
|
||||
long time();
|
||||
@@ -331,7 +331,7 @@ static int sv_write()
|
||||
}
|
||||
|
||||
/* save the current time in the savefile */
|
||||
-#ifdef MAC
|
||||
+#if defined(MAC) || defined(__FreeBSD__)
|
||||
l = time((time_t *)0);
|
||||
#else
|
||||
l = time((long *)0);
|
||||
@@ -1029,7 +1029,7 @@ int *generate;
|
||||
|| (version_min == 2 && patch_level >= 2))
|
||||
rd_long ((int32u *)&birth_date);
|
||||
else
|
||||
-#ifdef MAC
|
||||
+#if defined(MAC) || defined(__FreeBSD__)
|
||||
birth_date = time((time_t *)0);
|
||||
#else
|
||||
birth_date = time((long *)0);
|
||||
@@ -1253,7 +1253,7 @@ scoreboard; it will not be scored again.
|
||||
/* rotate store inventory, depending on how old the save file */
|
||||
/* is foreach day old (rounded up), call store_maint */
|
||||
/* calculate age in seconds */
|
||||
-#ifdef MAC
|
||||
+#if defined(MAC) || defined(__FreeBSD__)
|
||||
start_time = time((time_t *)0);
|
||||
#else
|
||||
start_time = time((long *)0);
|
||||
Index: umoria/source/signals.c
|
||||
===================================================================
|
||||
--- umoria.orig/source/signals.c
|
||||
+++ umoria/source/signals.c
|
||||
@@ -89,7 +89,7 @@ static int signal_count = 0;
|
||||
|
||||
/*ARGSUSED*/
|
||||
#ifndef USG
|
||||
-#ifdef __386BSD__
|
||||
+#if defined(__386BSD__) || defined(__FreeBSD__)
|
||||
static void signal_handler(sig, code, scp)
|
||||
#else
|
||||
static int signal_handler(sig, code, scp)
|
||||
@@ -217,7 +217,7 @@ void signals()
|
||||
#if defined(atarist) && defined(__GNUC__)
|
||||
(void) signal(SIGTSTP, (__Sigfunc)suspend);
|
||||
#else
|
||||
-#ifdef __386BSD__
|
||||
+#if defined(__386BSD__) || defined(__FreeBSD__)
|
||||
(void) signal(SIGTSTP, (sig_t)suspend);
|
||||
#else
|
||||
(void) signal(SIGTSTP, suspend);
|
||||
Index: umoria/source/types.h
|
||||
===================================================================
|
||||
--- umoria.orig/source/types.h
|
||||
+++ umoria/source/types.h
|
||||
@@ -6,11 +6,20 @@
|
||||
not for profit purposes provided that this copyright and statement are
|
||||
included in all such copies. */
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <sys/types.h>
|
||||
+typedef u_int32_t int32u;
|
||||
+typedef int32_t int32;
|
||||
+typedef u_int16_t int16u;
|
||||
+typedef int16_t int16;
|
||||
+typedef u_int8_t int8u;
|
||||
+#else
|
||||
typedef unsigned long int32u;
|
||||
typedef long int32;
|
||||
typedef unsigned short int16u;
|
||||
typedef short int16;
|
||||
typedef unsigned char int8u;
|
||||
+#endif
|
||||
/* some machines will not accept 'signed char' as a type, and some accept it
|
||||
but still treat it like an unsigned character, let's just avoid it,
|
||||
any variable which can ever hold a negative value must be 16 or 32 bits */
|
||||
Index: umoria/unix/unix.c
|
||||
===================================================================
|
||||
--- umoria.orig/unix/unix.c
|
||||
+++ umoria/unix/unix.c
|
||||
@@ -14,6 +14,10 @@
|
||||
/* defines TRUE and FALSE */
|
||||
#include <curses.h>
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
#include "config.h"
|
||||
#include "constant.h"
|
||||
#include "types.h"
|
||||
@@ -276,7 +280,9 @@ int getuid();
|
||||
void user_name(buf)
|
||||
char *buf;
|
||||
{
|
||||
+#ifndef __FreeBSD__
|
||||
extern char *getlogin();
|
||||
+#endif
|
||||
struct passwd *pwline;
|
||||
register char *p;
|
||||
|
@ -1,58 +0,0 @@
|
||||
--- umoria/unix/Makefile.orig 2003-12-31 14:52:58.583335976 -0500
|
||||
+++ umoria/unix/Makefile 2003-12-31 14:51:54.621059720 -0500
|
||||
@@ -3,6 +3,7 @@
|
||||
# LIBDIR must be the same directory defined in config.h
|
||||
# OWNER is who you want the game to be chown to.
|
||||
# GROUP is who you wnat the game to be chgrp to.
|
||||
+STATEDIR = /var/lib
|
||||
BINDIR = /home/zariski/grabiner/moria
|
||||
LIBDIR = /home/zariski/grabiner/moria/files
|
||||
OWNER = grabiner
|
||||
@@ -65,12 +66,11 @@
|
||||
chmod 4711 $(BINDIR)/moria
|
||||
chmod 711 $(LIBDIR)
|
||||
(cd files; cp $(LIBFILES) $(LIBDIR))
|
||||
- (cd $(LIBDIR); chmod 444 $(LIBFILES))
|
||||
- (cd $(LIBDIR); touch scores; chmod 644 scores)
|
||||
+ (cd $(STATEDIR); touch moriascores; chmod 664 moriascores; chown $(OWNER) moriascores; chgrp $(GROUP) moriascores)
|
||||
chown $(OWNER) $(BINDIR)/moria
|
||||
chgrp $(GROUP) $(BINDIR)/moria
|
||||
- (cd $(LIBDIR); chown $(OWNER) $(LIBFILES) scores)
|
||||
- (cd $(LIBDIR); chgrp $(GROUP) $(LIBFILES) scores)
|
||||
+ (cd $(LIBDIR); chown $(OWNER) $(LIBFILES))
|
||||
+ (cd $(LIBDIR); chgrp $(GROUP) $(LIBFILES))
|
||||
# If you are short on disk space, or aren't interested in debugging moria.
|
||||
# strip $(BINDIR)/moria
|
||||
|
||||
--- umoria/source/config.h.orig 2003-12-31 15:19:48.893531616 -0500
|
||||
+++ umoria/source/config.h 2003-12-31 15:21:09.584264760 -0500
|
||||
@@ -199,17 +199,18 @@
|
||||
#else
|
||||
|
||||
/* This must be unix; change MORIA_LIB as appropriate. */
|
||||
-#define MORIA_SAV "moria.save"
|
||||
-#define MORIA_LIB(xxx) "/home/math/grabiner/moria/files/xxx"
|
||||
-#define MORIA_HOU MORIA_LIB(hours)
|
||||
-#define MORIA_MOR MORIA_LIB(news)
|
||||
-#define MORIA_TOP MORIA_LIB(scores)
|
||||
-#define MORIA_HELP MORIA_LIB(roglcmds.hlp)
|
||||
-#define MORIA_ORIG_HELP MORIA_LIB(origcmds.hlp)
|
||||
-#define MORIA_WIZ_HELP MORIA_LIB(rwizcmds.hlp)
|
||||
-#define MORIA_OWIZ_HELP MORIA_LIB(owizcmds.hlp)
|
||||
-#define MORIA_WELCOME MORIA_LIB(welcome.hlp)
|
||||
-#define MORIA_VER MORIA_LIB(version.hlp)
|
||||
+#define MORIA_SAV ".moria.save"
|
||||
+#define MORIA_LIB(xxx) "GENTOO_DATADIR/" xxx
|
||||
+#define MORIA_STATE(xxx) "GENTOO_STATEDIR/" xxx
|
||||
+#define MORIA_HOU MORIA_LIB("hours")
|
||||
+#define MORIA_MOR MORIA_LIB("news")
|
||||
+#define MORIA_TOP MORIA_STATE("moriascores")
|
||||
+#define MORIA_HELP MORIA_LIB("roglcmds.hlp")
|
||||
+#define MORIA_ORIG_HELP MORIA_LIB("origcmds.hlp")
|
||||
+#define MORIA_WIZ_HELP MORIA_LIB("rwizcmds.hlp")
|
||||
+#define MORIA_OWIZ_HELP MORIA_LIB("owizcmds.hlp")
|
||||
+#define MORIA_WELCOME MORIA_LIB("welcome.hlp")
|
||||
+#define MORIA_VER MORIA_LIB("version.hlp")
|
||||
|
||||
#endif
|
||||
#endif
|
@ -1,356 +0,0 @@
|
||||
diff -Naur common-orig/Makefile umoria/unix/Makefile
|
||||
--- common-orig/Makefile 2003-12-09 10:06:19.000000000 -0500
|
||||
+++ umoria/unix/Makefile 2003-12-09 10:07:12.000000000 -0500
|
||||
@@ -14,9 +14,9 @@
|
||||
CFLAGS = -O
|
||||
|
||||
# For BSD Systems
|
||||
-CURSES = -lcurses -ltermcap
|
||||
+# CURSES = -lcurses -ltermcap
|
||||
# For SYS V Systems
|
||||
-# CURSES = -lcurses
|
||||
+CURSES = `pkg-config ncurses --libs`
|
||||
# For XENIX, some XENIX systems may need -ltinfo
|
||||
# CURSES = -ltcap -ltermcap -lx
|
||||
|
||||
diff -Naur common-orig/death.c umoria/source/death.c
|
||||
--- common-orig/death.c 2003-12-09 10:06:19.000000000 -0500
|
||||
+++ umoria/source/death.c 2003-12-09 10:06:56.000000000 -0500
|
||||
@@ -175,10 +175,12 @@
|
||||
/* The following code is provided especially for systems which -CJS-
|
||||
have no flock system call. It has never been tested. */
|
||||
|
||||
+#ifndef LOCK_EX
|
||||
#define LOCK_EX 1
|
||||
#define LOCK_SH 2
|
||||
#define LOCK_NB 4
|
||||
#define LOCK_UN 8
|
||||
+#endif
|
||||
|
||||
/* An flock HACK. LOCK_SH and LOCK_EX are not distinguished. DO NOT release
|
||||
a lock which you failed to set! ALWAYS release a lock you set! */
|
||||
diff -Naur common-orig/io.c umoria/source/io.c
|
||||
--- common-orig/io.c 2003-12-09 10:06:19.000000000 -0500
|
||||
+++ umoria/source/io.c 2003-12-09 10:06:56.000000000 -0500
|
||||
@@ -62,6 +62,7 @@
|
||||
|
||||
|
||||
#include <ctype.h>
|
||||
+#include <termios.h>
|
||||
|
||||
#if defined(SYS_V) && defined(lint)
|
||||
/* for AIX, prevent hundreds of unnecessary lint errors, must define before
|
||||
@@ -334,7 +335,9 @@
|
||||
#ifdef __386BSD__
|
||||
(void) signal (SIGTSTP, (sig_t)suspend);
|
||||
#else
|
||||
- (void) signal (SIGTSTP, suspend);
|
||||
+ /* (void) signal (SIGTSTP, suspend); */
|
||||
+ /* libc6 defaults to BSD, this expects SYSV */
|
||||
+ (void) sysv_signal (SIGTSTP, suspend);
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
diff -Naur common-orig/misc3.c umoria/source/misc3.c
|
||||
--- common-orig/misc3.c 2003-12-09 10:06:19.000000000 -0500
|
||||
+++ umoria/source/misc3.c 2003-12-09 10:06:56.000000000 -0500
|
||||
@@ -1249,8 +1249,7 @@
|
||||
{
|
||||
int i;
|
||||
register inven_type *i_ptr;
|
||||
- vtype prt2;
|
||||
- bigvtype prt1;
|
||||
+ bigvtype prt1, prt2;
|
||||
#ifdef ATARIST_MWC
|
||||
int32u holder;
|
||||
#endif
|
||||
diff -Naur common-orig/misc4.c umoria/source/misc4.c
|
||||
--- common-orig/misc4.c 2003-12-09 10:06:19.000000000 -0500
|
||||
+++ umoria/source/misc4.c 2003-12-09 10:06:56.000000000 -0500
|
||||
@@ -33,7 +33,7 @@
|
||||
void scribe_object()
|
||||
{
|
||||
int item_val, j;
|
||||
- vtype out_val, tmp_str;
|
||||
+ bigvtype out_val, tmp_str;
|
||||
|
||||
if (inven_ctr > 0 || equip_ctr > 0)
|
||||
{
|
||||
diff -Naur common-orig/moria1.c umoria/source/moria1.c
|
||||
--- common-orig/moria1.c 2003-12-09 10:06:19.000000000 -0500
|
||||
+++ umoria/source/moria1.c 2003-12-09 10:06:56.000000000 -0500
|
||||
@@ -332,8 +332,8 @@
|
||||
{
|
||||
objdes(tmp_val, &inventory[i], TRUE);
|
||||
tmp_val[lim] = 0; /* Truncate if too long. */
|
||||
- (void) sprintf(out_val[i], " %c) %s", 'a'+i, tmp_val);
|
||||
- l = strlen(out_val[i]);
|
||||
+ (void) sprintf(out_val[i], "%c) %s", 'a'+i, tmp_val);
|
||||
+ l = strlen(out_val[i]) + 2;
|
||||
if (weight)
|
||||
l += 9;
|
||||
if (l > len)
|
||||
@@ -352,9 +352,12 @@
|
||||
{
|
||||
/* don't need first two spaces if in first column */
|
||||
if (col == 0)
|
||||
- prt(&out_val[i][2], current_line, col);
|
||||
- else
|
||||
prt(out_val[i], current_line, col);
|
||||
+ else
|
||||
+ {
|
||||
+ put_buffer(" ", current_line, col);
|
||||
+ prt(out_val[i], current_line, col+2);
|
||||
+ }
|
||||
if (weight)
|
||||
{
|
||||
total_weight = inventory[i].weight*inventory[i].number;
|
||||
@@ -466,9 +469,9 @@
|
||||
}
|
||||
objdes(prt2, &inventory[i], TRUE);
|
||||
prt2[lim] = 0; /* Truncate if necessary */
|
||||
- (void) sprintf(out_val[line], " %c) %-14s: %s", line+'a',
|
||||
- prt1, prt2);
|
||||
- l = strlen(out_val[line]);
|
||||
+ (void) sprintf(out_val[line], "%c) %-14s: %s", line+'a',
|
||||
+ prt1, prt2);
|
||||
+ l = strlen(out_val[line]) + 2;
|
||||
if (weight)
|
||||
l += 9;
|
||||
if (l > len)
|
||||
@@ -488,9 +491,12 @@
|
||||
{
|
||||
/* don't need first two spaces when using whole screen */
|
||||
if (col == 0)
|
||||
- prt(&out_val[line][2], line+1, col);
|
||||
- else
|
||||
prt(out_val[line], line+1, col);
|
||||
+ else
|
||||
+ {
|
||||
+ put_buffer(" ", line+1, col);
|
||||
+ prt(out_val[line], line+1, col+2);
|
||||
+ }
|
||||
if (weight)
|
||||
{
|
||||
total_weight = i_ptr->weight*i_ptr->number;
|
||||
diff -Naur common-orig/signals.c umoria/source/signals.c
|
||||
--- common-orig/signals.c 2003-12-09 10:06:19.000000000 -0500
|
||||
+++ umoria/source/signals.c 2003-12-09 10:06:56.000000000 -0500
|
||||
@@ -113,7 +113,11 @@
|
||||
if(error_sig >= 0) /* Ignore all second signals. */
|
||||
{
|
||||
if(++signal_count > 10) /* Be safe. We will die if persistent enough. */
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(sig, SIG_DFL);
|
||||
+#else
|
||||
+ (void) sysv_signal(sig, SIG_DFL);
|
||||
+#endif
|
||||
return;
|
||||
}
|
||||
error_sig = sig;
|
||||
@@ -126,7 +126,11 @@
|
||||
)
|
||||
{
|
||||
if (death)
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(sig, SIG_IGN); /* Can't quit after death. */
|
||||
+#else
|
||||
+ (void) sysv_signal(sig, SIG_IGN); /* Can't quit after death. */
|
||||
+#endif
|
||||
else if (!character_saved && character_generated)
|
||||
{
|
||||
if (!get_check("Really commit *Suicide*?"))
|
||||
@@ -137,7 +137,11 @@
|
||||
put_qio();
|
||||
error_sig = -1;
|
||||
#ifdef USG
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(sig, signal_handler);/* Have to restore handler. */
|
||||
+#else
|
||||
+ (void) sysv_signal(sig, signal_handler);/* Have to restore handler. */
|
||||
+#endif
|
||||
#else
|
||||
(void) sigsetmask(smask);
|
||||
#endif
|
||||
@@ -179,7 +179,11 @@
|
||||
restore_term();
|
||||
#if !defined(MSDOS) && !defined(AMIGA) && !defined(ATARIST_TC)
|
||||
/* always generate a core dump */
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(sig, SIG_DFL);
|
||||
+#else
|
||||
+ (void) sysv_signal(sig, SIG_DFL);
|
||||
+#endif
|
||||
(void) kill(getpid(), sig);
|
||||
(void) sleep(5);
|
||||
#endif
|
||||
@@ -199,7 +199,11 @@
|
||||
#if defined(atarist) && defined(__GNUC__)
|
||||
(void) signal(SIGTSTP, (__Sigfunc)SIG_IGN);
|
||||
#else
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGTSTP, SIG_IGN);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGTSTP, SIG_IGN);
|
||||
+#endif
|
||||
#endif
|
||||
#ifndef USG
|
||||
mask = sigsetmask(0);
|
||||
@@ -220,7 +220,11 @@
|
||||
#ifdef __386BSD__
|
||||
(void) signal(SIGTSTP, (sig_t)suspend);
|
||||
#else
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGTSTP, suspend);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGTSTP, suspend);
|
||||
+#endif
|
||||
#endif
|
||||
#endif
|
||||
#ifndef USG
|
||||
@@ -237,7 +237,11 @@
|
||||
{
|
||||
#if !defined(ATARIST_MWC) && !defined(ATARIST_TC)
|
||||
/* No signals for Atari ST compiled with MWC or TC. */
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGINT, signal_handler);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGINT, signal_handler);
|
||||
+#endif
|
||||
|
||||
#if defined(atarist) && defined(__GNUC__)
|
||||
/* Atari ST compiled with GNUC has most signals, but we need a cast
|
||||
@@ -259,8 +259,13 @@
|
||||
|
||||
#else
|
||||
/* Everybody except the atari st. */
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGINT, signal_handler);
|
||||
(void) signal(SIGFPE, signal_handler);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGINT, signal_handler);
|
||||
+ (void) sysv_signal(SIGFPE, signal_handler);
|
||||
+#endif
|
||||
|
||||
#if defined(MSDOS)
|
||||
/* many fewer signals under MSDOS */
|
||||
@@ -278,30 +278,61 @@
|
||||
|
||||
/* Everybody except Atari, MSDOS, and Amiga. */
|
||||
/* Ignore HANGUP, and let the EOF code take care of this case. */
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGHUP, SIG_IGN);
|
||||
(void) signal(SIGQUIT, signal_handler);
|
||||
(void) signal(SIGILL, signal_handler);
|
||||
(void) signal(SIGTRAP, signal_handler);
|
||||
(void) signal(SIGIOT, signal_handler);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGHUP, SIG_IGN);
|
||||
+ (void) sysv_signal(SIGQUIT, signal_handler);
|
||||
+ (void) sysv_signal(SIGILL, signal_handler);
|
||||
+ (void) sysv_signal(SIGTRAP, signal_handler);
|
||||
+ (void) sysv_signal(SIGIOT, signal_handler);
|
||||
+#endif
|
||||
#ifdef SIGEMT /* in BSD systems */
|
||||
(void) signal(SIGEMT, signal_handler);
|
||||
#endif
|
||||
#ifdef SIGDANGER /* in SYSV systems */
|
||||
(void) signal(SIGDANGER, signal_handler);
|
||||
#endif
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGKILL, signal_handler);
|
||||
(void) signal(SIGBUS, signal_handler);
|
||||
(void) signal(SIGSEGV, signal_handler);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGKILL, signal_handler);
|
||||
+ (void) sysv_signal(SIGBUS, signal_handler);
|
||||
+ (void) sysv_signal(SIGSEGV, signal_handler);
|
||||
+#endif
|
||||
#ifdef SIGSYS
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGSYS, signal_handler);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGSYS, signal_handler);
|
||||
+#endif
|
||||
#endif
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGTERM, signal_handler);
|
||||
(void) signal(SIGPIPE, signal_handler);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGTERM, signal_handler);
|
||||
+ (void) sysv_signal(SIGPIPE, signal_handler);
|
||||
+#endif
|
||||
#ifdef SIGXCPU /* BSD */
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGXCPU, signal_handler);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGXCPU, signal_handler);
|
||||
+#endif
|
||||
#endif
|
||||
#ifdef SIGPWR /* SYSV */
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGPWR, signal_handler);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGPWR, signal_handler);
|
||||
+#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
@@ -314,7 +314,11 @@
|
||||
#if !defined(ATARIST_MWC)
|
||||
(void) signal(SIGINT, SIG_IGN);
|
||||
#ifdef SIGQUIT
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGQUIT, SIG_IGN);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGQUIT, SIG_IGN);
|
||||
+#endif
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
@@ -324,7 +324,11 @@
|
||||
#if !defined(ATARIST_MWC)
|
||||
(void) signal(SIGINT, SIG_DFL);
|
||||
#ifdef SIGQUIT
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGQUIT, SIG_DFL);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGQUIT, SIG_DFL);
|
||||
+#endif
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
@@ -335,13 +335,21 @@
|
||||
#if defined(atarist) && defined(__GNUC__)
|
||||
(void) signal(SIGINT, (__Sigfunc)signal_handler);
|
||||
#else
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGINT, signal_handler);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGINT, signal_handler);
|
||||
+#endif
|
||||
#endif
|
||||
#ifdef SIGQUIT
|
||||
#if defined(atarist) && defined(__GNUC__)
|
||||
(void) signal(SIGQUIT, (__Sigfunc)signal_handler);
|
||||
#else
|
||||
+#ifdef __FreeBSD__
|
||||
(void) signal(SIGQUIT, signal_handler);
|
||||
+#else
|
||||
+ (void) sysv_signal(SIGQUIT, signal_handler);
|
||||
+#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
diff -Naur common-orig/unix.c umoria/unix/unix.c
|
||||
--- common-orig/unix.c 2003-12-09 10:06:19.000000000 -0500
|
||||
+++ umoria/unix/unix.c 2003-12-09 10:06:56.000000000 -0500
|
||||
@@ -261,7 +261,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef USG
|
||||
-unsigned short getuid();
|
||||
+/* unsigned short getuid(); */
|
||||
#else
|
||||
#ifndef SECURE
|
||||
#ifdef BSD4_3
|
@ -1,30 +0,0 @@
|
||||
diff -ru umoria.orig/source/files.c umoria/source/files.c
|
||||
--- umoria.orig/source/files.c 1994-07-21 21:47:22.000000000 -0400
|
||||
+++ umoria/source/files.c 2010-05-05 14:51:44.334588483 -0400
|
||||
@@ -130,19 +130,19 @@
|
||||
if (strlen(in_line) > 3)
|
||||
{
|
||||
if (!strncmp(in_line, "SUN:", 4))
|
||||
- (void) strcpy(days[0], in_line);
|
||||
+ (void) snprintf(days[0], sizeof(days[0]), "%s", in_line);
|
||||
else if (!strncmp(in_line, "MON:", 4))
|
||||
- (void) strcpy(days[1], in_line);
|
||||
+ (void) snprintf(days[1], sizeof(days[0]), "%s", in_line);
|
||||
else if (!strncmp(in_line, "TUE:", 4))
|
||||
- (void) strcpy(days[2], in_line);
|
||||
+ (void) snprintf(days[2], sizeof(days[0]), "%s", in_line);
|
||||
else if (!strncmp(in_line, "WED:", 4))
|
||||
- (void) strcpy(days[3], in_line);
|
||||
+ (void) snprintf(days[3], sizeof(days[0]), "%s", in_line);
|
||||
else if (!strncmp(in_line, "THU:", 4))
|
||||
- (void) strcpy(days[4], in_line);
|
||||
+ (void) snprintf(days[4], sizeof(days[0]), "%s", in_line);
|
||||
else if (!strncmp(in_line, "FRI:", 4))
|
||||
- (void) strcpy(days[5], in_line);
|
||||
+ (void) snprintf(days[5], sizeof(days[0]), "%s", in_line);
|
||||
else if (!strncmp(in_line, "SAT:", 4))
|
||||
- (void) strcpy(days[6], in_line);
|
||||
+ (void) snprintf(days[6], sizeof(days[0]), "%s", in_line);
|
||||
}
|
||||
(void) fclose(file1);
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
diff -ru umoria.orig/unix/unix.c umoria/unix/unix.c
|
||||
--- umoria.orig/unix/unix.c 2014-11-01 02:45:07.375535783 -0400
|
||||
+++ umoria/unix/unix.c 2014-11-01 02:45:58.575820065 -0400
|
||||
@@ -315,7 +315,7 @@
|
||||
|
||||
user[0] = '\0';
|
||||
file++;
|
||||
- while (*file != '/' && i < sizeof(user))
|
||||
+ while (*file != '/' && i < sizeof(user) - 1)
|
||||
user[i++] = *file++;
|
||||
user[i] = '\0';
|
||||
if (i == 0)
|
@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils toolchain-funcs games
|
||||
|
||||
DESCRIPTION="Rogue-like D&D curses game similar to nethack (BUT BETTER)"
|
||||
HOMEPAGE="http://remarque.org/~grabiner/moria.html"
|
||||
SRC_URI="ftp://ftp.greyhelm.com/pub/Games/Moria/source/um${PV}.tar.Z
|
||||
http://www.funet.fi/pub/unix/games/moria/source/um${PV}.tar.Z
|
||||
http://www.piratehaven.org/~beej/moria/mirror/Games/Moria/source/um${PV}.tar.Z
|
||||
http://alge.anart.no/ftp/pub/games/RPG/moria/um${PV}.tar.Z
|
||||
ftp://kane.evendata.net/pub/${PN}-extras.tar.bz2"
|
||||
|
||||
LICENSE="Moria"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5:0"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/umoria
|
||||
|
||||
src_prepare() {
|
||||
local f
|
||||
|
||||
epatch \
|
||||
"${FILESDIR}"/${PV}-gentoo-paths.patch \
|
||||
"${FILESDIR}"/${PV}-glibc.patch \
|
||||
"${FILESDIR}"/${PV}-fbsd.patch \
|
||||
"${FILESDIR}"/${PV}-hours.patch \
|
||||
"${FILESDIR}"/${PV}-warnings.patch
|
||||
|
||||
for f in source/* unix/* ; do
|
||||
ln -s ${f} $(basename ${f})
|
||||
done
|
||||
|
||||
sed -i \
|
||||
-e "s:David Grabiner:root:" \
|
||||
-e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \
|
||||
-e "s:GENTOO_STATEDIR:${GAMES_STATEDIR}:" \
|
||||
config.h || die
|
||||
{
|
||||
echo "#include <stdlib.h>"
|
||||
echo "#include <stdio.h>"
|
||||
} >> config.h || die
|
||||
sed -i \
|
||||
-e "/^STATEDIR =/s:=.*:=\$(DESTDIR)${GAMES_STATEDIR}:" \
|
||||
-e "/^BINDIR = /s:=.*:=\$(DESTDIR)${GAMES_BINDIR}:" \
|
||||
-e "/^LIBDIR = /s:=.*:=\$(DESTDIR)${GAMES_DATADIR}/${PN}:" \
|
||||
-e "/^CFLAGS = /s:=.*:=${CFLAGS}:" \
|
||||
-e "/^OWNER = /s:=.*:=${GAMES_USER}:" \
|
||||
-e "/^GROUP = /s:=.*:=${GAMES_GROUP}:" \
|
||||
-e "/^CC = /s:=.*:=$(tc-getCC):" \
|
||||
-e '/^LFLAGS = /s:=.*:= $(LDFLAGS):' \
|
||||
Makefile || die
|
||||
mv doc/moria.6 "${S}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir "${GAMES_BINDIR}" "${GAMES_DATADIR}/${PN}" "${GAMES_STATEDIR}"
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
doman moria.6
|
||||
dodoc README doc/* "${WORKDIR}"/${PN}-extras/*
|
||||
|
||||
prepgamesdirs
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST kphotoalbum-5.4.2.tar.xz 11807452 BLAKE2B 45ecdb4fbe3d66770394751911201737b698d2d497bb387871755113d153ef2c01a9b7e4a101f2b465d79801d0f88f084a0d0832550591012b44c70e5b28ff7f SHA512 9a4548141c56dd6426244e646a0d2bfb2eac28797c63ae478a56d6b1c0484ce5e607abcb079e50fcbc0643f7e9a94844a9af6600748ce465b8f66781aa5e3038
|
||||
DIST kphotoalbum-5.4.tar.xz 11658792 BLAKE2B 5f91dac910cc7022ca8a20f49f286a84586bf7adaed57448c1d811c370a9fb8661469d4e8e73809990e1e1800aaaff8f53c86446d93f99fd55cdddbece01eddc SHA512 d528905f3af9d23c89c89f902abe8358f8e90c402e437bc7cdd67837649f5dcd7f7416c77cc824532f928f41e7590f6005f13c97be4d608e433aad285a6a8bba
|
||||
|
@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_HANDBOOK="forceoptional"
|
||||
inherit kde5
|
||||
|
||||
DESCRIPTION="Tool for indexing, searching, and viewing images"
|
||||
HOMEPAGE="https://www.kphotoalbum.org/"
|
||||
SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+ FDL-1.2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+kipi map +raw"
|
||||
|
||||
DEPEND="
|
||||
$(add_frameworks_dep karchive)
|
||||
$(add_frameworks_dep kcompletion)
|
||||
$(add_frameworks_dep kconfig)
|
||||
$(add_frameworks_dep kconfigwidgets)
|
||||
$(add_frameworks_dep kcoreaddons)
|
||||
$(add_frameworks_dep ki18n)
|
||||
$(add_frameworks_dep kiconthemes)
|
||||
$(add_frameworks_dep kio)
|
||||
$(add_frameworks_dep kjobwidgets)
|
||||
$(add_frameworks_dep kservice)
|
||||
$(add_frameworks_dep ktextwidgets)
|
||||
$(add_frameworks_dep kwidgetsaddons)
|
||||
$(add_frameworks_dep kxmlgui)
|
||||
$(add_qt_dep qtdbus)
|
||||
$(add_qt_dep qtgui)
|
||||
$(add_qt_dep qtnetwork)
|
||||
$(add_qt_dep qtsql 'sqlite')
|
||||
$(add_qt_dep qtwidgets)
|
||||
$(add_qt_dep qtxml)
|
||||
media-gfx/exiv2:=
|
||||
media-libs/phonon[qt5(+)]
|
||||
virtual/jpeg:0
|
||||
kipi? ( $(add_kdeapps_dep libkipi) )
|
||||
map? ( $(add_kdeapps_dep libkgeomap) )
|
||||
raw? ( $(add_kdeapps_dep libkdcraw) )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
|| ( media-video/ffmpeg media-video/mplayer )
|
||||
kipi? ( media-plugins/kipi-plugins:5 )
|
||||
!media-gfx/kphotoalbum:4
|
||||
"
|
||||
|
||||
DOCS=( ChangeLog README )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-5.4-exiv2-0.27.patch" )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_find_package kipi KF5Kipi)
|
||||
$(cmake-utils_use_find_package map KF5KGeoMap)
|
||||
$(cmake-utils_use_find_package raw KF5KDcraw)
|
||||
)
|
||||
|
||||
kde5_src_configure
|
||||
}
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue