]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - ppp/ppp.nm
Add a -debuginfo for every package that is not noarch.
[people/arne_f/ipfire-3.x.git] / ppp / ppp.nm
CommitLineData
fa4c11b5 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
fa4c11b5
MT
4###############################################################################
5
802ea3af
MT
6name = ppp
7version = 2.4.5
8release = 2
fa4c11b5 9
802ea3af
MT
10groups = System/Daemons
11url = ftp://ftp.samba.org/pub/ppp/
12license = BSD and LGPLv2+ and GPLv2+ and Public Domain
13summary = The PPP (Point-to-Point Protocol) daemon.
fa4c11b5 14
802ea3af 15description
fa4c11b5
MT
16 The ppp package contains the PPP (Point-to-Point Protocol) daemon and \
17 documentation for PPP support. The PPP protocol provides a method for \
18 transmitting datagrams over serial point-to-point links. PPP is \
19 usually used to dial in to an ISP or other organization over a modem \
20 and phone line.
802ea3af
MT
21end
22
23source_dl =
24
25build
26 requires
27 libpcap-devel
28 linux-atm-devel
29 openssl-devel
30 pam-devel
31 end
32
33 prepare_cmds
34 sed -e "s@^RUNDIR .*@RUNDIR = /var/run/ppp@" \
35 -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \
36 -i linux/Makefile.top
37
38 sed -e "s@^DESTDIR.*@DESTDIR=\$%{INSTROOT}/usr@" \
39 -i pppd/plugins/pppol2tp/Makefile.linux
40
41 # Remove broken header file that crashed the build.
42 rm -f include/linux/if_pppol2tp.h
43 end
44
45 make_build_targets += \
46 CC="gcc %{CFLAGS}"
47
48 install
49 make install INSTROOT=%{BUILDROOT}
50
51 rm -rfv %{BUILDROOT}/etc/ppp/plugins
52
53 mkdir -pv %{BUILDROOT}/etc/ppp
54 touch %{BUILDROOT}/etc/ppp/secrets
55 chmod -v 600 %{BUILDROOT}/etc/ppp/secrets
56 ln -svf secrets %{BUILDROOT}/etc/ppp/pap-secrets
57 ln -svf secrets %{BUILDROOT}/etc/ppp/chap-secrets
58 end
59end
60
61packages
62 package %{name}
63 end
1f9bc2f0 64
802ea3af
MT
65 package %{name}-devel
66 template DEVEL
67 end
1f9bc2f0
MT
68
69 package %{name}-debuginfo
70 template DEBUGINFO
71 end
802ea3af 72end