add new wrapper script for runtime detect

(Portage version: 2.2.0_alpha123/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
This commit is contained in:
Mario Fetka 2012-10-19 17:12:05 +02:00
parent 4bd0dc51a9
commit c019a514cc
4 changed files with 79 additions and 1 deletions

View File

@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*micro-evtd-3.4.2-r1 (19 Oct 2012)
19 Oct 2012; Mario Fetka <mario.fetka@gmail.com> +micro-evtd-3.4.2-r1.ebuild,
+files/micro-evtd.wrapper:
add new wrapper script for runtime detect
*micro-evtd-3.4.2 (16 Oct 2012)
16 Oct 2012; Mario Fetka <mario.fetka@gmail.com> -micro-evtd-3.4.1.ebuild,

View File

@ -1,8 +1,10 @@
AUX micro-evtd-boot.initd-r2 660 SHA256 175bb951bb525cf2b0fcd0d79b02c7d173962fd30bd41397666d4d4ef0d47a4b SHA512 4ddadad0002e783571743ae8a80315ab4f34cc1160b61070a7f04204ac01cf62acebbbc5ed8b6e26eb357252b3b64dd3b464f4401ccc5f8349822874c3b516d1 WHIRLPOOL b7e88ec10368c576b21daa95cb6c3d69aa1f5e8fa94b603fdac9f2e8794297792b645002452848867f91e509245f8da71887ecbe73d9e8e47c03a965b3897e18
AUX micro-evtd-default.initd-r2 532 SHA256 deeae8fea73809ef69ae19420230561aa90deddbd332e8a2b80586f87bc8aa1a SHA512 bd06ec8c873cb23ec98ea9b052db2541d7ba11ad55e2a263f1fbf182af8d4a8f92020c613d3c01f11707af599bf5f01e59ec57eb34c2ce422c5fef0dcc01a946 WHIRLPOOL 2ff3952af8b5b1900c6c69e694b07618001ca54fe8c40e4485534af7f1a82587f1a2ca34607a1181f8f7ec58e594bd23cf21123c20692a21e7210cc3aa302fd6
AUX micro-evtd.wrapper 482 SHA256 96e3d444580c725a55b3cbe637b1af2af529cce29bba8d82d7455055eed93e67 SHA512 b7cdac2ebad7e92b4c01443e1befe2a2e974731464acddc46fee53637673cbf0e96ed8417e2cdf9af688642929f1c8365e1a2c87b35aa2ac6b5950382f20749c WHIRLPOOL 158545d3d09163096c806aab0f90f12176002da61fe9fbc77125780d87567f4574326eb4d2b8e2a2b8f60d637d79c63d5442680df8868fcfb5b9fdf5d73679f7
AUX strEventScript-size.patch 994 SHA256 72fc662b70265a0a9ce4f5f5ea16f43f3157b5aea2bca42e25f42859cd099180 SHA512 8602db110a3b925ba3278e2f8acb146bff887ccd8816e543c5ac7a5c0c202028d401a78df066b0360d829e3be785abde99201b118aeaef7e7f98ad9c851b5a8c WHIRLPOOL 1c5b3d1eaeb723e548556b699e98914134cf62ec6a85cb33fd83fefe6ff4a60bd883778969e0b483af4c29437715cbb80f167632ec5652c450111a7b974a20a4
DIST micro-evtd_3.4-2.debian.tar.gz 10216 SHA256 d930803194bd66a748bbfa969eddef7ac5303c42a50b8f4828e486d4b440992e SHA512 5e85d6fce67ec940b9dd9cec0dd4e924850a291617ecc13bf10958da6de3c6f9b2eaf40a8ba9520715e757521d656a70280df68d83e22f562fba2b451d17145a WHIRLPOOL 8d2a0b88e13317087d7ce509bcd623e60d281f236eff945d0c685bc903c165e3b9225f7b659f00645dcccb2998da099dda97e768ed9516767b0c4d358eb73a2c
DIST micro-evtd_3.4.orig.tar.gz 46049 SHA256 3f4009267706346a31d5bdba788f2c294d1aed5c4ab1b8108f234e168e09c2e4
EBUILD micro-evtd-3.4.2-r1.ebuild 1676 SHA256 fa82624653ad95b76ee952007215a62e602c88659b85f22476cf8a1c959c6087 SHA512 2042bdba5f1320810a8fb584d49f6f94acf9965e0c8beffbf83e3dae8c1d4eba1f0c5224aefb5d913f02e5025949c166eb876657764775b82379621637d127b0 WHIRLPOOL 90585d6e092626fbd89e59f41389a2d53dc7e05c1caaacd5fed2cce9258b27397d90fb9629ae68a5a486a2760c9ecc8c6eeff03569d0d936f34de572b57ce6ca
EBUILD micro-evtd-3.4.2.ebuild 2008 SHA256 1d69d20144fb81138c03469ca6b258e20035578dcd3b499e43998664026d9164 SHA512 1db79022994dea0b36aef62540e9f4d91b531e90d5e964d10e3c24125c44cc173fb217db5e21553252368863f801a50b28b66339dbbd96b84b2ddcc40ca5bd61 WHIRLPOOL 94acea5305e4cfc9f487e6abc6b6f6004983f6d6ba26ace9515711f5fd187493f20ec44f6c3b456ced8255b1ec2a5b649b8bd96893b0ff7f722eeedc7be80974
MISC ChangeLog 1430 SHA256 f3802cd0f928bcc697d3f7974413e5cfb8c0665cd230b9f9fc5434e0031b08cc SHA512 511af4751dd781fe0dd9fd6e58c338b5653a8360c9ff57cb1993ec77ec62225a5cf2e424cc3e8cfa9d34054cfc98164714a38824f1e457bcd6952cc9e63ecc0f WHIRLPOOL 469e0340fca252ea22df886d7ca841c81b16e32e5997ca235a28eca3d037d838993ba3c34e7fdd952de473d75d651d27110366d9a9c74a6632566b73e141ef6c
MISC ChangeLog 1620 SHA256 bdc7bc48bcde10af3430d88a5fead3db5ad1089ff6cafaad0fd0a127e9f38b6b SHA512 c2cb2d0cc3af1e085a1aa45c7ab6e09aea92ec6ae8a9af7136e14d7dbb04ba1dfe0a81b581ce996e16d2e65ec1f1ba905147791bd92c396d67842485e31e1b0b WHIRLPOOL 33e9a968fc77d8034bc9e1691730da87bba649975b1f4bf302aa52d2a25a28c7f5f9cbc1eea51278f6ca8857764e7c6282f8e9498dab1c778e1a928dc870feb3
MISC metadata.xml 703 SHA256 5d17ebbc2e2c0b96fb7ce1ed127ab4e50113ff6d6d79d180fe925efbc0067cad SHA512 7a682963e62047b3cc447b316320c3ccb3e4b5dd3d342bbcb07ccd2be0d37388fa28fd7d58383da4dc4f67b254254993ba57e2c6b7d98259922f935e49d21d5a WHIRLPOOL 22d09ccaa152289afe7fa8b53201c1f525e070de2f8dab5a51b37dd113761a073f29804bce11c2e0eacaaa8a0486e426a1c81c106748544b12f0a5272c273f60

View File

@ -0,0 +1,15 @@
#!/bin/bash
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
device=$(grep "Hardware[[:space:]]*:" /proc/cpuinfo 2>/dev/null | \
head -n1 | sed "s/^[^:]*: //")
case $device in
"Buffalo Linkstation Pro/Live" | "Buffalo/Revogear Kurobox Pro")
exec /usr/sbin/micro-evtd.pro "$@" ;;
"Buffalo TeraStation Pro/Live")
exec /usr/sbin/micro-evtd.tera "$@" ;;
*)
echo "!! Your device is unsupported !!" ;;
esac

View File

@ -0,0 +1,55 @@
# Copyright 1999-2012 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=""
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_SOURCE="${WORKDIR}/debian/patches" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" EPATCH_EXCLUDE="makefile.patch" epatch
ln -sf micro-evtd.mak Makefile
}
src_compile() {
emake SBIN_PREFIX=/usr CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall" LDFLAGS="${LDFLAGS}" all || die "emake failed"
emake SBIN_PREFIX=/usr CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall" LDFLAGS="${LDFLAGS}" ts || die "emake failed"
}
src_install() {
emake SBIN_PREFIX=/usr DESTDIR="${D}" install || die "install failed"
mv "${D}"/usr/sbin/micro-evtd "${D}"/usr/sbin/micro-evtd.pro
emake SBIN_PREFIX=/usr DESTDIR="${D}" install.ts || die "install failed"
mv "${D}"/usr/sbin/micro-evtd "${D}"/usr/sbin/micro-evtd.tera
newsbin "${FILESDIR}"/micro-evtd.wrapper micro-evtd
dodoc Changelog README TODO
newinitd "${FILESDIR}"/micro-evtd-boot.initd-r2 micro-evtd-boot
newinitd "${FILESDIR}"/micro-evtd-default.initd-r2 micro-evtd
}