summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2001-04-25 06:21:35 +0000
committerDaniel Robbins <drobbins@gentoo.org>2001-04-25 06:21:35 +0000
commit166c272fb70a0939052f64c362e80113c16a00d8 (patch)
tree15da544d115abe3e6d927567848f6038e275c3ed /net-www
parentwho added this? (diff)
downloadhistorical-166c272fb70a0939052f64c362e80113c16a00d8.tar.gz
historical-166c272fb70a0939052f64c362e80113c16a00d8.tar.bz2
historical-166c272fb70a0939052f64c362e80113c16a00d8.zip
oops is now almost complete :)
Diffstat (limited to 'net-www')
-rw-r--r--net-www/oops/oops-1.5.6.ebuild33
1 files changed, 19 insertions, 14 deletions
diff --git a/net-www/oops/oops-1.5.6.ebuild b/net-www/oops/oops-1.5.6.ebuild
index bdbdbebb60d4..5cc6c2571787 100644
--- a/net-www/oops/oops-1.5.6.ebuild
+++ b/net-www/oops/oops-1.5.6.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/net-www/oops/oops-1.5.6.ebuild,v 1.3 2001/04/25 00:15:35 drobbins Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/oops/oops-1.5.6.ebuild,v 1.4 2001/04/25 06:21:35 drobbins Exp $
S=${WORKDIR}/${P}
SRC_URI="http://zipper.paco.net/~igor/oops/oops-1.5.6.tar.gz"
@@ -35,18 +35,7 @@ src_install() {
try make DESTDIR=${D} install
chmod -R g+srw ${D}/etc/oops
chmod -R g+rw ${D}/etc/oops/*
- dodir /var/log/oops
-
- chmod o-rwx ${D}/var/log/oops
-
- dodir /var/lib/oops/storage
- dodir /var/lib/oops/db
- chmod o-rwx ${D}/var/lib/oops
-
- dodir /var/run/oops
- chmod o-rwx ${D}/var/run/oops
- chown -R squid.squid ${D}/var/run/oops
-
+
insinto /etc/oops
doins ${FILESDIR}/oops.cfg
cd ${D}
@@ -73,11 +62,11 @@ src_install() {
}
pkg_postinst() {
- cd ${ROOT}/etc/oops
local x
local y
local mylen
local newf
+ cd ${ROOT}/etc/oops
for y in . tables
do
for x in ${y}/*.eg
@@ -89,5 +78,21 @@ pkg_postinst() {
fi
done
done
+ if [ ! -e ${ROOT}/var/log/oops ]
+ then
+ install -d -o squid -g squid -m0770 ${ROOT}/var/log/oops
+ fi
+ if [ ! -e ${ROOT}/var/lib/oops/storage ]
+ then
+ install -d -o squid -g squid -m0770 ${ROOT}/var/lib/oops/storage
+ fi
+ if [ ! -e ${ROOT}/var/lib/oops/db ]
+ then
+ install -d -o squid -g squid -m0770 ${ROOT}/var/lib/oops/db
+ fi
+ if [ ! -e ${ROOT}/var/run/oops ]
+ then
+ install -d -o squid -g squid -m0775 ${ROOT}/var/run/oops
+ fi
}