!1 package init

Merge pull request !1 from small_leek/add-pptp
This commit is contained in:
openeuler-ci-bot 2020-02-14 20:31:54 +08:00 committed by Gitee
commit 425ebba2fc
3 changed files with 55 additions and 0 deletions

BIN
pptp-1.10.0.tar.gz Normal file

Binary file not shown.

1
pptp-tmpfs.conf Normal file
View File

@ -0,0 +1 @@
d /var/run/pptp 0750

54
pptp.spec Normal file
View 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