Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dialup/capi4k-utils/
Date: Thu, 28 Apr 2016 22:00:28
Message-Id: 1461880772.240c46eb37fdc3a4fd91a0646e95cc4ca0b4d999.wizardedit@gentoo
1 commit: 240c46eb37fdc3a4fd91a0646e95cc4ca0b4d999
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 28 18:33:26 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 28 21:59:32 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=240c46eb
7
8 net-dialup/capi4k-utils: remove capi4k-utils-20050718-r6
9
10 Package-Manager: portage-2.2.26
11
12 .../capi4k-utils/capi4k-utils-20050718-r6.ebuild | 182 ---------------------
13 1 file changed, 182 deletions(-)
14
15 diff --git a/net-dialup/capi4k-utils/capi4k-utils-20050718-r6.ebuild b/net-dialup/capi4k-utils/capi4k-utils-20050718-r6.ebuild
16 deleted file mode 100644
17 index 7f24b79..0000000
18 --- a/net-dialup/capi4k-utils/capi4k-utils-20050718-r6.ebuild
19 +++ /dev/null
20 @@ -1,182 +0,0 @@
21 -# Copyright 1999-2014 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=5
26 -
27 -inherit eutils linux-info multilib versionator
28 -
29 -YEAR_PV="${PV:0:4}"
30 -MON_PV="${PV:4:2}"
31 -DAY_PV="${PV:6:2}"
32 -MY_P="${PN}-${YEAR_PV}-${MON_PV}-${DAY_PV}"
33 -
34 -PATCHVER="5"
35 -TARBALL_FILES="capi4k-files-${PV}-r${PATCHVER}.tar.xz"
36 -TARBALL_PATCHES="capi4k-patches-${PV}-r${PATCHVER}.tar.xz"
37 -
38 -DESCRIPTION="CAPI4Linux Utils"
39 -HOMEPAGE="ftp://ftp.in-berlin.de/pub/capi4linux/"
40 -SRC_URI="ftp://ftp.in-berlin.de/pub/capi4linux/${MY_P}.tar.gz
41 - ftp://ftp.in-berlin.de/pub/capi4linux/OLD/${MY_P}.tar.gz
42 - http://sbriesen.de/gentoo/distfiles/${TARBALL_FILES}
43 - http://sbriesen.de/gentoo/distfiles/${TARBALL_PATCHES}"
44 -
45 -LICENSE="GPL-2"
46 -SLOT="0/3.0.4"
47 -KEYWORDS="alpha amd64 ppc x86"
48 -IUSE="fax +pppd rcapid"
49 -
50 -COMMON_DEP="pppd? ( net-dialup/ppp:= )"
51 -
52 -DEPEND="${COMMON_DEP}
53 - virtual/linux-sources
54 - virtual/os-headers
55 - app-arch/xz-utils
56 - >=sys-apps/sed-4"
57 -
58 -RDEPEND="${COMMON_DEP}
59 - dev-lang/perl"
60 -
61 -S="${WORKDIR}/${PN}"
62 -
63 -pkg_setup() {
64 - # check kernel config
65 - CONFIG_CHECK="~ISDN ~ISDN_CAPI ~ISDN_CAPI_CAPI20"
66 - use pppd && CONFIG_CHECK="${CONFIG_CHECK} ~ISDN_CAPI_MIDDLEWARE ~ISDN_CAPI_CAPIFS_BOOL"
67 - get_version # config checked later in pkg_postinst
68 -
69 - # find installed pppd version
70 - if use pppd; then
71 - local INSTALLED_PPP="$(best_version net-dialup/ppp)"
72 - PPPVERSION="${INSTALLED_PPP#net-dialup/ppp-}"
73 - PPPVERSION="$(version_format_string '$1.$2.$3' ${PPPVERSION})"
74 - if [ -z "${PPPVERSION}" ]; then
75 - die "No pppd installation found"
76 - fi
77 - fi
78 -}
79 -
80 -src_prepare() {
81 - # add ppp-2.4.4 support
82 - epatch "${WORKDIR}/capi4k-patches/pppd244.diff"
83 -
84 - # add ppp-2.4.5 support
85 - epatch "${WORKDIR}/capi4k-patches/pppd245.diff"
86 -
87 - # apply rcapid patches
88 - epatch "${WORKDIR}/capi4k-patches/rcapid.diff"
89 -
90 - # apply msg2str-safety patch (see bug #170870)
91 - epatch "${WORKDIR}/capi4k-patches/msg2str-safety.diff"
92 -
93 - # apply capi20.h patches (needed for glibc-2.7)
94 - epatch "${WORKDIR}/capi4k-patches/capi20-include.diff"
95 -
96 - # set our config
97 - cp -f "${WORKDIR}/capi4k-files/config" .config
98 - # patch all Makefile.* and Rules.make to use our CFLAGS
99 - sed -i -e "s:^\(CFLAGS.*\)-O2:\1${CFLAGS}:g" */Makefile.* */Rules.make || die "sed failed"
100 - # patch capi20/Makefile.* to use -fPIC for shared library
101 - sed -i -e "s:^\(CFLAGS.*\):\1 -fPIC:g" capi20/Makefile.* || die "sed failed"
102 - # patch pppdcapiplugin/Makefile to use only the ppp versions we want
103 - sed -i -e "s:^\(PPPVERSIONS = \).*$:\1${PPPVERSION}:g" pppdcapiplugin/Makefile || die "sed failed"
104 - # patch capiinit/capiinit.c to look also in /lib/firmware
105 - sed -i -e "s:\(\"/lib/firmware/isdn\",\):\1 \"/lib/firmware\",:g" capiinit/capiinit.c || die "sed failed"
106 - # no, we don't need any devices nodes
107 - sed -i -e "s:\(sh scripts/makedev.sh\):echo \1:g" Makefile || die "sed failed"
108 - # add --libdir to configure call in Makefile
109 - sed -i -e "s:\(\./configure \):\1--libdir=/usr/$(get_libdir) :g" Makefile || die "sed failed"
110 - # patch /usr/lib/pppd in pppdcapiplugin tree
111 - sed -i -e "s:/usr/lib/pppd:/usr/$(get_libdir)/pppd:g" \
112 - pppdcapiplugin/ppp-*/Makefile pppdcapiplugin/{README,*.8} || die "sed failed"
113 - # respecting LDFLAGS (see bug #293209)
114 - sed -i -e "s:^LDFLAGS\s\(\s*\)=:LDFLAGS+\1=:g" \
115 - {capiinfo,capiinit,capifax,rcapid,avmb1}/Makefile* pppdcapiplugin/Rules.make || die
116 - # build rcapid
117 - if ! use rcapid; then
118 - sed -i -e "s:^\(CONFIG_RCAPID=.*\)$:# \1:g" .config || die
119 - fi
120 - # build pppdcapiplugin
121 - if use pppd; then
122 - # workaround for bug #511800
123 - if has_version \>=net-dialup/ppp-2.4.6; then
124 - pushd pppdcapiplugin &>/dev/null || die
125 - mv ppp-2.4.5 "ppp-${PPPVERSION}" || die
126 - popd &>/dev/null
127 - fi
128 - else
129 - sed -i -e "s:^\(CONFIG_PPPDCAPIPLUGIN=.*\)$:# \1:g" .config || die
130 - fi
131 - # build capifax
132 - if ! use fax; then
133 - sed -i -e "s:^\(CONFIG_CAPIFAX=.*\)$:# \1:g" .config || die
134 - fi
135 -
136 - epatch_user
137 -}
138 -
139 -src_configure() {
140 - # bug 468662 - we NEED to redefine AR and CC both with tc-export and at compile phase
141 - tc-export AR CC
142 - emake subconfig
143 -}
144 -
145 -src_compile() {
146 - # bug 468662 - we NEED to redefine AR and CC both with tc-export and at compile phase
147 - emake AR="$(tc-getAR)" CC="$(tc-getCC)"
148 -}
149 -
150 -src_install() {
151 - default_src_install
152 - prune_libtool_files
153 -
154 - # install base
155 - dobin scripts/isdncause
156 - newinitd "${WORKDIR}/capi4k-files/capi.initd" capi
157 - newconfd "${WORKDIR}/capi4k-files/capi.confd" capi
158 - insinto /etc
159 - doins "${WORKDIR}/capi4k-files/capi.conf"
160 - dodoc "${WORKDIR}/capi4k-files/README.gentoo" scripts/makedev.sh
161 -
162 - # install rcapid stuff
163 - if use rcapid; then
164 - insinto /etc/xinetd.d
165 - newins "${WORKDIR}/capi4k-files/rcapid.xinetd" rcapid
166 - newdoc rcapid/README README.rcapid
167 - fi
168 -
169 - # install pppdcapiplugin stuff
170 - if use pppd; then
171 - insinto /etc/ppp/peers
172 - doins pppdcapiplugin/peers/t-dsl
173 - docinto pppdcapiplugin
174 - dodoc pppdcapiplugin/README pppdcapiplugin/examples/*
175 - # fixing permissions (see bug #136120)
176 - fperms 0644 /usr/share/man/man8/capiplugin.8
177 - fi
178 -}
179 -
180 -pkg_postinst() {
181 - elog
182 - elog "Please read the instructions in README.gentoo in:"
183 - elog "/usr/share/doc/${PF}/"
184 - elog
185 - elog "Annotation for active AVM ISDN boards (B1 ISA/PCI, ...):"
186 - elog "If you run"
187 - elog " emerge isdn-firmware"
188 - elog "you will probably find your board's firmware in /lib/firmware."
189 - elog
190 - elog "If you have another active ISDN board, you should create"
191 - elog "/lib/firmware and copy there your board's firmware."
192 - elog
193 - ewarn "If you're upgrading from an older capi4k-utils, you must recompile"
194 - ewarn "the other packages on your system that link with libcapi after the"
195 - ewarn "upgrade completes. To perform this action, please run revdep-rebuild"
196 - ewarn "in package app-portage/gentoolkit."
197 - elog
198 - elog "If any of the following kernel configuration options is missing, you"
199 - elog "should reconfigure and rebuild your kernel before using capi4k-utils."
200 - linux-info_pkg_setup
201 - elog
202 -}