Before : /usr/lib/systemd/system/multi-user.target.wants/nether.service is legacy file.
After : /usr/lib/systemd/system/multi-user.target.wants/nether.service indicates ../nether.service
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ib216dddb187238a27c70ef205f8ebfc8bfe75a50
INSTALL(FILES nether.rules DESTINATION ${SYSCONF_INSTALL_DIR}/nether)
INSTALL(FILES nether_ipv6.rules DESTINATION ${SYSCONF_INSTALL_DIR}/nether)
INSTALL(FILES systemd/nether.service DESTINATION ${SYSTEMD_UNIT_DIR})
-INSTALL(FILES systemd/nether.service DESTINATION ${SYSTEMD_UNIT_DIR}/multi-user.target.wants)
%install
%make_install
+/usr/bin/mkdir %{buildroot}%{_unitdir}/multi-user.target.wants
+/usr/bin/ln -sf ../nether.service %{buildroot}%{_unitdir}/multi-user.target.wants/nether.service
%clean
rm -rf %{buildroot}