diff options
Diffstat (limited to 'packages/mysql/mysql_4.1.12.bb')
-rw-r--r-- | packages/mysql/mysql_4.1.12.bb | 10 |
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.*" |