Let the distributions who still use System V init
handle that themselves. Most of them probably already do this.
ACLOCAL_AMFLAGS = -I m4
-install-exec-local:
- -@chmod +x pdns/pdns.init
- @echo "***********************************************************"
- @echo
- @echo An init.d startup script has been made for you in pdns/pdns.init.
- @echo You may want to copy this to /etc/init.d or equivalent.
- @echo
- @echo "***********************************************************"
-
dvi: # do nothing to build dvi
&& make clean && make -j4 && \
fakeroot /bin/sh -c "rm -rf /tmp/pdns ; DESTDIR=/tmp/pdns make install-strip" &&
fakeroot rm -f /tmp/pdns/usr/lib/pdns/*.a /tmp/pdns/usr/lib/pdns/*.la &&
-fakeroot mkdir -p /tmp/pdns/etc/init.d &&
-fakeroot cp pdns/pdns.init /tmp/pdns/etc/init.d/pdns &&
+fakeroot install -d -m 755 -o root -g root /tmp/pdns/etc/init.d &&
+fakeroot install -p -m 755 -o root -g root pdns/pdns.init /tmp/pdns/etc/init.d/pdns &&
fakeroot mkdir -p /tmp/pdns/etc/powerdns &&
fakeroot mv /tmp/pdns/etc/powerdns/pdns.conf-dist /tmp/pdns/etc/powerdns/pdns.conf &&
fakeroot rm /tmp/pdns/usr/bin/zone2ldap &&