Add systemd support

Package-Manager: portage-2.2.8-r1
RepoMan-Options: --force
This commit is contained in:
Mario Fetka 2014-12-08 18:12:34 +01:00
parent b7c9510269
commit 6399702707
4 changed files with 83 additions and 3 deletions

View File

@ -1,7 +1,13 @@
# ChangeLog for sys-apps/micro-evtd
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*micro-evtd-3.4.2-r2 (08 Dec 2014)
08 Dec 2014; Mario Fetka <mario.fetka@gmail.com> +files/micro-evtd.service,
+micro-evtd-3.4.2-r2.ebuild:
Add systemd support
15 Nov 2012; Mario Fetka <mario.fetka@gmail.com>
files/micro-evtd-boot.initd-r2:
s-s-d unable to start microevtd so run it direcly and correct pidfile name
@ -47,4 +53,3 @@
+files/micro_evtd-boot.initd, +files/micro_evtd-default.initd,
+files/strEventScript-size.patch, +metadata.xml:
rename th upstream package name

View File

@ -1,9 +1,11 @@
AUX micro-evtd-boot.initd-r2 660 SHA256 c65f33e6ccb7fd4ea4ef8e45c59996cac6dfb74ffc36b4a2b0eec87289a252be SHA512 2aa20398b48baaffe7fb845ca3a5d9e3aabdb0d831d9e87b8acd0ceb81032e6d1be43319fb7fbb795db5562ae5f12480729dbfa4b1d0207096cbc7ecda99e41a WHIRLPOOL d4809a6756339785c177fe8bc66d860aca9d6ce1114a2ea03a589f68327393a0a8d8ac291c89ffc12f5835d6da42c347744489365c728af337bebffed8fdd8fd
AUX micro-evtd-default.initd-r2 532 SHA256 deeae8fea73809ef69ae19420230561aa90deddbd332e8a2b80586f87bc8aa1a SHA512 bd06ec8c873cb23ec98ea9b052db2541d7ba11ad55e2a263f1fbf182af8d4a8f92020c613d3c01f11707af599bf5f01e59ec57eb34c2ce422c5fef0dcc01a946 WHIRLPOOL 2ff3952af8b5b1900c6c69e694b07618001ca54fe8c40e4485534af7f1a82587f1a2ca34607a1181f8f7ec58e594bd23cf21123c20692a21e7210cc3aa302fd6
AUX micro-evtd.service 349 SHA256 ea64c470e9c0e47731c136f667120dd170d1f8a92b902d72550179fbe308e7ac SHA512 3307311415b206c8529a841b6a4350ae7c46acbe19763fa41572c5b94fb049c5a91811e51c0505ba64a9eb27b7ed7330b3243f5d8af7d16933e7a39ea29213f9 WHIRLPOOL aa4addc1a1bb5cd76eafbe1e8e249203e83c664644d1a87d232db306dbc7b69fede37c9569d3632cea6827b452ce8f67dc1f09c53b5e3ad94cc150cc768e870b
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
MISC ChangeLog 1783 SHA256 9bae5bd63e9aafc5fe247d019de9c1c17692ce8cab1907aa2e090c69eb0394d5 SHA512 91a67df20fcb302dbf91d40c557ff335af3c4b08010a3e95ed399b08a7dacac08ec6fb3ddb0ae308bad211de0152590e1dae5d389f0cc94c42bd1ca642919660 WHIRLPOOL d968be221d0c2b429dd7229bebb98a7ce8536e14506c9a33c21c4ae39f99d6cd8155e77e22f7fbaa7a047c1a7d6d75a7fbd15ea0112df5dabe56d69cb2d4298a
EBUILD micro-evtd-3.4.2-r2.ebuild 1735 SHA256 25d69e3bc0ab12c49c14694c53f026876a998ec4bd58e9acdb211f19dde9e71b SHA512 a3b35d4c162f63007265dff369cf20d421abba138f56a5f5b12d898cdae0d408d424e0b2051ccf895050c7d90d4eb73cdf81dfe699b44bfc868253b4826c874f WHIRLPOOL 33f28f5b4dcddef5df4ec9f08a19ab2d573ef0cd9bb5162b1cf77a2861643ba03e99c7a9208d2ed60df9b3c45cece1c4f6140b1b8111329d1a3901a3d448d693
MISC ChangeLog 1950 SHA256 47728dffd8790bcb6080fe1358ac9bb90374b60013c94de3bcf0537626056937 SHA512 35ac04501e22774cf67767c7e164ecad6a837f372202b5961edff1030332a2546f04961bc48ab9aab4af0b5f70b34b0fff0996060c2778fc0697f0ee13967844 WHIRLPOOL ac6fccc194f94bae76935a6028d1dcf83c447d9037a8bcfd1c6964a4a50b1960bbc603b900d5690eeea5e8111e6ea8acbd6ac78dd27ae54cf6005d986c3723d1
MISC metadata.xml 703 SHA256 5d17ebbc2e2c0b96fb7ce1ed127ab4e50113ff6d6d79d180fe925efbc0067cad SHA512 7a682963e62047b3cc447b316320c3ccb3e4b5dd3d342bbcb07ccd2be0d37388fa28fd7d58383da4dc4f67b254254993ba57e2c6b7d98259922f935e49d21d5a WHIRLPOOL 22d09ccaa152289afe7fa8b53201c1f525e070de2f8dab5a51b37dd113761a073f29804bce11c2e0eacaaa8a0486e426a1c81c106748544b12f0a5272c273f60

View File

@ -0,0 +1,15 @@
[Unit]
Description=Linkstation/Kurobox/Terastation micro controller daemon
After=sysinit.target local-fs.target
Before=basic.target
[Service]
Type=forking
PIDFile=/var/run/micro_evtd.pid
# EnvironmentFile=-/etc/conf.d/autofs
ExecStart=/usr/sbin/micro-evtd
# ExecReload=/bin/kill -HUP $MAINPID
# TimeoutSec=180
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,58 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils systemd 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
systemd_dounit "${FILESDIR}"/micro-evtd.service
}