summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/mysql/mysql_4.1.12.bb10
-rw-r--r--packages/openntpd/openntpd_3.7p1.bb11
2 files changed, 19 insertions, 2 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.*"
diff --git a/packages/openntpd/openntpd_3.7p1.bb b/packages/openntpd/openntpd_3.7p1.bb
index 37173e58c7..0c2091160f 100644
--- a/packages/openntpd/openntpd_3.7p1.bb
+++ b/packages/openntpd/openntpd_3.7p1.bb
@@ -5,7 +5,7 @@ HOMEPAGE = "http://www.openntpd.org/"
LICENSE = "BSD"
SECTION = "console/network"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org>"
-PR="r1"
+PR="r2"
SRC_URI = "http://www.zip.com.au/~dtucker/openntpd/release/openntpd-${PV}.tar.gz \
file://autofoo.patch;patch=1 \
@@ -28,3 +28,12 @@ do_install_append() {
install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/openntpd
install -d ${D}${localstatedir}/shared/empty
}
+
+pkg_postrm () {
+ grep ntpd /etc/passwd && deluser ntpd
+}
+
+pkg_postinst () {
+ grep ntpd /etc/passwd || adduser --disabled-password --home=/var/shared/empty --ingroup nogroup ntpd
+}
+