sys-apps/micro-evtd: rename th upstream package name

(Portage version: 2.2.0_alpha78-r1/git/Linux x86_64, unsigned Manifest commit)
This commit is contained in:
Mario Fetka 2011-12-07 06:27:01 +01:00
parent c26efff406
commit bcaf6127ef
9 changed files with 299 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# ChangeLog for sys-apps/micro-evtd
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*micro-evtd-3.4.1 (07 Dec 2011)
*micro-evtd-3.3.3.7 (07 Dec 2011)
*micro-evtd-3.3.3.6 (07 Dec 2011)
07 Dec 2011; Mario Fetka <mario.fetka@gmail.com> +micro-evtd-3.3.3.6.ebuild,
+micro-evtd-3.3.3.7.ebuild, +micro-evtd-3.4.1.ebuild,
+files/micro_evtd-boot.initd, +files/micro_evtd-default.initd,
+files/strEventScript-size.patch, +metadata.xml:
rename th upstream package name

View File

@ -0,0 +1,13 @@
AUX micro_evtd-boot.initd 594 RMD160 226f2b4a285a34a1d6d8bd409b0ad4695874e861 SHA1 98dfd5e2ecff73279131973483d358291f9be507 SHA256 4aa12f573daa84c525810144dd5c41d1b0c7d3f4558d86b37ba07205cd058854
AUX micro_evtd-default.initd 532 RMD160 50a9cf1d4f2019ffb62e8d828bb79767ec98a5ae SHA1 a8cdc9d1ed87f4dbbad41c6aff8e353347134298 SHA256 23fd394c1c8cf6b79647be22c227b5d083076ffcc45b0a5a36c894270874aa7d
AUX strEventScript-size.patch 994 RMD160 e5900eb40180cae06a5c9272841f72a3d8a5b271 SHA1 27ea6106c51d1753081e9af979f3f615b5bb3a14 SHA256 72fc662b70265a0a9ce4f5f5ea16f43f3157b5aea2bca42e25f42859cd099180
DIST micro-evtd_3.3.3-6+lenny3.diff.gz 13764 RMD160 b8c9d78260dcef0591389eb42a988d3005982d09 SHA1 6b1c403e89703ca95cc22bdddfd9c1f0945f9dac SHA256 6f1dd9f4aca2e5d61f094e35379e3e775758efd459999ea3587958833f490913
DIST micro-evtd_3.3.3-7.diff.gz 15441 RMD160 838ad3330afa50f0b25f4d94cf15249b94241884 SHA1 8ee15d5d12fef4dd79780aaa7e7e15758ecffa31 SHA256 af4088bb074a5c77531d2686e00651b46e2978c1fa0e32433c62445fdaebca01
DIST micro-evtd_3.3.3.orig.tar.gz 39505 RMD160 cff414f43cfa79d75b67843c502ac464fb15bcca SHA1 387e7e46f3eecd5b7864476ff022c938c281699a SHA256 ca9ad76c345ca4ef48a43989dbdc283e7f9af569e4f150a58aed4970978dbc69
DIST micro-evtd_3.4-1.debian.tar.gz 8639 RMD160 ca94ed8ce88bde51fe2e20490e09c69b8d70cd20 SHA1 15093c8785bff7cdc4b75a1d874c8f232d3d2a24 SHA256 e94b26d1e5181a3376f2ecd9a5fe5d65c2914624b0d93814852199d1cdcc8d9f
DIST micro-evtd_3.4.orig.tar.gz 46049 RMD160 6bbdc322b29409e7e73f61924bf12aaf827e905f SHA1 ab9b3366b69a7f031abd5430e2f99fb087c1c2a5 SHA256 3f4009267706346a31d5bdba788f2c294d1aed5c4ab1b8108f234e168e09c2e4
EBUILD micro-evtd-3.3.3.6.ebuild 1477 RMD160 0006e855406757e66437c5a6af9582ca605ff538 SHA1 2e81ebd0f3b0f1092d55089d391110982aea9d46 SHA256 5a446fbcb85e7e649d41b8e59dc095e152e710f8c781d02627354ec9c43c29c5
EBUILD micro-evtd-3.3.3.7.ebuild 1497 RMD160 70f6b3c607b9ea6b111dd1165a25461fa8e13fa2 SHA1 3a6d2a463802571cb64cfc89af24dac30dc81d05 SHA256 71e094388312579f64f03e4a30f8b2bbb458b9b4e5dd505deb21b48c55a79e3b
EBUILD micro-evtd-3.4.1.ebuild 1601 RMD160 5f53a11dd97abeb91d272e69abc25d516670ff81 SHA1 d1092ef63c1d0615b68c991186e1bbd3bd56cc03 SHA256 97455129b2e71421cd19025e92f90df6c3d1fa53b1492ba7e2ed7e2ac745c596
MISC ChangeLog 507 RMD160 e9051aa4ec559e6ac890bc0bbaab099759466b1b SHA1 9bce25ec795f50c63c34edf500f058982ac91dda SHA256 d0f5c0ac265ee9023a355417b3264a78dc17e69487b0b0739d12509ec45b744a
MISC metadata.xml 703 RMD160 4702488eeb282d4d9694aa25b332ce85dc0fb571 SHA1 53e19c1fe760f0006c1b3d1da549ca0ab859ae6a SHA256 5d17ebbc2e2c0b96fb7ce1ed127ab4e50113ff6d6d79d180fe925efbc0067cad

View File

@ -0,0 +1,25 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
description="Linkstation/Kurobox/Terastation micro controller daemon"
depend() {
need localmount
use logger
}
start() {
# micro_evtd doesn't start properly from s-s-d, need to investigate
ebegin "Starting ${description}"
#start-stop-daemon --start --exec /usr/sbin/micro_evtd
/usr/sbin/micro_evtd
eend $?
}
stop() {
ebegin "Stopping ${description}"
start-stop-daemon --stop --exec /usr/sbin/micro_evtd
eend $?
}

View File

@ -0,0 +1,23 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
description="Linkstation/Kurobox/Terastation micro controller daemon"
depend() {
need micro_evtd-boot
after *
}
start() {
ebegin "Starting ${description} final tasks"
# signalize we're up & running
/usr/sbin/microapl -a bz_imhere 120 am4 d4 f4 am4 d4 f4 dm4 dm4 f4 a4 am4 &>/dev/null
eend $?
}
stop() {
ebegin "Stopping ${description} final tasks"
eend $?
}

View File

@ -0,0 +1,31 @@
diff -Naur micro-evtd-3.3.3.orig/micro_evtd.c micro-evtd-3.3.3/micro_evtd.c
--- micro-evtd-3.3.3.orig/micro_evtd.c 2009-03-15 11:41:36.011723240 -0700
+++ micro-evtd-3.3.3/micro_evtd.c 2009-03-15 11:48:35.531745776 -0700
@@ -400,10 +400,12 @@
static int execute_command2(char cmd, char* cmdstring, char type, char cmd2, long cmd3)
{
- char strEventScript[50];
+ char strEventScript[256];
+ int ret;
// Create the command line
- sprintf(strEventScript, "/%s/micro_evtd.event %c %d %ld %s %s %d %c",
+ ret = snprintf(strEventScript, 256,
+ "/%s/micro_evtd.event %c %d %ld %s %s %d %c",
(CP_SCRIPT == cmd? "usr/sbin" : strTmpPath),
cmd,
cmd2,
@@ -411,6 +413,12 @@
cmdstring,
(CP_SCRIPT == cmd? strTmpPath : log_path),
iDebugLevel, (CALL_NO_WAIT == type ? '&' : ' '));
+
+ // Check that string was not truncated
+ if(ret >= 256) {
+ syslog(LOG_ERR, "execute_command2(): command would overflow buffer");
+ return -1;
+ }
// Invoke request
system(strEventScript);

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>tarpman@gmail.com</email>
<name>Ryan Tandy</name>
</maintainer>
<maintainer>
<email>mario.fetka@gmail.com</email>
<name>Mario Fetka</name>
</maintainer>
<longdescription>
Controller daemon for the microcontroller in the Buffalo Linkstation
Pro, Kurobox Pro, and Terastation Pro.
</longdescription>
<use>
<flag name='terastation'>Support for the Terastation Pro model</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,58 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils versionator
DESCRIPTION="Daemon for Linkstation/Kuro PRO micro controller"
HOMEPAGE="http://buffalo.nas-central.org/download/Users/lb_worm/micro_evtd/micro_evtd"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~arm"
IUSE="terastation"
RESTRICT="mirror"
# tarballs use debian versioning format
MY_PN="micro-evtd"
MY_PVR="$(replace_version_separator 3 '-' )+lenny3"
MY_PV=${MY_PVR/-*/}
S="${WORKDIR}/${MY_PN}-${MY_PV}"
SRC_URI_BASE="mirror://debian/pool/main/${MY_PN:0:1}/${MY_PN}/"
SRC_URI="${SRC_URI_BASE}${MY_PN}_${MY_PV}.orig.tar.gz
${SRC_URI_BASE}${MY_PN}_${MY_PVR}.diff.gz"
DEPEND=""
RDEPEND=""
src_prepare() {
epatch "${DISTDIR}/${MY_PN}_${MY_PVR}.diff.gz"
EPATCH_SOURCE="${S}/debian/patches" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" EPATCH_EXCLUDE="makefile.patch" epatch
epatch "${FILESDIR}/strEventScript-size.patch"
}
src_compile() {
use terastation && append-flags "-DTS"
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall" || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
doman debian/microapl.8
doman debian/micro_evtd.8
doman debian/micro_evtd.conf.5
doman debian/micro_evtd.event.8
dodoc Changelog
dodoc README
dodoc debian/README.Debian
newinitd "${FILESDIR}"/micro_evtd-boot.initd micro-evtd-boot
newinitd "${FILESDIR}"/micro_evtd-default.initd micro-evtd
}

View File

@ -0,0 +1,58 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils versionator flag-o-matic toolchain-funcs
DESCRIPTION="Daemon for Linkstation/Kuro PRO micro controller"
HOMEPAGE="http://buffalo.nas-central.org/download/Users/lb_worm/micro_evtd/micro_evtd"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~arm"
IUSE="terastation"
RESTRICT="mirror"
# tarballs use debian versioning format
MY_PN="micro-evtd"
MY_PVR=$(replace_version_separator 3 '-' )
MY_PV=${MY_PVR/-*/}
S="${WORKDIR}/${MY_PN}-${MY_PV}"
SRC_URI_BASE="mirror://debian/pool/main/${MY_PN:0:1}/${MY_PN}/"
SRC_URI="${SRC_URI_BASE}${MY_PN}_${MY_PV}.orig.tar.gz
${SRC_URI_BASE}${MY_PN}_${MY_PVR}.diff.gz"
DEPEND=""
RDEPEND=""
src_prepare() {
epatch "${DISTDIR}/${MY_PN}_${MY_PVR}.diff.gz"
EPATCH_SOURCE="${S}/debian/patches" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" EPATCH_EXCLUDE="makefile.patch" epatch
epatch "${FILESDIR}/strEventScript-size.patch"
}
src_compile() {
use terastation && append-flags "-DTS"
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall" || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
doman debian/microapl.8
doman debian/micro_evtd.8
doman debian/micro_evtd.conf.5
doman debian/micro_evtd.event.8
dodoc Changelog
dodoc README
dodoc debian/README.Debian
newinitd "${FILESDIR}"/micro_evtd-boot.initd micro-evtd-boot
newinitd "${FILESDIR}"/micro_evtd-default.initd micro-evtd
}

View File

@ -0,0 +1,58 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils versionator flag-o-matic toolchain-funcs
DESCRIPTION="Daemon for Linkstation/Kuro PRO micro controller"
HOMEPAGE="http://buffalo.nas-central.org/download/Users/lb_worm/micro_evtd/micro_evtd"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~arm"
IUSE="terastation"
RESTRICT="mirror"
# tarballs use debian versioning format
MY_PN="micro-evtd"
MY_PVR=$(replace_version_separator 2 '-' )
MY_PV=${MY_PVR/-*/}
S="${WORKDIR}/${MY_PN}-${MY_PV}"
SRC_URI_BASE="mirror://debian/pool/main/${MY_PN:0:1}/${MY_PN}/"
SRC_URI="${SRC_URI_BASE}${MY_PN}_${MY_PV}.orig.tar.gz
${SRC_URI_BASE}${MY_PN}_${MY_PVR}.debian.tar.gz"
DEPEND=""
RDEPEND=""
src_prepare() {
#epatch "${DISTDIR}/${MY_PN}_${MY_PVR}.diff.gz"
EPATCH_SOURCE="${WORKDIR}/debian/patches" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" EPATCH_EXCLUDE="makefile.patch" epatch
#epatch "${FILESDIR}/strEventScript-size.patch"
ln -sf micro-evtd.mak Makefile
}
src_compile() {
use terastation && append-flags "-DTS"
emake SBIN_PREFIX=/usr CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall" LDFLAGS="${LDFLAGS}" || die "emake failed"
}
src_install() {
emake SBIN_PREFIX=/usr DESTDIR="${D}" install || die "install failed"
# doman debian/microapl.8
# doman debian/micro_evtd.8
# doman debian/micro_evtd.conf.5
# doman debian/micro_evtd.event.8
dodoc Changelog README TODO
#dodoc debian/README.Debian
newinitd "${FILESDIR}"/micro_evtd-boot.initd micro-evtd-boot
newinitd "${FILESDIR}"/micro_evtd-default.initd micro-evtd
}