update to 20130719git46db40
This commit is contained in:
parent
0b8498da13
commit
cddae75a62
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,5 +1 @@
|
||||
/linuxptp-20120920git6ce135.tar.gz
|
||||
/linuxptp-20121109git4e8107.tar.gz
|
||||
/linuxptp-1.0.tgz
|
||||
/linuxptp-1.1.tgz
|
||||
/linuxptp-1.2.tgz
|
||||
/linuxptp-20130719git46db40.tar.xz
|
||||
|
@ -1,13 +1,19 @@
|
||||
%global gitdate 20130719
|
||||
%global gitrev 46db40
|
||||
Name: linuxptp
|
||||
Version: 1.2
|
||||
Release: 1%{?dist}
|
||||
Release: 1.%{gitdate}git%{gitrev}%{?dist}
|
||||
Summary: PTP implementation for Linux
|
||||
|
||||
Group: System Environment/Base
|
||||
License: GPLv2+
|
||||
URL: http://linuxptp.sourceforge.net/
|
||||
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
|
||||
# git clone git://git.code.sf.net/p/linuxptp/code linuxptp; cd linuxptp
|
||||
# git archive --prefix=linuxptp-%{version}/ %{gitrev} | \
|
||||
# gzip > linuxptp-%{gitdate}git%{gitrev}.tar.gz
|
||||
Source0: %{name}-%{gitdate}git%{gitrev}.tar.xz
|
||||
#Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
|
||||
Source1: phc2sys.service
|
||||
Source2: ptp4l.service
|
||||
|
||||
@ -29,7 +35,6 @@ Supporting legacy APIs and other platforms is not a goal.
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} \
|
||||
INC="" \
|
||||
EXTRA_CFLAGS="$RPM_OPT_FLAGS -pie -fpie" \
|
||||
EXTRA_LDFLAGS="-Wl,-z,relro,-z,now"
|
||||
|
||||
@ -41,7 +46,7 @@ install -m 644 -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}
|
||||
|
||||
echo 'OPTIONS="-f /etc/ptp4l.conf -i eth0"' > \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ptp4l
|
||||
echo 'OPTIONS="-w -i eth0"' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/phc2sys
|
||||
echo 'OPTIONS="-w -s eth0"' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/phc2sys
|
||||
|
||||
echo '.so man8/ptp4l.8' > $RPM_BUILD_ROOT%{_mandir}/man5/ptp4l.conf.5
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user