mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-23 15:33:28 +00:00
newapkbuild: not only autotools packages can have init.d scripts
This commit is contained in:
parent
b0b66ea098
commit
91c0772347
@ -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__
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user