Browse Source

Andreas V. Meier:


			
			
				rocklinux
			
			
		
Andreas V. 'netrunner' Meier 19 years ago
parent
commit
da25c678f9
4 changed files with 102 additions and 0 deletions
  1. +13
    -0
      package/avm/misdn-user/misdn-user.conf
  2. +47
    -0
      package/avm/misdn-user/misdn-user.desc
  3. +19
    -0
      package/avm/misdn-user/pkg_config_linux.in
  4. +23
    -0
      package/avm/misdn-user/pkg_linux_pre.conf

+ 13
- 0
package/avm/misdn-user/misdn-user.conf

@ -0,0 +1,13 @@
misdnuser_custmain() {
eval make $makeopt
mkdir -p $includedir/mISDN
mkdir -p $libdir/mISDN/i4lnet
install -v lib/libmISDN.a $libdir/mISDN/libmISDN.a
install -v i4lnet/libisdnnet.a $libdir/mISDN/i4lnet/libisdnnet.a
mkdir -p $includedir/mISDN/{voip,i4lnet}
install -v include/*.h $includedir/mISDN/
install -v i4lnet/*.h $includedir/mISDN/i4lnet/
install -v voip/*.h $includedir/mISDN/voip/
}
custmain="misdnuser_custmain"

+ 47
- 0
package/avm/misdn-user/misdn-user.desc

@ -0,0 +1,47 @@
[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN ---
[COPY]
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY] Please add additional copyright information _after_ the line containing
[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
[COPY]
[COPY] ROCK Linux: rock-src/package/avm/misdn-user/misdn-user.desc
[COPY] ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; either version 2 of the License, or
[COPY] (at your option) any later version. A copy of the GNU General Public
[COPY] License can be found at Documentation/COPYING.
[COPY]
[COPY] Many people helped and are helping developing ROCK Linux. Please
[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM
[COPY] file for details.
[COPY]
[COPY] --- ROCK-COPYRIGHT-NOTE-END ---
[I] mISDN user libraries
[T] This package contains the mISDN user libraries, namely libmISDN.a,
[T] which provides direct access to the device and libisdnnet.a, which provides
[T] the NT mode protocol.
[U] http://isdn.jolly.de/
[A] Various jolly@jolly.de
[M] Andreas V. 'netrunner' Meier <avmeier@web.de>
[C] extra/network
[L] GPL
[S] Stable
[V] 3.0
[P] X -----5---9 800.000
[SRC] mISDNuser
[D] 279676022 mISDNuser_for_PBX4Linux-3.0.tar.gz http://isdn.jolly.de/download/v3.0/
[D] 2809222949 mISDN_for_PBX4Linux-3.0.tar.gz http://isdn.jolly.de/download/v3.0/
[O] misdnkerneltar=mISDN_for_PBX4Linux-3.0

+ 19
- 0
package/avm/misdn-user/pkg_config_linux.in

@ -0,0 +1,19 @@
if [ "$ROCKCFG_PKG_LINUX_IMG26" = 1 ]; then
bool 'Add mISDN driver to 2.6 kernel' ROCKCFG_PKG_LINUX_MISDN 0
if [ ! x"$ROCKCFG_PKG_LINUX_CUSTCONFIG" == x"1" ]; then
comment "Please activate custom kernel configuration above"
comment " to build mISDN drivers during kernel build"
fi
if [ x"$ROCKCFG_PKG_LINUX_MISDN" == x'1' ]; then
for x in AVM_FRITZ HFCPCI HFCMULTI HFCUSB SPEEDFAX W6692 DSP; do
grep -s -v CONFIG_MISDN_$x config/$config.$swpid/linux.cfg > config/$config.$swpid/linux.cfg.$$
echo "CONFIG_MISDN_$x=y" >> config/$config.$swpid/linux.cfg.$$
mv config/$config.$swpid/linux.cfg.$$ config/$config.$swpid/linux.cfg
done
else
for x in AVM_FRITZ HFCPCI HFCMULTI HFCUSB SPEEDFAX W6692 DSP; do
grep -s -v CONFIG_MISDN_$x config/$config.$swpid/linux.cfg > config/$config.$swpid/linux.cfg.$$
mv config/$config.$swpid/linux.cfg.$$ config/$config.$swpid/linux.cfg
done
fi
fi

+ 23
- 0
package/avm/misdn-user/pkg_linux_pre.conf

@ -0,0 +1,23 @@
if [ "$ROCKCFG_PKG_LINUX_MISDN" = 1 ] && [ "${xpkg:0:7}" == "linux26" ]; then
mypwd=$PWD
cd $builddir
misdnkerneltar=$(grep misdnkerneltar \
$base/package/avm/misdn-user/misdn-user.desc | \
awk 'BEGIN{FS="="}{print $2}')
tar $taropt $base/download/mirror/${misdnkerneltar:0:1}/$misdnkerneltar.tar.bz2
cd mISDN
sed -i -e "s,\(KERNELDIR=\).*,\1$builddir/linux-$ver," std2kern
cd $mypwd
hook_add postpatch 3 '\
echo "Adding mISDN driver";
mypwd=$PWD; \
cd $builddir/mISDN; \
./std2kern || exit 1; \
cd $mypwd; \
sed -i -e "s,pdev->slot_name,pci_name(pdev)," drivers/isdn/hardware/mISDN/* \
'
else
echo "No mISDN driver in this config"
fi

Loading…
Cancel
Save