rm -rf %{buildroot}
install -d -v %{buildroot}/etc/init.d
install -m 755 -v pf2slice-initscript %{buildroot}/etc/init.d/pf2slice
-mkdir -p /root/.ssh
-cp authorized_keys /root/.ssh
+install -d -m 700 %{buildroot}/home/pl_netflow/.ssh
+install -m 600 authorized_keys %{buildroot}/home/pl_netflow/.ssh/authorized_keys
+mkdir -p %{buildroot}/home/pl_netflow/.ssh
+mkdir -p %{buildroot}/pf
+
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
/etc/init.d/pf2slice
-/root/.ssh/authorized_keys
+/home/pl_netflow/.ssh/authorized_keys
+/home/*
+/pf
%post
chkconfig --add pf2slice