forked from pool/rp-pppoe
6d38c69f5a
- Add pppoe.service for run pppoe as client (boo#1060710). - Refresh pppoe.spec. - Drop SLE 11 support. OBS-URL: https://build.opensuse.org/request/show/532566 OBS-URL: https://build.opensuse.org/package/show/network/rp-pppoe?expand=0&rev=15
156 lines
4.9 KiB
RPMSpec
156 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package rp-pppoe
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org
|
|
#
|
|
|
|
%define _name pppoe
|
|
Name: rp-%{_name}
|
|
Summary: A PPP Over Ethernet Redirector for PPPD
|
|
License: GPL-2.0+
|
|
Group: Productivity/Networking/PPP
|
|
Version: 3.12
|
|
Release: 0
|
|
Source0: https://www.roaringpenguin.com/files/download/%{name}-%{version}.tar.gz
|
|
Source1: %{_name}-connect
|
|
Source2: %{_name}-setup
|
|
Source3: %{_name}-start
|
|
Source4: %{_name}-status
|
|
Source5: %{_name}-stop
|
|
Source6: %{_name}.service
|
|
Source7: %{_name}-server.service
|
|
Url: https://www.roaringpenguin.com/products/pppoe
|
|
Patch0: docdir.diff
|
|
Patch1: nonrfc-modems.diff
|
|
Patch2: release-buildsystem.diff
|
|
Patch3: resolve-conf.diff
|
|
Patch4: %{name}-3.10-config.patch
|
|
Patch5: %{name}-3.10-init.patch
|
|
Patch6: %{name}-pie.patch
|
|
Patch7: strip.diff
|
|
Requires: ppp net-tools
|
|
BuildRequires: ppp systemd
|
|
|
|
%description
|
|
%{name} is a user-space redirector which permits the use of PPPoE
|
|
(Point-to-Point Protocol Over Ethernet) with Linux. PPPoE is used by
|
|
many ADSL service providers.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6
|
|
%patch7
|
|
|
|
%build
|
|
cd src
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
cd ../gui
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install -C src
|
|
mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_unitdir}
|
|
install -m 0755 %{SOURCE1} %{buildroot}%{_sbindir}
|
|
install -m 0755 %{SOURCE2} %{buildroot}%{_sbindir}
|
|
install -m 0755 %{SOURCE3} %{buildroot}%{_sbindir}
|
|
install -m 0755 %{SOURCE4} %{buildroot}%{_sbindir}
|
|
install -m 0755 %{SOURCE5} %{buildroot}%{_sbindir}
|
|
install -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/%{_name}.service
|
|
install -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/%{_name}-server.service
|
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{_name}
|
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{_name}-server
|
|
ln -sf %{_name}-stop %{buildroot}%{_sbindir}/adsl-stop
|
|
ln -sf %{_name}-start %{buildroot}%{_sbindir}/adsl-start
|
|
rm -rf %{buildroot}/etc/ppp/%{_name}.conf \
|
|
%{buildroot}/etc/rc.d/init.d/%{_name} \
|
|
%{buildroot}/etc/init.d
|
|
%make_install -C gui
|
|
install -d %{buildroot}%_defaultdocdir/%{name}
|
|
mv %{buildroot}/etc/ppp/plugins/README %{buildroot}%_defaultdocdir/%{name}/README.plugins
|
|
rm -rf %{buildroot}%{_sysconfdir}/ppp/plugins
|
|
|
|
%pre
|
|
%service_add_pre %{_name}.service
|
|
%service_add_pre %{_name}-server.service
|
|
|
|
%preun
|
|
%service_del_preun %{_name}.service
|
|
%service_del_preun %{_name}-server.service
|
|
|
|
%post
|
|
%service_add_post %{_name}.service
|
|
%service_add_post %{_name}-server.service
|
|
|
|
%postun
|
|
%service_del_postun %{_name}.service
|
|
%service_del_postun %{_name}-server.service
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%dir %_defaultdocdir/%{name}
|
|
%doc %_defaultdocdir/%{name}/*
|
|
%config(noreplace) /etc/ppp/%{_name}-server-options
|
|
%config(noreplace) /etc/ppp/firewall-masq
|
|
%config(noreplace) /etc/ppp/firewall-standalone
|
|
%{_bindir}/tkpppoe
|
|
%{_sbindir}/%{_name}
|
|
%{_sbindir}/%{_name}-server
|
|
%{_sbindir}/%{_name}-sniff
|
|
%{_sbindir}/%{_name}-relay
|
|
%{_sbindir}/%{_name}-connect
|
|
%{_sbindir}/%{_name}-start
|
|
%{_sbindir}/%{_name}-stop
|
|
%{_sbindir}/%{_name}-setup
|
|
%{_sbindir}/%{_name}-status
|
|
%attr (4750,root,dialout) %{_sbindir}/%{_name}-wrapper
|
|
%{_mandir}/man5/%{_name}.conf.5*
|
|
%{_mandir}/man8/%{_name}.8*
|
|
%{_mandir}/man8/%{_name}-server.8*
|
|
%{_mandir}/man8/%{_name}-relay.8*
|
|
%{_mandir}/man8/%{_name}-sniff.8*
|
|
%{_mandir}/man8/%{_name}-connect.8*
|
|
%{_mandir}/man8/%{_name}-start.8*
|
|
%{_mandir}/man8/%{_name}-stop.8*
|
|
%{_mandir}/man8/%{_name}-status.8*
|
|
%{_mandir}/man8/%{_name}-setup.8*
|
|
%{_sbindir}/adsl-start
|
|
%{_sbindir}/adsl-stop
|
|
%{_sbindir}/rc%{_name}
|
|
%{_sbindir}/rc%{_name}-server
|
|
%{_unitdir}/%{_name}.service
|
|
%{_unitdir}/%{_name}-server.service
|
|
%dir /etc/ppp/%{name}-gui
|
|
%{_mandir}/man1/tk%{_name}.1*
|
|
%{_mandir}/man1/%{_name}-wrapper.1*
|
|
%dir %{_datarootdir}/tk%{_name}
|
|
%{_datarootdir}/tk%{_name}/tk%{_name}.html
|
|
%{_datarootdir}/tk%{_name}/mainwin-busy.png
|
|
%{_datarootdir}/tk%{_name}/mainwin-nonroot.png
|
|
%{_datarootdir}/tk%{_name}/mainwin.png
|
|
%{_datarootdir}/tk%{_name}/props-advanced.png
|
|
%{_datarootdir}/tk%{_name}/props-basic.png
|
|
%{_datarootdir}/tk%{_name}/props-nic.png
|
|
%{_datarootdir}/tk%{_name}/props-options.png
|
|
%{_datarootdir}/tk%{_name}/en.msg
|
|
%{_datarootdir}/tk%{_name}/ja.msg
|
|
|
|
%changelog
|