Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=d183bde3170778f0c62135828bddd5c1141e1126
commit d183bde3170778f0c62135828bddd5c1141e1126 Author: DeX77 <[email protected]> Date: Mon Sep 29 21:17:27 2014 +0200 man-db-2.7.0.2-3-x86_64 * new man-db needs .install for man user diff --git a/source/base/man-db/FrugalBuild b/source/base/man-db/FrugalBuild index 6f02020..69701e0 100644 --- a/source/base/man-db/FrugalBuild +++ b/source/base/man-db/FrugalBuild @@ -6,7 +6,7 @@ options+=('asneeded') pkgname=man-db pkgver=2.7.0.2 -pkgrel=2 +pkgrel=3 pkgdesc="A utility for reading man pages" url="http://www.nongnu.org/man-db/" depends=('gdbm>=1.10' 'zlib' 'groff' 'less' 'libpipeline>=1.3.1') diff --git a/source/base/man-db/man-db.install b/source/base/man-db/man-db.install new file mode 100644 index 0000000..bdbb95d --- /dev/null +++ b/source/base/man-db/man-db.install @@ -0,0 +1,19 @@ + +post_install() +{ + getent passwd man 2>&1 > /dev/null || /usr/sbin/useradd -s /bin/false -c "man" -d '/' -g root man +} + +post_upgrade() +{ + post_install +} + +post_remove() +{ + getent passwd man 2>&1 > /dev/null && /usr/sbin/userdel man +} + +op=$1 +shift +$op $* _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
