Changes of Revision 15
[-] | Changed | mysql-proxy.spec |
x 1
2 3 %install 4 %__make install DESTDIR=%{buildroot} 5 -install -d -m 0755 %{buildroot}/var/{lib,run}/%{pkg_name} 6 -install -D -m 0755 %{S:1} %{buildroot}/etc/init.d/%{pkg_name} 7 -ln -sv ../../etc/init.d/%{pkg_name} %{buildroot}/%{_sbindir}/rc%{pkg_name} 8 +install -d -m 0755 %{buildroot}/var/{lib,run}/%{name} 9 +install -D -m 0755 %{S:1} %{buildroot}/etc/init.d/%{name} 10 +ln -sv ../../etc/init.d/%{name} %{buildroot}/%{_sbindir}/rc%{name} 11 install -D -m 0644 %{S:2} %{buildroot}/var/adm/fillup-templates/sysconfig.mysql-proxy 12 sed -i s@"%LIB%"@"%{_lib}"@g %{buildroot}/var/adm/fillup-templates/sysconfig.mysql-proxy 13 rm -fv %{buildroot}%{_datadir}/*.lua 14
15 %pre 16 /usr/sbin/groupadd -r %{name} &>/dev/null || : 17 /usr/sbin/useradd -r -g %{name} -s /bin/false -c "Daemon user for MySQL Proxy" \ 18 - -d /var/lib/%{pkg_name} %{name} 2> /dev/null ||: 19 + -d /var/lib/%{name} %{name} 2> /dev/null ||: 20 21 %post 22 /sbin/ldconfig 23 |