|
@@ -1,14 +1,12 @@
|
|
|
|
+%bcond_with systemd
|
|
%bcond_with ifupdown
|
|
%bcond_with ifupdown
|
|
|
|
|
|
-%define _tmpfilesdir %{_sysconfdir}/tmpfiles.d
|
|
|
|
-
|
|
|
|
Summary: The PPP (Point-to-Point Protocol) daemon.
|
|
Summary: The PPP (Point-to-Point Protocol) daemon.
|
|
Summary(ja): PPP (Point-to-Point Protocol) デーモン
|
|
Summary(ja): PPP (Point-to-Point Protocol) デーモン
|
|
Name: ppp
|
|
Name: ppp
|
|
-Version: 2.4.8
|
|
+Version: 2.4.9
|
|
-Release: 1%{?_dist_release}
|
|
+Release: 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
-Group: System Environment/Daemons
|
|
+Group: system
|
|
-
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
Packager: daisuke
|
|
Packager: daisuke
|
|
@@ -31,42 +29,35 @@ Source11: ifdown-ppp
|
|
Source12: ppp-watch.tar.xz
|
|
Source12: ppp-watch.tar.xz
|
|
|
|
|
|
# Fedora-specific
|
|
# Fedora-specific
|
|
-Patch0001: 0001-build-sys-use-gcc-as-our-compiler-of-choice.patch
|
|
+Patch0002: ppp-2.4.9-config.patch
|
|
-Patch0002: ppp-2.4.8-build-sys-enable-PAM-support.patch
|
|
+Patch0004: 0004-doc-add-configuration-samples.patch
|
|
-Patch0003: ppp-2.4.8-build-sys-utilize-compiler-flags-handed-to-us-by-rpm.patch
|
|
+Patch0005: ppp-2.4.9-build-sys-don-t-hardcode-LIBDIR-but-set-it-according.patch
|
|
-Patch0004: 0004-doc-add-configuration-samples.patch
|
|
+Patch0006: 0006-scritps-use-change_resolv_conf-function.patch
|
|
-Patch0005: ppp-2.4.8-build-sys-don-t-hardcode-LIBDIR-but-set-it-according.patch
|
|
+Patch0011: 0011-build-sys-don-t-put-connect-errors-log-to-etc-ppp.patch
|
|
-Patch0006: 0006-scritps-use-change_resolv_conf-function.patch
|
|
+Patch0012: ppp-2.4.8-pppd-we-don-t-want-to-accidentally-leak-fds.patch
|
|
-Patch0007: 0007-build-sys-don-t-strip-binaries-during-installation.patch
|
|
+Patch0013: ppp-2.4.9-everywhere-O_CLOEXEC-harder.patch
|
|
-Patch0008: 0008-build-sys-use-prefix-usr-instead-of-usr-local.patch
|
|
+Patch0014: 0014-everywhere-use-SOCK_CLOEXEC-when-creating-socket.patch
|
|
-Patch0009: ppp-2.4.8-pppd-introduce-ipv6-accept-remote.patch
|
|
+Patch0015: 0015-pppd-move-pppd-database-to-var-run-ppp.patch
|
|
-Patch0010: 0010-build-sys-enable-CBCP.patch
|
|
+Patch0016: 0016-rp-pppoe-add-manpage-for-pppoe-discovery.patch
|
|
-Patch0011: 0011-build-sys-don-t-put-connect-errors-log-to-etc-ppp.patch
|
|
+Patch0018: 0018-scritps-fix-ip-up.local-sample.patch
|
|
-Patch0012: ppp-2.4.8-pppd-we-don-t-want-to-accidentally-leak-fds.patch
|
|
+Patch0020: 0020-pppd-put-lock-files-in-var-lock-ppp.patch
|
|
-Patch0013: ppp-2.4.8-everywhere-O_CLOEXEC-harder.patch
|
|
+Patch0023: 0023-build-sys-install-rp-pppoe-plugin-files-with-standar.patch
|
|
-Patch0014: 0014-everywhere-use-SOCK_CLOEXEC-when-creating-socket.patch
|
|
+Patch0024: 0024-build-sys-install-pppoatm-plugin-files-with-standard.patch
|
|
-Patch0015: 0015-pppd-move-pppd-database-to-var-run-ppp.patch
|
|
+Patch0025: ppp-2.4.8-pppd-install-pppd-binary-using-standard-perms-755.patch
|
|
-Patch0016: 0016-rp-pppoe-add-manpage-for-pppoe-discovery.patch
|
|
+Patch0026: ppp-2.4.9-configure-cflags-allow-commas.patch
|
|
-Patch0018: 0018-scritps-fix-ip-up.local-sample.patch
|
|
|
|
-Patch0019: ppp-2.4.8-sys-linux-rework-get_first_ethernet.patch
|
|
|
|
-Patch0020: 0020-pppd-put-lock-files-in-var-lock-ppp.patch
|
|
|
|
-Patch0021: ppp-2.4.8-build-sys-compile-pppol2tp-plugin-with-RPM_OPT_FLAGS.patch
|
|
|
|
-Patch0022: ppp-2.4.8-build-sys-compile-pppol2tp-with-multilink-support.patch
|
|
|
|
-Patch0023: 0023-build-sys-install-rp-pppoe-plugin-files-with-standar.patch
|
|
|
|
-Patch0024: 0024-build-sys-install-pppoatm-plugin-files-with-standard.patch
|
|
|
|
-Patch0025: ppp-2.4.8-pppd-install-pppd-binary-using-standard-perms-755.patch
|
|
|
|
-Patch0026: ppp-2.4.8-eaptls-mppe-1.102.patch
|
|
|
|
-
|
|
|
|
-Patch0032: ppp-2.4.8-CVE-2020-8597.patch
|
|
|
|
-
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRequires: glib2-devel, libpcap >= 0.8.3, eudev-libudev-devel, openssl-devel, pam-devel
|
|
+BuildRequires: glib2-devel, libpcap-devel, openssl-devel, pam-devel
|
|
|
|
+%if %{with systemd}
|
|
|
|
+BuildRequires: systemd-devel
|
|
|
|
+%else
|
|
|
|
+BuildRequires: eudev-libudev-devel
|
|
|
|
+%endif
|
|
|
|
+
|
|
#Requires: glibc >= 2.0.6, /etc/pam.d/system-auth
|
|
#Requires: glibc >= 2.0.6, /etc/pam.d/system-auth
|
|
Requires: glibc >= 2.0.6, pam >= 1.0
|
|
Requires: glibc >= 2.0.6, pam >= 1.0
|
|
Requires(pre): shadow-utils
|
|
Requires(pre): shadow-utils
|
|
|
|
|
|
-
|
|
|
|
%description
|
|
%description
|
|
The ppp package contains the PPP (Point-to-Point Protocol) daemon and
|
|
The ppp package contains the PPP (Point-to-Point Protocol) daemon and
|
|
documentation for PPP support. The PPP protocol provides a method for
|
|
documentation for PPP support. The PPP protocol provides a method for
|
|
@@ -85,7 +76,7 @@ PPP を使う為のドキュメントが収められています.PPP プロト
|
|
%package devel
|
|
%package devel
|
|
Summary: Headers for ppp plugin development
|
|
Summary: Headers for ppp plugin development
|
|
SUmmary(ja): ppp プラグイン開発用ヘッダファイル
|
|
SUmmary(ja): ppp プラグイン開発用ヘッダファイル
|
|
-Group: Development/Libraries
|
|
+Group: programming
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
This package contains the header files for building plugins for ppp.
|
|
This package contains the header files for building plugins for ppp.
|
|
@@ -94,18 +85,24 @@ This package contains the header files for building plugins for ppp.
|
|
このパッケージには ppp のプラグインを開発するためのヘッダファイルが
|
|
このパッケージには ppp のプラグインを開発するためのヘッダファイルが
|
|
含まれています。
|
|
含まれています。
|
|
|
|
|
|
|
|
+
|
|
|
|
+%debug_package
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q -n ppp-ppp-%{version}
|
|
%setup -q -n ppp-ppp-%{version}
|
|
%autopatch -p1
|
|
%autopatch -p1
|
|
|
|
|
|
tar -xJf %{SOURCE12}
|
|
tar -xJf %{SOURCE12}
|
|
|
|
|
|
|
|
+
|
|
%build
|
|
%build
|
|
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -Wall -fno-strict-aliasing"
|
|
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -Wall -fno-strict-aliasing"
|
|
%configure
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
make -C ppp-watch %{?_smp_mflags}
|
|
make -C ppp-watch %{?_smp_mflags}
|
|
|
|
|
|
|
|
+
|
|
%install
|
|
%install
|
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
|
|
|
|
|
@@ -130,9 +127,11 @@ install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/ppp
|
|
install -d %{buildroot}%{_sysconfdir}/logrotate.d
|
|
install -d %{buildroot}%{_sysconfdir}/logrotate.d
|
|
install -m 644 -p %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/ppp
|
|
install -m 644 -p %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/ppp
|
|
|
|
|
|
|
|
+%if %{with systemd}
|
|
# install tmpfiles drop-in
|
|
# install tmpfiles drop-in
|
|
install -d %{buildroot}%{_tmpfilesdir}
|
|
install -d %{buildroot}%{_tmpfilesdir}
|
|
install -p %{SOURCE3} %{buildroot}%{_tmpfilesdir}/ppp.conf
|
|
install -p %{SOURCE3} %{buildroot}%{_tmpfilesdir}/ppp.conf
|
|
|
|
+%endif
|
|
|
|
|
|
# install scripts (previously owned by initscripts package)
|
|
# install scripts (previously owned by initscripts package)
|
|
install -d %{buildroot}%{_sysconfdir}/ppp
|
|
install -d %{buildroot}%{_sysconfdir}/ppp
|
|
@@ -159,6 +158,10 @@ rm -rf %{buildroot}
|
|
%pre
|
|
%pre
|
|
/usr/bin/getent group dip >/dev/null 2>&1 || /usr/sbin/groupadd -r -g 40 dip >/dev/null 2>&1 || :
|
|
/usr/bin/getent group dip >/dev/null 2>&1 || /usr/sbin/groupadd -r -g 40 dip >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
+%if %{with systemd}
|
|
|
|
+%post
|
|
|
|
+%tmpfiles_create ppp.conf
|
|
|
|
+%endif
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
@@ -177,7 +180,9 @@ rm -rf %{buildroot}
|
|
%config(noreplace) /etc/ppp/*
|
|
%config(noreplace) /etc/ppp/*
|
|
%config(noreplace) /etc/pam.d/ppp
|
|
%config(noreplace) /etc/pam.d/ppp
|
|
%config(noreplace) /etc/logrotate.d/ppp
|
|
%config(noreplace) /etc/logrotate.d/ppp
|
|
|
|
+%if %{with systemd}
|
|
%{_tmpfilesdir}/ppp.conf
|
|
%{_tmpfilesdir}/ppp.conf
|
|
|
|
+%endif
|
|
%ghost %dir %{_localstatedir}/run/ppp
|
|
%ghost %dir %{_localstatedir}/run/ppp
|
|
%ghost %dir %{_localstatedir}/lock/ppp
|
|
%ghost %dir %{_localstatedir}/lock/ppp
|
|
%attr(700, root, root) %dir %{_localstatedir}/log/ppp
|
|
%attr(700, root, root) %dir %{_localstatedir}/log/ppp
|
|
@@ -194,6 +199,10 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Feb 15 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.9-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- updated patches.
|
|
|
|
+
|
|
* Thu Mar 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.8-1
|
|
* Thu Mar 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.8-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- updated patches.
|
|
- updated patches.
|