]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - isdn4k-utils/isdn4k-utils.nm
ibod+isdn4k-utils: New packages.
[people/ms/ipfire-3.x.git] / isdn4k-utils / isdn4k-utils.nm
CommitLineData
bd1c5dc2
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = isdn4k-utils
7version = 3.2
8devel_ver = CVS-2010-05-01
9release = 1
10thisapp = %{name}-%{devel_ver}-patched
11
12groups = Networking/Tools
13url =
14license = GPLv2+ and GPL+ and MIT and BSD and zlib
15summary = Utilities for configuring an ISDN subsystem.
16
17description
18 The isdn4k-utils package contains a collection of utilities needed \
19 for configuring and running an ISDN subsystem.
20end
21
22source_dl = ftp://ftp.isdn4linux.de/pub/isdn4linux/utils/
23sources = %{thisapp}.tar.bz2
24
25build
26 requires
27 autoconf
28 automake
29 libpcap-devel
30 libtool
31 ncurses-devel
32 ppp-devel
33 end
34
35 CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
36
37 prepare_cmds
38 # remove useless files
39 find -type d -name CVS | xargs rm -rf
40
41 # enable capi20.new
42 rm -rf capi20 && mv capi20.new capi20
43
44 # Reconfigure the whole package
45 for i in */configure; do
46 cd `dirname $i`
47 autoreconf --force --install || exit 1
48 cd ..
49 done
50
51 # Set configuration
52 mv .config.rpm .config
53 sed -e "s/^CONFIG_BUILDX11=.*/#&/" -i .config
54 sed -e "s/^CONFIG_VBOX=.*/#&/" -i .config
55 sed -e "s/^CONFIG_XMONISDN=.*/#&/" -i .config
56 sed -e "s/^CONFIG_XISDNLOAD=.*/#&/" -i .config
57 echo "CONFIG_GENMAN=y" >> .config
58 echo "CONFIG_FAQ=y" >> .config
59 echo "CONFIG_FAQDIR='/usr/share/doc/isdn4k-utils'" >> .config
60 echo "CONFIG_DATADIR='/usr/share/isdn'" >> .config
61 echo "LIBDIR='/usr/lib'" >> .config
62 echo "CONFIG_FIRMWAREDIR='/usr/share/isdn'" >> .config
63 echo "CONFIG_CARD_SBINDIR='/sbin'" >> .config
64 sed -e "s,',,g" .config > .config.h
65 end
66
67 build
68 make subconfig
69
70 make CFLAGS="%{CFLAGS}"
71 end
72
73 install
74 mkdir -pv %{BUILDROOT}/usr/sbin
75 make install CFLAGS="%{CFLAGS}" DESTDIR="%{BUILDROOT}"
76 end
77end
78
79packages
80 package %{name}
81 end
82end