summaryrefslogtreecommitdiff
path: root/packages/mysql
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2005-07-10 23:27:06 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-10 23:27:06 +0000
commit083848853788fa15c89cf3de01775edd76f7037d (patch)
tree8feb281896621ac6d472de259d21bf6558e70e14 /packages/mysql
parentc7a4df48a2685da437396665873e9088cc37b729 (diff)
Make MySQL & openntpd create users on install
Diffstat (limited to 'packages/mysql')
-rw-r--r--packages/mysql/mysql_4.1.12.bb10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/mysql/mysql_4.1.12.bb b/packages/mysql/mysql_4.1.12.bb
index 9805936670..13c2cd3a3e 100644
--- a/packages/mysql/mysql_4.1.12.bb
+++ b/packages/mysql/mysql_4.1.12.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "The MySQL Open Source Database System"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
SECTION = "libs"
DEPENDS += "ncurses mysql-native"
-PR = "r2"
+PR = "r3"
LICENSE = "GPL"
SRC_URI = "http://mirrors.develooper.com/mysql/Downloads/MySQL-4.1/mysql-${PV}.tar.gz \
file://autofoo.patch;patch=1 \
@@ -29,6 +29,14 @@ do_install() {
rmdir ${D}${libdir}/mysql
}
+pkg_postinst () {
+ grep mysql /etc/passwd || adduser --disabled-password --home=/var/mysql --ingroup nogroup mysql
+}
+
+pkg_postrm () {
+ grep mysql /etc/passwd && deluser mysql
+}
+
PACKAGES =+ "libmysqlclient libmysqlclient-dev"
FILES_libmysqlclient = "${libdir}/libmysqlclient*.so.*"