1 |
armin76 11/04/02 19:28:54 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: qcontrol-0.4.2-r1.ebuild |
5 |
Removed: qcontrol-0.4.2.ebuild |
6 |
Log: |
7 |
Use debian patchset, rework ebuild a bit, bug #336245 |
8 |
|
9 |
(Portage version: 2.1.9.42/cvs/Linux i686, RepoMan options: --force) |
10 |
|
11 |
Revision Changes Path |
12 |
1.4 sys-apps/qcontrol/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qcontrol/ChangeLog?rev=1.4&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qcontrol/ChangeLog?rev=1.4&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qcontrol/ChangeLog?r1=1.3&r2=1.4 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/qcontrol/ChangeLog,v |
21 |
retrieving revision 1.3 |
22 |
retrieving revision 1.4 |
23 |
diff -u -r1.3 -r1.4 |
24 |
--- ChangeLog 11 Jun 2009 17:46:33 -0000 1.3 |
25 |
+++ ChangeLog 2 Apr 2011 19:28:53 -0000 1.4 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for sys-apps/qcontrol |
28 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/qcontrol/ChangeLog,v 1.3 2009/06/11 17:46:33 armin76 Exp $ |
30 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/qcontrol/ChangeLog,v 1.4 2011/04/02 19:28:53 armin76 Exp $ |
32 |
+ |
33 |
+*qcontrol-0.4.2-r1 (02 Apr 2011) |
34 |
+ |
35 |
+ 02 Apr 2011; Raúl Porcel <armin76@g.o> files/0.4.2-Makefile.patch, |
36 |
+ files/init.d, -files/qcontrol.1, -files/ts209.lua, -files/ts409.lua, |
37 |
+ -qcontrol-0.4.2.ebuild, +qcontrol-0.4.2-r1.ebuild: |
38 |
+ Use debian patchset, rework ebuild a bit, bug #336245 |
39 |
|
40 |
11 Jun 2009; Raúl Porcel <armin76@g.o> files/0.4.2-Makefile.patch: |
41 |
Add -ldl to LDFLAGS |
42 |
|
43 |
|
44 |
|
45 |
1.1 sys-apps/qcontrol/qcontrol-0.4.2-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qcontrol/qcontrol-0.4.2-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qcontrol/qcontrol-0.4.2-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: qcontrol-0.4.2-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2011 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/qcontrol/qcontrol-0.4.2-r1.ebuild,v 1.1 2011/04/02 19:28:53 armin76 Exp $ |
55 |
|
56 |
inherit eutils toolchain-funcs |
57 |
|
58 |
DESCRIPTION="Allows to send commands to some microcontrollers, for example to change leds or sound a buzzer" |
59 |
HOMEPAGE="http://qnap.nas-central.org/index.php/PIC_Control_Software" |
60 |
SRC_URI="mirror://debian/pool/main/q/qcontrol/${P/-/_}.orig.tar.gz |
61 |
mirror://debian/pool/main/q/qcontrol/${P/-/_}-6.diff.gz" |
62 |
|
63 |
LICENSE="GPL-3" |
64 |
SLOT="0" |
65 |
KEYWORDS="arm" |
66 |
IUSE="" |
67 |
|
68 |
DEPEND=">=dev-lang/lua-5.1" |
69 |
RDEPEND="${DEPEND}" |
70 |
|
71 |
src_unpack () { |
72 |
unpack ${A} |
73 |
cd "${WORKDIR}" |
74 |
|
75 |
epatch *.diff |
76 |
|
77 |
cd "${S}" |
78 |
epatch debian/patches/*.patch |
79 |
|
80 |
epatch "${FILESDIR}"/${PV}-Makefile.patch |
81 |
} |
82 |
|
83 |
src_compile() { |
84 |
emake CC="$(tc-getCC)" qcontrol || die "emake failed" |
85 |
} |
86 |
|
87 |
src_install() { |
88 |
dosbin qcontrol |
89 |
doman "${S}"/debian/qcontrol.1 |
90 |
|
91 |
insinto /etc/qcontrol |
92 |
doins "${S}"/debian/configs/*.lua |
93 |
|
94 |
newconfd "${FILESDIR}"/conf.d qcontrol |
95 |
newinitd "${FILESDIR}"/init.d qcontrol |
96 |
} |
97 |
|
98 |
pkg_postinst() { |
99 |
device=$(grep "Hardware[[:space:]]*:" /proc/cpuinfo 2>/dev/null | \ |
100 |
head -n1 | sed "s/^[^:]*: //") |
101 |
case $device in |
102 |
"QNAP TS-109/TS-209") |
103 |
dosym /etc/qcontrol/ts209.lua /etc/qcontrol.conf ;; |
104 |
"QNAP TS-119/TS-219") |
105 |
dosym /etc/qcontrol/ts219.lua /etc/qcontrol.conf ;; |
106 |
"QNAP TS-409") |
107 |
dosym /etc/qcontrol/ts409.lua /etc/qcontrol.conf ;; |
108 |
"QNAP TS-41x") |
109 |
dosym /etc/qcontrol/ts41x.lua /etc/qcontrol.conf ;; |
110 |
*) |
111 |
ewarn "Your device is unsupported" ;; |
112 |
esac |
113 |
} |