2011-12-02 05:43:09 +01:00
|
|
|
# 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"
|
2011-12-02 14:56:11 +01:00
|
|
|
EPATCH_SOURCE="${WORKDIR}/debian/patches" EPATCH_SUFFIX="patch" \
|
2011-12-02 05:43:09 +01:00
|
|
|
EPATCH_FORCE="yes" EPATCH_EXCLUDE="makefile.patch" epatch
|
2011-12-07 05:55:38 +01:00
|
|
|
#epatch "${FILESDIR}/strEventScript-size.patch"
|
2011-12-02 05:43:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|