summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Parpart <trapni@gentoo.org>2007-02-13 09:51:00 +0000
committerChristian Parpart <trapni@gentoo.org>2007-02-13 09:51:00 +0000
commit39b5d24fe291c9bdf42adbdedda73a5fc8ad9f41 (patch)
tree824c7430c88e13dca95ea4366d81b64cc4595178 /net-misc/yacsd/yacsd-0.6.0_pre20070208.ebuild
parentinitial import of my little overlay helper (diff)
downloadoverlay-39b5d24fe291c9bdf42adbdedda73a5fc8ad9f41.tar.gz
overlay-39b5d24fe291c9bdf42adbdedda73a5fc8ad9f41.tar.bz2
overlay-39b5d24fe291c9bdf42adbdedda73a5fc8ad9f41.zip
ensuring yacs user/group at pkg_setup()
svn path=/overlay/; revision=21
Diffstat (limited to 'net-misc/yacsd/yacsd-0.6.0_pre20070208.ebuild')
-rw-r--r--net-misc/yacsd/yacsd-0.6.0_pre20070208.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/net-misc/yacsd/yacsd-0.6.0_pre20070208.ebuild b/net-misc/yacsd/yacsd-0.6.0_pre20070208.ebuild
index c61cb59..b2be8af 100644
--- a/net-misc/yacsd/yacsd-0.6.0_pre20070208.ebuild
+++ b/net-misc/yacsd/yacsd-0.6.0_pre20070208.ebuild
@@ -28,6 +28,11 @@ S="${WORKDIR}/yacs-${PV}"
BASE_DIR=${BASE_DIR:-/usr}
+pkg_setup() {
+ enewgroup yacs 71
+ enewuser yacs 71 -1 / yacs
+}
+
src_compile() {
use debug && append-flags -O0 -g
use debug || append-flags -DNDEBUG=1
@@ -115,6 +120,8 @@ src_install() {
local configfile="${D}/${configdir}/yacsd.conf"
cp server/yacsd.conf-dist ${configfile} || die
sed -i -e "s,/opt/surakware/lib,${BASE_DIR}/$(get_libdir)," ${configfile} || die
+ sed -i -e 's,User = "yacsd",User = "yacs",' ${configfile} || die
+ sed -i -e 's,Mail = "yacsd@MY.HOST.NET",Mail = "yacs@localhost",' ${configfile} || die
# install common docs
dodoc AUTHORS ChangeLog* NEWS README* TODO