]>
Commit | Line | Data |
---|---|---|
bd1c5dc2 MT |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = isdn4k-utils | |
7 | version = 3.2 | |
8 | devel_ver = CVS-2010-05-01 | |
9 | release = 1 | |
10 | thisapp = %{name}-%{devel_ver}-patched | |
11 | ||
12 | groups = Networking/Tools | |
13 | url = | |
14 | license = GPLv2+ and GPL+ and MIT and BSD and zlib | |
15 | summary = Utilities for configuring an ISDN subsystem. | |
16 | ||
17 | description | |
18 | The isdn4k-utils package contains a collection of utilities needed \ | |
19 | for configuring and running an ISDN subsystem. | |
20 | end | |
21 | ||
22 | source_dl = ftp://ftp.isdn4linux.de/pub/isdn4linux/utils/ | |
23 | sources = %{thisapp}.tar.bz2 | |
24 | ||
25 | build | |
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 | |
77 | end | |
78 | ||
79 | packages | |
80 | package %{name} | |
81 | end | |
82 | end |