--- rpms/smeserver-unifi/contribs9/smeserver-unifi.spec 2018/03/09 05:12:43 1.1 +++ rpms/smeserver-unifi/contribs9/smeserver-unifi.spec 2018/03/09 07:23:39 1.2 @@ -1,10 +1,10 @@ -# $Id: smeserver-unifi.pec,v 1.10 2018/03/06 17:01:42 unnilennium Exp $ +# $Id: smeserver-unifi.spec,v 1.1 2018/03/09 05:12:43 jpp Exp $ # Authority: unnilennium # Name: Jean-Philippe Pialasse Summary: smeserver-unifi %define name smeserver-unifi -%define version 5.6.36 +%define version 5.6.30 %define release 1 Name: %{name} Version: %{version} @@ -12,6 +12,7 @@ Release: %{release}%{?dist} License: GPL Group: Applications/System Source: %{name}-%{version}.tgz +Patch0: smeserver-unifi-5.6.30-smeserverSteveJenkins.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArch: noarch BuildRequires: e-smith-devtools >= 1.13.1-03 @@ -28,6 +29,7 @@ Integration package for Ubiquiti Unifi c %prep %setup +%patch0 -p1 %build /usr/bin/perl createlinks @@ -36,7 +38,10 @@ Integration package for Ubiquiti Unifi c /bin/rm -rf $RPM_BUILD_ROOT (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) /bin/rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ + --dir /opt/UniFi 'attr(ubnt,ubnt)' \ + --dir /opt/UniFi_bak 'attr(ubnt,ubnt)' \ + > %{name}-%{version}-filelist %files -f %{name}-%{version}-filelist %defattr(-,root,root,-) @@ -44,9 +49,13 @@ Integration package for Ubiquiti Unifi c %clean rm -rf $RPM_BUILD_ROOT +%pre +%{_sbindir}/useradd -m -d /opt/UniFi ubnt >& /dev/null || : + + %post %changelog -* Fri Mar 09 2018 Jean-Philipe Pialasse 5.6.36-1.sme +* Fri Mar 09 2018 Jean-Philipe Pialasse 5.6.30-1.sme - initial release