newapkbuild: not only autotools packages can have init.d scripts

This commit is contained in:
Natanael Copa 2011-06-28 07:14:02 +00:00
parent b0b66ea098
commit 91c0772347

View File

@ -64,15 +64,6 @@ package_autotools() {
make DESTDIR="\$pkgdir" install || return 1 make DESTDIR="\$pkgdir" install || return 1
rm -f "\$pkgdir"/usr/lib/*.la rm -f "\$pkgdir"/usr/lib/*.la
__EOF__ __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() { package_perl() {
@ -237,6 +228,15 @@ __EOF__
package_python;; package_python;;
esac 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__ cat >>APKBUILD<<__EOF__
} }