commit
425ebba2fc
BIN
pptp-1.10.0.tar.gz
Normal file
BIN
pptp-1.10.0.tar.gz
Normal file
Binary file not shown.
1
pptp-tmpfs.conf
Normal file
1
pptp-tmpfs.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
d /var/run/pptp 0750
|
||||||
54
pptp.spec
Normal file
54
pptp.spec
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
Name: pptp
|
||||||
|
Version: 1.10.0
|
||||||
|
Release: 6
|
||||||
|
Summary: Point-to-Point Tunneling Protocol (PPTP) Client
|
||||||
|
License: GPLv2+
|
||||||
|
URL: http://pptpclient.sourceforge.net/
|
||||||
|
Source0: http://downloads.sf.net/pptpclient/pptp-%{version}.tar.gz
|
||||||
|
Source1: pptp-tmpfs.conf
|
||||||
|
BuildRequires:gcc perl-generators perl-podlators
|
||||||
|
Requires: ppp >= 2.4.2 iproute systemd-units
|
||||||
|
Provides: pptp-setup
|
||||||
|
Obsoletes: pptp-setup
|
||||||
|
|
||||||
|
%description
|
||||||
|
Client for the proprietary Microsoft Point-to-Point Tunneling
|
||||||
|
Protocol, PPTP. Allows connection to a PPTP based VPN as used
|
||||||
|
by employers and some cable and ADSL service providers.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Help documents for pptp
|
||||||
|
|
||||||
|
%description help
|
||||||
|
This package provides help documents for pptp.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
perl -pi -e 's/install -o root -m 555 pptp/install -m 755 pptp/;' Makefile
|
||||||
|
|
||||||
|
%build
|
||||||
|
OUR_CFLAGS="-Wall %{optflags} -Wextra -Wstrict-aliasing=2 -Wnested-externs -Wstrict-prototypes"
|
||||||
|
%make_build CFLAGS="$OUR_CFLAGS" LDFLAGS="$RPM_LD_FLAGS" IP=/sbin/ip
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
%make_install
|
||||||
|
install -d -m 750 %{buildroot}%{_localstatedir}/run/pptp
|
||||||
|
install -d -m 755 %{buildroot}%{_prefix}/lib/tmpfiles.d
|
||||||
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_prefix}/lib/tmpfiles.d/pptp.conf
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc AUTHORS COPYING DEVELOPERS NEWS README TODO USING
|
||||||
|
%doc ChangeLog Documentation/DESIGN.PPTP PROTOCOL-SECURITY
|
||||||
|
%{_sbindir}/pptp
|
||||||
|
%{_sbindir}/pptpsetup
|
||||||
|
%{_prefix}/lib/tmpfiles.d/pptp.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/ppp/options.pptp
|
||||||
|
%dir %attr(750,root,root) %{_localstatedir}/run/pptp/
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/man8/pptp.8*
|
||||||
|
%{_mandir}/man8/pptpsetup.8*
|
||||||
|
%changelog
|
||||||
|
* Fri Feb 14 2020 Senlin Xia <xiasenlin1@huawei.com> - 1.10.0-6
|
||||||
|
- Pakcage init
|
||||||
Loading…
x
Reference in New Issue
Block a user