1 |
sbriesen 10/09/08 23:58:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: capi4k-utils-20050718-r5.ebuild |
5 |
Log: |
6 |
added ppp-2.4.5 support, redesigned pppd version detection. |
7 |
|
8 |
(Portage version: 2.2_rc77/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.67 net-dialup/capi4k-utils/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/capi4k-utils/ChangeLog?rev=1.67&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/capi4k-utils/ChangeLog?rev=1.67&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/capi4k-utils/ChangeLog?r1=1.66&r2=1.67 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-dialup/capi4k-utils/ChangeLog,v |
20 |
retrieving revision 1.66 |
21 |
retrieving revision 1.67 |
22 |
diff -u -r1.66 -r1.67 |
23 |
--- ChangeLog 21 Jul 2010 14:03:38 -0000 1.66 |
24 |
+++ ChangeLog 8 Sep 2010 23:58:29 -0000 1.67 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-dialup/capi4k-utils |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/capi4k-utils/ChangeLog,v 1.66 2010/07/21 14:03:38 sbriesen Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/capi4k-utils/ChangeLog,v 1.67 2010/09/08 23:58:29 sbriesen Exp $ |
30 |
+ |
31 |
+*capi4k-utils-20050718-r5 (08 Sep 2010) |
32 |
+ |
33 |
+ 08 Sep 2010; Stefan Briesenick <sbriesen@g.o> |
34 |
+ +capi4k-utils-20050718-r5.ebuild: |
35 |
+ added ppp-2.4.5 support, redesigned pppd version detection. |
36 |
|
37 |
*capi4k-utils-20050718-r4 (21 Jul 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-dialup/capi4k-utils/capi4k-utils-20050718-r5.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/capi4k-utils/capi4k-utils-20050718-r5.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/capi4k-utils/capi4k-utils-20050718-r5.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: capi4k-utils-20050718-r5.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-dialup/capi4k-utils/capi4k-utils-20050718-r5.ebuild,v 1.1 2010/09/08 23:58:29 sbriesen Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
|
55 |
inherit eutils multilib linux-info |
56 |
|
57 |
YEAR_PV="${PV:0:4}" |
58 |
MON_PV="${PV:4:2}" |
59 |
DAY_PV="${PV:6:2}" |
60 |
MY_P="${PN}-${YEAR_PV}-${MON_PV}-${DAY_PV}" |
61 |
|
62 |
DESCRIPTION="CAPI4Linux Utils" |
63 |
HOMEPAGE="ftp://ftp.in-berlin.de/pub/capi4linux/" |
64 |
SRC_URI="ftp://ftp.in-berlin.de/pub/capi4linux/${MY_P}.tar.gz |
65 |
ftp://ftp.in-berlin.de/pub/capi4linux/OLD/${MY_P}.tar.gz |
66 |
http://sbriesen.de/gentoo/distfiles/${PF/utils/files}.tar.xz |
67 |
http://sbriesen.de/gentoo/distfiles/${PF/utils/patches}.tar.xz" |
68 |
|
69 |
LICENSE="GPL-2" |
70 |
SLOT="0" |
71 |
KEYWORDS="~alpha ~amd64 ~ppc ~x86" |
72 |
IUSE="fax pppd rcapid" |
73 |
|
74 |
COMMON_DEP="pppd? ( net-dialup/ppp )" |
75 |
|
76 |
DEPEND="${COMMON_DEP} |
77 |
virtual/linux-sources |
78 |
virtual/os-headers |
79 |
app-arch/xz-utils |
80 |
>=sys-apps/sed-4" |
81 |
|
82 |
RDEPEND="${COMMON_DEP} |
83 |
dev-lang/perl" |
84 |
|
85 |
S="${WORKDIR}/${PN}" |
86 |
|
87 |
pkg_setup() { |
88 |
# check kernel config |
89 |
CONFIG_CHECK="~ISDN ~ISDN_CAPI ~ISDN_CAPI_CAPI20" |
90 |
use pppd && CONFIG_CHECK="${CONFIG_CHECK} ~ISDN_CAPI_MIDDLEWARE ~ISDN_CAPI_CAPIFS_BOOL" |
91 |
get_version # config checked later in pkg_postinst |
92 |
|
93 |
# find installed pppd version |
94 |
if use pppd; then |
95 |
PPPVERSION=$(/usr/sbin/pppd 2>&1 --version | sed -n "s:^.* \([0-9.]\+\)\$:\1:p") |
96 |
if [ -n "${PPPVERSION}" ]; then |
97 |
einfo "Found installed pppd version:" |
98 |
einfo " pppd version ${PPPVERSION}" |
99 |
else |
100 |
die "No pppd installation found" |
101 |
fi |
102 |
fi |
103 |
} |
104 |
|
105 |
src_prepare() { |
106 |
# add ppp-2.4.4 support |
107 |
epatch "${WORKDIR}/capi4k-patches/pppd244.diff" |
108 |
|
109 |
# add ppp-2.4.5 support |
110 |
epatch "${WORKDIR}/capi4k-patches/pppd245.diff" |
111 |
|
112 |
# apply rcapid patches |
113 |
epatch "${WORKDIR}/capi4k-patches/rcapid.diff" |
114 |
|
115 |
# apply msg2str-safety patch (see bug #170870) |
116 |
epatch "${WORKDIR}/capi4k-patches/msg2str-safety.diff" |
117 |
|
118 |
# apply capi20.h patches (needed for glibc-2.7) |
119 |
epatch "${WORKDIR}/capi4k-patches/capi20-include.diff" |
120 |
|
121 |
# set our config |
122 |
cp -f "${WORKDIR}/capi4k-files/config" .config |
123 |
# patch all Makefile.* and Rules.make to use our CFLAGS |
124 |
sed -i -e "s:^\(CFLAGS.*\)-O2:\1${CFLAGS}:g" */Makefile.* */Rules.make || die "sed failed" |
125 |
# patch capi20/Makefile.* to use -fPIC for shared library |
126 |
sed -i -e "s:^\(CFLAGS.*\):\1 -fPIC:g" capi20/Makefile.* || die "sed failed" |
127 |
# patch pppdcapiplugin/Makefile to use only the ppp versions we want |
128 |
sed -i -e "s:^\(PPPVERSIONS = \).*$:\1${PPPVERSION}:g" pppdcapiplugin/Makefile || die "sed failed" |
129 |
# patch capiinit/capiinit.c to look also in /lib/firmware |
130 |
sed -i -e "s:\(\"/lib/firmware/isdn\",\):\1 \"/lib/firmware\",:g" capiinit/capiinit.c || die "sed failed" |
131 |
# no, we don't need any devices nodes |
132 |
sed -i -e "s:\(sh scripts/makedev.sh\):echo \1:g" Makefile || die "sed failed" |
133 |
# add --libdir to configure call in Makefile |
134 |
sed -i -e "s:\(\./configure \):\1--libdir=/usr/$(get_libdir) :g" Makefile || die "sed failed" |
135 |
# patch /usr/lib/pppd in pppdcapiplugin tree |
136 |
sed -i -e "s:/usr/lib/pppd:/usr/$(get_libdir)/pppd:g" \ |
137 |
pppdcapiplugin/ppp-*/Makefile pppdcapiplugin/{README,*.8} || die "sed failed" |
138 |
# respecting LDFLAGS (see bug #293209) |
139 |
sed -i -e "s:^LDFLAGS\s\(\s*\)=:LDFLAGS+\1=:g" \ |
140 |
{capiinfo,capiinit,capifax,rcapid,avmb1}/Makefile* pppdcapiplugin/Rules.make |
141 |
# build rcapid |
142 |
use rcapid || sed -i -e "s:^\(CONFIG_RCAPID=.*\)$:# \1:g" .config |
143 |
# build pppdcapiplugin |
144 |
if use pppd; then |
145 |
[ -d "pppdcapiplugin/ppp-${PPPVERSION}" ] || die "ERROR: no pppdcapiplugin for version ${PPPVERSION}" |
146 |
else |
147 |
sed -i -e "s:^\(CONFIG_PPPDCAPIPLUGIN=.*\)$:# \1:g" .config |
148 |
fi |
149 |
# build capifax |
150 |
use fax || sed -i -e "s:^\(CONFIG_CAPIFAX=.*\)$:# \1:g" .config |
151 |
} |
152 |
|
153 |
src_configure() { |
154 |
emake subconfig || die "emake subconfig failed" |
155 |
} |
156 |
|
157 |
src_install() { |
158 |
emake DESTDIR="${D}" install || die "emake install failed" |
159 |
|
160 |
# install base |
161 |
dobin scripts/isdncause |
162 |
newinitd "${WORKDIR}/capi4k-files/capi.initd" capi |
163 |
newconfd "${WORKDIR}/capi4k-files/capi.confd" capi |
164 |
insinto /etc |
165 |
doins "${WORKDIR}/capi4k-files/capi.conf" |
166 |
dodoc "${WORKDIR}/capi4k-files/README.gentoo" scripts/makedev.sh |
167 |
|
168 |
# install rcapid stuff |
169 |
if use rcapid; then |
170 |
insinto /etc/xinetd.d |
171 |
newins "${WORKDIR}/capi4k-files/rcapid.xinetd" rcapid |
172 |
newdoc rcapid/README README.rcapid |
173 |
fi |
174 |
|
175 |
# install pppdcapiplugin stuff |
176 |
if use pppd; then |
177 |
insinto /etc/ppp/peers |
178 |
doins pppdcapiplugin/peers/t-dsl |
179 |
docinto pppdcapiplugin |
180 |
dodoc pppdcapiplugin/README pppdcapiplugin/examples/* |
181 |
# fixing permissions (see bug #136120) |
182 |
fperms 0644 /usr/share/man/man8/capiplugin.8 |
183 |
fi |
184 |
} |
185 |
|
186 |
pkg_postinst() { |
187 |
elog |
188 |
elog "Please read the instructions in README.gentoo in:" |
189 |
elog "/usr/share/doc/${PF}/" |
190 |
elog |
191 |
elog "Annotation for active AVM ISDN boards (B1 ISA/PCI, ...):" |
192 |
elog "If you run" |
193 |
elog " emerge isdn-firmware" |
194 |
elog "you will probably find your board's firmware in /lib/firmware." |
195 |
elog |
196 |
elog "If you have another active ISDN board, you should create" |
197 |
elog "/lib/firmware and copy there your board's firmware." |
198 |
elog |
199 |
ewarn "If you're upgrading from an older capi4k-utils, you must recompile" |
200 |
ewarn "the other packages on your system that link with libcapi after the" |
201 |
ewarn "upgrade completes. To perform this action, please run revdep-rebuild" |
202 |
ewarn "in package app-portage/gentoolkit." |
203 |
if use pppd; then |
204 |
ewarn |
205 |
ewarn "If you're upgrading net-dialup/ppp you have to recompile" |
206 |
ewarn "capi4k-utils to get the capiplugin for your pppd version." |
207 |
fi |
208 |
elog |
209 |
elog "If any of the following kernel configuration options is missing, you" |
210 |
elog "should reconfigure and rebuild your kernel before using capi4k-utils." |
211 |
linux-info_pkg_setup |
212 |
elog |
213 |
} |