]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - isdn4k-utils/isdn4k-utils.nm
Remove support for ISDN
[people/ms/ipfire-3.x.git] / isdn4k-utils / isdn4k-utils.nm
diff --git a/isdn4k-utils/isdn4k-utils.nm b/isdn4k-utils/isdn4k-utils.nm
deleted file mode 100644 (file)
index c176834..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-###############################################################################
-# IPFire.org    - An Open Source Firewall Solution                            #
-# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
-###############################################################################
-
-name       = isdn4k-utils
-version    = 3.2
-devel_ver  = CVS-2010-05-01
-release    = 8
-thisapp    = %{name}-%{devel_ver}-patched
-
-groups     = Networking/Tools
-url        =
-license    = GPLv2+ and GPL+ and MIT and BSD and zlib
-summary    = Utilities for configuring an ISDN subsystem.
-
-description
-       The isdn4k-utils package contains a collection of utilities needed
-       for configuring and running an ISDN subsystem.
-end
-
-source_dl  = ftp://ftp.isdn4linux.de/pub/isdn4linux/utils/
-sources    = %{thisapp}.tar.bz2
-
-build
-       requires
-               autoconf
-               automake
-               libpcap-devel
-               libtool
-               ncurses-devel
-               ppp-devel
-               perl
-       end
-
-       CFLAGS += \
-               -D_FILE_OFFSET_BITS=64 \
-               -D_LARGEFILE_SOURCE
-
-       prepare_cmds
-               # remove useless files
-               find -type d -name CVS | xargs rm -rf
-
-               # enable capi20.new
-               rm -rf capi20 && mv capi20.new capi20
-
-               # Reconfigure the whole package
-               for i in */configure; do
-                       cd `dirname $i`
-                       autoreconf --force --install || exit 1
-                       cd ..
-               done
-
-               # Set configuration
-               mv .config.rpm .config
-               sed -e "s/^CONFIG_BUILDX11=.*/#&/" -i .config
-               sed -e "s/^CONFIG_VBOX=.*/#&/" -i .config
-               sed -e "s/^CONFIG_XMONISDN=.*/#&/" -i .config
-               sed -e "s/^CONFIG_XISDNLOAD=.*/#&/" -i .config
-               echo "CONFIG_GENMAN=y" >> .config
-               echo "CONFIG_FAQ=y" >> .config
-               echo "CONFIG_FAQDIR='%{datadir}/doc/isdn4k-utils'" >> .config
-               echo "CONFIG_DATADIR='%{datadir}/isdn'" >> .config
-               echo "LIBDIR='%{libdir}'" >> .config
-               echo "CONFIG_FIRMWAREDIR='%{datadir}/isdn'" >> .config
-               echo "CONFIG_CARD_SBINDIR='%{sbindir}'" >> .config
-               sed -e "s,',,g" .config > .config.h
-       end
-
-       build
-               make subconfig
-
-               make CFLAGS="%{CFLAGS}"
-       end
-
-       install
-               mkdir -pv %{BUILDROOT}/usr/sbin
-               make install CFLAGS="%{CFLAGS}" LIBDIR="%{libdir}" DESTDIR="%{BUILDROOT}"
-
-               # Install config files for capi.
-               mkdir -pv %{BUILDROOT}/etc
-               install -m 644 capiinit/capi.conf %{BUILDROOT}/etc
-               install -m 644 %{DIR_SOURCE}/capi20.conf %{BUILDROOT}/etc
-
-               # Install ipppd configuration files.
-               mkdir -pv %{BUILDROOT}/etc/ppp
-               touch %{BUILDROOT}/etc/ppp/ioptions
-       end
-end
-
-packages
-       package %{name}
-               prerequires += systemd-units
-
-               conflicts
-                       filesystem < 002
-               end
-
-               configfiles
-                       /etc/capi.conf
-                       /etc/capi20.conf
-                       /etc/ppp/ioptions
-               end
-
-               script postin
-                       /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-               end
-
-               script preun
-                       /bin/systemctl --no-reload disable capi.service isdn.service >/dev/null 2>&1 || :
-                       /bin/systemctl stop capi.service isdn.service >/dev/null 2>&1 || :
-               end
-
-               script postun
-                       /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-               end
-
-               script postup
-                       /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-                       /bin/systemctl try-restart capi.service isdn.service >/dev/null 2>&1 || :
-               end
-       end
-
-       package %{name}-devel
-               template DEVEL
-       end
-
-       package %{name}-debuginfo
-               template DEBUGINFO
-       end
-end