Commit 91c07723 authored by Natanael Copa's avatar Natanael Copa

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

parent b0b66ea0
......@@ -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__
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment