summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2014-06-28 07:24:32 +0000
committerSergey Popov <pinkbyte@gentoo.org>2014-06-28 07:24:32 +0000
commit3b4a98af33c209e3bf4b5f2e142ab4e5bd1303bf (patch)
tree51238f2f694d4cf8029b45b10d8db2a4c98a4bd8 /net-dialup/capi4k-utils
parentVersion bump. (diff)
downloadhistorical-3b4a98af33c209e3bf4b5f2e142ab4e5bd1303bf.tar.gz
historical-3b4a98af33c209e3bf4b5f2e142ab4e5bd1303bf.tar.bz2
historical-3b4a98af33c209e3bf4b5f2e142ab4e5bd1303bf.zip
Drop old revisions
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0x1F357D42
Diffstat (limited to 'net-dialup/capi4k-utils')
-rw-r--r--net-dialup/capi4k-utils/ChangeLog7
-rw-r--r--net-dialup/capi4k-utils/Manifest18
-rw-r--r--net-dialup/capi4k-utils/capi4k-utils-20050718-r3.ebuild162
-rw-r--r--net-dialup/capi4k-utils/capi4k-utils-20050718-r5.ebuild172
-rw-r--r--net-dialup/capi4k-utils/files/capi20-types.diff10
5 files changed, 14 insertions, 355 deletions
diff --git a/net-dialup/capi4k-utils/ChangeLog b/net-dialup/capi4k-utils/ChangeLog
index b25f135af113..807c3a598961 100644
--- a/net-dialup/capi4k-utils/ChangeLog
+++ b/net-dialup/capi4k-utils/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-dialup/capi4k-utils
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/capi4k-utils/ChangeLog,v 1.80 2014/06/22 20:50:59 zlogene Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/capi4k-utils/ChangeLog,v 1.81 2014/06/28 07:24:31 pinkbyte Exp $
+
+ 28 Jun 2014; Sergey Popov <pinkbyte@gentoo.org>
+ -capi4k-utils-20050718-r3.ebuild, -capi4k-utils-20050718-r5.ebuild,
+ -files/capi20-types.diff:
+ Drop old revisions
22 Jun 2014; Mikle Kolyada <zlogene@gentoo.org>
capi4k-utils-20050718-r6.ebuild:
diff --git a/net-dialup/capi4k-utils/Manifest b/net-dialup/capi4k-utils/Manifest
index 96644c0aec99..bae96399ff8e 100644
--- a/net-dialup/capi4k-utils/Manifest
+++ b/net-dialup/capi4k-utils/Manifest
@@ -11,24 +11,22 @@ AUX capi.initd 4693 SHA256 98994626baf52447c3a020913d582023c0aeee4a2e13675d78c61
AUX capi.pcmcia 762 SHA256 9f960f018fb9baa68518a09c7039a489c5dce8c9e9351ac518996123c35f4aa5 SHA512 2a6d8be92b44b68db84a41bac3739cd5a9c3fa4c88130ad9e3efbc031cd01e1a7ac670075e8c06680d08403dc09814d6ebe1449ca5e38e75ae05ab56393f9219 WHIRLPOOL d867bb963bb3f3654547878418c4a285ba289f92a18066de755b2b1dab4846c1e6059fdbbd90828da78215c67d3fc397dec3c6f3dc7bf910beeb15a4b2ce5e76
AUX capi.pcmcia.conf 1218 SHA256 2e86b2c4551fb536ef90b1f51e3b2abab423dd1bd8c75ebf0365a43001c09019 SHA512 e4317bc3ebd30a6266ab1f77a78ab7febb3c428553e8215b565e423ae05acc3f06530c6fc278628adca4fcaac1ff70aa71375944b50a4b989f89f34c07d54113 WHIRLPOOL 2f0f7209e376a4894bad7c7ddb0ec8d2062dcffa015c4d3c1e5d436b695ef62c91df9f5b08e7a9ad9ce82a8e5cd8793d4f3768a0444fbbfe486e295d80a6b8b2
AUX capi.usermap 1663 SHA256 6e2750a3b2b69a9ea78239cb41b2c63893a8c479fcb80dfe0b7f2b9b6bc61055 SHA512 da3dc5f0431bf7d649677fd2355f1731e30012815bbe2af2f7ac9a889615efed350f8754c9f6d29c7805392d12fd4fc73629aa5218a9416f1673c5bceb338b43 WHIRLPOOL 18eeceb7b26be3b95ec9ec661230af0d08ae328ca3177e413bc2752216f8960f773e51ec09cecbdb0adb235567a856a6142a334f1a59fa7c914551037f02ca6e
-AUX capi20-types.diff 268 SHA256 dc6a25804dfc941d5251fa5effda2bd6cdc781455a55c009de88f1f71d266db6 SHA512 f71c6d8bd322238cd546cbfa8bc65adb60dd36d645d6a0f336c870dcf1cd0397e72ff50aa6c91dafaa50f7bbd337d45dc4b2b4c8faea205833e38818e2ac1c3b WHIRLPOOL 14383842abef2cb2511fc64ac134af78e8670968f270dbb5a0063beec3eebffc015688e5867f6feedd575d73944a8a6069ad5ba4d680570d5fa553b50e448efb
AUX config 195 SHA256 961697c42ebbf04ba5f0e9b7aa84129580445e80ebc4ab3d8fafa6dae0987717 SHA512 7f43097e5da7fbb890f1b505809aa0563a358c02f686200ab3ec5a6071666d583cff224889a2682d98f21a1143bcafb474b7b1e81e9b21fb05b32ed0ffb3d7bd WHIRLPOOL 973c70d766710f6d10173fe3bb10ba03ad8a67d1af53d8d019093f9e07133a9d0daeadc602dbd80deede93dd71c7cbb21ae9da1ef5c0f4fd553bc2f2ab621cff
AUX rcapid.xinetd 236 SHA256 c0bed83e2e4b7eb08ef7be5f2d3ee0de97cbbb45f5043a9d037c0daca4ebf595 SHA512 42477a5740d6d5890673854f7c88b62bafc193ac28c98559ef574b92bec44e500c1d647d2da49a51c6572fa71139a008dcd0f4c664b1e75f4d4e3ac93f88e96b WHIRLPOOL 297441ee506edc7b1b3ac10cadd946eb5375f00d8596f21e5403fb47ff7d5c7b80ef1d5d1bd315d8b34eacc58a616d2e084575fedcb18a00ff0641ae3a191423
DIST capi4k-files-20050718-r5.tar.xz 3864 SHA256 ffeb2985c5eea7b64f95ac94e7f1065921b141a07b1b3c1e79f660edf20176a8 SHA512 df65fa9f8dd0a1286391dd5a7ec077b492b2d486904b2baae9b78726299e24bca677baa17d243dc9e712e4f591b21a8b4314b52f302f1171454024428e999557 WHIRLPOOL 4b96683d2a68fb25c09e8288c8d81a73a521b50b5f91410dd4e7afd29b1569480fe54c59e95a85bb0c72929bd27c9989c944f29d9fc89889c3cbb898b2e5be85
-DIST capi4k-patches-20050718-r3.tar.bz2 11871 SHA256 aa085e7ce700e3a698af99675da419952e6afd8d76b9c641faedc098547c08b3
DIST capi4k-patches-20050718-r5.tar.xz 12564 SHA256 e390c9a87b9b31a6934198a2c6e9e99f0dea43daa8a04ce604f13ae72c1ee24b SHA512 68f3643d39e2fe1814ab65235402fb310c751a0ea142debc9f03df56790982673b1e5a47cbecb02e96ea922be124c09d3c52db4720f1fdc1434b150d1532c337 WHIRLPOOL 2f7a6ab5c72e699a2210806f33ead77128bacbe1c7ecd1f47b7f077c3815663adb7a9a8abba9c621eff2beb32024d65f1be52598d2165ac7687e6862cf920418
DIST capi4k-utils-2005-07-18.tar.gz 862826 SHA256 b162d726a31310fc29e7c0a25a4f82a590457f6a95c1b1168bcd72b6497b5746 SHA512 9493f2d81cb6cf39dc97a119b5133834019c7570c58c2e8aac8abff3c8ab0b37ec0630da535eadc58bc5111f70887f34d88729ddf2832dbfaf993013c40e8e47 WHIRLPOOL f69da2bfc814702ab87fadb4ce55bcc70b35866f2b47f03bc4ad89237cccd7bbd1fc583b616b364f51751ffbc41e1282aa4c2e07d6cc04c175ca2276c445b5f7
-EBUILD capi4k-utils-20050718-r3.ebuild 5281 SHA256 8f26212bab2d425f31c0506bb2b9ff0e017dd8e63d0770b993e1c3ce5a6f6f7c SHA512 33e8dd52ef4362658641991058f3718cbad00b90c3df720f7ce7e6791e8fc543109eca98ce83b336a00aa1a87ff7e7b6c7d330f2badf7c624755b1ec41bea8f1 WHIRLPOOL 03072f628f8e297fd1cd153f64e25b4d3651d57ebfad041b15d43d2cb2b28eb45c8b3ee46a9bad122aa43c7930a785a62036cd52e0a1d10b82d93891ecc0dc90
-EBUILD capi4k-utils-20050718-r5.ebuild 5895 SHA256 86f3ab45619163f47fe90d47d26a8d07c4ed1aab20b2e413c46a67479b974198 SHA512 00ec934ac96ff681c372514ca73cb8a7fb2a9b749c7498663a34a300af5e013bb9ea0e3aca70878dbbc14b06d0739a1b2577f3e438af7c33debc0e606c3d0bd0 WHIRLPOOL 63f968b86b292daa6a2e2329e0113cc7dd3477da766c4ea29650211cea22db745ec1d7e97071764186598dad2b38980a0a8ca0abc4a7648043e02107e16c7c6e
EBUILD capi4k-utils-20050718-r6.ebuild 5933 SHA256 b8b813e8fd2cdf96417b8c83a97b385903bc1ec002c5cdd88378d3382f699ff6 SHA512 86ca946d958eca1f7c57971618a982be41e657bb696fd70c41eaf2bc28b3522d8005f1677d84b946d4b3175344ab07fbd3e865959f7441b1e223e7ef369afd48 WHIRLPOOL 8125c7b73704fc97aff2df30b316c65102551e6ee21016de520976b952132b60b986f22ef20c5926f8d3102b717d5629cfa0b0e46b5658591608755a354bde13
-MISC ChangeLog 14181 SHA256 388f20d8393a7a525a0ee9850dbeec03b5a175b5f5e6ff12a1c31fb820d60d90 SHA512 31812d789aefeefcf18c049391e86a88e7995ebc19839a3328fb0b604b05af43fa202856a5556ecff26f4f4777cc6b922189d933538322a7e95b3479f83cc07a WHIRLPOOL cca6386c54cf9e8ca1ac1aaa343fac34b71d2dc66608f90725d5128522c8202101f96e7c24743e18a0e9f79017c09af634e41c4e443366babe2dfa703f2f41fa
+MISC ChangeLog 14352 SHA256 b4f7c91f64648dd43459a02abc053d6ccdbbfe835a502a96a1da46cc3cb2f98e SHA512 6733aff1bdce35962296033429c289363045094a15fc2f0013cbbca73641cf388e971213e95e59e1621af5f2c7bcd477e2959fd4297d8e77b867aff8096c4872 WHIRLPOOL 62e616726b83cb769102f29163a6a60e6307535ab95af097fea7fd75675eeb922ccfeaba0596ab26676cd20ab07fd211acbfeb44ed7a9603223e1a21cd33b257
MISC metadata.xml 702 SHA256 91e9148aaf0fecf61c2722e0a57bc1c6c56d8fa2a9b431418c5566f3c2cea46a SHA512 c4c4c8f76245ead212b4431d8e71aaa875f70ad6119307ffe334dc272e909dece81cc59129819e9191368d6c86ef7ba4c3969becf8839994f788fedcb3db69b7 WHIRLPOOL fc9febe33573df71835d6ba0bae439a523be0d250fd54c69d08999900d5dec241e210c91e0df88e73e546e756bb4ed5d2e02f60eaac83f39b49dee89fea79119
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iJwEAQEIAAYFAlOnQvUACgkQG9wOWsQutdZn6wP/URnebQ83M+bGeTCHF8tJZ3gg
-oARyiGMlxU0Al8uiSB8183TDRRr77/MREhobcCtgp4XYAaO7gZnJqkhTXX0kD96a
-/WZqbML4+jec6Z9UrKjOL+lFFaDGX0fxvqkpxXvPxjHEY2L64XApSCeUdlfcZWkR
-A3tPwbtospSGBO+nkn8=
-=spb2
+iQEcBAEBCAAGBQJTrm2wAAoJECo/aRed9267Q94IAICumVoJK12YMnr+dKQgvuYF
+gkr7bTmffmf692RKKsRT0/QHg/NtvxqBHokQITK0VboFmEvHV4aM6egMCfcK7/+S
+lF2PfwvkkwMKazRWrW/balS4qo7enXNnw4Zm+GhjmvErFjpnSn3AJE1LoBzLkvfV
+10NAImVn1o6fLCiQgfsOr7AsipBQ/uBWJVeDUTNCK2eHORUp3+uTBmGtLPmDWeqJ
+G8tavVEpStsesAjnJBFrxE3ZsOSX1FXmIjwoybYglx4AoZ+6lltYHqCcchAG8k7R
+DywYnU88uGVZZqAgvTXp4LC4APTCjRlK8C4+C5pG9ZsoJHofyryttWrCcUlKT50=
+=USBn
-----END PGP SIGNATURE-----
diff --git a/net-dialup/capi4k-utils/capi4k-utils-20050718-r3.ebuild b/net-dialup/capi4k-utils/capi4k-utils-20050718-r3.ebuild
deleted file mode 100644
index 8c22dc873f80..000000000000
--- a/net-dialup/capi4k-utils/capi4k-utils-20050718-r3.ebuild
+++ /dev/null
@@ -1,162 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/capi4k-utils/capi4k-utils-20050718-r3.ebuild,v 1.19 2014/04/03 10:10:27 tomwij Exp $
-
-EAPI=1
-inherit eutils multilib linux-info
-
-YEAR_PV="${PV:0:4}"
-MON_PV="${PV:4:2}"
-DAY_PV="${PV:6:2}"
-MY_P="${PN}-${YEAR_PV}-${MON_PV}-${DAY_PV}"
-PPPVERSIONS="2.4.2 2.4.3 2.4.4" # versions in portage
-
-DESCRIPTION="CAPI4Linux Utils"
-HOMEPAGE="ftp://ftp.in-berlin.de/pub/capi4linux/"
-SRC_URI="ftp://ftp.in-berlin.de/pub/capi4linux/${MY_P}.tar.gz
- ftp://ftp.in-berlin.de/pub/capi4linux/OLD/${MY_P}.tar.gz
- http://voip-cell.eu/gentoo/distfiles/${PF/utils/patches}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 ppc x86"
-IUSE="fax +pppd tcpd usb pcmcia"
-
-DEPEND="virtual/linux-sources
- virtual/os-headers
- >=sys-apps/sed-4"
-
-RDEPEND="usb? ( virtual/udev )
- pcmcia? ( sys-apps/pcmciautils )
- dev-lang/perl"
-
-S="${WORKDIR}/${PN}"
-PATCHDIR="${WORKDIR}/capi4k-patches"
-
-pkg_setup() {
- # check kernel config
- CONFIG_CHECK="~ISDN ~ISDN_CAPI ~ISDN_CAPI_CAPI20"
- use pppd && CONFIG_CHECK="${CONFIG_CHECK} ~ISDN_CAPI_MIDDLEWARE ~ISDN_CAPI_CAPIFS_BOOL"
- linux-info_pkg_setup
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # add ppp-2.4.4 support
- epatch "${PATCHDIR}/pppd244.diff"
-
- # apply msg2str-safety patch (see bug #170870)
- epatch "${PATCHDIR}/msg2str-safety.diff"
-
- # apply sys/types patch (needed for glibc-2.7)
- epatch "${FILESDIR}/capi20-types.diff"
-
- # set our config
- cp -f "${FILESDIR}/config" .config
- # copy init-script config
- cp -f "${FILESDIR}/capi.confd" capi.confd
- # patch all Makefile.* and Rules.make to use our CFLAGS
- sed -i -e "s:^\(CFLAGS.*\)-O2:\1${CFLAGS}:g" */Makefile.* */Rules.make || die "sed failed"
- # patch capi20/Makefile.* to use -fPIC for shared library
- sed -i -e "s:^\(CFLAGS.*\):\1 -fPIC:g" capi20/Makefile.* || die "sed failed"
- # patch pppdcapiplugin/Makefile to use only the ppp versions we want
- sed -i -e "s:^\(PPPVERSIONS = \).*$:\1${PPPVERSIONS}:g" pppdcapiplugin/Makefile || die "sed failed"
- # patch capiinit/capiinit.c to look also in /lib/firmware
- sed -i -e "s:\(\"/lib/firmware/isdn\",\):\1 \"/lib/firmware\",:g" capiinit/capiinit.c || die "sed failed"
- # no, we don't need any devices nodes
- sed -i -e "s:\(sh scripts/makedev.sh\):echo \1:g" Makefile || die "sed failed"
- # add --libdir to configure call in Makefile
- sed -i -e "s:\(\./configure \):\1--libdir=/usr/$(get_libdir) :g" Makefile || die "sed failed"
- # patch /usr/lib/pppd in pppdcapiplugin tree
- sed -i -e "s:/usr/lib/pppd:/usr/$(get_libdir)/pppd:g" \
- pppdcapiplugin/ppp-*/Makefile pppdcapiplugin/{README,*.8} || die "sed failed"
-
- # USB hotplug
- use usb || sed -i -e "s:^\(CAPI_HOTPLUG_.*\)$:### \1:g" capi.confd
- # build rcapid
- use tcpd || sed -i -e "s:^\(CONFIG_RCAPID=.*\)$:# \1:g" .config
- # build capifax
- use fax || sed -i -e "s:^\(CONFIG_CAPIFAX=.*\)$:# \1:g" .config
- # build pppdcapiplugin
- use pppd || sed -i -e "s:^\(CONFIG_PPPDCAPIPLUGIN=.*\)$:# \1:g" .config
-}
-
-src_compile() {
- emake subconfig || die "make subconfig failed"
- emake || die "make failed"
-}
-
-src_install() {
- make DESTDIR="${D}" install || die "make install failed"
-
- # fixing permissions (see bug #136120)
- fperms 0644 /usr/share/man/man8/capiplugin.8
-
- # install base
- dobin scripts/isdncause
- newinitd "${FILESDIR}/capi.initd" capi
- newconfd capi.confd capi
- insinto /etc
- doins "${FILESDIR}/capi.conf"
- dodoc "${FILESDIR}/README.gentoo" scripts/makedev.sh
-
- # install USB hotplug stuff
- if use usb; then
- insinto /etc/hotplug/blacklist.d
- newins "${FILESDIR}/capi.blacklist" capi
- insinto /etc/hotplug/usb
- newins "${FILESDIR}/capi.usermap" capi.usermap
- exeinto /etc/hotplug/usb
- newexe "${FILESDIR}/capi.hotplug" capi
- fi
-
- # install PCMCIA stuff
- if use pcmcia; then
- insinto /etc/pcmcia
- newins "${FILESDIR}/capi.pcmcia.conf" capi.conf
- exeinto /etc/pcmcia
- newexe "${FILESDIR}/capi.pcmcia" capi
- fi
-
- # install rcapid stuff
- if use tcpd; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}/rcapid.xinetd" rcapid
- newdoc rcapid/README README.rcapid
- fi
-
- # install pppdcapiplugin stuff
- if use pppd; then
- insinto /etc/ppp/peers
- doins pppdcapiplugin/peers/t-dsl
- docinto pppdcapiplugin
- dodoc pppdcapiplugin/README pppdcapiplugin/examples/*
- fi
-}
-
-pkg_postinst() {
- elog
- elog "Please read the instructions in README.gentoo in:"
- elog "/usr/share/doc/${PF}/"
- elog
- elog "Annotation for active AVM ISDN boards (B1 ISA/PCI, ...):"
- elog "If you run"
- elog " emerge isdn-firmware"
- elog "you will probably find your board's firmware in /lib/firmware."
- elog
- elog "If you have another active ISDN board, you should create"
- elog "/lib/firmware and copy there your board's firmware."
- elog
- elog "There're several other packages available, which might have"
- elog "the CAPI driver you need for your card(s):"
- elog " net-dialup/fritzcapi - AVM passive ISDN controllers"
- elog " net-dialup/fcdsl - AVM ISDN/DSL controllers PCI/USB"
- elog
- ewarn "If you're upgrading from an older capi4k-utils, you must recompile"
- ewarn "the other packages on your system that link with libcapi after the"
- ewarn "upgrade completes. To perform this action, please run revdep-rebuild"
- ewarn "in package app-portage/gentoolkit."
- ewarn
-}
diff --git a/net-dialup/capi4k-utils/capi4k-utils-20050718-r5.ebuild b/net-dialup/capi4k-utils/capi4k-utils-20050718-r5.ebuild
deleted file mode 100644
index 9d717499e51a..000000000000
--- a/net-dialup/capi4k-utils/capi4k-utils-20050718-r5.ebuild
+++ /dev/null
@@ -1,172 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/capi4k-utils/capi4k-utils-20050718-r5.ebuild,v 1.3 2013/06/18 05:00:43 pinkbyte Exp $
-
-EAPI="3"
-
-inherit eutils multilib linux-info
-
-YEAR_PV="${PV:0:4}"
-MON_PV="${PV:4:2}"
-DAY_PV="${PV:6:2}"
-MY_P="${PN}-${YEAR_PV}-${MON_PV}-${DAY_PV}"
-
-DESCRIPTION="CAPI4Linux Utils"
-HOMEPAGE="ftp://ftp.in-berlin.de/pub/capi4linux/"
-SRC_URI="ftp://ftp.in-berlin.de/pub/capi4linux/${MY_P}.tar.gz
- ftp://ftp.in-berlin.de/pub/capi4linux/OLD/${MY_P}.tar.gz
- http://sbriesen.de/gentoo/distfiles/${PF/utils/files}.tar.xz
- http://sbriesen.de/gentoo/distfiles/${PF/utils/patches}.tar.xz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~ppc ~x86"
-IUSE="fax +pppd rcapid"
-
-COMMON_DEP="pppd? ( net-dialup/ppp )"
-
-DEPEND="${COMMON_DEP}
- virtual/linux-sources
- virtual/os-headers
- app-arch/xz-utils
- >=sys-apps/sed-4"
-
-RDEPEND="${COMMON_DEP}
- dev-lang/perl"
-
-S="${WORKDIR}/${PN}"
-
-pkg_setup() {
- # check kernel config
- CONFIG_CHECK="~ISDN ~ISDN_CAPI ~ISDN_CAPI_CAPI20"
- use pppd && CONFIG_CHECK="${CONFIG_CHECK} ~ISDN_CAPI_MIDDLEWARE ~ISDN_CAPI_CAPIFS_BOOL"
- get_version # config checked later in pkg_postinst
-
- # find installed pppd version
- if use pppd; then
- PPPVERSION=$(/usr/sbin/pppd 2>&1 --version | sed -n "s:^.* \([0-9.]\+\)\$:\1:p")
- if [ -n "${PPPVERSION}" ]; then
- einfo "Found installed pppd version:"
- einfo " pppd version ${PPPVERSION}"
- else
- die "No pppd installation found"
- fi
- fi
-}
-
-src_prepare() {
- # add ppp-2.4.4 support
- epatch "${WORKDIR}/capi4k-patches/pppd244.diff"
-
- # add ppp-2.4.5 support
- epatch "${WORKDIR}/capi4k-patches/pppd245.diff"
-
- # apply rcapid patches
- epatch "${WORKDIR}/capi4k-patches/rcapid.diff"
-
- # apply msg2str-safety patch (see bug #170870)
- epatch "${WORKDIR}/capi4k-patches/msg2str-safety.diff"
-
- # apply capi20.h patches (needed for glibc-2.7)
- epatch "${WORKDIR}/capi4k-patches/capi20-include.diff"
-
- # set our config
- cp -f "${WORKDIR}/capi4k-files/config" .config
- # patch all Makefile.* and Rules.make to use our CFLAGS
- sed -i -e "s:^\(CFLAGS.*\)-O2:\1${CFLAGS}:g" */Makefile.* */Rules.make || die "sed failed"
- # patch capi20/Makefile.* to use -fPIC for shared library
- sed -i -e "s:^\(CFLAGS.*\):\1 -fPIC:g" capi20/Makefile.* || die "sed failed"
- # patch pppdcapiplugin/Makefile to use only the ppp versions we want
- sed -i -e "s:^\(PPPVERSIONS = \).*$:\1${PPPVERSION}:g" pppdcapiplugin/Makefile || die "sed failed"
- # patch capiinit/capiinit.c to look also in /lib/firmware
- sed -i -e "s:\(\"/lib/firmware/isdn\",\):\1 \"/lib/firmware\",:g" capiinit/capiinit.c || die "sed failed"
- # no, we don't need any devices nodes
- sed -i -e "s:\(sh scripts/makedev.sh\):echo \1:g" Makefile || die "sed failed"
- # add --libdir to configure call in Makefile
- sed -i -e "s:\(\./configure \):\1--libdir=/usr/$(get_libdir) :g" Makefile || die "sed failed"
- # patch /usr/lib/pppd in pppdcapiplugin tree
- sed -i -e "s:/usr/lib/pppd:/usr/$(get_libdir)/pppd:g" \
- pppdcapiplugin/ppp-*/Makefile pppdcapiplugin/{README,*.8} || die "sed failed"
- # respecting LDFLAGS (see bug #293209)
- sed -i -e "s:^LDFLAGS\s\(\s*\)=:LDFLAGS+\1=:g" \
- {capiinfo,capiinit,capifax,rcapid,avmb1}/Makefile* pppdcapiplugin/Rules.make
- # build rcapid
- use rcapid || sed -i -e "s:^\(CONFIG_RCAPID=.*\)$:# \1:g" .config
- # build pppdcapiplugin
- if use pppd; then
- [ -d "pppdcapiplugin/ppp-${PPPVERSION}" ] || die "ERROR: no pppdcapiplugin for version ${PPPVERSION}"
- else
- sed -i -e "s:^\(CONFIG_PPPDCAPIPLUGIN=.*\)$:# \1:g" .config
- fi
- # build capifax
- use fax || sed -i -e "s:^\(CONFIG_CAPIFAX=.*\)$:# \1:g" .config
-}
-
-src_configure() {
- # bug 468662 - we NEED to redefine AR and CC both with tc-export and at compile phase
- tc-export AR CC
- emake subconfig || die "emake subconfig failed"
-}
-
-src_compile() {
- # bug 468662 - we NEED to redefine AR and CC both with tc-export and at compile phase
- emake AR="$(tc-getAR)" CC="$(tc-getCC)" || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
-
- # install base
- dobin scripts/isdncause
- newinitd "${WORKDIR}/capi4k-files/capi.initd" capi
- newconfd "${WORKDIR}/capi4k-files/capi.confd" capi
- insinto /etc
- doins "${WORKDIR}/capi4k-files/capi.conf"
- dodoc "${WORKDIR}/capi4k-files/README.gentoo" scripts/makedev.sh
-
- # install rcapid stuff
- if use rcapid; then
- insinto /etc/xinetd.d
- newins "${WORKDIR}/capi4k-files/rcapid.xinetd" rcapid
- newdoc rcapid/README README.rcapid
- fi
-
- # install pppdcapiplugin stuff
- if use pppd; then
- insinto /etc/ppp/peers
- doins pppdcapiplugin/peers/t-dsl
- docinto pppdcapiplugin
- dodoc pppdcapiplugin/README pppdcapiplugin/examples/*
- # fixing permissions (see bug #136120)
- fperms 0644 /usr/share/man/man8/capiplugin.8
- fi
-}
-
-pkg_postinst() {
- elog
- elog "Please read the instructions in README.gentoo in:"
- elog "/usr/share/doc/${PF}/"
- elog
- elog "Annotation for active AVM ISDN boards (B1 ISA/PCI, ...):"
- elog "If you run"
- elog " emerge isdn-firmware"
- elog "you will probably find your board's firmware in /lib/firmware."
- elog
- elog "If you have another active ISDN board, you should create"
- elog "/lib/firmware and copy there your board's firmware."
- elog
- ewarn "If you're upgrading from an older capi4k-utils, you must recompile"
- ewarn "the other packages on your system that link with libcapi after the"
- ewarn "upgrade completes. To perform this action, please run revdep-rebuild"
- ewarn "in package app-portage/gentoolkit."
- if use pppd; then
- ewarn
- ewarn "If you're upgrading net-dialup/ppp you have to recompile"
- ewarn "capi4k-utils to get the capiplugin for your pppd version."
- fi
- elog
- elog "If any of the following kernel configuration options is missing, you"
- elog "should reconfigure and rebuild your kernel before using capi4k-utils."
- linux-info_pkg_setup
- elog
-}
diff --git a/net-dialup/capi4k-utils/files/capi20-types.diff b/net-dialup/capi4k-utils/files/capi20-types.diff
deleted file mode 100644
index 5619c48d0b09..000000000000
--- a/net-dialup/capi4k-utils/files/capi20-types.diff
+++ /dev/null
@@ -1,10 +0,0 @@
---- capi4k-utils.orig/capi20/capi20.h 2000-11-19 11:15:01.000000000 +0100
-+++ capi4k-utils/capi20/capi20.h 2007-11-20 21:37:13.000000000 +0100
-@@ -21,6 +21,7 @@
- #define __CAPI20_H__
-
- #include <sys/time.h>
-+#include <sys/types.h>
-
- #ifdef __cplusplus
- extern "C" {