]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Don't chmod init script 2008/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 27 Dec 2014 11:12:03 +0000 (12:12 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 12 Jan 2015 15:50:45 +0000 (16:50 +0100)
Let the distributions who still use System V init
handle that themselves. Most of them probably already do this.

Makefile.am
build-scripts/rpm-build-instruction

index 4a09c632b4b5fe7d86ba593c43e3417fe917fc28..efc2ea7687362780dbccf2a679733eb1f006a8fb 100644 (file)
@@ -21,13 +21,4 @@ EXTRA_DIST = \
 
 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
index 1fa1dd83bcd61ad34d13b92e090258ebaedaba72..4f940e3571233c083825988d0bd3a35c1dff5bee 100755 (executable)
@@ -11,8 +11,8 @@ CC="ccache gcc" CXX="ccache g++" CPPFLAGS=-I/usr/local/include/botan-1.10 ./conf
 && 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 &&