Gentoo Archives: gentoo-commits

From: "Wolfram Schlich (wschlich)" <wschlich@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/cyberjack: ChangeLog cyberjack-3.0.4.ebuild
Date: Fri, 21 Sep 2007 00:30:11
Message-Id: E1IYWHZ-0006xz-Gt@stork.gentoo.org
1 wschlich 07/09/21 00:22:09
2
3 Modified: ChangeLog
4 Added: cyberjack-3.0.4.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.3.7)
8
9 Revision Changes Path
10 1.6 dev-libs/cyberjack/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/cyberjack/ChangeLog?rev=1.6&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/cyberjack/ChangeLog?rev=1.6&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/cyberjack/ChangeLog?r1=1.5&r2=1.6
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/ChangeLog,v
19 retrieving revision 1.5
20 retrieving revision 1.6
21 diff -u -r1.5 -r1.6
22 --- ChangeLog 18 Mar 2007 20:34:56 -0000 1.5
23 +++ ChangeLog 21 Sep 2007 00:22:09 -0000 1.6
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-libs/cyberjack
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/ChangeLog,v 1.5 2007/03/18 20:34:56 wschlich Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/ChangeLog,v 1.6 2007/09/21 00:22:09 wschlich Exp $
29 +
30 +*cyberjack-3.0.4 (20 Sep 2007)
31 +
32 + 20 Sep 2007; Wolfram Schlich <wschlich@g.o>
33 + +files/cyberjack-3.0.4-udev.patch, +files/cyberjack.rules,
34 + +cyberjack-3.0.4.ebuild:
35 + version bump
36
37 *cyberjack-2.0.14_beta1 (18 Mar 2007)
38
39
40
41
42 1.1 dev-libs/cyberjack/cyberjack-3.0.4.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/cyberjack/cyberjack-3.0.4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/cyberjack/cyberjack-3.0.4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cyberjack-3.0.4.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/cyberjack-3.0.4.ebuild,v 1.1 2007/09/21 00:22:09 wschlich Exp $
52
53 inherit eutils flag-o-matic autotools
54
55 MY_P="ctapi-${P/_/}"
56
57 DESCRIPTION="REINER SCT cyberJack pinpad/e-com USB user space driver library"
58 HOMEPAGE="http://www.reiner-sct.de/ http://sourceforge.net/projects/libchipcard/"
59 SRC_URI="mirror://sourceforge/libchipcard/${MY_P}.tar.gz"
60 LICENSE="GPL-2 LGPL-2.1"
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="noudev pcsc-lite"
64 RDEPEND="
65 dev-libs/libusb
66 pcsc-lite? (
67 sys-apps/pcsc-lite
68 dev-util/pkgconfig
69 )
70 "
71 DEPEND="${RDEPEND}"
72 S="${WORKDIR}/${MY_P}"
73
74 pkg_setup() {
75 useq noudev || enewgroup "${PN}"
76 }
77
78 src_unpack() {
79 unpack ${A} || die "Unpacking failed."
80 cd "${S}" || die "Failed to change to source directory."
81 useq noudev || {
82 epatch "${FILESDIR}/${P}-udev.patch" || die "Applying udev patch failed."
83 cp ${FILESDIR}/cyberjack.sh etc/udev/ || die "Copying udev script failed."
84 cp ${FILESDIR}/cyberjack.rules etc/udev/rules.new || die "Copying udev rules failed."
85 }
86 AT_M4DIR="m4" eautoreconf || die "Adopting configurations failed."
87 }
88
89 src_compile() {
90 append-flags -fno-strict-aliasing
91 local with_usbdropdir=''
92 useq pcsc-lite && with_usbdropdir="--with-usbdropdir=$(pkg-config libpcsclite --variable=usbdropdir)"
93 ./configure \
94 --prefix=/usr \
95 --docdir=/usr/share/doc/"${P}" \
96 --sysconfdir=/etc/"${PN}" \
97 $(use_enable pcsc-lite pcsc) \
98 ${with_usbdropdir} \
99 $(use_enable !noudev udev) \
100 || die "Configuration of package failed."
101 emake || die "Compilation of package failed."
102 }
103
104 src_install() {
105 emake install DESTDIR="${D}" || die "Installation of package failed."
106 dodoc ChangeLog NEWS doc/README.txt
107 }
108
109 pkg_postinst() {
110 local conf="/etc/${PN}/${PN}.conf"
111 elog
112 elog "To configure logging, key beep behaviour etc. you need to"
113 elog "copy ${conf}.default"
114 elog "to ${conf}"
115 elog "and modify the latter as needed."
116 elog
117 useq noudev || {
118 elog "Please run the following command as root to"
119 elog "make udevd read the cyberJack rules that were"
120 elog "just installed onto your system:"
121 elog
122 elog " udevcontrol reload_rules"
123 elog
124 elog "To be able to use the cyberJack device, you need to"
125 elog "be a member of the group 'cyberjack' which has just"
126 elog "been added to your system. You can add your user to"
127 elog "the group by running the following command as root:"
128 elog
129 elog " gpasswd -a youruser cyberjack"
130 elog
131 elog "Please be aware that you need to re-login to your"
132 elog "system for the group membership to take effect."
133 elog
134 }
135 }
136
137
138
139 --
140 gentoo-commits@g.o mailing list