app-crypt/moolticute: improve ebuild with init and udev rules

This commit is contained in:
nemunaire 2017-08-11 11:15:14 +02:00
parent 1f69fe58e1
commit b3a9eb5c57
5 changed files with 65 additions and 21 deletions

View File

@ -1,3 +1,5 @@
AUX 50-mooltipass.rule 84 SHA256 82e6af786f2ac972a4dc026d092ad3d0c8d5ecde791996e399a2a8a23e4333d0 SHA512 26f8a9f2c5fb2f3a87a486f91d5fae7069955dc528eacb8a37a833d393be38b70e3a9784024287cdfeb93a90abad83400395bb803e82a091100bd44cb7b2c28d WHIRLPOOL 1956cc3bca8bbcf2161a6f3ebd6025faed18fd7be3a842370b27948b13da27a3c8fb0138a656b3355cde44b6a5abed65f6b6f4c7c73d04d22917d1ccd105a69b
AUX moolticuted.init 655 SHA256 d0dbcb4028597cecd95b90a9857e1809ed9a44b522c56c8a74093ef93189bc26 SHA512 0008736effcfc79c5b1d65e0c1b6a816ecb1ba731f78de729be1acdf469de19496666a88c51459574720184e2ebd1d699e49cc9c2645b3b3f5bda319de649b59 WHIRLPOOL 39567fcdcaec359c1648cf47076e15e251daa104f90dca30493a290d3a8ded6bfd88d7b53c2e450cb17ed1fb1665721265669d2b23ac9396d07aa003433ff800
DIST moolticute-0.7.0.tar.gz 4286792 SHA256 2b2fc5c6f241dd13c18a3d1b0ef2aaba4aa1a30828ddcaa9915a6702cb3401bb SHA512 983b613b7a3bb2490e23c892b88a05c506516707b1b6da766896c075a180a8d7a3b2dac69af701fddeaba2e38937d32aae100a13cfaf30656778b724b0990a22 WHIRLPOOL 4658a194bf16f652cec5bd66b33f8fb06240a343aefe9a94a1e4fc8cef0af0449fc57aa73c7b1576e27f965676e2773dcfa87e310358716cd781e175b04e0ff6
EBUILD moolticute-0.7.0.ebuild 829 SHA256 0d27ce8085121ad6ab7bdfe1845d9418050d37a71e6b7a536c695ebfdaecb651 SHA512 1760675ed25868233ff8ea96e02b84247e9e0594ba76a336f55bfc0f456d7dcc506dc96fea5bff7eadeb9b3314bcbfcc2af3b99674d938b870f37d8baeba2ced WHIRLPOOL dc26bbcaa97c5fdd2f8fbcc8995d46464e0688c13ca029f5b33d073147f85144b00e510d5381da038043ebe025fa8befde6ddae3c4f850f6b580281aa94ea2dc
EBUILD moolticute-9999.ebuild 829 SHA256 0d27ce8085121ad6ab7bdfe1845d9418050d37a71e6b7a536c695ebfdaecb651 SHA512 1760675ed25868233ff8ea96e02b84247e9e0594ba76a336f55bfc0f456d7dcc506dc96fea5bff7eadeb9b3314bcbfcc2af3b99674d938b870f37d8baeba2ced WHIRLPOOL dc26bbcaa97c5fdd2f8fbcc8995d46464e0688c13ca029f5b33d073147f85144b00e510d5381da038043ebe025fa8befde6ddae3c4f850f6b580281aa94ea2dc
EBUILD moolticute-0.7.0.ebuild 964 SHA256 142aee9a19e803f20338fbf3d56edf528e740d2161f8d17e7c3fd511414a8d9a SHA512 bcce59f515c63f0bada52e13f996416ca8ff1d390a1e86b21ef9764b226c85ab9b655560081d5ed464d3f4f6b2feaf925230814e9cf6bb5f42715453c95d7df7 WHIRLPOOL 926c25092a033febfdc76d0bcbd03d45c15f2a33d99fdd1b53b1f50434c187adb2628c11606648edb085daf7e286103d073da62cc7378ab8d38892015ed6ec23
EBUILD moolticute-9999.ebuild 934 SHA256 76849f832c902d4970824fd1da29ad2b4237fdc74e7aaa80dff0cf69c8dc7a56 SHA512 7034be261fef4d6083e1db06bd40de9f12abcc19a274a174ddc169c55b8a79765febb11a6baf97789b866b42ae082e3e6789327706211045255f7b91a7f700ec WHIRLPOOL 014605ce72d2c47edbec0cbcd494edd264e2f979c39267d9009ec72b09fb343d44acebd97e2790b9dabe4ed670215e8136eeb4d359f4761d69e9793a928c607f

View File

@ -0,0 +1 @@
SUBSYSTEM=="usb", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="09a0", TAG+="uaccess"

View File

@ -0,0 +1,28 @@
#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
command=/usr/sbin/moolticuted
command_args=""
pidfile=/var/run/knot/knot.pid
extra_started_commands="reload"
description_reload="Reload configuration and changed zones."
depend() {
need local udev
}
start() {
checkpath -d -m 0750 -o knot:knot /var/run/knot/ /var/lib/knot/
ebegin "Starting moolticuted"
start-stop-daemon --start --background \
--make-pidfile --pidfile $pidfile --exec $command -- $command_args
eend $?
}
stop() {
ebegin "Stoping moolticuted"
start-stop-daemon --stop --pidfile $pidfile
ewend $?
}

View File

@ -7,27 +7,27 @@ if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://github.com/raoulh/moolticute.git"
inherit git-r3
KEYWORDS=""
S=${WORKDIR}/${P}
else
SRC_URI="https://github.com/raoulh/moolticute/archive/v${PV}-beta.tar.gz -> moolticute-${PV}.tar.gz"
MY_PV="${PV}-beta"
SRC_URI="https://github.com/raoulh/moolticute/archive/v${MY_PV}.tar.gz -> moolticute-${PV}.tar.gz"
KEYWORDS="~amd64 ~arm"
S=${WORKDIR}/${P}-beta
S=${WORKDIR}/${PN}-${MY_PV}
fi
inherit qmake-utils
inherit qmake-utils udev
DESCRIPTION="Mooltipass crossplatform daemon/tools "
HOMEPAGE="https://github.com/raoulh/moolticute"
LICENSE="CLOSED"
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND=">=dev-qt/qtcore-5.6
dev-qt/qtwidgets
dev-qt/qtgui
dev-qt/qtnetwork
dev-qt/qtwebsockets
RDEPEND=">=dev-qt/qtcore-5.6:5
dev-qt/qtwidgets:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtwebsockets:5
>=dev-libs/libusb-1.0.20"
DEPEND="${RDEPEND}"
@ -37,4 +37,11 @@ src_configure() {
src_install() {
emake install INSTALL_ROOT="${D}"
udev_dorules ${FILESDIR}/50-mooltipass.rule
doinitd ${FILESDIR}/moolticuted.init
}
pkg_postinst() {
udev_reload
}

View File

@ -7,27 +7,26 @@ if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://github.com/raoulh/moolticute.git"
inherit git-r3
KEYWORDS=""
S=${WORKDIR}/${P}
else
SRC_URI="https://github.com/raoulh/moolticute/archive/v${PV}-beta.tar.gz -> moolticute-${PV}.tar.gz"
KEYWORDS="~amd64 ~arm"
S=${WORKDIR}/${P}-beta
fi
inherit qmake-utils
inherit qmake-utils udev
DESCRIPTION="Mooltipass crossplatform daemon/tools "
HOMEPAGE="https://github.com/raoulh/moolticute"
LICENSE="CLOSED"
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND=">=dev-qt/qtcore-5.6
dev-qt/qtwidgets
dev-qt/qtgui
dev-qt/qtnetwork
dev-qt/qtwebsockets
RDEPEND=">=dev-qt/qtcore-5.6:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qttest:5
dev-qt/qtwebsockets:5
dev-qt/qtwidgets:5
>=dev-libs/libusb-1.0.20"
DEPEND="${RDEPEND}"
@ -37,4 +36,11 @@ src_configure() {
src_install() {
emake install INSTALL_ROOT="${D}"
udev_dorules ${FILESDIR}/50-mooltipass.rule
doinitd ${FILESDIR}/moolticuted.init
}
pkg_postinst() {
udev_reload
}