diff options
-rwxr-xr-x | newapkbuild.in | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/newapkbuild.in b/newapkbuild.in index b271049..efb588a 100755 --- a/newapkbuild.in +++ b/newapkbuild.in @@ -64,15 +64,6 @@ package_autotools() { make DESTDIR="\$pkgdir" install || return 1 rm -f "\$pkgdir"/usr/lib/*.la __EOF__ - if [ -n "$cpinitd" ]; then - cat >>APKBUILD<<__EOF__ - - install -m755 -D "\$srcdir"/\$pkgname.initd \\ - "\$pkgdir"/etc/init.d/\$pkgname || return 1 - install -m644 -D "\$srcdir"/\$pkgname.confd \\ - "\$pkgdir"/etc/conf.d/\$pkgname || return 1 -__EOF__ - fi } package_perl() { @@ -237,6 +228,15 @@ __EOF__ package_python;; esac + if [ -n "$cpinitd" ]; then + cat >>APKBUILD<<__EOF__ + + install -m755 -D "\$srcdir"/\$pkgname.initd \\ + "\$pkgdir"/etc/init.d/\$pkgname || return 1 + install -m644 -D "\$srcdir"/\$pkgname.confd \\ + "\$pkgdir"/etc/conf.d/\$pkgname || return 1 +__EOF__ + fi cat >>APKBUILD<<__EOF__ } |