diff --git a/ppp.spec b/ppp.spec index a7a9960..000df2d 100644 --- a/ppp.spec +++ b/ppp.spec @@ -1,7 +1,7 @@ %define dialout_groupid 10 Name: ppp -Version: 2.5.0 +Version: 2.5.1 Release: 1mamba Summary: Point to Point Protocol Group: System/Servers @@ -31,6 +31,8 @@ BuildRequires: libatm-devel BuildRequires: libopenssl-devel BuildRequires: libpam-devel BuildRequires: libpcap-devel +BuildRequires: libxcrypt-devel +BuildRequires: setup ## AUTOBUILDREQ-END BuildRequires: libpcap-devel >= 1.2 BuildRequires: libatm-devel >= 2.4.1 @@ -54,23 +56,11 @@ This package contains static libraries and header files needed for development. %prep %setup -q -#%patch1 -p1 -#%patch2 -p1 -b .CVE_2006_2194 -#%patch3 -p1 -#%patch 4 -p1 - -#rm -f include/linux/if_pppol2tp.h - -#%ifarch x86_64 aarch64 -#sed -i "s|/lib/pppd|/%{_lib}/pppd|" pppd/pathnames.h pppd/plugins/Makefile.linux pppd/plugins/*/Makefile.linux -#%endif %build %configure \ --with-pam -# --prefix=%{_prefix} - %make CC=%{_target_platform}-gcc %install @@ -81,8 +71,6 @@ install -D -m 0644 %{S:1} %{buildroot}%{_sysconfdir}/ppp/options-atm install -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/ppp/options install -m 0755 %{S:3} %{buildroot}%{_sysconfdir}/ppp/ip-up install -m 0755 %{S:4} %{buildroot}%{_sysconfdir}/ppp/ip-down -#install -D -m 0755 %{S:5} %{buildroot}%{_initrddir}/pppoatm -#sed -i "s/@PPPDVERSION@/%{version}/" %{buildroot}%{_initrddir}/pppoatm install -m 0755 scripts/ipv6-up.sample %{buildroot}%{_sysconfdir}/ppp/ipv6-up install -m 0755 scripts/ipv6-down.sample %{buildroot}%{_sysconfdir}/ppp/ipv6-down @@ -93,16 +81,6 @@ cp -a scripts/* %{buildroot}%{_datadir}/ppp/scripts install -d %{buildroot}%{_sysconfdir}/ppp/peers -## Install ADSL desktop menu and links -#install -D -m 0644 %{S:6} \ -# %{buildroot}%{_datadir}/applications/pppoatm-start.desktop -#install -D -m 0644 %{S:7} \ -# %{buildroot}%{_datadir}/applications/pppoatm-stop.desktop -#install -D -m 0644 %{S:8} \ -# %{buildroot}%{_datadir}/desktop-directories/adsl.directory -#install -D -m 0644 %{S:9} \ -# %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged/adsl.menu - install -d -m0755 %{buildroot}%{_modprobedir} cat > %{buildroot}%{_modprobedir}/ppp.conf << _EOF alias ppp0 ppp_generic @@ -117,6 +95,10 @@ chmod 0755 %{buildroot}%{_sbindir}/pppoe-discovery chmod 0755 %{buildroot}%{_libdir}/pppd/%{version}/*.so chmod 0644 %{buildroot}%{_mandir}/man8/*.8* +for f in chap-secrets eaptls-client eaptls-server openssl.cnf pap-secrets; do + cp %{buildroot}%{_sysconfdir}/ppp/${f}{.example,} +done + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -134,6 +116,11 @@ exit 0 %config(noreplace) %attr(0664,root,dialout) %{_sysconfdir}/ppp/eaptls-client %config(noreplace) %attr(0664,root,dialout) %{_sysconfdir}/ppp/eaptls-server %config(noreplace) %attr(0664,root,dialout) %{_sysconfdir}/ppp/openssl.cnf +%{_sysconfdir}/ppp/chap-secrets.example +%{_sysconfdir}/ppp/eaptls-client.example +%{_sysconfdir}/ppp/eaptls-server.example +%{_sysconfdir}/ppp/openssl.cnf.example +%{_sysconfdir}/ppp/pap-secrets.example %config %{_sysconfdir}/ppp/ip-* %config %{_sysconfdir}/ppp/ipv6-* %{_modprobedir}/ppp.conf @@ -159,6 +146,9 @@ exit 0 %{_libdir}/pkgconfig/pppd.pc %changelog +* Tue Oct 01 2024 Automatic Build System 2.5.1-1mamba +- automatic version update by autodist + * Fri May 12 2023 Automatic Build System 2.5.0-1mamba - automatic version update by autodist