export VERSION_ID="${VERSION_ID}"
if [ ${ID} = "ubuntu" -a ${VERSION_ID} = "14.04" ]; then
- sed -i '/lib\/systemd\/system\/pdns-recursor\.service/d' debian/pdns-recursor.install
+ sed -i '/lib\/systemd\/system\/pdns-recursor@\?\.service/d' debian/pdns-recursor.install
fi
fakeroot debian/rules debian/control
%{_mandir}/man1/pdns_recursor.1.gz
%{_mandir}/man1/rec_control.1.gz
%{_unitdir}/pdns-recursor.service
+%{_unitdir}/pdns-recursor@.service
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/recursor.conf
%doc COPYING README
debian/tmp/usr/sbin/pdns_recursor usr/sbin/
debian/tmp/usr/bin/rec_control usr/bin/
lib/systemd/system/pdns-recursor.service lib/systemd/system/
+lib/systemd/system/pdns-recursor@.service lib/systemd/system/
/dnsmessage.pb.cc
/dnsmessage.pb.h
/pdns-recursor.service
+/pdns-recursor@.service
pdns-recursor.service: pdns-recursor.service.in
$(AM_V_GEN)sed -e 's![@]sbindir[@]!$(sbindir)!' < $< > $@
+pdns-recursor@.service: pdns-recursor.service
+ $(AM_V_GEN)sed -e 's!/pdns_recursor!& --config-name=%i!' \
+ -e 's!Recursor!& %i!' \
+ < $< > $@
+
systemdsystemunitdir = $(SYSTEMD_DIR)
systemdsystemunit_DATA = \
- pdns-recursor.service
+ pdns-recursor.service \
+ pdns-recursor@.service
endif