]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - rp-pppoe/rp-pppoe.nm
perl-XML-SAX-Base: New package.
[people/ms/ipfire-3.x.git] / rp-pppoe / rp-pppoe.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = rp-pppoe
7 version = 3.10
8 release = 3
9
10 groups = Networking/Dialin
11 url = http://www.roaringpenguin.com/pppoe/
12 license = GPLv2+
13 summary = Administration tools for PPPoE connections.
14
15 description
16 PPPoE (Point-to-Point Protocol over Ethernet) is a protocol used by
17 many ADSL Internet Service Providers.
18 This package contains a set of tools to build your own PPPoE server.
19 end
20
21 source_dl = http://www.roaringpenguin.com/files/download/
22
23 build
24 requires
25 autoconf
26 automake
27 iproute2
28 libtool
29 ppp-devel
30 systemd-units
31 end
32
33 DIR_APP := %{DIR_APP}/src
34 CFLAGS += -D_GNU_SOURCE -fno-strict-aliasing
35
36 prepare_cmds
37 # PLUGIN_DIR defaults to /etc/ppp/plugins, which is not what we want.
38 sed -i Makefile.in \
39 -e "s@^PLUGIN_DIR=.*@PLUGIN_DIR=%{libdir}/pppd/$(pppd --version 2>&1 | awk '{ print $NF }')@"
40
41 # Always enable kernel mode PPPoE for the server, because we
42 # don't ship the userspace component.
43 sed -i pppoe-server.c \
44 -e "s/UseLinuxKernelModePPPoE = 0/UseLinuxKernelModePPPoE = 1/"
45
46 autoconf
47 end
48
49 # Force support for kernel-mode PPPoE.
50 #configure_options += \
51 # ac_cv_header_linux_if_pppox_h=yes
52
53 install_cmds
54 # Remove all the client components because we only support the
55 # rp-pppoe plugin that comes with pppd.
56 rm -rvf %{BUILDROOT}%{sysconfdir}
57 rm -vf %{BUILDROOT}%{sbindir}/pppoe
58 rm -vf %{BUILDROOT}%{sbindir}/pppoe-{connect,start,stop,status,setup}
59 rm -vf %{BUILDROOT}%{mandir}/man*/pppoe-{connect,start,stop,status,setup}*
60 rm -vf %{BUILDROOT}%{mandir}/man*/pppoe.{,conf}*
61 rm -rvf %{BUILDROOT}%{libdir}
62 end
63 end
64
65 packages
66 package %{name}
67 requires
68 iproute2
69 ppp
70 end
71
72 script postin
73 systemctl daemon-reload >/dev/null 2>&1 || :
74 end
75
76 script postup
77 systemctl daemon-reload >/dev/null 2>&1 || :
78 end
79
80 script postun
81 systemctl daemon-reload >/dev/null 2>&1 || :
82 end
83 end
84
85 package %{name}-debuginfo
86 template DEBUGINFO
87 end
88 end