2015-12-10 18:16:51 +01:00
|
|
|
system_conf = $(CHROOT)/etc/mysql/my.cnf
|
|
|
|
root_conf = $(CHROOT)/root/.my.cnf
|
|
|
|
|
|
|
|
preinstall:
|
|
|
|
|
|
|
|
$(system_conf): my.cnf
|
|
|
|
cp my.cnf $(system_conf)
|
|
|
|
|
|
|
|
$(root_conf): my.cnf.root
|
|
|
|
cp my.cnf.root $(root_conf)
|
|
|
|
chmod 0600 $(root_conf)
|
|
|
|
|
|
|
|
postinstall: $(system_conf) $(root_conf)
|
|
|
|
rm -rf $(CHROOT)/var/lib/mysql
|
|
|
|
$(inroot) bash -c 'yes gentoo | emerge --config dev-db/mariadb'
|
2016-09-06 00:14:46 +02:00
|
|
|
$(inroot) systemctl enable mariadb
|
2015-12-10 18:16:51 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
|