sys-apps/micro-evtd: restructure the box detection
(Portage version: 2.2.0_alpha78/git/Linux x86_64, unsigned Manifest commit)
This commit is contained in:
parent
309fa5d5a8
commit
b39607fd01
@ -2,6 +2,12 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
*micro-evtd-3.4.1-r2 (21 Dec 2011)
|
||||
|
||||
21 Dec 2011; Mario Fetka <mario.fetka@gmail.com> +micro-evtd-3.4.1-r2.ebuild,
|
||||
+files/micro-evtd-boot.initd-r2, +files/micro-evtd-default.initd-r2:
|
||||
restructure the box detection
|
||||
|
||||
21 Dec 2011; Mario Fetka <mario.fetka@gmail.com> micro-evtd-3.4.1-r1.ebuild,
|
||||
files/micro_evtd-boot.initd:
|
||||
build fix
|
||||
|
@ -1,9 +1,12 @@
|
||||
AUX micro-evtd-boot.initd 1368 RMD160 5d9ce9341776493df49d946af849b0ca86cb0185 SHA1 6f25ae8c478414623290732ec6d734b738825af2 SHA256 33900f20aa16c285e8d9be9a2a10817c6e2a098b6a625c6271fff2ccd7f3509b
|
||||
AUX micro-evtd-boot.initd-r2 660 RMD160 e7c8a2da5da6ac85e37a6045d3aee93012032d85 SHA1 9fd34907051c304f1beb869f77f24e938cad965d SHA256 175bb951bb525cf2b0fcd0d79b02c7d173962fd30bd41397666d4d4ef0d47a4b
|
||||
AUX micro-evtd-default.initd 532 RMD160 3ce534692fcf0994207fbd7fa008abc7c6c8bc00 SHA1 47bd76c7720ae6fa9d575a3c21735bd79cbdc00d SHA256 deeae8fea73809ef69ae19420230561aa90deddbd332e8a2b80586f87bc8aa1a
|
||||
AUX micro-evtd-default.initd-r2 532 RMD160 3ce534692fcf0994207fbd7fa008abc7c6c8bc00 SHA1 47bd76c7720ae6fa9d575a3c21735bd79cbdc00d SHA256 deeae8fea73809ef69ae19420230561aa90deddbd332e8a2b80586f87bc8aa1a
|
||||
AUX strEventScript-size.patch 994 RMD160 e5900eb40180cae06a5c9272841f72a3d8a5b271 SHA1 27ea6106c51d1753081e9af979f3f615b5bb3a14 SHA256 72fc662b70265a0a9ce4f5f5ea16f43f3157b5aea2bca42e25f42859cd099180
|
||||
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.4.1-r1.ebuild 1857 RMD160 732a87dedf52c1ffe8794597795accd8e59c0bf4 SHA1 5fd085b5743e1b58e2ffa2207f8ad0c435cf7cbd SHA256 c76ea278aee2da2caa500a2d08372527e590a84e16dcc09137419c385461e066
|
||||
EBUILD micro-evtd-3.4.1-r2.ebuild 2249 RMD160 141ac50f2aba9e61e2b4e5721cbebceefa756823 SHA1 8fc61a8843f23b3d983648f39e84542ae93f4b83 SHA256 22212f97a915dd7302da7dbf225b4ccf1206e68403f7a0f2f41d1d0abff3412f
|
||||
EBUILD micro-evtd-3.4.1.ebuild 1601 RMD160 cfd3610db778466a8ed04f2d1a2896ac65ea69f7 SHA1 8d7bae2661d836195f427e7530ca39ffcf4b967e SHA256 8f2cf889d1ef8482a6b65ae4e195bd57720ef9a4aff323c16f470dd88dbcc046
|
||||
MISC ChangeLog 939 RMD160 0eddfc11fefeb91699266aca987824953a2e8239 SHA1 fe133e720aba8159270c6856501bb5878db59cad SHA256 86aee19fa7876ca1108761f2c9c440e656462e8e050b1f81cfb216126d6f33dd
|
||||
MISC ChangeLog 1159 RMD160 56749ad49f1850b90c824d7dedc3795781240e8f SHA1 980772761fd458ac8548d0e2f2310c6c89a4c853 SHA256 3c373261b038ab6e17210ec8d381bcff105a470880ba2366e2f4efb3e52732a8
|
||||
MISC metadata.xml 703 RMD160 4702488eeb282d4d9694aa25b332ce85dc0fb571 SHA1 53e19c1fe760f0006c1b3d1da549ca0ab859ae6a SHA256 5d17ebbc2e2c0b96fb7ce1ed127ab4e50113ff6d6d79d180fe925efbc0067cad
|
||||
|
28
sys-apps/micro-evtd/files/micro-evtd-boot.initd-r2
Normal file
28
sys-apps/micro-evtd/files/micro-evtd-boot.initd-r2
Normal file
@ -0,0 +1,28 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
PIDFILE=/var/run/micro-evtd.pid
|
||||
|
||||
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 --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/micro-evtd
|
||||
#/usr/sbin/micro-evtd
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${description}"
|
||||
start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/micro-evtd
|
||||
eend $?
|
||||
}
|
||||
|
23
sys-apps/micro-evtd/files/micro-evtd-default.initd-r2
Normal file
23
sys-apps/micro-evtd/files/micro-evtd-default.initd-r2
Normal 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 $?
|
||||
}
|
74
sys-apps/micro-evtd/micro-evtd-3.4.1-r2.ebuild
Normal file
74
sys-apps/micro-evtd/micro-evtd-3.4.1-r2.ebuild
Normal file
@ -0,0 +1,74 @@
|
||||
# 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=""
|
||||
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() {
|
||||
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
|
||||
|
||||
# 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-r2 micro-evtd-boot
|
||||
newinitd "${FILESDIR}"/micro-evtd-default.initd-r2 micro-evtd
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
device=$(grep "Hardware[[:space:]]*:" /proc/cpuinfo 2>/dev/null | \
|
||||
head -n1 | sed "s/^[^:]*: //")
|
||||
case $device in
|
||||
"Buffalo Linkstation Pro/Live" | "Buffalo/Revogear Kurobox Pro")
|
||||
dosym micro-evtd.pro /usr/sbin/micro-evtd ;;
|
||||
"Buffalo TeraStation Pro/Live")
|
||||
dosym micro-evtd.tera /usr/sbin/micro-evtd ;;
|
||||
*)
|
||||
ewarn "Your device is unsupported" ;;
|
||||
esac
|
||||
}
|
Loading…
Reference in New Issue
Block a user