1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/net-mgmt/noc/files/patch-scripts_post-install
Dmitry Marakasov dde812764a - Update to 0.3
PR:		138544
Submitted by:	Stanislav A Svirid <count@211.ru> (maintainer)
Feature safe:	yes
2009-09-19 16:20:39 +00:00

34 lines
1023 B
Plaintext

--- scripts/post-install.orig 2009-07-29 18:22:59.000000000 +0700
+++ scripts/post-install 2009-07-29 18:25:16.000000000 +0700
@@ -5,7 +5,7 @@
## Copyright (C) 2007-2009 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
-PREFIX=/opt/noc
+PREFIX=/usr/local/noc
cd $PREFIX
@@ -15,7 +15,7 @@ cd $PREFIX
sed_script=`mktemp tmp.XXXXXX`
rm $sed_script
for cmd in telnet ssh rsync pg_dump tar gzip smidump smilint fping dig gpg; do
- echo 's@^\\($cmd *\\)=.*\$@\\1 = '`which $cmd`'@' >> $sed_script
+ echo "s@^\\($cmd *\\)=.*\$@\\1 = "`which $cmd`'@' >> $sed_script
done
##
@@ -30,10 +30,11 @@ done
rm $sed_script
chmod 640 etc/*.conf
chown noc:noc etc/*.conf
+chmod -R +r share/mibs/
##
## Create required directories
##
-for d in local static/doc /var/repo /var/backup /var/log/noc; do
+for d in local static/doc /var/db/noc /var/db/noc/repo /var/db/noc/backup /var/log/noc; do
[ ! -d $d ] && mkdir $d
chown noc:noc $d
done