summaryrefslogtreecommitdiff
path: root/pcr/openrc-devel/mysql.install
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-10-17 05:05:17 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-10-17 05:05:17 -0500
commit2eba4176c3accb245bfc3f950b45c84dccaddafd (patch)
treeab36b4bdb99a636662ec2394389190d37cc276e1 /pcr/openrc-devel/mysql.install
parent19f95c7d623dcca230cc1340efaacf4de4423e93 (diff)
downloadabslibre-2eba4176c3accb245bfc3f950b45c84dccaddafd.tar.gz
abslibre-2eba4176c3accb245bfc3f950b45c84dccaddafd.tar.bz2
abslibre-2eba4176c3accb245bfc3f950b45c84dccaddafd.zip
openrc-devel: add new package to [pcr]
Diffstat (limited to 'pcr/openrc-devel/mysql.install')
-rw-r--r--pcr/openrc-devel/mysql.install23
1 files changed, 23 insertions, 0 deletions
diff --git a/pcr/openrc-devel/mysql.install b/pcr/openrc-devel/mysql.install
new file mode 100644
index 000000000..e0c28d025
--- /dev/null
+++ b/pcr/openrc-devel/mysql.install
@@ -0,0 +1,23 @@
+_svc="mysql"
+_rlvl="default"
+
+post_install() {
+ conf1='basedir = /usr'
+ conf2='pid-file = /var/run/mysqld/mysqld.pid'
+ conf3='user = mysql'
+ file="/etc/mysql/my.cnf"
+ echo " ==> $file requires $conf1"
+ echo " ==> $file requires $conf2"
+ echo " ==> $file requires $conf3"
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}