2015-08-10 08:09:38 UTC

This commit is contained in:
Repository QA checks
2015-08-10 04:09:39 -04:00
parent c7c2b8e5ab
commit 89331da54c
7 changed files with 206 additions and 4 deletions
+1
View File
@@ -1,3 +1,4 @@
DIST ekopath-2015-06-29-installer.run 61567050 SHA256 b98b2b686a7a9624b81838a37b64d8bbfc450b40c7fdfd9957c8a1690a68d4a8 SHA512 e56a9436f837df8d7acd3b9789d50316002ff42b0139b9aa7025f63ad27d98c586715277f3818a10a443d28653a1afd52f69b7101b36afd40beb4594ecbd8f91 WHIRLPOOL 42fe5fc00e83990bcf7c05a76e861d86626d54249da58608d6925323a522f7f2dc5806807aa56deceacce701386163eb34d96344fda4c49bd9b71bedc029ae3b
DIST ekopath-2015-07-07-installer.run 59012713 SHA256 7e0026405b38f46932fc5b11ebef4c828bc9c0cf05e85f365d314949a091bdd0 SHA512 c68a4b986e9f48ae70c891535a71238a43ba5afa5dcf36c900798292096abf245cc434b03dee8c9ad87e35d7ac1f27c361edcec41dae9989fee6092dd98f5fd3 WHIRLPOOL d32c2564d0c5240fa9c112224c52b38ec2a96062c69d6e4264e610e531258fc3bf8205c4c338890ece3cecf857ffa32cced2d20339f69f098e064bf96306c51e
DIST ekopath-2015-08-03-installer.run 59079587 SHA256 21e2f3339321e0de09a3e5df250c2dc52aa2ad9c95534a19539c342817f14c2b SHA512 1628f9bfbbce19d666a7ea6158c0abf6a159ef7680854456cfa811fe2a55b9228b34105ce97894af6d714fe23d2d3f0b3f0829c6dec67dd1318b52b3bc541b09 WHIRLPOOL 0978ecb39a8ef3291f05730b17c4df86538a540d5b8f01da699ed821f2aab8da8578a7a0b19a5af74fa560b1ae7c4d6ac06d178aff49aa1fd4b3440b8aa5d0e5
DIST ekopath-2015-08-09-installer.run 58521154 SHA256 7ecd2a03012e36851f69ab35f18905793212e2feae5c242f48d8f26722c5c1ca SHA512 f7da95fa987b262aafa434487cfb64340b2be754b8e119729de998c0ccddde3bbea4f3994ecd1643dbf5e49f3a48e6173be9d0102f7eb29e41d14f0914893a5b WHIRLPOOL d9cabf4787229ff2027569f7f73095a37b40c654ed0e201478a0e100cfa091ff82f3478c6b41c992288c4711823690bb0958cb1a9209ac595bb4930aaa99af4b
@@ -0,0 +1,74 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ekopath/ekopath-6.0.468_p20150803.ebuild,v 1.1 2015/08/04 16:35:58 mgorny Exp $
EAPI=5
inherit versionator multilib pax-utils
MY_PV=$(get_version_component_range 1-3)
DATE=$(get_version_component_range 4)
DATE=${DATE#p}
DATE=${DATE:0:4}-${DATE:4:2}-${DATE:6}
INSTALLER=${PN}-${DATE}-installer.run
DESCRIPTION="PathScale EKOPath Compiler Suite"
HOMEPAGE="http://www.pathscale.com/ekopath-compiler-suite"
SRC_URI="http://c591116.r16.cf2.rackcdn.com/${PN}/nightly/Linux/${INSTALLER}"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="!!app-arch/rpm"
RDEPEND=""
RESTRICT="bindist mirror"
QA_PREBUILT="
opt/${PN}/lib/${MY_PV}/x8664/*
opt/${PN}/bin/*"
S="${WORKDIR}"
src_unpack() {
cp "${DISTDIR}/${INSTALLER}" "${S}/" || die
chmod +x "${S}/${INSTALLER}" || die
}
src_prepare() {
cat > 99${PN} <<-EOF
PATH=${EROOT%/}/opt/${PN}/bin
ROOTPATH=${EROOT%/}/opt/${PN}/bin
LDPATH=${EROOT%/}/opt/${PN}/lib:${EROOT%/}/opt/${PN}/lib/${MY_PV}/x8664/64
MANPATH=${EROOT%/}/opt/${PN}/docs/man
EOF
}
src_install() {
# EI_PAX marking is obsolete and PT_PAX breaks the binary.
# We must use XT_PAX to run the installer.
if [[ ${PAX_MARKINGS} == "XT" ]]; then
pax-mark m "${INSTALLER}"
fi
./"${INSTALLER}" \
--prefix "${ED%/}/opt/${PN}" \
--mode unattended || die
if [[ ! -d ${ED%/}/opt/${PN}/lib/${MY_PV} ]]; then
local guess
cd "${ED%/}/opt/${PN}/lib" && guess=( * )
if [[ ${guess[@]} ]]; then
die "Incorrect release version in PV, guessing it should be: ${guess[*]}"
else
die "No libdir installed"
fi
fi
[[ -x ${ED%}/opt/${PN}/bin/pathcc ]] || die "No pathcc executable was installed, your hardware is unsupported most likely"
rm -r "${ED}/opt/${PN}"/uninstall* || die
doenvd 99${PN}
}
@@ -0,0 +1,12 @@
DEFINED_PHASES=install prepare unpack
DEPEND=!!app-arch/rpm
DESCRIPTION=PathScale EKOPath Compiler Suite
EAPI=5
HOMEPAGE=http://www.pathscale.com/ekopath-compiler-suite
KEYWORDS=~amd64
LICENSE=all-rights-reserved
RESTRICT=bindist mirror
SLOT=0
SRC_URI=http://c591116.r16.cf2.rackcdn.com/ekopath/nightly/Linux/ekopath-2015-08-09-installer.run
_eclasses_=eutils 351a78113be5b393c09a2c948701ad36 multilib df4e4d5cfd3d137d0c248e1991c0e4d6 pax-utils a472fe09c2264598d61d4887809e6016 toolchain-funcs 4b8d3388c0a6e798504e20ba30b49361 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
_md5_=2f7f8a249a77147fb43d7c30d5cc1c01
@@ -0,0 +1,12 @@
DEFINED_PHASES=configure install postinst prepare
DEPEND=sys-process/cronbase
DESCRIPTION=a periodic command scheduler
EAPI=5
HOMEPAGE=http://anacron.sourceforge.net/
KEYWORDS=~amd64 ~arm ~ppc ~x86
LICENSE=GPL-2+
RDEPEND=virtual/mta
SLOT=0
SRC_URI=mirror://sourceforge/anacron/anacron-2.3.tar.gz
_eclasses_=eutils 351a78113be5b393c09a2c948701ad36 multilib df4e4d5cfd3d137d0c248e1991c0e4d6 toolchain-funcs 4b8d3388c0a6e798504e20ba30b49361
_md5_=17d43f6c686af52a273788c6364fdf17
+64
View File
@@ -0,0 +1,64 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils toolchain-funcs
DESCRIPTION="a periodic command scheduler"
HOMEPAGE="http://anacron.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
IUSE=""
DEPEND="sys-process/cronbase"
RDEPEND="${RDEPEND}
virtual/mta"
src_prepare() {
epatch "${FILESDIR}"/${P}-compile-fix-from-debian.patch
epatch "${FILESDIR}"/${P}-headers.patch
sed -i \
-e '/^CFLAGS/{s:=:+=:;s:-O2::}' \
Makefile || die
}
src_configure() {
tc-export CC
}
src_install() {
#this does not work if the directory exists already
diropts -m0750 -o root -g cron
keepdir /var/spool/anacron
doman anacrontab.5 anacron.8
newinitd "${FILESDIR}"/anacron.rc6 anacron
dodoc ChangeLog README TODO
dosbin anacron
insinto /etc
doins "${FILESDIR}"/anacrontab
}
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]] ; then
elog "Schedule the command \"anacron -s\" as a daily cron-job (preferably"
elog "at some early morning hour). This will make sure that jobs are run"
elog "when the systems is left running for a night."
echo
elog "Update /etc/anacrontab to include what you want anacron to run."
echo
elog "You may wish to read the Gentoo Linux Cron Guide, which can be"
elog "found online at:"
elog " https://wiki.gentoo.org/wiki/Cron"
fi
}
@@ -0,0 +1,40 @@
add headers for various function prototypes
--- a/main.c
+++ b/main.c
@@ -24,6 +24,7 @@
#include <time.h>
#include <stdio.h>
+#include <stdlib.h> /* exit */
#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
--- a/log.c
+++ b/log.c
@@ -37,6 +37,7 @@
#include <unistd.h>
#include <syslog.h>
#include <stdio.h>
+#include <stdlib.h> /* exit */
#include <stdarg.h>
#include <errno.h>
#include <signal.h>
@@ -78,6 +79,7 @@ make_msg(const char *fmt, va_list args)
strcpy(msg + sizeof(msg) - sizeof(truncated), truncated);
}
+#define log my_log /* log is a math builtin */
static void
log(int priority, const char *fmt, va_list args)
/* Log a message, described by "fmt" and "args", with the specified
--- a/matchrx.c
+++ b/matchrx.c
@@ -23,6 +23,7 @@
#include <stdio.h>
+#include <string.h> /* memset */
#include <regex.h>
#include <stdarg.h>
#include <stdlib.h>
+3 -4
View File
@@ -1,15 +1,14 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
use logger
need clock hostname
use clock hostname logger
}
start() {
ebegin "Running anacron"
/usr/sbin/anacron -s >>/var/log/cron.log 2>&1
anacron -s >>/var/log/cron.log 2>&1
eend $?
}