parent
dbda3ee2c2
commit
1b4f915820
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Serves as the client interface to the Elastic Load Balancing web service"
|
||||
HOMEPAGE="http://aws.amazon.com/developertools/Amazon-EC2/2536"
|
||||
SRC_URI="mirror://sabayon/${CATEGORY}/ElasticLoadBalancing-${PV}.zip"
|
||||
|
||||
S="${WORKDIR}/ElasticLoadBalancing-${PV}"
|
||||
|
||||
LICENSE="Amazon"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
DEPEND="app-arch/unzip"
|
||||
RDEPEND="virtual/jre"
|
||||
RESTRICT="mirror"
|
||||
|
||||
src_prepare() {
|
||||
find . -name '*.cmd' -delete || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /opt/${PN}
|
||||
insinto /opt/${PN}/lib
|
||||
doins -r "${S}"/lib/*
|
||||
exeinto /opt/${PN}/bin
|
||||
doexe "${S}"/bin/*
|
||||
|
||||
dodir /etc/env.d
|
||||
cat - > "${T}"/99${PN} <<EOF
|
||||
AWS_ELB_HOME=/opt/${PN}
|
||||
PATH=/opt/${PN}/bin
|
||||
ROOTPATH=/opt/${PN}/bin
|
||||
EOF
|
||||
doenvd "${T}"/99${PN}
|
||||
|
||||
dodoc "THIRDPARTYLICENSE.TXT"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Remember to run: env-update && source /etc/profile if you plan"
|
||||
ewarn "to use these tools in a shell before logging out (or restarting"
|
||||
ewarn "your login manager)"
|
||||
elog
|
||||
elog "You need to put the following in your ~/.bashrc replacing the"
|
||||
elog "values with the full path to your AWS credentials file."
|
||||
elog
|
||||
elog " export AWS_CREDENTIAL_FILE=/path/and_filename_of_credential_file"
|
||||
elog
|
||||
elog "It should contains two lines: the first line lists the AWS Account's"
|
||||
elog "AWS Access Key ID, and the second line lists the AWS Account's"
|
||||
elog "Secret Access Key. For example:"
|
||||
elog
|
||||
elog " AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE"
|
||||
elog " AWSSecretKey=wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY"
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1 @@
|
||||
DIST v2.8.tar.gz 46420 SHA256 33b4f734335987557c68a8c57ea070ac4d23a249fa8675260f0bc28769056cc8 SHA512 2a6e5616a412039e9057a655208a7c55ed611d0deee5ba4c1d25563bb2610bcbf2b6d2534b906fd729db2eee5b3891fdb3fd3bc647f4d6aa06e2a87173b69be7 WHIRLPOOL 4f9daf45ca1a034d6476cf0b387174665d6bf15a4f36cb86e565d6b3715227bf8f7e27f6af422b1ef53c4b07a76d7b36eea0852e2db2a9032679ecc0b04bfc15
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>candrews@integralblue.com</email>
|
||||
<name>Craig Andrews</name>
|
||||
<description>Proxied maintainer; set to assignee in all bugs</description>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
</use>
|
||||
<longdescription lang="en">
|
||||
Restart daemons after library updates
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://github.com/liske/${PN}.git"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/liske/${PN}/archive/v${PV}.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="
|
||||
dev-perl/Module-Find
|
||||
dev-perl/Module-ScanDeps
|
||||
dev-perl/Proc-ProcessTable
|
||||
dev-perl/Sort-Naturally
|
||||
dev-perl/Term-ProgressBar-Simple
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
doman man/*.1
|
||||
dodoc -r ex
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://github.com/liske/${PN}.git"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/liske/${PN}/archive/v${PV}.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="
|
||||
dev-perl/Module-Find
|
||||
dev-perl/Module-ScanDeps
|
||||
dev-perl/Proc-ProcessTable
|
||||
dev-perl/Sort-Naturally
|
||||
dev-perl/Term-ProgressBar-Simple
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
doman man/*.1
|
||||
dodoc -r ex
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST passwordsafe-0.98.1_beta.tar.gz 13836527 SHA256 d44bd032ac92503b118e59c19d6d8cccae85e4abe3561f72a4ae58bffd33e2a5 SHA512 42eecb9d2f3ccfaab2dff3b4dedee3fcb97645632f7596c724dc0eeacef55d88fad7438b863990cb2964b3fdf6272aec2bb53be53bb185d9fe593eb351a459ab WHIRLPOOL 0303c5c7d092290143925ba8edf6972dfc901e27bdb6f02f2e14a3e234b8dd47eeb131be015356a2378254d6ea76ae2020c04149a9b9c65139b16c48ff78429f
|
||||
DIST passwordsafe-0.99_beta.tar.gz 13867271 SHA256 d5369fe83e44dc5a3feb850b8bfb91d42a9ca11256470a561dd91c37c952571f SHA512 338317c0a618686d646a6e2ea50887429aab08e7b6f263a03a2befcaf23e3b706147a5e36a0c5b4b73bc1c762b31407ab797795a9229370a603459236d974694 WHIRLPOOL b7620ee0156d843d1c80ce46ae098cd8920d1eb023f45f0d566e8a32fd0323dc3e4cca99e9b2249969df6481af145ff50c98e4e4972590ffd41373a1fbeb1bda
|
||||
|
@ -0,0 +1,88 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
WX_GTK_VER="3.0"
|
||||
|
||||
inherit eutils flag-o-matic wxwidgets cmake-utils
|
||||
|
||||
MY_PV="${PV/_beta/BETA}"
|
||||
DESCRIPTION="Password manager with wxGTK based frontend"
|
||||
HOMEPAGE="https://pwsafe.org/ https://github.com/pwsafe/pwsafe/"
|
||||
SRC_URI="https://github.com/pwsafe/pwsafe/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="minimal test yubikey +xml"
|
||||
|
||||
RDEPEND="xml? ( dev-libs/xerces-c )
|
||||
sys-apps/util-linux
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
x11-libs/wxGTK:${WX_GTK_VER}[X]
|
||||
!minimal? ( !!app-misc/pwsafe )
|
||||
yubikey? ( sys-auth/ykpers )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
test? ( dev-cpp/gtest )"
|
||||
|
||||
S=${WORKDIR}/pwsafe-${MY_PV}
|
||||
|
||||
pkg_pretend() {
|
||||
einfo "Checking for -std=c++11 support in compiler"
|
||||
test-flags-CXX -std=c++11 > /dev/null || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# binary name pwsafe is in use by app-misc/pwsafe, we use passwordsafe
|
||||
# instead. Perform required changes in linking files
|
||||
sed -i install/desktop/pwsafe.desktop -e "s/pwsafe/${PN}/g" || die
|
||||
sed -i docs/pwsafe.1 \
|
||||
-e 's/PWSAFE/PASSWORDSAFE/' \
|
||||
-e "s/^.B pwsafe/.B ${PN}/" || die
|
||||
use test || sed -i -e '/find_package(GTest REQUIRED)/s/^/#/' \
|
||||
-e '/add_subdirectory (src\/test)/s/^/#/' CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
need-wxwidgets unicode
|
||||
|
||||
local mycmakeargs=( $(usex yubikey '' '-DNO_YUBI=ON')
|
||||
$(usex xml '' '-DNO_XML=ON') )
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd "${BUILD_DIR}" || die
|
||||
if use minimal; then
|
||||
newbin pwsafe ${PN}
|
||||
else
|
||||
dobin pwsafe
|
||||
dosym pwsafe /usr/bin/${PN}
|
||||
fi
|
||||
insinto /usr/share/locale
|
||||
doins -r src/ui/wxWidgets/I18N/mos/*
|
||||
|
||||
# The upstream Makefile builds this .zip file from html source material for
|
||||
# use by the package's internal help system. Must prevent
|
||||
# Portage from applying additional compression.
|
||||
docompress -x /usr/share/doc/${PN}/help
|
||||
insinto /usr/share/doc/${PN}/help
|
||||
doins help/*.zip
|
||||
|
||||
popd || die
|
||||
|
||||
newman docs/pwsafe.1 ${PN}.1
|
||||
|
||||
dodoc README.txt docs/{ReleaseNotes.txt,ChangeLog.txt}
|
||||
|
||||
insinto /usr/share/pwsafe/xml
|
||||
doins xml/*
|
||||
|
||||
newicon install/graphics/pwsafe.png ${PN}.png
|
||||
newmenu install/desktop/pwsafe.desktop ${PN}.desktop
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit eutils multilib autotools toolchain-funcs
|
||||
|
||||
DESCRIPTION="Package maintenance system for Debian"
|
||||
HOMEPAGE="http://packages.qa.debian.org/dpkg"
|
||||
SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="+bzip2 +lzma nls selinux test unicode +update-alternatives +zlib"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/perl-5.6.0:=
|
||||
dev-perl/TimeDate
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
zlib? ( >=sys-libs/zlib-1.1.4 )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
nls? (
|
||||
app-text/po4a
|
||||
>=sys-devel/gettext-0.18.2
|
||||
)
|
||||
test? (
|
||||
dev-perl/DateTime-Format-DateParse
|
||||
dev-perl/IO-String
|
||||
dev-perl/Test-Pod
|
||||
virtual/perl-Test-Harness
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( ChangeLog THANKS TODO )
|
||||
|
||||
src_prepare() {
|
||||
# do not expect Debian's gzip --rsyncable extension
|
||||
eapply "${FILESDIR}"/${PN}-1.17.0-gzip-rsyncable.patch
|
||||
|
||||
eapply "${FILESDIR}"/${PN}-1.17.1-flags.patch
|
||||
|
||||
eapply "${FILESDIR}"/${PN}-1.18.9-strerror.patch
|
||||
|
||||
# Force the use of the running bash for get-version (this file is never
|
||||
# installed, so no need to worry about hardcoding a temporary bash)
|
||||
sed -i -e '1c\#!'"${BASH}" get-version || die
|
||||
|
||||
if [[ ${CHOST} == mips64*-linux-gnu ]] ; then
|
||||
# Debian targets use custom full tuples. Map the default one
|
||||
# based on the ABI we're using.
|
||||
local abi
|
||||
if [[ ${ABI} == "n64" ]] ; then
|
||||
abi="mips64"
|
||||
else
|
||||
abi="mipsn32"
|
||||
fi
|
||||
printf "gnu-linux-mips64 ${abi}\ngnu-linux-mips64el ${abi}el\n" >> triplettable
|
||||
fi
|
||||
|
||||
use nls && strip-linguas -i po
|
||||
|
||||
eapply_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
$(use_enable unicode) \
|
||||
$(use_enable update-alternatives) \
|
||||
$(use_with bzip2 libbz2) \
|
||||
$(use_with lzma liblzma) \
|
||||
$(use_with selinux libselinux) \
|
||||
$(use_with zlib libz) \
|
||||
--disable-compiler-warnings \
|
||||
--disable-dselect \
|
||||
--disable-silent-rules \
|
||||
--disable-start-stop-daemon \
|
||||
--localstatedir="${EPREFIX}"/var \
|
||||
--without-libmd
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake AR=$(tc-getAR)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
keepdir /usr/$(get_libdir)/db/methods/{mnt,floppy,disk}
|
||||
keepdir /usr/$(get_libdir)/db/{alternatives,info,methods,parts,updates}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
--- a/lib/dpkg/path-remove.c
|
||||
+++ b/lib/dpkg/path-remove.c
|
||||
@@ -28,6 +28,8 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
+#include <string.h> /* strerror() */
|
||||
+
|
||||
#include <dpkg/i18n.h>
|
||||
#include <dpkg/dpkg.h>
|
||||
#include <dpkg/path.h>
|
@ -1,2 +1,3 @@
|
||||
DIST lrzip-0.614.tar.bz2 491995 SHA256 65024d69d1773f3ccf84508a481d7de128c03d1cf9750b5803aead4a24522763 SHA512 6c82d7b4cc6081fb4f102a34f3a5ecf834b3fa3d222ac9dd4f3f0615c83610c08315eae9cc98291bd5e3eb71453cf391cdad4db980012e4368d16d80f34d2bd8 WHIRLPOOL 1669d9e551786f81c3849b2bfb813422cccc21c9d00104b58d42a0470ae9b8633339ef88ead6c5956eea92ac6800ee9b259fbfb15d1b22aa45fe92db7040cf68
|
||||
DIST lrzip-0.621.tar.bz2 503286 SHA256 31c26fbee8b9b0bd413ca214862dbc0d9e6d3477f23e9839774936bf140ceb6b SHA512 be94f54c3d84c93e3c1ab7b08ca6d2a02bc343983785be4884f42521520d2babc31db3abbec4b77dc9f710d18648adcc3d24b203289d8d4728afb3ef0fb90c0a WHIRLPOOL 41bd08db70f30ff183f3e82e784a40b08070a3a728eafad50b64c7ce453ed2c379721be64d0ac0ee04e1c66b6ad528d0210977624a8c17f90775f70b83921ae7
|
||||
DIST lrzip-0.630.tar.bz2 521517 SHA256 2461f6bfa3231a98a76548741cbc64a2389e94eb5c3de152df8a118e23edd307 SHA512 fa46a2e9cb2574086d24296b7376865ac9f998724041c00e69f28d4984a6b8f7441de7d7fab2820e6cd6d6da4ead8ba66d0eb18f0381e8438db09301fb009460 WHIRLPOOL 41cfbc661d38fcb183107dedd4a03fcd740ec40adb040e79021cda97172e20ce76a83ecd1e53da0a498ccc5d3a093942f85a33ae39d87297adbbe80cf3786e3f
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Long Range ZIP or Lzma RZIP optimized for compressing large files"
|
||||
HOMEPAGE="https://github.com/ckolivas/lrzip"
|
||||
SRC_URI="http://ck.kolivas.org/apps/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND="dev-libs/lzo
|
||||
app-arch/bzip2
|
||||
sys-libs/zlib"
|
||||
DEPEND="${RDEPEND}
|
||||
x86? ( dev-lang/nasm )
|
||||
virtual/perl-Pod-Parser"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-missing-stdarg_h.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
prune_libtool_files
|
||||
}
|
@ -1,202 +0,0 @@
|
||||
#
|
||||
# BackupPC-2.1.2pl2.diff: BackupPC patch file generated
|
||||
# on Sun Jun 18 19:36:32 2006.
|
||||
#
|
||||
# This patch file should be applied to a cleanly unpacked BackupPC
|
||||
# version 2.1.2. Do not apply any old patch files; each
|
||||
# patch file accumulates all previous changes.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# # fetch BackupPC-2.1.2.tar.gz
|
||||
# # fetch BackupPC-2.1.2pl2.diff
|
||||
# tar zxvf BackupPC-2.1.2.tar.gz
|
||||
# cd BackupPC-2.1.2
|
||||
# patch -p0 < ../BackupPC-2.1.2pl2.diff
|
||||
# perl configure.pl
|
||||
#
|
||||
# ChangeLog:
|
||||
#
|
||||
# - In conf/config.pl, changed --devices to -D in $Conf{RsyncArgs}
|
||||
# and $Conf{RsyncRestoreArgs} to fix "fileListReceive failed" and
|
||||
# "Can't open .../f%2f for empty output" errors with rsync 2.6.7+.
|
||||
# Fix proposed by Justin Pessa and Vincent Ho, and confirmed by
|
||||
# Dan Niles.
|
||||
#
|
||||
# - Added patch from Michael (mna.news) to ignore "file is unchanged"
|
||||
# message from tar 1.15.x during incremental backups.
|
||||
#
|
||||
# - Fixed creation of .rsrc directories in bin/BackupPC_tarExtract
|
||||
# when used with xtar on MacOS. Reported by Samuel Bancal and
|
||||
# Matthew Radey, who helped with debugging.
|
||||
#
|
||||
# - Fixed bug in BackupPC_tarExtract for files >8GB in size whose
|
||||
# lengths are multiples of 256. Reported by Jamie Myers and
|
||||
# Marko Tukiainen, who both helped debugging the problem.
|
||||
#
|
||||
# - Fixed bug in lib/BackupPC/Xfer/RsyncFileIO.pm that caused
|
||||
# incorrected deleted attributes to be set in directories
|
||||
# where one of the files had an rsync phase 1 retry during
|
||||
# an incremental. Reported by Tony Nelson.
|
||||
#
|
||||
--- bin/BackupPC_tarExtract 2005-09-05 16:21:21.000000000 -0700
|
||||
+++ bin/BackupPC_tarExtract 2006-06-18 19:36:31.995945464 -0700
|
||||
@@ -58,7 +58,7 @@
|
||||
exit(1);
|
||||
}
|
||||
my $client = $1;
|
||||
-if ( $ARGV[1] !~ /^([\w\s\.\/\$-]+)$/ ) {
|
||||
+if ( $ARGV[1] !~ /^([\w\s.\/$(){}[\]-]+)$/ ) {
|
||||
print("$0: bad share name '$ARGV[1]'\n");
|
||||
exit(1);
|
||||
}
|
||||
@@ -101,7 +101,7 @@
|
||||
# Copyright 1998 Stephen Zander. All rights reserved.
|
||||
#
|
||||
my $tar_unpack_header
|
||||
- = 'Z100 A8 A8 A8 A12 A12 A8 A1 Z100 A6 A2 Z32 Z32 A8 A8 A155 x12';
|
||||
+ = 'Z100 A8 A8 A8 a12 A12 A8 A1 Z100 A6 A2 Z32 Z32 A8 A8 A155 x12';
|
||||
my $tar_header_length = 512;
|
||||
|
||||
my $BufSize = 1048576; # 1MB or 2^20
|
||||
@@ -251,7 +251,7 @@
|
||||
$name = $longName if ( defined($longName) );
|
||||
$linkname = $longLink if ( defined($longLink) );
|
||||
$name =~ s{^\./+}{};
|
||||
- $name =~ s{/+$}{};
|
||||
+ $name =~ s{/+\.?$}{};
|
||||
$name =~ s{//+}{/}g;
|
||||
return {
|
||||
name => $name,
|
||||
@@ -313,7 +313,7 @@
|
||||
#
|
||||
my($nRead);
|
||||
#print("Reading $f->{name}, $f->{size} bytes, type $f->{type}\n");
|
||||
- pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $file, $f);
|
||||
+ pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $f);
|
||||
my $poolWrite = BackupPC::PoolWrite->new($bpc,
|
||||
"$OutDir/$ShareName/$f->{mangleName}",
|
||||
$f->{size}, $Compress);
|
||||
@@ -351,7 +351,7 @@
|
||||
# a plain file.
|
||||
#
|
||||
$f->{size} = length($f->{linkname});
|
||||
- pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $file, $f);
|
||||
+ pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $f);
|
||||
my $poolWrite = BackupPC::PoolWrite->new($bpc,
|
||||
"$OutDir/$ShareName/$f->{mangleName}",
|
||||
$f->{size}, $Compress);
|
||||
@@ -369,7 +369,7 @@
|
||||
# contents.
|
||||
#
|
||||
$f->{size} = length($f->{linkname});
|
||||
- pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $file, $f);
|
||||
+ pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $f);
|
||||
my $poolWrite = BackupPC::PoolWrite->new($bpc,
|
||||
"$OutDir/$ShareName/$f->{mangleName}",
|
||||
$f->{size}, $Compress);
|
||||
@@ -393,7 +393,7 @@
|
||||
} else {
|
||||
$data = "$f->{devmajor},$f->{devminor}";
|
||||
}
|
||||
- pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $file, $f);
|
||||
+ pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $f);
|
||||
my $poolWrite = BackupPC::PoolWrite->new($bpc,
|
||||
"$OutDir/$ShareName/$f->{mangleName}",
|
||||
length($data), $Compress);
|
||||
@@ -487,17 +487,21 @@
|
||||
#
|
||||
sub pathCreate
|
||||
{
|
||||
- my($dir, $fullPath, $file, $f) = @_;
|
||||
+ my($dir, $fullPath, $f) = @_;
|
||||
|
||||
#
|
||||
# Get parent directory of each of $dir and $fullPath
|
||||
#
|
||||
- $dir =~ s{/[^/]*$}{};
|
||||
+ # print("pathCreate: dir = $dir, fullPath = $fullPath\n");
|
||||
+ $dir =~ s{/([^/]*)$}{};
|
||||
+ my $file = $bpc->fileNameUnmangle($1);
|
||||
$fullPath =~ s{/[^/]*$}{};
|
||||
- return if ( -d $fullPath );
|
||||
+ return if ( -d $fullPath || $file eq "" );
|
||||
+ unlink($fullPath) if ( -e $fullPath );
|
||||
mkpath($fullPath, 0, 0777);
|
||||
$Attrib{$dir} = BackupPC::Attrib->new({ compress => $Compress })
|
||||
if ( !defined($Attrib{$dir}) );
|
||||
+ # print("pathCreate: adding file = $file to dir = $dir\n");
|
||||
$Attrib{$dir}->set($file, {
|
||||
type => BPC_FTYPE_DIR,
|
||||
mode => 0755,
|
||||
--- lib/BackupPC/Lib.pm 2005-09-05 16:21:21.000000000 -0700
|
||||
+++ lib/BackupPC/Lib.pm 2006-06-18 19:36:32.035939384 -0700
|
||||
@@ -59,7 +59,7 @@
|
||||
TopDir => $topDir || '__TOPDIR__',
|
||||
BinDir => $installDir || '__INSTALLDIR__',
|
||||
LibDir => $installDir || '__INSTALLDIR__',
|
||||
- Version => '2.1.2',
|
||||
+ Version => '2.1.2pl2',
|
||||
BackupFields => [qw(
|
||||
num type startTime endTime
|
||||
nFiles size nFilesExist sizeExist nFilesNew sizeNew
|
||||
--- lib/BackupPC/Xfer/RsyncFileIO.pm 2005-09-05 16:21:21.000000000 -0700
|
||||
+++ lib/BackupPC/Xfer/RsyncFileIO.pm 2006-06-18 19:36:32.120926464 -0700
|
||||
@@ -405,6 +405,11 @@
|
||||
my($fio, $d) = @_;
|
||||
my($poolWrite);
|
||||
|
||||
+ #
|
||||
+ # Don't write attributes on 2nd phase - they're already
|
||||
+ # taken care of during the first phase.
|
||||
+ #
|
||||
+ return if ( $fio->{phase} > 0 );
|
||||
if ( !defined($d) ) {
|
||||
#
|
||||
# flush all entries (in reverse order)
|
||||
@@ -932,6 +937,7 @@
|
||||
|
||||
close($fio->{rxInFd}) if ( defined($fio->{rxInFd}) );
|
||||
unlink("$fio->{outDirSh}RStmp") if ( -f "$fio->{outDirSh}RStmp" );
|
||||
+ $fio->{phase} = $phase;
|
||||
|
||||
#
|
||||
# Check the final md4 digest
|
||||
--- lib/BackupPC/Xfer/Tar.pm 2005-09-05 16:21:21.000000000 -0700
|
||||
+++ lib/BackupPC/Xfer/Tar.pm 2006-06-18 19:36:32.110927984 -0700
|
||||
@@ -221,8 +221,13 @@
|
||||
$t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 2 );
|
||||
$t->{fileCnt}++;
|
||||
} else {
|
||||
- $t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 0 );
|
||||
- $t->{xferErrCnt}++;
|
||||
+ #
|
||||
+ # Ignore annoying log message on incremental for tar 1.15.x
|
||||
+ #
|
||||
+ if ( !/: file is unchanged; not dumped$/ ) {
|
||||
+ $t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 0 );
|
||||
+ $t->{xferErrCnt}++;
|
||||
+ }
|
||||
#
|
||||
# If tar encounters a minor error, it will exit with a non-zero
|
||||
# status. We still consider that ok. Remember if tar prints
|
||||
--- conf/config.pl 2005-09-05 16:21:22.000000000 -0700
|
||||
+++ conf/config.pl 2006-06-18 19:36:31.968949568 -0700
|
||||
@@ -1052,7 +1052,7 @@
|
||||
'--perms',
|
||||
'--owner',
|
||||
'--group',
|
||||
- '--devices',
|
||||
+ '-D',
|
||||
'--links',
|
||||
'--times',
|
||||
'--block-size=2048',
|
||||
@@ -1086,7 +1086,7 @@
|
||||
'--perms',
|
||||
'--owner',
|
||||
'--group',
|
||||
- '--devices',
|
||||
+ '-D',
|
||||
'--links',
|
||||
'--times',
|
||||
'--block-size=2048',
|
@ -1 +0,0 @@
|
||||
Please make sure to edit /etc/backuppc/config.pl to suit your needs.
|
@ -1,11 +0,0 @@
|
||||
=== modified file 'deja-dup/nautilus/CMakeLists.txt'
|
||||
--- deja-dup/nautilus/CMakeLists.txt 2013-10-11 19:57:03 +0000
|
||||
+++ deja-dup/nautilus/CMakeLists.txt 2013-11-08 03:32:53 +0000
|
||||
@@ -23,5 +23,6 @@
|
||||
OUTPUT_NAME deja-dup
|
||||
INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/libdeja"
|
||||
COMPILE_FLAGS "${GLIB_CFLAGS} ${NAUTILUS_CFLAGS} ${COMMON_CFLAGS}")
|
||||
+add_dependencies(deja-dup-nautilus deja) # needs DirHandling.c
|
||||
install(TARGETS deja-dup-nautilus DESTINATION "${NAUTILUS_EXTENSIONDIR}")
|
||||
endif()
|
||||
|
@ -1,32 +0,0 @@
|
||||
=== modified file 'cmake/DejaDupMacros.cmake'
|
||||
--- cmake/DejaDupMacros.cmake 2013-10-11 19:57:03 +0000
|
||||
+++ cmake/DejaDupMacros.cmake 2013-11-09 05:59:00 +0000
|
||||
@@ -34,19 +34,15 @@
|
||||
endmacro()
|
||||
|
||||
macro(deja_enable_option)
|
||||
- if(NOT ENABLE_${ARGV0})
|
||||
- return() # nothing to do
|
||||
- endif()
|
||||
-
|
||||
- deja_check_modules(${ARGV})
|
||||
-
|
||||
- if(NOT ${ARGV0}_FOUND)
|
||||
- if(ENABLE_${ARGV0} STREQUAL "CHECK")
|
||||
- set(ENABLE_${ARGV0} OFF)
|
||||
- else()
|
||||
- message(FATAL_ERROR "You enabled ${ARGV0}, but required dependencies could not be found")
|
||||
+ if(ENABLE_${ARGV0})
|
||||
+ deja_check_modules(${ARGV})
|
||||
+ if(NOT ${ARGV0}_FOUND)
|
||||
+ if(ENABLE_${ARGV0} STREQUAL "CHECK")
|
||||
+ set(ENABLE_${ARGV0} OFF)
|
||||
+ else()
|
||||
+ message(FATAL_ERROR "You enabled ${ARGV0}, but required dependencies could not be found")
|
||||
+ endif()
|
||||
endif()
|
||||
- return()
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
|
@ -1,16 +0,0 @@
|
||||
deja-dup/widgets/CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/deja-dup/widgets/CMakeLists.txt b/deja-dup/widgets/CMakeLists.txt
|
||||
index 78f0e21..e885ac8 100644
|
||||
--- a/deja-dup/widgets/CMakeLists.txt
|
||||
+++ b/deja-dup/widgets/CMakeLists.txt
|
||||
@@ -52,7 +52,7 @@ vala_precompile(VALA_C ConfigBool.vala
|
||||
GENERATE_VAPI widgets
|
||||
GENERATE_HEADER widgets)
|
||||
add_library(widgets SHARED ${VALA_C})
|
||||
-target_link_libraries(widgets deja "${GTK_LDFLAGS} ${NOTIFY_LDFLAGS} ${PEAS_LDFLAGS} ${SECRET_LDFLAGS} ${UNITY_LDFLAGS}")
|
||||
+target_link_libraries(widgets deja ${GTK_LDFLAGS} ${NOTIFY_LDFLAGS} ${PEAS_LDFLAGS} ${SECRET_LDFLAGS} ${UNITY_LDFLAGS})
|
||||
set_target_properties(widgets PROPERTIES
|
||||
INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/libdeja;${CMAKE_SOURCE_DIR}/libdeja"
|
||||
COMPILE_FLAGS "${GTK_CFLAGS} ${NOTIFY_CFLAGS} ${PEAS_CFLAGS} ${SECRET_CFLAGS} ${UNITY_CFLAGS} ${COMMON_CFLAGS}")
|
@ -1,20 +0,0 @@
|
||||
diff --exclude='*~' --exclude='.*' -I '$Id:' -urN httperf-0.8.orig/configure.in httperf-0.8/configure.in
|
||||
--- httperf-0.8.orig/configure.in 2005-08-17 15:51:17.000000000 -0400
|
||||
+++ httperf-0.8/configure.in 2005-08-17 16:06:20.000000000 -0400
|
||||
@@ -39,8 +39,14 @@
|
||||
dnl Checks for libraries.
|
||||
dnl Replace `main' with a function in -lm:
|
||||
AC_CHECK_LIB(m, main)
|
||||
-AC_CHECK_LIB(crypto, main)
|
||||
-AC_CHECK_LIB(ssl, SSL_version)
|
||||
+
|
||||
+AC_MSG_CHECKING([whether to enable SSL support])
|
||||
+AC_ARG_ENABLE(ssl, [ --enable-ssl Enable SSL support])
|
||||
+AC_MSG_RESULT([$enable_ssl])
|
||||
+if test "$enable_ssl" = yes; then
|
||||
+ AC_CHECK_LIB(crypto, main)
|
||||
+ AC_CHECK_LIB(ssl, SSL_version)
|
||||
+fi
|
||||
|
||||
|
||||
dnl Checks for header files.
|
@ -1,17 +0,0 @@
|
||||
diff --exclude='*~' --exclude='.*' -I '$Id:' -urN httperf-0.8.orig/Makefile.in httperf-0.8/Makefile.in
|
||||
--- httperf-0.8.orig/Makefile.in 2005-08-17 16:07:21.000000000 -0400
|
||||
+++ httperf-0.8/Makefile.in 2005-08-17 16:34:50.000000000 -0400
|
||||
@@ -51,9 +51,10 @@
|
||||
$(LINK) idleconn.o $(LIBS)
|
||||
|
||||
install: install-recursive httperf
|
||||
- $(MKDIR) $(bindir) $(mandir)/man1
|
||||
- $(INSTALL_PROGRAM) httperf $(bindir)/httperf
|
||||
- $(INSTALL_DATA) $(srcdir)/httperf.man $(mandir)/man1/httperf.1
|
||||
+ $(MKDIR) $(DESTDIR)$(bindir) $(mandir)/man1
|
||||
+ $(INSTALL_PROGRAM) httperf $(DESTDIR)$(bindir)/httperf
|
||||
+ $(MKDIR) $(DESTDIR)$(mandir)/man1
|
||||
+ $(INSTALL_DATA) $(srcdir)/httperf.man $(DESTDIR)$(mandir)/man1/httperf.1
|
||||
|
||||
ttest: ttest.o timer.o
|
||||
|
@ -1,26 +0,0 @@
|
||||
Makefile | 8 ++++----
|
||||
1 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index b3d741e..79022e9 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,6 +1,6 @@
|
||||
-CFLAGS+=-std=c99 -g -Wall -Wextra -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
|
||||
-LDFLAGS=-lm
|
||||
-PREFIX=/usr/local
|
||||
+CFLAGS+=-std=c99 -Wall -Wextra -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
|
||||
+LIBS=-lm
|
||||
+PREFIX?=/usr/local
|
||||
BINDIR=$(PREFIX)/bin
|
||||
MAN1DIR=$(PREFIX)/share/man/man1
|
||||
|
||||
@@ -30,7 +30,7 @@ install: $(BINS) $(MANS)
|
||||
$(CC) $(CFLAGS) -DVERSION=\"${VERSION}\" -c -o $@ $^
|
||||
|
||||
ioping: $(OBJS)
|
||||
- $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||
|
||||
dist: $(DISTDIR).tar.gz
|
||||
|
@ -1,199 +0,0 @@
|
||||
Index: ltp-full-20120903/runltp
|
||||
===================================================================
|
||||
--- ltp-full-20120903.orig/runltp
|
||||
+++ ltp-full-20120903/runltp
|
||||
@@ -76,7 +76,7 @@ setup()
|
||||
echo "FATAL: unable to change directory to $(dirname $0)"
|
||||
exit 1
|
||||
}
|
||||
- export LTPROOT=${PWD}
|
||||
+ export LTPROOT=/usr/libexec/ltp
|
||||
export TMPBASE="/tmp"
|
||||
export PATH="${PATH}:${LTPROOT}/testcases/bin"
|
||||
|
||||
@@ -230,7 +230,7 @@ main()
|
||||
/*)
|
||||
FAILCMDFILE="-C $OPTARG" ;;
|
||||
*)
|
||||
- FAILCMDFILE="-C $LTPROOT/output/$OPTARG"
|
||||
+ FAILCMDFILE="-C $TMPBASE/output/$OPTARG"
|
||||
ALT_DIR_OUT=1 ;;
|
||||
esac ;;
|
||||
|
||||
@@ -298,7 +298,7 @@ main()
|
||||
/*)
|
||||
HTMLFILE="$OPTARG";;
|
||||
*)
|
||||
- HTMLFILE="$LTPROOT/output/$OPTARG";;
|
||||
+ HTMLFILE="$TMPBASE/output/$OPTARG";;
|
||||
esac
|
||||
ALT_DIR_OUT=1
|
||||
ALT_HTML_OUT=1;;
|
||||
@@ -319,7 +319,7 @@ main()
|
||||
/*)
|
||||
DMESG_DIR="$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";;
|
||||
*)
|
||||
- DMESG_DIR="$LTPROOT/output/$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";;
|
||||
+ DMESG_DIR="$TMPBASE/output/$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";;
|
||||
esac
|
||||
mkdir -p $DMESG_DIR
|
||||
ALT_DMESG_OUT=1;;
|
||||
@@ -329,7 +329,7 @@ main()
|
||||
/*)
|
||||
LOGFILE="-l $OPTARG" ;;
|
||||
*)
|
||||
- LOGFILE="-l $LTPROOT/results/$OPTARG"
|
||||
+ LOGFILE="-l $TMPBASE/results/$OPTARG"
|
||||
ALT_DIR_RES=1 ;;
|
||||
esac ;;
|
||||
|
||||
@@ -384,7 +384,7 @@ main()
|
||||
/*)
|
||||
OUTPUTFILE="-o $OPTARG";;
|
||||
*)
|
||||
- OUTPUTFILE="-o $LTPROOT/output/$OPTARG"
|
||||
+ OUTPUTFILE="-o $TMPBASE/output/$OPTARG"
|
||||
ALT_DIR_OUT=1 ;;
|
||||
esac ;;
|
||||
|
||||
@@ -431,7 +431,7 @@ main()
|
||||
## It would be nice to create a default log file even if the user has not mentioned
|
||||
if [ ! "$LOGFILE" ]; then ## User has not mentioned about Log File name
|
||||
LOGFILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME
|
||||
- LOGFILE="-l $LTPROOT/results/LTP_RUN_ON-$LOGFILE_NAME.log"
|
||||
+ LOGFILE="-l $TMPBASE/results/LTP_RUN_ON-$LOGFILE_NAME.log"
|
||||
ALT_DIR_RES=1
|
||||
PRETTY_PRT=" -p "
|
||||
fi
|
||||
@@ -443,14 +443,14 @@ main()
|
||||
if [ ! "$OUTPUTFILE" ]; then ## User has not mentioned about Output File name either
|
||||
if [ ! "$LOGFILE" ]; then ## User has not mentioned about Log File name either
|
||||
FAILED_FILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME
|
||||
- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
|
||||
+ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
|
||||
else ## User Fortunately wanted a log file,
|
||||
FAILED_FILE_NAME=`basename $LOGFILE_NAME` ## Extract log file name and use it to construct Failed file name
|
||||
- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
|
||||
+ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
|
||||
fi
|
||||
else ## User Fortunately wanted a Output file
|
||||
FAILED_FILE_NAME=`basename $OUTPUTFILE_NAME` ## Extract output file name and use it to construct Failed file name
|
||||
- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
|
||||
+ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -459,11 +459,11 @@ main()
|
||||
## which the HTML parser will require
|
||||
if [ ! "$OUTPUTFILE" ]; then ## User has not mentioned about the Outputfile name, then we need to definitely generate one
|
||||
OUTPUTFILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME
|
||||
- OUTPUTFILE="-o $LTPROOT/output/LTP_RUN_ON-$OUTPUTFILE_NAME.output"
|
||||
+ OUTPUTFILE="-o $TMPBASE/output/LTP_RUN_ON-$OUTPUTFILE_NAME.output"
|
||||
ALT_DIR_OUT=1
|
||||
if [ ! "$HTMLFILE" ] ; then ## User has not mentioned HTML File name, We need to create one
|
||||
HTMLFILE_NAME=`basename $OUTPUTFILE_NAME`
|
||||
- HTMLFILE="$LTPROOT/output/$HTMLFILE_NAME.html"
|
||||
+ HTMLFILE="$TMPBASE/output/$HTMLFILE_NAME.html"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@@ -471,12 +471,12 @@ main()
|
||||
# If we need, create the output directory
|
||||
[ "$ALT_DIR_OUT" -eq 1 ] && \
|
||||
{
|
||||
- [ ! -d $LTPROOT/output ] && \
|
||||
+ [ ! -d $TMPBASE/output ] && \
|
||||
{
|
||||
- echo "INFO: creating $LTPROOT/output directory"
|
||||
- mkdir -p $LTPROOT/output || \
|
||||
+ echo "INFO: creating $TMPBASE/output directory"
|
||||
+ mkdir -p $TMPBASE/output || \
|
||||
{
|
||||
- echo "ERROR: failed to create $LTPROOT/output"
|
||||
+ echo "ERROR: failed to create $TMPBASE/output"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
@@ -484,12 +484,12 @@ main()
|
||||
# If we need, create the results directory
|
||||
[ "$ALT_DIR_RES" -eq 1 ] && \
|
||||
{
|
||||
- echo "INFO: creating $LTPROOT/results directory"
|
||||
- [ ! -d $LTPROOT/results ] && \
|
||||
+ echo "INFO: creating $TMPBASE/results directory"
|
||||
+ [ ! -d $TMPBASE/results ] && \
|
||||
{
|
||||
- mkdir -p $LTPROOT/results || \
|
||||
+ mkdir -p $TMPBASE/results || \
|
||||
{
|
||||
- echo "ERROR: failed to create $LTPROOT/results"
|
||||
+ echo "ERROR: failed to create $TMPBASE/results"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
@@ -867,8 +867,8 @@ main()
|
||||
export TEST_START_TIME=$test_start_time
|
||||
export TEST_END_TIME=$(date)
|
||||
OUTPUT_DIRECTORY=`echo $OUTPUTFILE | cut -c4-`
|
||||
- LOGS_DIRECTORY="$LTPROOT/results"
|
||||
- export TEST_OUTPUT_DIRECTORY="$LTPROOT/output"
|
||||
+ LOGS_DIRECTORY="$TMPBASE/results"
|
||||
+ export TEST_OUTPUT_DIRECTORY="$TMPBASE/output"
|
||||
export TEST_LOGS_DIRECTORY=$LOGS_DIRECTORY
|
||||
echo "Generating HTML Output.....!!"
|
||||
( perl $LTPROOT/bin/genhtml.pl $LTPROOT/bin/html_report_header.txt test_start test_end test_output execution_status $OUTPUT_DIRECTORY > $HTMLFILE; )
|
||||
@@ -884,37 +884,37 @@ main()
|
||||
else
|
||||
TAR_FILE_NAME=LTP_RUN_$version_date$DEFAULT_FILE_NAME_GENERATION_TIME.tar
|
||||
if [ "$HTMLFILE_NAME" ] ; then ## HTML file Exists
|
||||
- if [ "$ALT_HTML_OUT" -ne 1 ] ; then ## The HTML file path is absolute and not $LTPROOT/output
|
||||
- mkdir -p $LTPROOT/output ## We need to create this Directory
|
||||
- cp $HTMLFILE_NAME $LTPROOT/output/
|
||||
+ if [ "$ALT_HTML_OUT" -ne 1 ] ; then ## The HTML file path is absolute and not $TMPBASE/output
|
||||
+ mkdir -p $TMPBASE/output ## We need to create this Directory
|
||||
+ cp $HTMLFILE_NAME $TMPBASE/output/
|
||||
fi
|
||||
fi
|
||||
if [ "$OUTPUTFILE_NAME" ] ; then ## Output file exists
|
||||
- if [ "$ALT_DIR_OUT" -ne 1 ] ; then ## The Output file path is absolute and not $LTPROOT/output
|
||||
- mkdir -p $LTPROOT/output ## We need to create this Directory
|
||||
- cp $OUTPUTFILE_NAME $LTPROOT/output/
|
||||
+ if [ "$ALT_DIR_OUT" -ne 1 ] ; then ## The Output file path is absolute and not $TMPBASE/output
|
||||
+ mkdir -p $TMPBASE/output ## We need to create this Directory
|
||||
+ cp $OUTPUTFILE_NAME $TMPBASE/output/
|
||||
fi
|
||||
fi
|
||||
if [ "$LOGFILE_NAME" ] ; then ## Log file exists
|
||||
- if [ "$ALT_DIR_RES" -ne 1 ] ; then ## The Log file path is absolute and not $LTPROOT/results
|
||||
- mkdir -p $LTPROOT/results ## We need to create this Directory
|
||||
- cp $LOGFILE_NAME $LTPROOT/results/
|
||||
+ if [ "$ALT_DIR_RES" -ne 1 ] ; then ## The Log file path is absolute and not $TMPBASE/results
|
||||
+ mkdir -p $TMPBASE/results ## We need to create this Directory
|
||||
+ cp $LOGFILE_NAME $TMPBASE/results/
|
||||
fi
|
||||
fi
|
||||
- if [ -d $LTPROOT/output ] ; then
|
||||
- tar -cf ./$TAR_FILE_NAME $LTPROOT/output
|
||||
+ if [ -d $TMPBASE/output ] ; then
|
||||
+ tar -cf ./$TAR_FILE_NAME $TMPBASE/output
|
||||
if [ $? -eq 0 ]; then
|
||||
- echo "Created TAR File: ./$TAR_FILE_NAME successfully, added $LTPROOT/output"
|
||||
+ echo "Created TAR File: ./$TAR_FILE_NAME successfully, added $TMPBASE/output"
|
||||
else
|
||||
- echo "Cannot Create TAR File: ./$TAR_FILE_NAME for adding $LTPROOT/output"
|
||||
+ echo "Cannot Create TAR File: ./$TAR_FILE_NAME for adding $TMPBASE/output"
|
||||
fi
|
||||
fi
|
||||
- if [ -d $LTPROOT/results ] ; then
|
||||
- tar -uf ./$TAR_FILE_NAME $LTPROOT/results
|
||||
+ if [ -d $TMPBASE/results ] ; then
|
||||
+ tar -uf ./$TAR_FILE_NAME $TMPBASE/results
|
||||
if [ $? -eq 0 ]; then
|
||||
- echo "Updated TAR File: ./$TAR_FILE_NAME successfully, added $LTPROOT/results"
|
||||
+ echo "Updated TAR File: ./$TAR_FILE_NAME successfully, added $TMPBASE/results"
|
||||
else
|
||||
- echo "Cannot Update TAR File: ./$TAR_FILE_NAME for adding $LTPROOT/results"
|
||||
+ echo "Cannot Update TAR File: ./$TAR_FILE_NAME for adding $TMPBASE/results"
|
||||
fi
|
||||
fi
|
||||
if [ -e $LTPROOT/nohup.out ] ; then ## If User would have Chosen nohup to do ltprun
|
@ -1,49 +0,0 @@
|
||||
diff -Naur piozone-1.0.orig/Makefile piozone-1.0/Makefile
|
||||
--- piozone-1.0.orig/Makefile 2003-07-10 18:54:51.000000000 -0300
|
||||
+++ piozone-1.0/Makefile 2003-07-10 19:02:41.000000000 -0300
|
||||
@@ -19,3 +19,6 @@
|
||||
|
||||
dist: version distclean
|
||||
(PACKNAME=`basename \`pwd\`` ; cd .. ; $(TAR) cf - $$PACKNAME | $(GZIP) -9 >$$PACKNAME.tar.gz)
|
||||
+
|
||||
+install:
|
||||
+ install -D piozone /usr/bin/piozone
|
||||
diff -Naur piozone-1.0.orig/piozone.c piozone-1.0/piozone.c
|
||||
--- piozone-1.0.orig/piozone.c 2003-07-10 18:54:51.000000000 -0300
|
||||
+++ piozone-1.0/piozone.c 2003-07-10 14:48:44.000000000 -0300
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <time.h>
|
||||
#include <signal.h>
|
||||
-
|
||||
+#define uint64_t u_int64_t
|
||||
#define KiB ((uint64_t) 1024)
|
||||
#define MiB ((uint64_t) 1024*KiB)
|
||||
#define GiB ((uint64_t) 1024*MiB)
|
||||
@@ -73,7 +73,7 @@
|
||||
int count = 0;
|
||||
int nr = 0;
|
||||
|
||||
- llseek(fd, off, SEEK_SET);
|
||||
+ lseek64(fd, off, SEEK_SET);
|
||||
signal(SIGALRM, sigalrm_handler);
|
||||
stopf = 0;
|
||||
printf("Testing... ");
|
||||
@@ -121,7 +121,7 @@
|
||||
printf("Testing... ");
|
||||
alarm(ts);
|
||||
while (!stopf &&
|
||||
- llseek(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 &&
|
||||
+ lseek64(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 &&
|
||||
(nr = read(fd, iobuf, len)) == len)
|
||||
{
|
||||
print_dial();
|
||||
@@ -159,7 +159,7 @@
|
||||
off = 0;
|
||||
del = 64*GiB;
|
||||
|
||||
- while (del > 8*KiB && llseek(fd, off+del, SEEK_SET) != -1)
|
||||
+ while (del > 8*KiB && lseek64(fd, off+del, SEEK_SET) != -1)
|
||||
{
|
||||
if (read(fd, buf, 8*KiB) < 0)
|
||||
del >>= 1;
|
@ -1,15 +0,0 @@
|
||||
diff --git a/cdemu-client/CMakeLists.txt b/cdemu-client/CMakeLists.txt
|
||||
index 6f33b7c..3c61daa 100644
|
||||
--- a/cdemu-client/CMakeLists.txt
|
||||
+++ b/cdemu-client/CMakeLists.txt
|
||||
@@ -41,8 +41,8 @@ install (
|
||||
|
||||
install (
|
||||
FILES data/cdemu-bashcomp
|
||||
- DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/bash_completion.d
|
||||
- RENAME cdemu-client
|
||||
+ DESTINATION ${GENTOO_BASHCOMPDIR}
|
||||
+ RENAME cdemu
|
||||
)
|
||||
|
||||
intltool_merge ("-d" po data/cdemu-client.desktop.in cdemu-client.desktop)
|
@ -1,11 +0,0 @@
|
||||
--- tools/pngio.c
|
||||
+++ tools/pngio.c
|
||||
@@ -17,6 +17,8 @@
|
||||
* or direct your browser at http://www.gnu.org.
|
||||
*/
|
||||
|
||||
+#include <zlib.h>
|
||||
+
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
@ -1,12 +0,0 @@
|
||||
# udev rules to set the access rights of non CCID ACR38u smart card readers
|
||||
# so they can be used by pcscd
|
||||
|
||||
ACTION!="add", GOTO="pcscd_acr38u_rules_end"
|
||||
SUBSYSTEM!="usb", GOTO="pcscd_acr38u_rules_end"
|
||||
ENV{DEVTYPE}!="usb_device", GOTO="pcscd_acr38u_rules_end"
|
||||
|
||||
ATTRS{idVendor}=="072f", ATTRS{idProduct}=="9000", ENV{PCSCD}="1"
|
||||
ATTRS{idVendor}=="072f", ATTRS{idProduct}=="9006", ENV{PCSCD}="1"
|
||||
ATTRS{idVendor}=="072f", ATTRS{idProduct}=="90CF", ENV{PCSCD}="1"
|
||||
|
||||
LABEL="pcscd_acr38u_rules_end"
|
@ -1,31 +0,0 @@
|
||||
diff --git a/src/NT_fmt_plug.c b/src/NT_fmt_plug.c
|
||||
index eb52e3d..411a45b 100644
|
||||
--- a/src/NT_fmt_plug.c
|
||||
+++ b/src/NT_fmt_plug.c
|
||||
@@ -652,7 +652,7 @@ static inline void set_key_helper(unsigned int * keybuffer,
|
||||
for(; key[md4_size]; i += xBuf, md4_size++)
|
||||
{
|
||||
unsigned int temp;
|
||||
- if ((temp = key[++md4_size]))
|
||||
+ if ((temp = key[++md4_size]) && md4_size < PLAINTEXT_LENGTH)
|
||||
{
|
||||
keybuffer[i] = key[md4_size-1] | (temp << 16);
|
||||
}
|
||||
@@ -704,7 +704,7 @@ static inline void set_key_helper_utf8(unsigned int * keybuffer, unsigned int xB
|
||||
const UTF8 * source, unsigned int lenStoreOffset, unsigned int *lastlen)
|
||||
{
|
||||
unsigned int *target = keybuffer;
|
||||
- unsigned int *targetEnd = &keybuffer[xBuf * ((PLAINTEXT_LENGTH + 1) >> 1)];
|
||||
+ unsigned int *targetEnd = &keybuffer[xBuf * (PLAINTEXT_LENGTH >> 1)];
|
||||
UTF32 chl, chh = 0x80;
|
||||
unsigned int outlen = 0;
|
||||
|
||||
@@ -844,7 +844,7 @@ static inline void set_key_helper_encoding(unsigned int * keybuffer,
|
||||
i = 0;
|
||||
for(md4_size = 0; key[md4_size]; i += xBuf, md4_size++)
|
||||
{
|
||||
- if ((temp = CP_to_Unicode[key[++md4_size]]))
|
||||
+ if ((temp = CP_to_Unicode[key[++md4_size]]) && md4_size < PLAINTEXT_LENGTH)
|
||||
keybuffer[i] = CP_to_Unicode[key[md4_size-1]] | (temp << 16);
|
||||
else {
|
||||
keybuffer[i] = CP_to_Unicode[key[md4_size-1]] | 0x800000;
|
@ -1,13 +0,0 @@
|
||||
http://bugs.gentoo.org/319677
|
||||
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -17,7 +17,7 @@
|
||||
printf "#include <db.h>\nDB_VERSION_MAJOR DB_VERSION_MINOR\n" >conftest.c
|
||||
set `eval $ac_cpp conftest.c | egrep '^ *[[0-9]] *'`; v="$1"; vv="$2"
|
||||
AC_MSG_RESULT($v.$vv)
|
||||
-if test "$v" -eq 4; then
|
||||
+if test "$v" -ge 4; then
|
||||
for db in "db-$v.$vv" "db$v.$vv" "db-$v" "db$v" "db"; do
|
||||
AC_MSG_CHECKING(for db_create in lib$db)
|
||||
oldLIBS="$LIBS"
|
@ -1,22 +0,0 @@
|
||||
just use implicit rules so correct variables get used
|
||||
|
||||
--- pdfcrack-0.13/Makefile
|
||||
+++ pdfcrack-0.13/Makefile
|
||||
@@ -1,16 +1,11 @@
|
||||
-CFLAGS= -Wall -Wextra -O3 -g
|
||||
+CFLAGS+= -Wall -Wextra
|
||||
|
||||
all: pdfcrack
|
||||
|
||||
pdfcrack: main.o sha256.o rc4.o md5.o pdfcrack.o pdfparser.o passwords.o common.o \
|
||||
benchmark.o
|
||||
- gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $+
|
||||
|
||||
pdfreader: pdfparser.o pdfreader.o common.o
|
||||
- gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $+
|
||||
|
||||
clean:
|
||||
rm -f pdfcrack pdfreader testreader *.o
|
||||
-
|
||||
-%.o: %.c
|
||||
- gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c -o $@ $+
|
@ -1,60 +0,0 @@
|
||||
From eb2cd9487749be01a1ad34ce6036366208147290 Mon Sep 17 00:00:00 2001
|
||||
From: Kristian Fiskerstrand <kristian.fiskerstrand@sumptuouscapital.com>
|
||||
Date: Mon, 21 Sep 2015 19:09:04 +0200
|
||||
Subject: [PATCH] m4/qt.m4: Remove detection of Qt5
|
||||
|
||||
---
|
||||
m4/qt.m4 | 36 +-----------------------------------
|
||||
1 file changed, 1 insertion(+), 35 deletions(-)
|
||||
|
||||
diff --git a/m4/qt.m4 b/m4/qt.m4
|
||||
index 0a7ea99..2982bb8 100644
|
||||
--- a/m4/qt.m4
|
||||
+++ b/m4/qt.m4
|
||||
@@ -28,42 +28,8 @@ dnl The moc lookup code is based on libpoppler (rev. d821207)
|
||||
|
||||
AC_DEFUN([FIND_QT],
|
||||
[
|
||||
- PKG_CHECK_MODULES(PINENTRY_QT,
|
||||
- Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0,
|
||||
- [have_qt5_libs="yes"],
|
||||
- [have_qt5_libs="no"])
|
||||
+ have_qt5_libs="no"
|
||||
|
||||
- if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
|
||||
- PINENTRY_QT_CFLAGS="$PINENTRY_QT_CFLAGS -fpic"
|
||||
- fi
|
||||
-
|
||||
- if test "$have_qt5_libs" = "yes"; then
|
||||
- AC_CHECK_TOOL(MOC, moc)
|
||||
- AC_MSG_CHECKING([moc version])
|
||||
- mocversion=`$MOC -v 2>&1`
|
||||
- mocversiongrep=`echo $mocversion | grep "Qt 5\|moc 5"`
|
||||
- if test x"$mocversiongrep" != x"$mocversion"; then
|
||||
- AC_MSG_RESULT([no])
|
||||
- # moc was not the qt5 one, try with moc-qt5
|
||||
- AC_CHECK_TOOL(MOC2, moc-qt5)
|
||||
- mocversion=`$MOC2 -v 2>&1`
|
||||
- mocversiongrep=`echo $mocversion | grep "Qt 5\|moc-qt5 5\|moc 5"`
|
||||
- if test x"$mocversiongrep" != x"$mocversion"; then
|
||||
- AC_CHECK_TOOL(QTCHOOSER, qtchooser)
|
||||
- qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
|
||||
- mocversion=`$qt5tooldir/moc -v 2>&1`
|
||||
- mocversiongrep=`echo $mocversion | grep "Qt 5\|moc 5"`
|
||||
- if test x"$mocversiongrep" != x"$mocversion"; then
|
||||
- # no valid moc found
|
||||
- have_qt5_libs="no";
|
||||
- else
|
||||
- MOC=$qt5tooldir/moc
|
||||
- fi
|
||||
- else
|
||||
- MOC=$MOC2
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
if test "$have_qt5_libs" != "yes"; then
|
||||
PKG_CHECK_MODULES(PINENTRY_QT,
|
||||
QtCore >= 4.4.0 QtGui >= 4.4.0,
|
||||
--
|
||||
2.4.6
|
||||
|
@ -1,54 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2005 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
opts="save clear deactivated"
|
||||
|
||||
STARTUP_MODE='save';
|
||||
|
||||
|
||||
depend() {
|
||||
use logger
|
||||
after coldplug
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
lsmod | grep -q "^tpmd_dev\b" \
|
||||
|| modprobe tpmd_dev &>/dev/null \
|
||||
|| eerror "Failed to load module tpmd_dev";
|
||||
|
||||
if [ ! -c /dev/tpm ] && [ ! -c /dev/tpm0 ] ; then
|
||||
eerror "No TPM device found!"
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting tpm-emulator daemon with mode '$STARTUP_MODE' (tpmd)"
|
||||
checkconfig || eend $?
|
||||
start-stop-daemon --start --chuid tss --exec /usr/sbin/tpmd $STARTUP_MODE > /dev/null
|
||||
eend $?
|
||||
}
|
||||
|
||||
save() {
|
||||
STARTUP_MODE='save';
|
||||
svc_restart
|
||||
}
|
||||
|
||||
clear() {
|
||||
STARTUP_MODE='clear';
|
||||
svc_restart
|
||||
}
|
||||
|
||||
deactivated() {
|
||||
STARTUP_MODE='deactivated';
|
||||
svc_restart
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping tpm-emulator daemon (tpmd)"
|
||||
start-stop-daemon --stop --exec /usr/sbin/tpmd --user tss > /dev/null
|
||||
eend $?
|
||||
}
|
@ -1 +0,0 @@
|
||||
KERNEL=="tpm", NAME="%k", SYMLINK+="tpm0", GROUP="tss", MODE="0660"
|
@ -1,3 +0,0 @@
|
||||
nichan.cbd(nichan.mwd) -2ch---
|
||||
nichan.cld(nichan.mwd) -2ch---
|
||||
nichan.ctd(nichan.swd) -2ch---
|
@ -1,33 +0,0 @@
|
||||
--- ipadic-2.7.0.orig/Makefile.am 2003-09-13 14:37:17.000000000 +0900
|
||||
+++ ipadic-2.7.0/Makefile.am 2010-03-21 09:25:48.000000000 +0900
|
||||
@@ -11,18 +11,22 @@
|
||||
EXTRA_DIST = $(pre_data) $(lexical_dic) $(manual_files) @PACKAGE@.spec
|
||||
CLEANFILES = $(gen_data)
|
||||
#
|
||||
-matrix.cha table.cha:
|
||||
+matrix.cha table.cha: makemat.done
|
||||
+makemat.done:
|
||||
$(MKDICDIR)/makemat
|
||||
+ touch makemat.done
|
||||
|
||||
-chadic.da:
|
||||
+chadic.da chadic.dat chadic.lex: makeda.done
|
||||
+makeda.done:
|
||||
$(MKDICDIR)/makeda chadic *.dic
|
||||
+ touch makeda.done
|
||||
|
||||
-install-data-local:
|
||||
- if test -f @CHASEN_CHASENRC_PATH@ ; then \
|
||||
- echo "Please modify @CHASEN_CHASENRC_PATH@"; \
|
||||
- else \
|
||||
- cp chasenrc @CHASEN_CHASENRC_PATH@ ;\
|
||||
- fi
|
||||
+#install-data-local:
|
||||
+# if test -f @CHASEN_CHASENRC_PATH@ ; then \
|
||||
+# echo "Please modify @CHASEN_CHASENRC_PATH@"; \
|
||||
+# else \
|
||||
+# cp chasenrc @CHASEN_CHASENRC_PATH@ ;\
|
||||
+# fi
|
||||
|
||||
sjis-dist: dist
|
||||
gtar xzvf ipadic-@VERSION@.tar.gz
|
@ -1,82 +0,0 @@
|
||||
* make sure we always look for tools in the path, no "do it yourself paths"
|
||||
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -170,27 +170,15 @@
|
||||
;;
|
||||
Darwin:*)
|
||||
f_platform=macosx-c++
|
||||
- if test "$f_insttool" = NO; then
|
||||
- f_insttool=/usr/bin/install
|
||||
- fi
|
||||
;;
|
||||
FreeBSD:*)
|
||||
f_platform=freebsd-g++
|
||||
- if test "$f_insttool" = NO; then
|
||||
- f_insttool=/usr/bin/install
|
||||
- fi
|
||||
;;
|
||||
NetBSD:*)
|
||||
f_platform=netbsd-g++
|
||||
- if test "$f_insttool" = NO; then
|
||||
- f_insttool=/usr/bin/install
|
||||
- fi
|
||||
;;
|
||||
HP-UX:*)
|
||||
f_platform=hpux-g++
|
||||
- if test "$f_insttool" = NO; then
|
||||
- f_insttool=/usr/bin/install
|
||||
- fi
|
||||
;;
|
||||
IRIX64:*)
|
||||
f_platform=irix-64
|
||||
@@ -221,9 +209,6 @@
|
||||
;;
|
||||
SunOS:5*)
|
||||
f_platform=solaris-g++
|
||||
- if test "$f_insttool" = NO; then
|
||||
- f_insttool=/usr/bin/install
|
||||
- fi
|
||||
;;
|
||||
ULTRIX:*)
|
||||
f_platform=ultrix-g++
|
||||
@@ -323,8 +308,8 @@
|
||||
|
||||
echo -n " Checking for GNU install tool... "
|
||||
if test "$f_insttool" = NO; then
|
||||
- install_names="ginstall install"
|
||||
- install_dirs="$bin_dirs /usr/bin /usr/local/bin /bin /sbin /usr/ucb"
|
||||
+ install_names="install"
|
||||
+ install_dirs="$bin_dirs"
|
||||
install_prog=NO
|
||||
install_found=NO
|
||||
for i in $install_names; do
|
||||
@@ -360,7 +345,7 @@
|
||||
|
||||
echo -n " Checking for dot (part of GraphViz)... "
|
||||
if test "$f_dot" = NO; then
|
||||
- dot_dirs="$bin_dirs /usr/bin /usr/local/bin /bin /sbin"
|
||||
+ dot_dirs="$bin_dirs"
|
||||
dot_prog=NO
|
||||
for j in $dot_dirs; do
|
||||
if test -x "$j/dot"; then
|
||||
@@ -382,7 +367,7 @@
|
||||
echo -n " Checking for perl... "
|
||||
if test "$f_perl" = NO; then
|
||||
perl_names="perl perl5"
|
||||
- perl_dirs="$bin_dirs /usr/bin /usr/local/bin /bin /sbin"
|
||||
+ perl_dirs="$bin_dirs"
|
||||
perl_prog=NO
|
||||
perl_found=NO
|
||||
for i in $perl_names; do
|
||||
@@ -546,10 +531,6 @@
|
||||
cat >> .tmakeconfig <<EOF
|
||||
TMAKE_LFLAGS += -non_shared
|
||||
EOF
|
||||
- elif test "$f_platform" = "solaris-cc"; then
|
||||
- cat >> .tmakeconfig <<EOF
|
||||
- TMAKE_LFLAGS += -Bstatic
|
||||
-EOF
|
||||
elif test "$f_platform" = "hpux-cc"; then
|
||||
cat >> .tmakeconfig <<EOF
|
||||
TMAKE_LFLAGS += -noshared
|
@ -1,20 +0,0 @@
|
||||
removeEmptyLines() segfaults on empty string
|
||||
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=454348
|
||||
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676423
|
||||
|
||||
Patch written by Thibaut Paumard <paumard@users.sourceforge.net>
|
||||
--- a/src/htmlgen.cpp
|
||||
+++ b/src/htmlgen.cpp
|
||||
@@ -1022,6 +1022,11 @@
|
||||
static QCString removeEmptyLines(const QCString &s)
|
||||
{
|
||||
BufStr out(s.length()+1);
|
||||
+ if (s.length()==0)
|
||||
+ {
|
||||
+ out.addChar('\0');
|
||||
+ return out.data();
|
||||
+ }
|
||||
char *p=s.data();
|
||||
if (p)
|
||||
{
|
@ -1,43 +0,0 @@
|
||||
--- rc/ftyperc 2008-10-31 01:42:29.000000000 +0000
|
||||
+++ rc/ftyperc.gentoo 2013-04-05 15:04:49.000000000 +0100
|
||||
@@ -753,3 +753,40 @@
|
||||
*jpicorc.in
|
||||
-syntax joerc
|
||||
|
||||
+ Gentoo files
|
||||
+*.ebuild
|
||||
+-autoindent
|
||||
+-syntax sh
|
||||
+-pound_comment
|
||||
+-text_delimiters do=done:if=elif=else=fi:case=esac
|
||||
+-smarthome
|
||||
+-smartbacks
|
||||
+-indentc 9
|
||||
+-istep 1
|
||||
+-tab 4
|
||||
+
|
||||
+*.eclass
|
||||
+-autoindent
|
||||
+-syntax sh
|
||||
+-pound_comment
|
||||
+-text_delimiters do=done:if=elif=else=fi:case=esac
|
||||
+-smarthome
|
||||
+-smartbacks
|
||||
+-indentc 9
|
||||
+-istep 1
|
||||
+-tab 4
|
||||
+
|
||||
+*/etc/portage/*
|
||||
+-syntax conf
|
||||
+
|
||||
+*/make.conf
|
||||
+-syntax sh
|
||||
+
|
||||
+*/etc/conf.d/*
|
||||
+-syntax conf
|
||||
+
|
||||
+*/etc/env.d/*
|
||||
+-syntax conf
|
||||
+
|
||||
+*/usr/portage/profiles/*
|
||||
+-syntax conf
|
@ -1,36 +0,0 @@
|
||||
injecting random paths breaks random on Prefix platforms
|
||||
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -23,14 +23,6 @@
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
|
||||
-case "$host" in
|
||||
- *-*-solaris*)
|
||||
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
|
||||
- LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
|
||||
- ;;
|
||||
- *) ;;
|
||||
-esac
|
||||
-
|
||||
search_libs="$search_libs m"
|
||||
|
||||
# Checks for libraries.
|
||||
--- configure
|
||||
+++ configure
|
||||
@@ -4071,14 +4071,6 @@
|
||||
fi
|
||||
|
||||
|
||||
-case "$host" in
|
||||
- *-*-solaris*)
|
||||
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
|
||||
- LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
|
||||
- ;;
|
||||
- *) ;;
|
||||
-esac
|
||||
-
|
||||
search_libs="$search_libs m"
|
||||
|
||||
# Checks for libraries.
|
@ -1,17 +0,0 @@
|
||||
Index: main.c
|
||||
===================================================================
|
||||
RCS file: /cvsroot/joe-editor/joe-current/main/main.c,v
|
||||
retrieving revision 1.5
|
||||
retrieving revision 1.6
|
||||
diff -u -r1.5 -r1.6
|
||||
--- main.c 27 Oct 2008 01:57:13 -0000 1.5
|
||||
+++ main.c 23 Nov 2008 21:32:15 -0000 1.6
|
||||
@@ -431,7 +431,7 @@
|
||||
b->orphan = 1;
|
||||
b->oldcur = pdup(b->bof, USTR "main");
|
||||
pline(b->oldcur, get_file_pos(b->name));
|
||||
- p_goto_bol(bw->cursor);
|
||||
+ p_goto_bol(b->oldcur);
|
||||
line = b->oldcur->line - (maint->h - 1) / 2;
|
||||
if (line < 0)
|
||||
line = 0;
|
@ -1,16 +0,0 @@
|
||||
diff -Nru 3.0.1.vanilla/scite/src/SciTEProps.cxx 3.0.1/scite/src/SciTEProps.cxx
|
||||
--- 3.0.1.vanilla/scite/src/SciTEProps.cxx 2011-11-30 19:39:41.059801342 +0100
|
||||
+++ 3.0.1/scite/src/SciTEProps.cxx 2011-11-30 19:39:53.211835004 +0100
|
||||
@@ -1702,10 +1702,12 @@
|
||||
|
||||
// return the int value of the command name passed in.
|
||||
int SciTEBase::GetMenuCommandAsInt(SString commandName) {
|
||||
+#ifndef NO_LUA
|
||||
int i = IFaceTable::FindConstant(commandName.c_str());
|
||||
if (i != -1) {
|
||||
return IFaceTable::constants[i].value;
|
||||
}
|
||||
+#endif
|
||||
// Otherwise we might have entered a number as command to access a "SCI_" command
|
||||
return commandName.value();
|
||||
}
|
@ -1,97 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.4.6
|
||||
|
||||
CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
|
||||
inherit elisp-common haskell-cabal
|
||||
|
||||
DESCRIPTION="Happy Haskell Programming"
|
||||
HOMEPAGE="http://www.mew.org/~kazu/proj/ghc-mod/"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="emacs"
|
||||
|
||||
RESTRICT=test # doctests break on modules collisions: temporary / temporary-rc
|
||||
|
||||
RDEPEND=">=dev-haskell/binary-0.5.1.0:=[profile?] <dev-haskell/binary-0.8:=[profile?]
|
||||
>=dev-haskell/cabal-helper-0.6.3.0:=[profile?] <dev-haskell/cabal-helper-0.7:=[profile?]
|
||||
dev-haskell/convertible:=[profile?]
|
||||
>=dev-haskell/djinn-ghc-0.0.2.2:=[profile?] <dev-haskell/djinn-ghc-0.1:=[profile?]
|
||||
>=dev-haskell/extra-1.4:2=[profile?] <dev-haskell/extra-1.5:2=[profile?]
|
||||
>=dev-haskell/fclabels-2.0:=[profile?] <dev-haskell/fclabels-2.1:=[profile?]
|
||||
<dev-haskell/ghc-paths-0.2:=[profile?]
|
||||
<dev-haskell/ghc-syb-utils-0.3:=[profile?]
|
||||
<dev-haskell/haskell-src-exts-1.18:=[profile?]
|
||||
>=dev-haskell/hlint-1.8.61:=[profile?] <dev-haskell/hlint-1.10:=[profile?]
|
||||
>=dev-haskell/monad-control-1.0:=[profile?] <dev-haskell/monad-control-1.1:=[profile?]
|
||||
>=dev-haskell/monad-journal-0.4:=[profile?] <dev-haskell/monad-journal-0.8:=[profile?]
|
||||
>=dev-haskell/mtl-2.0:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
|
||||
<dev-haskell/old-time-1.2:=[profile?]
|
||||
>=dev-haskell/optparse-applicative-0.11.0:=[profile?] <dev-haskell/optparse-applicative-0.13.0:=[profile?]
|
||||
>=dev-haskell/pipes-4.1:=[profile?] <dev-haskell/pipes-4.2:=[profile?]
|
||||
>=dev-haskell/safe-0.3.9:=[profile?] <dev-haskell/safe-0.4:=[profile?]
|
||||
<dev-haskell/split-0.3:=[profile?]
|
||||
<dev-haskell/syb-0.7:=[profile?]
|
||||
<dev-haskell/temporary-1.3:=[profile?]
|
||||
<dev-haskell/text-1.3:=[profile?]
|
||||
<dev-haskell/transformers-0.5:=[profile?]
|
||||
<dev-haskell/transformers-base-0.5:=[profile?]
|
||||
>=dev-lang/ghc-7.4.1:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.14
|
||||
test? ( >=dev-haskell/doctest-0.9.3
|
||||
dev-haskell/executable-path
|
||||
>=dev-haskell/hspec-2.0.0 )
|
||||
"
|
||||
SITEFILE=50${PN}-gentoo.el
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-5.5.0.0-gentoo.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
haskell-cabal_src_compile
|
||||
if use emacs ; then
|
||||
pushd elisp
|
||||
elisp-compile *.el || die
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
haskell-cabal_src_install
|
||||
if use emacs ; then
|
||||
pushd "${S}"
|
||||
elisp-install ghc-mod elisp/*.{el,elc}
|
||||
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
haskell-cabal_pkg_postinst
|
||||
if use emacs ; then
|
||||
elisp-site-regen
|
||||
elog "To configure ghc-mod either add this line to ~/.emacs:"
|
||||
elog "(autoload 'ghc-init \"ghc\" nil t)"
|
||||
elog "and either this line:"
|
||||
elog "(add-hook 'haskell-mode-hook (lambda () (ghc-init)))"
|
||||
elog "or if you wish to use flymake:"
|
||||
elog "(add-hook 'haskell-mode-hook (lambda () (ghc-init) (flymake-mode)))"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
haskell-cabal_pkg_postrm
|
||||
if use emacs ; then
|
||||
elisp-site-regen
|
||||
fi
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
Fix byte-compile failure with Emacs 24.3.91.
|
||||
|
||||
The upstream git repo has a more complicated fix which we don't use,
|
||||
because the Gentoo package need not care about Emacs 22 and XEmacs
|
||||
compatibility. Instead, always define magit-delete-directory as an
|
||||
alias of delete-directory. This will work for all supported Emacs
|
||||
versions.
|
||||
|
||||
--- magit-1.2.0-orig/magit.el
|
||||
+++ magit-1.2.0/magit.el
|
||||
@@ -775,21 +775,7 @@
|
||||
after-change-functions)
|
||||
,@body)))))
|
||||
|
||||
- (if (>= (magit-max-args-internal 'delete-directory) 2)
|
||||
- (defalias 'magit-delete-directory 'delete-directory)
|
||||
- (defun magit-delete-directory (directory &optional recursive)
|
||||
- "Deletes a directory named DIRECTORY. If RECURSIVE is non-nil,
|
||||
-recursively delete all of DIRECTORY's contents as well.
|
||||
-
|
||||
-Does not follow symlinks."
|
||||
- (if (or (file-symlink-p directory)
|
||||
- (not (file-directory-p directory)))
|
||||
- (delete-file directory)
|
||||
- (if recursive
|
||||
- ;; `directory-files-no-dot-files-regex' borrowed from Emacs 23
|
||||
- (dolist (file (directory-files directory 'full "\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*"))
|
||||
- (magit-delete-directory file recursive)))
|
||||
- (delete-directory directory)))))
|
||||
+ (defalias 'magit-delete-directory 'delete-directory))
|
||||
|
||||
;;; Utilities
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST thefuck-3.10.tar.gz 786180 SHA256 4cdad2040325f73918f00e65822ce21c202e178173606452ed0c730d8c447210 SHA512 fa77177388e311834d5cae9e6264eebaf1b7e52f90a5fa5fd4c3a1858448c4a3288fabd7f08e604b81db1f759f25e7c0403e21ed9772ec517f2f8e8a5163441f WHIRLPOOL cb488dce6d0fa4ec5c760120f908eedf062933d3fb84643e83ef13d6fc29178085b6f960a97cbcd8b38500cec373cdda6a10bee77433f5aa76aa672bf7adf3bf
|
||||
DIST thefuck-3.8.tar.gz 784189 SHA256 210605275f582eb6e3aa604f4e4909c0c350053fffd963ecedacfc5733cf9bd3 SHA512 4e324fd0044a7ca78a96a744583b2d1357db142ee3b5fd174a76db52e82e788e899be2dceb1184f903f663711dc8ce82298cbc3a5b8704b8bf1903692e05a962 WHIRLPOOL 65f6a05dcf4f03a8bf9f036a560a4200b58990e13c88fb5e4ba4fae733a1166f9dd65721cf1626044ae576526c57d58a3ba230a2ef1bff8186d9a0b47a691273
|
||||
DIST thefuck-3.9.tar.gz 785337 SHA256 8edf64dac320095194850d6e570466c07592f1012bfe35db84b8027ae7169a3c SHA512 7dd678982fe7706da15be011689f67f91e67d9ec62edb88ae4a1ea5923a8891168a5363466f6a6d4b321df792ad20c7c14c2408b832a61dd02ef1c020553b3c2 WHIRLPOOL 7344afd8e77397073fc8bdb7b58155fb2a1307eb155e3ed52b966aef43d70c6e7ea9425d47220783d7090a60467e3e172e74bdb1be7543fa4bd787a6f5538464
|
||||
|
@ -0,0 +1,35 @@
|
||||
# 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})
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Magnificent app which corrects your previous console command"
|
||||
HOMEPAGE="https://github.com/nvbn/thefuck"
|
||||
SRC_URI="https://github.com/nvbn/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/pathlib[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]"
|
||||
DEPEND="test? ( ${RDEPEND}
|
||||
dev-python/pytest[${PYTHON_USEDEP}] )
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "/import pip/s/^/#/" -e "/pip.__version__/,+3 s/^/#/" setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
py.test || die
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=LEONT
|
||||
MODULE_VERSION=0.013
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Facility for creating read-only scalars, arrays, and hashes"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ppc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-perl/Sub-Exporter
|
||||
dev-perl/Sub-Exporter-Progressive
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-perl/Test-Exception-0.290.0
|
||||
)
|
||||
"
|
||||
|
||||
SRC_TEST=do
|
@ -1,2 +1 @@
|
||||
DIST Const-Fast-0.013.tar.gz 13165 SHA256 8579039ece718d816c0bb85e6ba2d7a23fd9f6d47ac56772022184c06cdac78a SHA512 af0a4f7fd23c21794451fb6e08fa214063ce880e2b12334f48c766d0881ad1f59ffb3c4d0ba683437dd2b6e0d03a616ef225792a1da5a3a90b7fa489c89a6477 WHIRLPOOL b204f116294a13d42417d9f59181dad9d52fa7358bb8e4be7b0d28067f85d231a423a001deda2fad409cf736e0cef6060cad1fbc84dc79ede9908cf552d23d8b
|
||||
DIST Const-Fast-0.014.tar.gz 12886 SHA256 f805953a08c57846a16a4d85d7b766398afaf7c36c1465fcb1dea09e5fa394db SHA512 89258205fe31aa5a60759ed955e6dae305de69f4bc08251242a82eec9e37251b045908585c470106ed9047f604d3292eb3231c80504b29734966b58b8402a929 WHIRLPOOL 07881da00d1f27cb7f7da38a0cfd1dc4912894e519a9badfa13d69a2e75ed55737e483fb3da5fa2fb5cfa1e98cb3a01d51c9e71ec5f67fc8da9f99ed8e6e0abd
|
||||
|
@ -1,2 +1 @@
|
||||
DIST OpenGL-0.6703.tar.gz 671629 SHA256 62f8cdf019fbdb6d095bc5f31382d123bceb9aabbba5788ecf416282de47534c SHA512 f1902bfe8e6e1f2309b878f68e08cf8f53d2f20287f99f8a8773647d737f559fbf17ad68cb52371af09e2ac030685b1625ce4c0033ec7e6fb5f322e5980e6713 WHIRLPOOL 98d6274a8fa975fd2c31858cf06b1bf5605690217218577c531f68c355affd175663ea8bbc00bb5cd7d0a6951dc0a94d1349535590e421431ab89b41d14fe4b9
|
||||
DIST OpenGL-0.6704.tar.gz 623036 SHA256 36f266e31d617fa9a1bd8928a7dc3b7c40c1bbbfa64bddefe22300ac2bc6c436 SHA512 3a2c9970802242ebae58256cd80dc81ac04a2af974105d3fbdf4dfcf1aa64a769b1ffcb5b0156eceb6bf7aed6eb6b2eb9332ec9f4724b0a1bc61d15f0de99d09 WHIRLPOOL f6cb34b30c7ef2af0d2dc16ab4b5d9f7216f2ab08c0bf904305f358fec751492fe605bdb783d6ebb9dcdb83fa3601f831e9162fe4bc0d33a68cbafa7c289b86c
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR="CHM"
|
||||
MODULE_VERSION=0.6703
|
||||
|
||||
inherit perl-module eutils
|
||||
|
||||
DESCRIPTION="Perl interface providing graphics display using OpenGL"
|
||||
|
||||
LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ppc x86 ~ppc64 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
media-libs/freeglut:0=
|
||||
x11-libs/libICE:0=
|
||||
x11-libs/libXext:0=
|
||||
x11-libs/libXi:0=
|
||||
x11-libs/libXmu:0="
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
mydoc="Release_Notes"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.66-no-display.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
sed -i -e 's/PERL_DL_NONLAZY=1//' Makefile || die
|
||||
perl-module_src_compile
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST POE-1.356.tar.gz 367309 SHA256 9a3ff1ce40929dec74f6b3fed31cfd05b1d72085d2d3d15bbbcc1a737f17d47b SHA512 e3107e107859f6b2384971efeec8e3fca0cd0577e082ba41691d4d26e6a300d939a34df5d6401b4e5917331cf371e56265f8042139002dd2d7533712cfa5ff5d WHIRLPOOL 1151f8a7c8f42ae0f382dc72d4818b398946961d23000264ca9916b3a246db9083806f0e25108dba4b7d0923caba0b7ca09a42caa4762ff6caa9b896a1ee36b2
|
||||
DIST POE-1.367.tar.gz 381473 SHA256 b772720ba99bf3cd03dbad8536c6a7674ac7fcf32f2f53a2ff8f0aa5ba3f3a2d SHA512 94a3ece46a7e573018fdb3151110b1ed7604389d030227169685d38afdfa69603ef55fe8493368645a9f6f1be432fb253cb4568c55190eea33652881a0b4a4fb WHIRLPOOL d757bb5cf229fcfc223461a1be5f790201751026bea825525778944796a210d992698ce68ef77de2b837b6486f2d053274b23645d71108bbe4aa1b5c6c2ce569
|
||||
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
POE_TEST_LOOPS_VERSION=1.351.0
|
||||
MODULE_AUTHOR=RCAPUTO
|
||||
MODULE_VERSION=1.356
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="A framework for creating multitasking programs in Perl"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE="ipv6 libwww ncurses tk test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-perl/Event-1.09
|
||||
>=virtual/perl-File-Spec-0.87
|
||||
>=virtual/perl-IO-1.23.01
|
||||
>=virtual/perl-IO-Compress-1.33
|
||||
>=virtual/perl-Storable-2.12
|
||||
>=dev-perl/IO-Tty-1.08
|
||||
dev-perl/Filter
|
||||
dev-perl/FreezeThaw
|
||||
dev-perl/YAML
|
||||
>=dev-perl/TermReadKey-2.21
|
||||
>=virtual/perl-Time-HiRes-1.59
|
||||
ipv6? (
|
||||
>=dev-perl/Socket6-0.14
|
||||
)
|
||||
tk? (
|
||||
>=dev-perl/Tk-800.027
|
||||
)
|
||||
libwww? (
|
||||
>=dev-perl/libwww-perl-5.79
|
||||
>=dev-perl/URI-1.30
|
||||
)
|
||||
ncurses? (
|
||||
>=dev-perl/Curses-1.08
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-perl/POE-Test-Loops-${POE_TEST_LOOPS_VERSION}
|
||||
>=virtual/perl-Test-Harness-2.26
|
||||
>=virtual/perl-Test-Simple-0.54
|
||||
dev-perl/Test-Pod
|
||||
dev-perl/Test-Pod-Coverage
|
||||
dev-perl/IO-Pipely
|
||||
)
|
||||
"
|
||||
|
||||
SRC_TEST=do
|
||||
|
||||
src_test() {
|
||||
# Disable network tests
|
||||
rm -f "${S}"/run_network_tests
|
||||
perl-module_src_test
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST Perl-Critic-1.118.tar.gz 645371 SHA256 666d2bef3ac924598c06a05277680da5910e10d94c5ec161336f6509c11155e8 SHA512 d5a66826524ae2c70050bd82e715b97be2704042e477c832669c5c4443b61b3f54ddd7cd246808c1397572f299dcc42c36ab6eece5041a29bcfcd76deb7b9074 WHIRLPOOL 82516f565c28ce86884ff6575a0732c55545da6919a5503518fd3a581cc989aa55b11fe82d0f82770c904cf32cf0b1e959e9dabd6a69c1a3cb30c0d105007f8c
|
||||
DIST Perl-Critic-1.123.tar.gz 631981 SHA256 16a182e48068f75199fdf37e3188dd3985045ca134ab1df1d0922e90e30ac19c SHA512 732ba39d69c64ca7ff047bbd998e2dcc5f5486bd02ba7ea8135f4ac9c69ef8443bd248e4411da9ad0d4db7dfc0e5c700f92111e0b8d9962b6ed71dd2c0ff94a1 WHIRLPOOL 1edd106f32949e54fd2e78bd8402e2fdc8b54501b6ebbd9c300ed7b9760104b9a0af599f351c30d9084ec031007fd3711778a29ae5ba254da86aa2c1f4e223e9
|
||||
DIST Perl-Critic-1.126.tar.gz 646552 SHA256 b1a6151cb3603aef8555195b807e831655c83003b81e2f64fff095ff7114f5af SHA512 9427447893eabc83cafd5126d015aa29d9694a83fdd01dd45f5156af9c672a955e0ec6c0ebdddc2ab3ed2d22bdbf14cc016ce474c24fd18d8046bc2889ca33d2 WHIRLPOOL b89ed14331a5fc37f4268ec46e1045e1563bbf61335deef51b480adff3ecadb82bf36ab7dd16a45db865d8beaf86c5e8f4470556c3513cf987c4eed66a0d3a91
|
||||
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=THALJEF
|
||||
MODULE_VERSION=1.118
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Critique Perl source code for best-practices"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-perl/Module-Pluggable-3.1
|
||||
>=dev-perl/Config-Tiny-2
|
||||
>=dev-perl/Email-Address-1.88.9
|
||||
dev-perl/List-MoreUtils
|
||||
dev-perl/IO-String
|
||||
dev-perl/Perl-Tidy
|
||||
>=dev-perl/PPI-1.215
|
||||
dev-perl/PPIx-Utilities
|
||||
>=dev-perl/PPIx-Regexp-0.27.0
|
||||
dev-perl/Pod-Spell
|
||||
>=dev-perl/Set-Scalar-1.20
|
||||
dev-perl/File-Which
|
||||
dev-perl/B-Keywords
|
||||
dev-perl/Readonly
|
||||
dev-perl/Exception-Class
|
||||
dev-perl/String-Format
|
||||
>=virtual/perl-version-0.77"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-perl/Module-Build
|
||||
test? (
|
||||
dev-perl/Test-Deep
|
||||
dev-perl/PadWalker
|
||||
dev-perl/Test-Memory-Cycle
|
||||
dev-perl/Test-Pod
|
||||
dev-perl/Test-Pod-Coverage
|
||||
)"
|
||||
|
||||
mydoc="extras/* examples/*"
|
||||
|
||||
SRC_TEST="do"
|
@ -1,2 +1 @@
|
||||
DIST PerlIO-Layers-0.010.tar.gz 13708 SHA256 e3ab1219092be4a21df1ec48163c83b4166ca8f87d2c659b3a891837e828b271 SHA512 ea7523c18a5b3319ee57bc65eb721ef8a39bf730822c34c30d3edf0f0be4c409e34453c279db9beb6122a345c12f9db268e222f6dae588a8b5f3123eb3fdfed5 WHIRLPOOL 67964a7e4c0fdb56ce100dccbaed84ca9ece3075f3707506f4e698a161188b8c69f3b6d8d65595e6b109b81fb2e754453424edc372493d649a6d24aa54589721
|
||||
DIST PerlIO-Layers-0.011.tar.gz 14570 SHA256 1d77e164aa5d5d24699a5479a423abdc1b07973fbe5a22d304fef2c560254b42 SHA512 1c1a7a77c7e52d45c15015ecfee71d679acd98bb067a5d0147d6fe97fb35e40ab0a4dc3ecf1fb1b6ad8c599e9b765448e9dab5345c168552726ef9929d3bed81 WHIRLPOOL e889603c4e8e9e144b5f8af512c159483750fe5355687358adcdaf03fb9973c7dd11a18c3a83b3645de3eceffdc258d371beb212ad0ead5be4e5231d2c0794dd
|
||||
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR="LEONT"
|
||||
MODULE_VERSION=0.010
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Querying your filehandle's capabilities"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ppc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
# needs List::Util
|
||||
RDEPEND="
|
||||
virtual/perl-Carp
|
||||
>=virtual/perl-Exporter-5.570.0
|
||||
dev-perl/List-MoreUtils
|
||||
virtual/perl-Scalar-List-Utils
|
||||
virtual/perl-XSLoader
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-perl/Module-Build-0.360.100
|
||||
test? (
|
||||
virtual/perl-Data-Dumper
|
||||
virtual/perl-File-Temp
|
||||
>=virtual/perl-Test-Simple-0.820.0
|
||||
)
|
||||
"
|
||||
|
||||
SRC_TEST="do parallel"
|
@ -1,2 +1 @@
|
||||
DIST RPC-XML-0.77.tar.gz 205679 SHA256 e38c5d131e8c29f41ca39ac1e4b7abd33ed1c9b417e0d8ac1c24a056ce7e6f5a SHA512 960625a387da279bab93d09f8b62d4e4f3e01a008abcc5503de3661171c1a4ffd4db9a4c10c4882e77bc7d12bb14071ca875c1988a3d3126fdf6ee70d68e80c9 WHIRLPOOL aca53100c4e905eba8ad4ea763058c6e63401d6de14be5c79450143eea3167f8d335eb3ff47789396612099bce4b6eed0aeb2d2b39a3158c161a37b66f15a9dc
|
||||
DIST RPC-XML-0.79.tar.gz 209612 SHA256 9822ffcfbea9c2bddef00507dc93f7acb83589e6ff6460ca7040f147aeebf9a9 SHA512 541ee3abf4e44cff68a2b7b7c4f78095e8e4ec479d72b52d300503bc1688f64fd01a0ff3c2cdf8e18573d19af0bae467ac68befe7ad8756e6287ed494a50ce26 WHIRLPOOL 9e42d4c4fee850283bc692cf27915bcd562282e814778253bafa15e5936ab7b8f097e09cbd13ea3ceacbd2673c033e42dda24dc50dc08eeef1ac107cf606af69
|
||||
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=RJRAY
|
||||
MODULE_VERSION=0.77
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="An implementation of XML-RPC"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="|| ( Artistic-2 LGPL-2.1 )"
|
||||
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
SRC_TEST="do"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-perl/libwww-perl-5.834.0
|
||||
>=dev-perl/XML-LibXML-1.850.0
|
||||
>=dev-perl/XML-Parser-2.310.0
|
||||
dev-perl/Net-Server
|
||||
>=virtual/perl-Scalar-List-Utils-1.200.0
|
||||
dev-perl/URI
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_postinst() {
|
||||
SETWARN=0
|
||||
has_version '=www-servers/apache-2*' && HAVE_APACHE2=1
|
||||
has_version '>=www-apache/mod_perl-2.0' && HAVE_MP2=2
|
||||
|
||||
[ -n "${HAVE_APACHE2}" ] && SETWARN=1
|
||||
[ -n "${HAVE_MP2}" ] && SETWARN=1
|
||||
|
||||
if [ "${SETWARN}" == "1" ]; then
|
||||
ewarn "Apache2 or mod_perl2 were detected."
|
||||
ewarn ""
|
||||
ewarn "NOTE FROM THE AUTHOR OF RPC-XML"
|
||||
ewarn ""
|
||||
ewarn "At present, this package does not work with Apache2 and the soon-to-be"
|
||||
ewarn "mod_perl2. The changes to the API for location handlers are too drastic to"
|
||||
ewarn "try and support both within the same class (I tried, using the compatibility"
|
||||
ewarn "layer). Also, mp2 does not currently provide support for <Perl> sections, which"
|
||||
ewarn "are the real strength of the Apache::RPC::Server class."
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST SVG-2.59.tar.gz 54926 SHA256 e1e60e590718c2de5bda17a76283fdeb137761b69da2121c03d9630257e8ba3a SHA512 2056925e19ce4410da9d7fb7ca337c47a2d866496be01d0469e0dd27882d0fca1bf0371b5f4e8e15b1974da2ed55392b2688e52eb46a4f5be2f2ba5733e7fc48 WHIRLPOOL 8b4d56101c146b64dad878f717815530b98bd9781202d2287d5478de528831fa341339367f5ccf139cb52edaac0636296c40892aff5c9b5114d213f8b7e3599d
|
||||
DIST SVG-2.64.tar.gz 52382 SHA256 73d1e1e79f6cc04f976066e70106099df35be5534eceb5dfd2c1903ecf994acd SHA512 81e5c7a10d07575b3bfa06c11aed8c47edfa0e65bb108feab13debb5155bfa3464f687ca142ee5fc9f3a0f01dea674c0c1daad69bff8aa2e263245e60891d914 WHIRLPOOL 7007cb2c890e20802ac807b049d26c3c6c62d44c242c5b8448ff01d81ac37694cb18c89bf0d2c43302a8ec83dd218b7eb88c2cf1366a034dc76fbbcb752b7ffc
|
||||
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=SZABGAB
|
||||
MODULE_VERSION=2.59
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Perl extension for generating Scalable Vector Graphics (SVG) documents"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="virtual/perl-parent"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-perl/Test-Pod-Coverage
|
||||
)
|
||||
"
|
||||
|
||||
SRC_TEST=do
|
@ -1,2 +1 @@
|
||||
DIST Scope-Guard-0.20.tar.gz 4082 SHA256 5b8fed60a3d77d8a9a3748db3dce894bb95431e98195be7f1920d26bbe7d4ad3 SHA512 fbee602a14bd22e8506bfb73510217b5ecf5c0f64178c966196b47800537acc00fbd46f259df46e2a973abf457fb0e326f5d363e14c65c552b03defd3c972308 WHIRLPOOL 2b3b1e651e03631d6b25107f37300b20e75cdb29e1ad354d2eaec206f354e79c677099570d1ec9e937ea79390794c1c125221ba28a1cd22b8de82215988efd55
|
||||
DIST Scope-Guard-0.21.tar.gz 4377 SHA256 8c9b1bea5c56448e2c3fadc65d05be9e4690a3823a80f39d2f10fdd8f777d278 SHA512 65492e08ab79dc323649166e83ffc13c6f1fffaa9c60d581d8854dfe427a54a3c3c5e4d8b90308d4b1a31a1a54c7977b4e1d36fc9005c6e716c2361ce187fc9f WHIRLPOOL 1d3f03abfd6603fb767f3882d3bd461a8500c2ae53cb1f23fa1c41cc61f3ff860d18ccc48e038845e310a99ecec7b5a243821a78af2873c18947b8b15618b15e
|
||||
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=CHOCOLATE
|
||||
MODULE_VERSION=0.20
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Lexically scoped resource management"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86 ~ppc-aix ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-perl/Test-Pod
|
||||
dev-perl/Test-Pod-Coverage )"
|
||||
|
||||
SRC_TEST=do
|
@ -1,2 +1 @@
|
||||
DIST Test-LongString-0.15.tar.gz 8393 SHA256 bae8f38926044e51fba4816a132a478b6027628c5c22d4396326045a861a5164 SHA512 d50bcba177280ff6da17720bde03dce0fe2b034aa7eeaa8825ccf983cbb8e60ee8f18179e47cfd43db1cac217bf30c38d224fb3557fb76ab3b58f573fd1ef529 WHIRLPOOL 31a520aa66f95436d15061038fd138ba74c3708a9d5ef8258c469bdb2ca8d95bfebb790940c4694bad88828f02fd5821e22363cad3aac9f32a5e89440bdfa866
|
||||
DIST Test-LongString-0.17.tar.gz 8928 SHA256 abc4349eaf04d1bec1e464166a3018591ea846d8f3c5c9c8af4ac4905d3e974f SHA512 1c0cd6fea35bb72816451ce0790002c9dfb945390bc85d22d04670dd5af7ebbe795307ad361e2615ce4ab4f02a317a3aa5d297f2165bd3b1f6de40b3240f1352 WHIRLPOOL 07ef4d42c1872b489b0ea8803a88f222e6a7884415bfa22247148ef4ece3558c5672c0650a7279b046976c96d5dfc09813c3e01b939096611216538dcabe9b8e
|
||||
|
@ -1,21 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=RGARCIA
|
||||
MODULE_VERSION=0.15
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="A library to test long strings"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="test? ( dev-perl/Test-Pod
|
||||
dev-perl/Test-Pod-Coverage )"
|
||||
|
||||
SRC_TEST="do"
|
@ -1,2 +1 @@
|
||||
DIST Test-MockObject-1.20120301.tar.gz 28514 SHA256 cfa0437af1f94991863f1e20342f48ba9335cef63bd87f8073b8c4b78aee7add SHA512 82204c502bf83fd11419d701d8742ccd6ba291ae00b52d86d0d37f9870072758016489b7e83d3170d99df32bc82e3c154c6c77428da22737178039bdcde2737c WHIRLPOOL c96564c30e7f2ed9ec720ed65869d1ec67118082471e0251cb02d4632e6c9ef5ca78145a1a880fac10f02ab77885051feb6ce937f349f8491d9e72a7849f768b
|
||||
DIST Test-MockObject-1.20150527.tar.gz 29652 SHA256 adf1357a9014b3a397ff7ecbf1835dec376a67a37bb2e788734a627e17dc1d98 SHA512 4c99666d9d69f75cae2cd6af8aaca58bae778ba5d4eadd456a4e3ad251d23d4bef5240cee2d575ce9b53b509416df977a5d7bc8e8f10d9a1ddcc040ff6665cab WHIRLPOOL 386303ff08d59530c6e3d979e86645a973c4501eae4799bd0c050b68b5e63ee1f2f980bd89bda80d6d78e40e86c339d1d4040e87eaeb36735be23a905ebc8e0c
|
||||
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=CHROMATIC
|
||||
MODULE_VERSION=1.20120301
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Perl extension for emulating troublesome interfaces"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ppc x86 ~ppc-aix"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-perl/UNIVERSAL-isa-1.201.106.140
|
||||
>=dev-perl/UNIVERSAL-can-1.201.106.170
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-perl/Test-Exception-0.310.0
|
||||
>=dev-perl/Test-Warn-0.230.0
|
||||
dev-perl/CGI
|
||||
)
|
||||
"
|
||||
|
||||
SRC_TEST=do
|
@ -0,0 +1 @@
|
||||
DIST chump-1.5.1.tar.gz 9370 SHA256 5aa5a1a4a0c0baa610e742018f5cce508fa4c980b15188664de0d3834e76b857 SHA512 778e043e4641b433a03860f1b1b144cdd34d0f79fb20ec0801cea1e1473eade8dd5211ffca391a57eb1f01456ec33cef4db6359839e7e39eab169411d00471e3 WHIRLPOOL dd78cd570060e75ab74e9e42e311dc3b0f096cc0fec588ad6c8378be314ec675b1557f172db945091d09caf10e26b04ec1ff92ffeb30a32df8254b2048728089
|
@ -0,0 +1,19 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="API wrapper for Pushover"
|
||||
HOMEPAGE="https://github.com/karanlyons/chump"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>sautier.louis@gmail.com</email>
|
||||
<name>Louis Sautier</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">chump</remote-id>
|
||||
<remote-id type="github">karanlyons/chump</remote-id>
|
||||
<bugs-to>https://github.com/karanlyons/chump/issues</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
|
||||
DESCRIPTION="Subversion output colorizer"
|
||||
HOMEPAGE="http://colorsvn.tigris.org"
|
||||
SRC_URI="http://www.console-colors.de/downloads/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
dev-vcs/subversion"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/0001-Don-t-colorize-svn-mkdir-bug-321451.-Use-IPC-open2-i.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# rxvt-unicode isn't listed by default :)
|
||||
sed -i -e 's:rxvt:rxvt rxvt-unicode:' colorsvnrc-original || die
|
||||
# Fix confdir location for Prefix, #435434
|
||||
sed -i \
|
||||
-e '/^confdir/d' \
|
||||
-e 's/$(confdir)/$(sysconfdir)/g' \
|
||||
Makefile.in || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# bug 335134
|
||||
emake -j1 || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "The default settings are stored in /etc/colorsvnrc."
|
||||
elog "They can be locally overridden by ~/.colorsvnrc."
|
||||
elog "An alias to colorsvn was installed for the svn command."
|
||||
elog "In order to immediately activate it do:"
|
||||
elog "\tsource /etc/profile"
|
||||
elog "NOTE: If you don't see colors,"
|
||||
elog "append the output of 'echo \$TERM' to 'colortty' in your colorsvnrc."
|
||||
elog
|
||||
}
|
@ -0,0 +1,370 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
# @ECLASS: mozlinguas-v2.eclass
|
||||
# @MAINTAINER:
|
||||
# mozilla@gentoo.org
|
||||
# @AUTHOR:
|
||||
# Nirbheek Chauhan <nirbheek@gentoo.org>
|
||||
# Ian Stakenvicius <axs@gentoo.org>
|
||||
# @BLURB: Handle language packs for mozilla products
|
||||
# @DESCRIPTION:
|
||||
# Sets IUSE according to MOZ_LANGS (language packs available). Also exports
|
||||
# src_unpack, src_compile and src_install for use in ebuilds, and provides
|
||||
# supporting functions for langpack generation and installation.
|
||||
|
||||
inherit mozextension
|
||||
|
||||
case "${EAPI:-0}" in
|
||||
0|1)
|
||||
die "EAPI ${EAPI:-0} does not support the '->' SRC_URI operator";;
|
||||
2|3|4|5|6)
|
||||
EXPORT_FUNCTIONS src_unpack src_compile src_install;;
|
||||
*)
|
||||
die "EAPI ${EAPI} is not supported, contact eclass maintainers";;
|
||||
esac
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_LANGS
|
||||
# @DESCRIPTION:
|
||||
# Array containing the list of language pack xpis available for
|
||||
# this release. The list can be updated with scripts/get_langs.sh from the
|
||||
# mozilla overlay.
|
||||
: ${MOZ_LANGS:=()}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_PV
|
||||
# @DESCRIPTION:
|
||||
# Ebuild package version converted to equivalent upstream version.
|
||||
# Defaults to ${PV}, and should be overridden for alphas, betas, and RCs
|
||||
: ${MOZ_PV:="${PV}"}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_PN
|
||||
# @DESCRIPTION:
|
||||
# Ebuild package name converted to equivalent upstream name.
|
||||
# Defaults to ${PN}, and should be overridden for binary ebuilds.
|
||||
: ${MOZ_PN:="${PN}"}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_P
|
||||
# @DESCRIPTION:
|
||||
# Ebuild package name + version converted to upstream equivalent.
|
||||
# Defaults to ${MOZ_PN}-${MOZ_PV}
|
||||
: ${MOZ_P:="${MOZ_PN}-${MOZ_PV}"}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_FTP_URI
|
||||
# @DESCRIPTION:
|
||||
# The ftp URI prefix for the release tarballs and language packs.
|
||||
: ${MOZ_FTP_URI:=""}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_HTTP_URI
|
||||
# @DESCRIPTION:
|
||||
# The http URI prefix for the release tarballs and language packs.
|
||||
: ${MOZ_HTTP_URI:=""}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_LANGPACK_PREFIX
|
||||
# @DESCRIPTION:
|
||||
# The relative path till the lang code in the langpack file URI.
|
||||
# Defaults to ${MOZ_PV}/linux-i686/xpi/
|
||||
: ${MOZ_LANGPACK_PREFIX:="${MOZ_PV}/linux-i686/xpi/"}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_LANGPACK_SUFFIX
|
||||
# @DESCRIPTION:
|
||||
# The suffix after the lang code in the langpack file URI.
|
||||
# Defaults to '.xpi'
|
||||
: ${MOZ_LANGPACK_SUFFIX:=".xpi"}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_LANGPACK_UNOFFICIAL
|
||||
# @DESCRIPTION:
|
||||
# The status of the langpack, used to differentiate within
|
||||
# Manifests and on Gentoo mirrors as to when the langpacks are
|
||||
# generated officially by Mozilla or if they were generated
|
||||
# unofficially by others (ie the Gentoo mozilla team). When
|
||||
# this var is set, the distfile will have a .unofficial.xpi
|
||||
# suffix.
|
||||
: ${MOZ_LANGPACK_UNOFFICIAL:=""}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_GENERATE_LANGPACKS
|
||||
# @DESCRIPTION:
|
||||
# This flag specifies whether or not the langpacks should be
|
||||
# generated directly during the build process, rather than
|
||||
# being downloaded and installed from upstream pre-built
|
||||
# extensions. Primarily it supports pre-release builds.
|
||||
# Defaults to empty.
|
||||
: ${MOZ_GENERATE_LANGPACKS:=""}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_L10N_SOURCEDIR
|
||||
# @DESCRIPTION:
|
||||
# The path that l10n sources can be found at, once unpacked.
|
||||
# Defaults to ${WORKDIR}/l10n-sources
|
||||
: ${MOZ_L10N_SOURCEDIR:="${WORKDIR}/l10n-sources"}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_L10N_URI_PREFIX
|
||||
# @DESCRIPTION:
|
||||
# The full URI prefix of the distfile for each l10n locale. The
|
||||
# AB_CD and MOZ_L10N_URI_SUFFIX will be appended to this to complete the
|
||||
# SRC_URI when MOZ_GENERATE_LANGPACKS is set. If empty, nothing will
|
||||
# be added to SRC_URI.
|
||||
# Defaults to empty.
|
||||
: ${MOZ_L10N_URI_PREFIX:=""}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_L10N_URI_SUFFIX
|
||||
# @DESCRIPTION:
|
||||
# The suffix of l10n source distfiles.
|
||||
# Defaults to '.tar.xz'
|
||||
: ${MOZ_L10N_URI_SUFFIX:=".tar.xz"}
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_FORCE_UPSTREAM_L10N
|
||||
# @DESCRIPTION:
|
||||
# Set this to use upstream langpaks even if the package normally
|
||||
# shouldn't (ie it is an alpha or beta package)
|
||||
: ${MOZ_FORCE_UPSTREAM_L10N:=""}
|
||||
|
||||
|
||||
# @ECLASS-VARIABLE: MOZ_TOO_REGIONALIZED_FOR_L10N
|
||||
# @INTERNAL
|
||||
# @DESCRIPTION:
|
||||
# Upstream identifiers that should not contain region subtags in L10N
|
||||
MOZ_TOO_REGIONALIZED_FOR_L10N=( fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO nn-NO pa-IN sv-SE )
|
||||
|
||||
# Add l10n_* to IUSE according to available language packs
|
||||
# No language packs for alphas and betas
|
||||
if ! [[ -n ${MOZ_GENERATE_LANGPACKS} ]] ; then
|
||||
if ! [[ ${PV} =~ alpha|beta ]] || { [[ ${PN} == seamonkey ]] && ! [[ ${PV} =~ alpha ]] ; } || [[ -n ${MOZ_FORCE_UPSTREAM_L10N} ]] ; then
|
||||
[[ -z ${MOZ_FTP_URI} ]] && [[ -z ${MOZ_HTTP_URI} ]] && die "No URI set to download langpacks, please set one of MOZ_{FTP,HTTP}_URI"
|
||||
for x in "${MOZ_LANGS[@]}" ; do
|
||||
# en and en_US are handled internally
|
||||
if [[ ${x} == en ]] || [[ ${x} == en-US ]]; then
|
||||
continue
|
||||
fi
|
||||
# strip region subtag if $x is in the list
|
||||
if has ${x} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
|
||||
xflag=${x%%-*}
|
||||
else
|
||||
xflag=${x}
|
||||
fi
|
||||
SRC_URI+=" l10n_${xflag/[_@]/-}? ("
|
||||
[[ -n ${MOZ_FTP_URI} ]] && SRC_URI+="
|
||||
${MOZ_FTP_URI}/${MOZ_LANGPACK_PREFIX}${x}${MOZ_LANGPACK_SUFFIX} -> ${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}.xpi"
|
||||
[[ -n ${MOZ_HTTP_URI} ]] && SRC_URI+="
|
||||
${MOZ_HTTP_URI}/${MOZ_LANGPACK_PREFIX}${x}${MOZ_LANGPACK_SUFFIX} -> ${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}.xpi"
|
||||
SRC_URI+=" )"
|
||||
IUSE+=" l10n_${xflag/[_@]/-}"
|
||||
# We used to do some magic if specific/generic locales were missing, but
|
||||
# we stopped doing that due to bug 325195.
|
||||
done
|
||||
fi
|
||||
else
|
||||
for x in "${MOZ_LANGS[@]}" ; do
|
||||
# en and en_US are handled internally
|
||||
if [[ ${x} == en ]] || [[ ${x} == en-US ]]; then
|
||||
continue
|
||||
fi
|
||||
# strip region subtag if $x is in the list
|
||||
if has ${x} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
|
||||
xflag=${x%%-*}
|
||||
else
|
||||
xflag=${x}
|
||||
fi
|
||||
# Do NOT grab l10n sources from hg tip at this time, since it is a moving target
|
||||
# if [[ ${PV} =~ alpha ]]; then
|
||||
# # Please note that this URI is not deterministic - digest breakage could occur
|
||||
# SRC_URI+=" l10n_${xflag/[_@]/-}? ( http://hg.mozilla.org/releases/l10n/mozilla-aurora/ach/archive/tip.tar.bz2 -> ${MOZ_P}-l10n-${x}.tar.bz2 )"
|
||||
# elif [[ ${PV} =~ beta ]] && ! [[ ${PN} == seamonkey ]]; then
|
||||
# # Please note that this URI is not deterministic - digest breakage could occur
|
||||
# SRC_URI+=" l10n_${xflag/[_@]/-}? ( http://hg.mozilla.org/releases/l10n/mozilla-beta/ach/archive/tip.tar.bz2 -> ${MOZ_P}-l10n-${x}.tar.bz2 )"
|
||||
# elif [[ -n ${MOZ_L10N_URI_PREFIX} ]]; then
|
||||
if [[ -n ${MOZ_L10N_URI_PREFIX} ]]; then
|
||||
SRC_URI+=" l10n_${xflag/[_@]/-}? ( ${MOZ_L10N_URI_PREFIX}${x}${MOZ_L10N_URI_SUFFIX} )"
|
||||
fi
|
||||
IUSE+=" l10n_${x/[_@]/-}"
|
||||
done
|
||||
fi
|
||||
unset x xflag
|
||||
|
||||
# @FUNCTION: mozlinguas_export
|
||||
# @INTERNAL
|
||||
# @DESCRIPTION:
|
||||
# Generate the list of language packs called "mozlinguas"
|
||||
# This list is used to unpack and install the xpi language packs
|
||||
mozlinguas_export() {
|
||||
if [[ ${PN} == seamonkey ]] ; then
|
||||
[[ ${PV} =~ alpha ]] && ! [[ -n ${MOZ_GENERATE_LANGPACKS} ]] && return
|
||||
else
|
||||
[[ ${PV} =~ alpha|beta ]] && ! [[ -n ${MOZ_GENERATE_LANGPACKS} ]] && return
|
||||
fi
|
||||
local lingua lflag
|
||||
mozlinguas=()
|
||||
# Set mozlinguas based on the enabled l10n_* USE flags.
|
||||
for lingua in "${MOZ_LANGS[@]}"; do
|
||||
# strip region subtag if $x is in the list
|
||||
if has ${lingua} en en-US; then
|
||||
# For mozilla products, en and en_US are handled internally
|
||||
continue
|
||||
elif has ${lingua} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
|
||||
lflag=${lingua%%-*}
|
||||
else
|
||||
lflag=${lingua}
|
||||
fi
|
||||
use l10n_${lflag/[_@]/-} && mozlinguas+=( ${lingua} )
|
||||
done
|
||||
# Compatibility code - Check LINGUAS and warn if anything set there isn't enabled via l10n
|
||||
for lingua in ${LINGUAS}; do
|
||||
if has ${lingua//[_@]/-} en en-US; then
|
||||
# For mozilla products, en and en_US are handled internally
|
||||
continue
|
||||
# If this language is supported by ${P},
|
||||
elif has ${lingua} "${MOZ_LANGS[@]//-/_}"; then
|
||||
# Warn the language is missing, if it isn't already there
|
||||
has ${lingua//[_@]/-} "${mozlinguas[@]//[_@]/-}" || \
|
||||
ewarn "LINGUAS value ${lingua} is not enabled using L10N use flags"
|
||||
continue
|
||||
# For each short lingua that isn't in MOZ_LANGS,
|
||||
# We used to add *all* long MOZ_LANGS to the mozlinguas list,
|
||||
# but we stopped doing that due to bug 325195.
|
||||
else
|
||||
:
|
||||
fi
|
||||
ewarn "Sorry, but ${P} does not support the ${lingua} locale"
|
||||
done
|
||||
}
|
||||
|
||||
# @FUNCTION: mozlinguas_src_unpack
|
||||
# @DESCRIPTION:
|
||||
# Unpack xpi language packs according to the user's LINGUAS settings
|
||||
mozlinguas_src_unpack() {
|
||||
local x
|
||||
if ! [[ -n ${MOZ_GENERATE_LANGPACKS} ]]; then
|
||||
mozlinguas_export
|
||||
for x in "${mozlinguas[@]}"; do
|
||||
# FIXME: Add support for unpacking xpis to portage
|
||||
xpi_unpack "${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}.xpi"
|
||||
done
|
||||
if [[ "${mozlinguas[*]}" != "" && "${mozlinguas[*]}" != "en" ]]; then
|
||||
einfo "Selected language packs (first will be default): ${mozlinguas[*]}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
# For the phase function export
|
||||
mozlinguas-v2_src_unpack() {
|
||||
mozlinguas_src_unpack
|
||||
}
|
||||
|
||||
|
||||
# @FUNCTION: mozlinguas_mozconfig
|
||||
# @DESCRIPTION:
|
||||
# if applicable, add the necessary flag to .mozconfig to support
|
||||
# the generation of locales. Note that this function requires
|
||||
# mozconfig_annontate to already be declared via an inherit of
|
||||
# mozconfig or mozcoreconf.
|
||||
mozlinguas_mozconfig() {
|
||||
if [[ -n ${MOZ_GENERATE_LANGPACKS} ]]; then
|
||||
if declare -f mozconfig_annotate >/dev/null ; then
|
||||
mozconfig_annotate 'for building locales' --with-l10n-base=${MOZ_L10N_SOURCEDIR}
|
||||
else
|
||||
die "Could not configure l10n-base, mozconfig_annotate not declared -- missing inherit?"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: mozlinguas_src_compile
|
||||
# @DESCRIPTION:
|
||||
# if applicable, build the selected locales.
|
||||
mozlinguas_src_compile() {
|
||||
if [[ -n ${MOZ_GENERATE_LANGPACKS} ]]; then
|
||||
# leverage BUILD_OBJ_DIR if set otherwise assume PWD.
|
||||
local x y targets=( "langpack" ) localedir="${BUILD_OBJ_DIR:-.}"
|
||||
case ${PN} in
|
||||
*firefox)
|
||||
localedir+="/browser/locales"
|
||||
;;
|
||||
seamonkey)
|
||||
localedir+="/suite/locales"
|
||||
;;
|
||||
*thunderbird)
|
||||
localedir+="/mail/locales"
|
||||
targets+=( "calendar-langpack" )
|
||||
;;
|
||||
*) die "Building locales for ${PN} is not supported."
|
||||
esac
|
||||
pushd "${localedir}" > /dev/null || die
|
||||
mozlinguas_export
|
||||
for x in "${mozlinguas[@]}"; do for y in "${targets[@]}"; do
|
||||
emake ${y}-${x} LOCALE_MERGEDIR="./${y}-${x}"
|
||||
done; done
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
# For the phase function export
|
||||
mozlinguas-v2_src_compile() {
|
||||
mozlinguas_src_compile
|
||||
}
|
||||
|
||||
# @FUNCTION: mozlinguas_xpistage_langpacks
|
||||
# @DESCRIPTION:
|
||||
# Add extra langpacks to the xpi-stage dir for prebuilt plugins
|
||||
#
|
||||
# First argument is the path to the extension
|
||||
# Second argument is the prefix of the source (same as first if unspecified)
|
||||
# Remaining arguments are the modules in the extension that are localized
|
||||
# (basename of first if unspecified)
|
||||
#
|
||||
# Example - installing extra langpacks for lightning:
|
||||
# src_install() {
|
||||
# ... # general installation steps
|
||||
# mozlinguas_xpistage_langpacks \
|
||||
# "${BUILD_OBJ_DIR}"/dist/xpi-stage/lightning \
|
||||
# "${WORKDIR}"/lightning \
|
||||
# lightning calendar
|
||||
# ... # proceed with installation from the xpi-stage dir
|
||||
# }
|
||||
|
||||
mozlinguas_xpistage_langpacks() {
|
||||
local l c modpath="${1}" srcprefix="${1}" modules=( "${1##*/}" )
|
||||
shift
|
||||
if [[ -n ${1} ]] ; then srcprefix="${1}" ; shift ; fi
|
||||
if [[ -n ${1} ]] ; then modules=( $@ ) ; fi
|
||||
|
||||
mozlinguas_export
|
||||
mkdir -p "${modpath}/chrome" || die
|
||||
for l in "${mozlinguas[@]}"; do for c in "${modules[@]}" ; do
|
||||
if [[ -e "${srcprefix}-${l}/chrome/${c}-${l}" ]]; then
|
||||
cp -RLp -t "${modpath}/chrome" "${srcprefix}-${l}/chrome/${c}-${l}" || die
|
||||
grep "locale ${c} ${l} chrome/" "${srcprefix}-${l}/chrome.manifest" \
|
||||
>>"${modpath}/chrome.manifest" || die
|
||||
elif [[ -e "${srcprefix}/chrome/${c}-${l}" ]]; then
|
||||
cp -RLp -t "${modpath}/chrome" "${srcprefix}/chrome/${c}-${l}" || die
|
||||
grep "locale ${c} ${l} chrome/" "${srcprefix}/chrome.manifest" \
|
||||
>>"${modpath}/chrome.manifest" || die
|
||||
else
|
||||
ewarn "Locale ${l} was not found for ${c}, skipping."
|
||||
fi
|
||||
done; done
|
||||
}
|
||||
|
||||
# @FUNCTION: mozlinguas-v2_src_install
|
||||
# @DESCRIPTION:
|
||||
# Install xpi language packs according to the user's L10N settings
|
||||
# NOTE - uses ${BUILD_OBJ_DIR} or PWD if unset, for source-generated langpacks
|
||||
mozlinguas_src_install() {
|
||||
local x
|
||||
mozlinguas_export
|
||||
if [[ -n ${MOZ_GENERATE_LANGPACKS} ]]; then
|
||||
local repopath="${WORKDIR}/${PN}-generated-langpacks"
|
||||
mkdir -p "${repopath}"
|
||||
pushd "${BUILD_OBJ_DIR:-.}"/dist/*/xpi > /dev/null || die
|
||||
for x in "${mozlinguas[@]}"; do
|
||||
cp "${MOZ_P}.${x}.langpack.xpi" \
|
||||
"${repopath}/${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}.xpi" || die
|
||||
xpi_unpack "${repopath}/${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}.xpi"
|
||||
done
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
for x in "${mozlinguas[@]}"; do
|
||||
xpi_install "${WORKDIR}/${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}"
|
||||
done
|
||||
}
|
||||
|
||||
# For the phase function export
|
||||
mozlinguas-v2_src_install() {
|
||||
mozlinguas_src_install
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit eutils user
|
||||
|
||||
MY_P="ChickensForLinux-Linux-${PV}"
|
||||
DESCRIPTION="Target chickens with rockets and shotguns. Funny"
|
||||
HOMEPAGE="http://www.chickensforlinux.com/"
|
||||
SRC_URI="http://www.chickensforlinux.com/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="all-rights-reserved"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
RESTRICT="mirror bindist"
|
||||
|
||||
DEPEND="<media-libs/allegro-5"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
pkg_setup(){
|
||||
enewgroup gamestat 36
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i \
|
||||
-e "s:HighScores:/var/games//${PN}/HighScores:" \
|
||||
-e "s:....\(.\)\(_\)\(.*.4x0\)\(.\):M\4\2\x42\x6Fn\1s\2:" \
|
||||
highscore.cpp HighScores || die
|
||||
sed -i \
|
||||
-e "s:options.cfg:/etc/${PN}/options.cfg:" \
|
||||
-e "s:\"sound/:\"/usr/share/${PN}/sound/:" \
|
||||
-e "s:\"dat/:\"/usr/share/${PN}/dat/:" \
|
||||
main.cpp README || die
|
||||
sed -i \
|
||||
-e '/^CPPFLAGS/d' \
|
||||
-e 's:g++:\\$(CXX) \\$(CXXFLAGS) \\$(LDFLAGS):' \
|
||||
configure || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
insinto /usr/share/${PN}
|
||||
doins -r dat sound
|
||||
dodoc AUTHOR README
|
||||
insinto /var/games/${PN}
|
||||
doins HighScores
|
||||
insinto /etc/${PN}
|
||||
doins options.cfg
|
||||
make_desktop_entry ${PN} Chickens
|
||||
|
||||
fowners root:gamestat /usr/bin/${PN} /var/games/${PN}/HighScores
|
||||
fperms 2755 /usr/bin/${PN}
|
||||
fperms 660 /var/games/${PN}/HighScores
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit autotools eutils user
|
||||
|
||||
DESCRIPTION="2D length scroll shooting game"
|
||||
HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.gz
|
||||
mirror://gentoo/${PN}.png"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-games/KXL"
|
||||
RDEPEND="${DEPEND}
|
||||
media-fonts/font-adobe-100dpi"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-cflags.patch
|
||||
"${FILESDIR}"/${P}-paths.patch
|
||||
)
|
||||
|
||||
pkg_setup(){
|
||||
enewgroup gamestat 36
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm -f missing
|
||||
sed -i \
|
||||
-e '1i #include <string.h>' \
|
||||
-e "s:DATA_PATH \"/.score\":\"/var/games/${PN}\":" \
|
||||
src/ranking.c || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /var/games/
|
||||
newins data/.score ${PN}
|
||||
fowners root:gamestat /var/games/${PN} /usr/bin/geki2
|
||||
fperms 660 /var/games/${PN}
|
||||
fperms 2755 /usr/bin/geki2
|
||||
|
||||
doicon "${DISTDIR}"/${PN}.png
|
||||
make_desktop_entry geki2 Geki2
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit autotools eutils user
|
||||
|
||||
DESCRIPTION="2D length scroll shooting game"
|
||||
HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.gz
|
||||
mirror://gentoo/${PN}.png"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-games/KXL"
|
||||
RDEPEND="${DEPEND}
|
||||
media-fonts/font-adobe-100dpi"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-paths.patch
|
||||
)
|
||||
|
||||
pkg_setup(){
|
||||
enewgroup gamestat 36
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm -f missing
|
||||
sed -i \
|
||||
-e '1i #include <string.h>' \
|
||||
-e "s:DATA_PATH \"/.score\":\"/var/games/${PN}\":" \
|
||||
src/ranking.c || die
|
||||
sed -i -e '/CFLAGS/s/$/ @CFLAGS@/' src/Makefile.am || die #bug 426890
|
||||
mv configure.{in,ac}
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /var/games/${PN}
|
||||
newins data/.score ${PN}
|
||||
fowners root:gamestat /var/games/${PN} /usr/bin/geki3
|
||||
fperms 660 /var/games/${PN}
|
||||
fperms 2755 /usr/bin/geki3
|
||||
|
||||
doicon "${DISTDIR}"/${PN}.png
|
||||
make_desktop_entry geki3 Geki3
|
||||
}
|
@ -1,380 +0,0 @@
|
||||
diff -ur Maelstrom-3.0.6-orig/controls.cpp Maelstrom-3.0.6/controls.cpp
|
||||
--- Maelstrom-3.0.6-orig/controls.cpp 2001-03-25 03:04:28 +0900
|
||||
+++ Maelstrom-3.0.6/controls.cpp 2003-05-21 11:25:53 +0900
|
||||
@@ -83,7 +83,7 @@
|
||||
if ( fname ) {
|
||||
*fname = datafile;
|
||||
}
|
||||
- sprintf(datafile, "%s"DIR_SEP"%s", home, MAELSTROM_DATA);
|
||||
+ snprintf(datafile, sizeof(datafile), "%s"DIR_SEP"%s", home, MAELSTROM_DATA);
|
||||
if ( (data=fopen(datafile, mode)) == NULL )
|
||||
return(NULL);
|
||||
return(data);
|
||||
diff -ur Maelstrom-3.0.6-orig/dialog.h Maelstrom-3.0.6/dialog.h
|
||||
--- Maelstrom-3.0.6-orig/dialog.h 2001-07-21 00:08:10 +0900
|
||||
+++ Maelstrom-3.0.6/dialog.h 2003-05-21 11:24:33 +0900
|
||||
@@ -92,7 +92,7 @@
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
- vsprintf(errbuf, fmt, ap);
|
||||
+ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
|
||||
va_end(ap);
|
||||
errstr = errbuf;
|
||||
}
|
||||
@@ -878,7 +878,7 @@
|
||||
if ( entry->text ) {
|
||||
Fontserv->FreeText(entry->text);
|
||||
}
|
||||
- sprintf(buf, "%d", *entry->variable);
|
||||
+ snprintf(buf, sizeof(buf), "%d", *entry->variable);
|
||||
|
||||
if ( entry->hilite ) {
|
||||
clear = Fg;
|
||||
diff -ur Maelstrom-3.0.6-orig/load.cpp Maelstrom-3.0.6/load.cpp
|
||||
--- Maelstrom-3.0.6-orig/load.cpp 2000-02-15 11:47:39 +0900
|
||||
+++ Maelstrom-3.0.6/load.cpp 2003-05-21 11:26:18 +0900
|
||||
@@ -81,7 +81,7 @@
|
||||
SDL_Surface *bmp, *title;
|
||||
|
||||
/* Open the title file -- we know its colormap is our global one */
|
||||
- sprintf(file, "Images"DIR_SEP"Maelstrom_Titles#%d.bmp", title_id);
|
||||
+ snprintf(file, sizeof(file), "Images"DIR_SEP"Maelstrom_Titles#%d.bmp", title_id);
|
||||
bmp = SDL_LoadBMP(path.Path(file));
|
||||
if ( bmp == NULL ) {
|
||||
return(NULL);
|
||||
@@ -103,7 +103,7 @@
|
||||
Uint16 w, h;
|
||||
|
||||
/* Open the cicn sprite file.. */
|
||||
- sprintf(file, "Images"DIR_SEP"Maelstrom_Icon#%hd.cicn", cicn_id);
|
||||
+ snprintf(file, sizeof(file), "Images"DIR_SEP"Maelstrom_Icon#%hd.cicn", cicn_id);
|
||||
if ( (cicn_src=SDL_RWFromFile(path.Path(file), "r")) == NULL ) {
|
||||
error("GetCIcon(%hd): Can't open CICN %s: ",
|
||||
cicn_id, path.Path(file));
|
||||
diff -ur Maelstrom-3.0.6-orig/maclib/Mac_FontServ.h Maelstrom-3.0.6/maclib/Mac_FontServ.h
|
||||
--- Maelstrom-3.0.6-orig/maclib/Mac_FontServ.h 1999-12-03 02:15:33 +0900
|
||||
+++ Maelstrom-3.0.6/maclib/Mac_FontServ.h 2003-05-21 11:28:43 +0900
|
||||
@@ -135,7 +135,7 @@
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
- vsprintf(errbuf, fmt, ap);
|
||||
+ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
|
||||
va_end(ap);
|
||||
errstr = errbuf;
|
||||
}
|
||||
diff -ur Maelstrom-3.0.6-orig/maclib/Mac_Resource.h Maelstrom-3.0.6/maclib/Mac_Resource.h
|
||||
--- Maelstrom-3.0.6-orig/maclib/Mac_Resource.h 1999-12-04 03:01:47 +0900
|
||||
+++ Maelstrom-3.0.6/maclib/Mac_Resource.h 2003-05-21 11:28:35 +0900
|
||||
@@ -96,7 +96,7 @@
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
- vsprintf(errbuf, fmt, ap);
|
||||
+ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
|
||||
va_end(ap);
|
||||
errstr = errbuf;
|
||||
}
|
||||
diff -ur Maelstrom-3.0.6-orig/maclib/Mac_Sound.h Maelstrom-3.0.6/maclib/Mac_Sound.h
|
||||
--- Maelstrom-3.0.6-orig/maclib/Mac_Sound.h 2002-10-20 11:53:34 +0900
|
||||
+++ Maelstrom-3.0.6/maclib/Mac_Sound.h 2003-05-21 11:28:27 +0900
|
||||
@@ -199,7 +199,7 @@
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
- vsprintf(errbuf, fmt, ap);
|
||||
+ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
|
||||
va_end(ap);
|
||||
errstr = errbuf;
|
||||
}
|
||||
diff -ur Maelstrom-3.0.6-orig/maclib/Mac_Wave.h Maelstrom-3.0.6/maclib/Mac_Wave.h
|
||||
--- Maelstrom-3.0.6-orig/maclib/Mac_Wave.h 2000-01-26 01:44:10 +0900
|
||||
+++ Maelstrom-3.0.6/maclib/Mac_Wave.h 2003-05-21 11:28:20 +0900
|
||||
@@ -108,7 +108,7 @@
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
- vsprintf(errbuf, fmt, ap);
|
||||
+ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
|
||||
va_end(ap);
|
||||
errstr = errbuf;
|
||||
}
|
||||
diff -ur Maelstrom-3.0.6-orig/maclib/macres.cpp Maelstrom-3.0.6/maclib/macres.cpp
|
||||
--- Maelstrom-3.0.6-orig/maclib/macres.cpp 2000-01-26 01:44:20 +0900
|
||||
+++ Maelstrom-3.0.6/maclib/macres.cpp 2003-05-21 11:30:01 +0900
|
||||
@@ -58,8 +58,8 @@
|
||||
ids[j], res->ResourceName(types[i], ids[j]));
|
||||
if ( argv[2] ) {
|
||||
char path[23];
|
||||
- sprintf(path,"%s/%s:%hu", argv[2],
|
||||
- types[i], ids[j]);
|
||||
+ snprintf(path, sizeof(path), "%s/%s:%hu",
|
||||
+ argv[2], types[i], ids[j]);
|
||||
FILE *output;
|
||||
Mac_ResData *D;
|
||||
if ( (output=fopen(path, "w")) != NULL ) {
|
||||
diff -ur Maelstrom-3.0.6-orig/maclib/snd2wav.cpp Maelstrom-3.0.6/maclib/snd2wav.cpp
|
||||
--- Maelstrom-3.0.6-orig/maclib/snd2wav.cpp 2001-03-28 12:54:50 +0900
|
||||
+++ Maelstrom-3.0.6/maclib/snd2wav.cpp 2003-05-21 11:29:23 +0900
|
||||
@@ -82,7 +82,7 @@
|
||||
continue;
|
||||
}
|
||||
wave.Load(snd, rate);
|
||||
- sprintf(wavname, "snd_%d.wav", ids[i]);
|
||||
+ snprintf(wavname, sizeof(wavname), "snd_%d.wav", ids[i]);
|
||||
wave.Save(wavname);
|
||||
}
|
||||
delete macx;
|
||||
diff -ur Maelstrom-3.0.6-orig/main.cpp Maelstrom-3.0.6/main.cpp
|
||||
--- Maelstrom-3.0.6-orig/main.cpp 2002-10-20 11:53:32 +0900
|
||||
+++ Maelstrom-3.0.6/main.cpp 2003-05-21 11:27:02 +0900
|
||||
@@ -445,7 +445,7 @@
|
||||
DrawText(xOff+309-7, yOff+240-6, text, geneva, STYLE_BOLD,
|
||||
0x00, 0x00, 0x00);
|
||||
}
|
||||
- sprintf(text, "%d", gSoundLevel);
|
||||
+ snprintf(text, sizeof(text), "%d", gSoundLevel);
|
||||
DrawText(xOff+309-7, yOff+240-6, text, geneva, STYLE_BOLD,
|
||||
30000>>8, 30000>>8, 0xFF);
|
||||
screen->Update();
|
||||
@@ -547,11 +547,11 @@
|
||||
}
|
||||
DrawText(xOff+5, botDiv+42+(index*18), hScores[index].name,
|
||||
font, STYLE_BOLD, R, G, B);
|
||||
- sprintf(buffer, "%u", hScores[index].score);
|
||||
+ snprintf(buffer, sizeof(buffer), "%u", hScores[index].score);
|
||||
sw = fontserv->TextWidth(buffer, font, STYLE_BOLD);
|
||||
DrawText(sRt-sw, botDiv+42+(index*18), buffer,
|
||||
font, STYLE_BOLD, R, G, B);
|
||||
- sprintf(buffer, "%u", hScores[index].wave);
|
||||
+ snprintf(buffer, sizeof(buffer), "%u", hScores[index].wave);
|
||||
sw = fontserv->TextWidth(buffer, font, STYLE_BOLD);
|
||||
DrawText(wRt-sw, botDiv+42+(index*18), buffer,
|
||||
font, STYLE_BOLD, R, G, B);
|
||||
@@ -560,7 +560,7 @@
|
||||
|
||||
DrawText(xOff+5, botDiv+46+(10*18)+3, "Last Score: ",
|
||||
bigfont, STYLE_NORM, 0xFF, 0xFF, 0xFF);
|
||||
- sprintf(buffer, "%d", GetScore());
|
||||
+ snprintf(buffer, sizeof(buffer), "%d", GetScore());
|
||||
sw = fontserv->TextWidth("Last Score: ", bigfont, STYLE_NORM);
|
||||
DrawText(xOff+5+sw, botDiv+46+(index*18)+3, buffer,
|
||||
bigfont, STYLE_NORM, 0xFF, 0xFF, 0xFF);
|
||||
diff -ur Maelstrom-3.0.6-orig/myerror.cpp Maelstrom-3.0.6/myerror.cpp
|
||||
--- Maelstrom-3.0.6-orig/myerror.cpp 1998-07-14 10:50:17 +0900
|
||||
+++ Maelstrom-3.0.6/myerror.cpp 2003-05-21 11:23:33 +0900
|
||||
@@ -16,7 +16,7 @@
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
- vsprintf(mesg, fmt, ap);
|
||||
+ vsnprintf(mesg, sizeof(mesg), fmt, ap);
|
||||
fputs(mesg, stderr);
|
||||
va_end(ap);
|
||||
}
|
||||
@@ -27,7 +27,7 @@
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
- vsprintf(mesg, fmt, ap);
|
||||
+ vsnprintf(mesg, sizeof(mesg), fmt, ap);
|
||||
fputs(mesg, stdout);
|
||||
va_end(ap);
|
||||
}
|
||||
@@ -37,7 +37,7 @@
|
||||
char buffer[BUFSIZ];
|
||||
|
||||
if ( *msg ) {
|
||||
- sprintf(buffer, "%s: %s\n", msg, strerror(errno));
|
||||
+ snprintf(buffer, sizeof(buffer), "%s: %s\n", msg, strerror(errno));
|
||||
error(buffer);
|
||||
} else
|
||||
error((char *)strerror(errno));
|
||||
diff -ur Maelstrom-3.0.6-orig/netlogic/game.cpp Maelstrom-3.0.6/netlogic/game.cpp
|
||||
--- Maelstrom-3.0.6-orig/netlogic/game.cpp 2001-07-23 11:24:03 +0900
|
||||
+++ Maelstrom-3.0.6/netlogic/game.cpp 2003-05-21 11:33:19 +0900
|
||||
@@ -232,7 +232,7 @@
|
||||
|
||||
lastDisplayed = gDisplayed;
|
||||
screen->FillRect(0, 0, SCREEN_WIDTH, 12, ourBlack);
|
||||
- sprintf(caption,
|
||||
+ snprintf(caption, sizeof(caption),
|
||||
"You are player %d --- displaying player %d",
|
||||
gOurPlayer+1, gDisplayed+1);
|
||||
DrawText(SPRITES_WIDTH, 11, caption, geneva,
|
||||
@@ -357,7 +357,7 @@
|
||||
/* -- Erase old and draw new score */
|
||||
screen->FillRect(45, gStatusLine+1,
|
||||
score_width, text_height, ourBlack);
|
||||
- sprintf(numbuf, "%d", Score);
|
||||
+ snprintf(numbuf, sizeof(numbuf), "%d", Score);
|
||||
score_width = DrawText(45, gStatusLine+11,
|
||||
numbuf, geneva, STYLE_BOLD,
|
||||
0xFF, 0xFF, 0xFF);
|
||||
@@ -380,7 +380,7 @@
|
||||
if (lastWave != gWave) {
|
||||
screen->FillRect(255, gStatusLine+1,
|
||||
wave_width, text_height, ourBlack);
|
||||
- sprintf(numbuf, "%d", gWave);
|
||||
+ snprintf(numbuf, sizeof(numbuf), "%d", gWave);
|
||||
wave_width = DrawText(255, gStatusLine+11,
|
||||
numbuf, geneva, STYLE_BOLD,
|
||||
0xFF, 0xFF, 0xFF);
|
||||
@@ -391,7 +391,7 @@
|
||||
if (lastLives != Lives) {
|
||||
screen->FillRect(319, gStatusLine+1,
|
||||
lives_width, text_height, ourBlack);
|
||||
- sprintf(numbuf, "%-3.1d", Lives);
|
||||
+ snprintf(numbuf, sizeof(numbuf), "%-3.1d", Lives);
|
||||
lives_width = DrawText(319, gStatusLine+11,
|
||||
numbuf, geneva, STYLE_BOLD,
|
||||
0xFF, 0xFF, 0xFF);
|
||||
@@ -402,7 +402,7 @@
|
||||
if (lastBonus != Bonus) {
|
||||
screen->FillRect(384, gStatusLine+1,
|
||||
bonus_width, text_height, ourBlack);
|
||||
- sprintf(numbuf, "%-7.1d", Bonus);
|
||||
+ snprintf(numbuf, sizeof(numbuf), "%-7.1d", Bonus);
|
||||
bonus_width = DrawText(384, gStatusLine+11,
|
||||
numbuf, geneva, STYLE_BOLD,
|
||||
0xFF, 0xFF, 0xFF);
|
||||
@@ -414,7 +414,7 @@
|
||||
if (lastFrags != Frags) {
|
||||
screen->FillRect(fragoff, gStatusLine+1,
|
||||
frags_width, text_height, ourBlack);
|
||||
- sprintf(numbuf, "%-3.1d", Frags);
|
||||
+ snprintf(numbuf, sizeof(numbuf), "%-3.1d", Frags);
|
||||
frags_width = DrawText(fragoff, gStatusLine+11,
|
||||
numbuf, geneva, STYLE_BOLD,
|
||||
0xFF, 0xFF, 0xFF);
|
||||
@@ -747,10 +747,11 @@
|
||||
for ( i=0; i<gNumPlayers; ++i ) {
|
||||
char buffer[BUFSIZ], num1[12], num2[12];
|
||||
|
||||
- sprintf(num1, "%7.1d", final[i].Score);
|
||||
- sprintf(num2, "%3.1d", final[i].Frags);
|
||||
- sprintf(buffer, "Player %d: %-.7s Points, %-.3s Frags",
|
||||
- final[i].Player, num1, num2);
|
||||
+ snprintf(num1, sizeof(num1), "%7.1d", final[i].Score);
|
||||
+ snprintf(num2, sizeof(num2), "%3.1d", final[i].Frags);
|
||||
+ snprintf(buffer, sizeof(buffer),
|
||||
+ "Player %d: %-.7s Points, %-.3s Frags",
|
||||
+ final[i].Player, num1, num2);
|
||||
DrawText(160, 380+i*newyork_height, buffer,
|
||||
newyork, STYLE_NORM, 30000>>8, 30000>>8, 0xFF);
|
||||
}
|
||||
@@ -898,7 +899,7 @@
|
||||
|
||||
|
||||
/* -- Draw the wave completed message */
|
||||
- sprintf(numbuf, "Wave %d completed.", gWave);
|
||||
+ snprintf(numbuf, sizeof(numbuf), "Wave %d completed.", gWave);
|
||||
sw = fontserv->TextWidth(numbuf, geneva, STYLE_BOLD);
|
||||
x = (SCREEN_WIDTH - sw) / 2;
|
||||
DrawText(x, 150, numbuf, geneva, STYLE_BOLD, 0xFF, 0xFF, 0x00);
|
||||
@@ -935,7 +936,7 @@
|
||||
if (OurShip->GetBonusMult() != 1) {
|
||||
SDL_Surface *sprite;
|
||||
|
||||
- sprintf(numbuf, "%-5.1d", OurShip->GetBonus());
|
||||
+ snprintf(numbuf, sizeof(numbuf), "%-5.1d", OurShip->GetBonus());
|
||||
DrawText(x, 200, numbuf, geneva, STYLE_BOLD,
|
||||
0xFF, 0xFF, 0xFF);
|
||||
x += 75;
|
||||
@@ -951,10 +952,10 @@
|
||||
Delay(SOUND_DELAY);
|
||||
sound->PlaySound(gFunk, 5);
|
||||
|
||||
- sprintf(numbuf, "%-5.1d", OurShip->GetBonus());
|
||||
+ snprintf(numbuf, sizeof(numbuf), "%-5.1d", OurShip->GetBonus());
|
||||
bonus_width = DrawText(x, 200, numbuf, geneva, STYLE_BOLD,
|
||||
0xFF, 0xFF, 0xFF);
|
||||
- sprintf(numbuf, "%-5.1d", OurShip->GetScore());
|
||||
+ snprintf(numbuf, sizeof(numbuf), "%-5.1d", OurShip->GetScore());
|
||||
score_width = DrawText(xt, 220, numbuf, geneva, STYLE_BOLD,
|
||||
0xFF, 0xFF, 0xFF);
|
||||
screen->Update();
|
||||
@@ -997,12 +998,12 @@
|
||||
|
||||
screen->FillRect(x, 200-text_height+2,
|
||||
bonus_width, text_height, ourBlack);
|
||||
- sprintf(numbuf, "%-5.1d", OurShip->GetBonus());
|
||||
+ snprintf(numbuf, sizeof(numbuf), "%-5.1d", OurShip->GetBonus());
|
||||
bonus_width = DrawText(x, 200, numbuf,
|
||||
geneva, STYLE_BOLD, 0xFF, 0xFF, 0xFF);
|
||||
screen->FillRect(xt, 220-text_height+2,
|
||||
score_width, text_height, ourBlack);
|
||||
- sprintf(numbuf, "%-5.1d", OurShip->GetScore());
|
||||
+ snprintf(numbuf, sizeof(numbuf), "%-5.1d", OurShip->GetScore());
|
||||
score_width = DrawText(xt, 220, numbuf,
|
||||
geneva, STYLE_BOLD, 0xFF, 0xFF, 0xFF);
|
||||
|
||||
@@ -1015,7 +1016,7 @@
|
||||
HandleEvents(10);
|
||||
|
||||
/* -- Draw the "next wave" message */
|
||||
- sprintf(numbuf, "Prepare for Wave %d...", gWave+1);
|
||||
+ snprintf(numbuf, sizeof(numbuf), "Prepare for Wave %d...", gWave+1);
|
||||
sw = fontserv->TextWidth(numbuf, geneva, STYLE_BOLD);
|
||||
x = (SCREEN_WIDTH - sw)/2;
|
||||
DrawText(x, 259, numbuf, geneva, STYLE_BOLD, 0xFF, 0xFF, 0x00);
|
||||
diff -ur Maelstrom-3.0.6-orig/netlogic/netplay.cpp Maelstrom-3.0.6/netlogic/netplay.cpp
|
||||
--- Maelstrom-3.0.6-orig/netlogic/netplay.cpp 2002-10-20 13:11:52 +0900
|
||||
+++ Maelstrom-3.0.6/netlogic/netplay.cpp 2003-05-21 11:31:43 +0900
|
||||
@@ -670,7 +670,9 @@
|
||||
strcpy(message, "Waiting for players:");
|
||||
for ( i=0; i<gNumPlayers; ++i ) {
|
||||
if ( ! acked[i] )
|
||||
- sprintf(&message[strlen(message)], " %d", i+1);
|
||||
+ snprintf(&message[strlen(message)],
|
||||
+ sizeof(message)-strlen(message),
|
||||
+ " %d", i+1);
|
||||
}
|
||||
Message(message);
|
||||
|
||||
@@ -725,7 +727,7 @@
|
||||
/* Check the player... */
|
||||
if ( (i != gOurPlayer) && (netbuf[1] == gOurPlayer) ) {
|
||||
/* Print message, sleep 3 seconds absolutely */
|
||||
- sprintf(message,
|
||||
+ snprintf(message, sizeof(message),
|
||||
"Error: Another player (%d) thinks they are player 1!\r\n", i+1);
|
||||
ErrorMessage(message);
|
||||
/* Suck up retransmission packets */
|
||||
diff -ur Maelstrom-3.0.6-orig/netscore.cpp Maelstrom-3.0.6/netscore.cpp
|
||||
--- Maelstrom-3.0.6-orig/netscore.cpp 2001-07-23 12:25:17 +0900
|
||||
+++ Maelstrom-3.0.6/netscore.cpp 2003-05-21 11:27:18 +0900
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
/* Send the scores */
|
||||
crc = get_checksum(key, KEY_LEN);
|
||||
- sprintf(netbuf, SCOREFMT, crc, high.name, high.score, high.wave);
|
||||
+ snprintf(netbuf, sizeof(netbuf), SCOREFMT, crc, high.name, high.score, high.wave);
|
||||
SDLNet_TCP_Send(remote, netbuf, strlen(netbuf));
|
||||
n = SDLNet_TCP_Recv(remote, netbuf, 1024);
|
||||
if ( n > 0 ) {
|
||||
diff -ur Maelstrom-3.0.6-orig/screenlib/SDL_FrameBuf.cpp Maelstrom-3.0.6/screenlib/SDL_FrameBuf.cpp
|
||||
--- Maelstrom-3.0.6-orig/screenlib/SDL_FrameBuf.cpp 2001-07-23 06:03:13 +0900
|
||||
+++ Maelstrom-3.0.6/screenlib/SDL_FrameBuf.cpp 2003-05-21 11:31:01 +0900
|
||||
@@ -628,7 +628,7 @@
|
||||
|
||||
found = 0;
|
||||
for ( which=0; !found; ++which ) {
|
||||
- sprintf(file, "%s%d.bmp", prefix, which);
|
||||
+ snprintf(file, sizeof(file), "%s%d.bmp", prefix, which);
|
||||
if ( ((fp=fopen(file, "r")) == NULL) &&
|
||||
((fp=fopen(file, "w")) != NULL) ) {
|
||||
found = 1;
|
||||
diff -ur Maelstrom-3.0.6-orig/screenlib/SDL_FrameBuf.h Maelstrom-3.0.6/screenlib/SDL_FrameBuf.h
|
||||
--- Maelstrom-3.0.6-orig/screenlib/SDL_FrameBuf.h 2000-09-25 02:55:39 +0900
|
||||
+++ Maelstrom-3.0.6/screenlib/SDL_FrameBuf.h 2003-05-21 11:27:41 +0900
|
||||
@@ -165,7 +165,7 @@
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
- vsprintf(errbuf, fmt, ap);
|
||||
+ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
|
||||
va_end(ap);
|
||||
errstr = errbuf;
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
diff -ur Maelstrom-3.0.6-orig/buttonlist.h Maelstrom-3.0.6/buttonlist.h
|
||||
--- Maelstrom-3.0.6-orig/buttonlist.h 2004-08-28 01:43:55.867378220 -0400
|
||||
+++ Maelstrom-3.0.6/buttonlist.h 2004-08-28 01:44:23.700062593 -0400
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
void Add_Button(Uint16 x, Uint16 y, Uint16 width, Uint16 height,
|
||||
void (*callback)(void)) {
|
||||
- struct button *belem;
|
||||
+ button *belem;
|
||||
|
||||
for ( belem=&button_list; belem->next; belem=belem->next );
|
||||
belem->next = new button;
|
||||
@@ -30,7 +30,7 @@
|
||||
}
|
||||
|
||||
void Activate_Button(Uint16 x, Uint16 y) {
|
||||
- struct button *belem;
|
||||
+ button *belem;
|
||||
|
||||
for ( belem=button_list.next; belem; belem=belem->next ) {
|
||||
if ( (x >= belem->x1) && (x <= belem->x2) &&
|
||||
@@ -42,7 +42,7 @@
|
||||
}
|
||||
|
||||
void Delete_Buttons(void) {
|
||||
- struct button *belem, *btemp;
|
||||
+ button *belem, *btemp;
|
||||
|
||||
for ( belem=button_list.next; belem; ) {
|
||||
btemp = belem;
|
@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit autotools eutils user
|
||||
|
||||
MY_P=Maelstrom-${PV}
|
||||
DESCRIPTION="An asteroids battle game"
|
||||
HOMEPAGE="http://www.libsdl.org/projects/Maelstrom/"
|
||||
SRC_URI="http://www.libsdl.org/projects/Maelstrom/src/${MY_P}.tar.gz"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~x86"
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="media-libs/libsdl[sound,joystick,video]
|
||||
media-libs/sdl-net"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-security.patch
|
||||
"${FILESDIR}"/${P}-64bits.patch
|
||||
"${FILESDIR}"/${P}-gcc34.patch
|
||||
"${FILESDIR}"/${P}-warnings.patch
|
||||
"${FILESDIR}"/${P}-gcc53.patch
|
||||
)
|
||||
|
||||
pkg_setup(){
|
||||
enewgroup gamestat 36
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Install the data into $(datadir)/..., not $(prefix)/games/...
|
||||
sed -i \
|
||||
-e "s:(prefix)/games/:(datadir)/:" configure.in || die
|
||||
sed -i \
|
||||
-e '/make install_gamedata/ { s:=:=$(DESTDIR)/:; s/make/$(MAKE)/; s/install_gamedata/install-binPROGRAMS install_gamedata/; }' Makefile.am || die
|
||||
# Install the high scores file in ${GAMES_STATEDIR}
|
||||
sed -i \
|
||||
-e "s:path.Path(MAELSTROM_SCORES):\"/var/games/\"MAELSTROM_SCORES:" scores.cpp || die
|
||||
mv configure.{in,ac}
|
||||
rm aclocal.m4 acinclude.m4
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc Changelog Docs/{Maelstrom-Announce,*FAQ,MaelstromGPL_press_release,*.Paper,Technical_Notes*}
|
||||
|
||||
newicon "${D}/usr/share/Maelstrom/icon.xpm" maelstrom.xpm
|
||||
make_desktop_entry Maelstrom "Maelstrom" maelstrom
|
||||
|
||||
# Put the high scores file in the right place
|
||||
insinto /var/games
|
||||
doins "${D}/usr/share/Maelstrom/Maelstrom-Scores"
|
||||
|
||||
# clean up some cruft
|
||||
rm -f \
|
||||
"${D}/usr/share/Maelstrom/Maelstrom-Scores" \
|
||||
"${D}/usr/share/Maelstrom/Images/Makefile*"
|
||||
|
||||
# make sure we can update the high scores
|
||||
fowners root:gamestat /var/games/Maelstrom-Scores /usr/bin/Maelstrom{,-netd}
|
||||
fperms 2755 /usr/bin/Maelstrom{,-netd}
|
||||
fperms 660 /var/games/Maelstrom-Scores
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue