[Lunar-commits] <moonbase> openafs: small tweaks.
Florin Braescu
florin at lunar-linux.org
Sat Mar 24 10:05:15 CET 2012
commit c478734a3730610907a2983292a277c760fd2cab
Author: Florin Braescu <florin at lunar-linux.org>
Date: Sat Mar 24 10:05:15 2012 +0100
openafs: small tweaks.
---
filesys/openafs/BUILD | 55 +++++++++++++++++++++++++------------------------
1 file changed, 28 insertions(+), 27 deletions(-)
diff --git a/filesys/openafs/BUILD b/filesys/openafs/BUILD
index bc11c91..9bfaea6 100644
--- a/filesys/openafs/BUILD
+++ b/filesys/openafs/BUILD
@@ -1,8 +1,9 @@
(
- patch_it $SOURCE4 1 &&
- patch_it $SOURCE5 1 &&
- ./regen.sh &&
+ patch_it $SOURCE4 1 &&
+ patch_it $SOURCE5 1 &&
+
+ ./regen.sh &&
case `uname -r` in
2.6.*|3.*)
@@ -12,7 +13,7 @@
message "Unsupported kernel version!"
exit -1
;;
- esac &&
+ esac &&
case `arch` in
x86_64)
@@ -24,30 +25,30 @@
*)
OPTS+=" --with-afs-sysname=`arch`_linux${kv}"
;;
- esac &&
+ esac &&
if module_installed Linux-PAM; then
OPTS+=" --enable-pam"
else
OPTS+=" --disable-pam"
- fi
-
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var/lib \
- --infodir=/usr/share/info \
- --mandir=/usr/share/man \
- --enable-supergroups \
- --disable-kernel-module \
- $OPTS &&
- make all_nolibafs &&
- prepare_install &&
+ fi &&
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --enable-supergroups \
+ --disable-kernel-module \
+ $OPTS &&
+ make all_nolibafs &&
+ prepare_install &&
if [ ! -d /etc/openafs ]; then
mkdir -p /etc/openafs/server
- fi &&
+ fi &&
- make install_nolibafs &&
+ make install_nolibafs &&
# Creating needed dirs if not existing
if [ ! -d /var/cache/openafs ]; then
@@ -60,24 +61,24 @@
mkdir -p /var/lib/openafs/{logs,db}
chmod 700 /var/lib/openafs/db
chmod 755 /var/lib/openafs/logs
- fi &&
+ fi &&
if [ ! -d /afs ]; then
mkdir /afs &&
chmod 755 /afs
- fi &&
+ fi &&
# Installing some db files
if [ ! -f /etc/openafs/CellServDB ]; then
install -p -m 644 $SOURCE_CACHE/CellServDB /etc/openafs/CellServDB
- fi &&
- install -p -m 755 $SOURCE_CACHE/$SOURCE3 /usr/sbin/killafs &&
- touch /etc/openafs/SuidCells &&
+ fi &&
+ install -p -m 755 $SOURCE_CACHE/$SOURCE3 /usr/sbin/killafs &&
+ touch /etc/openafs/SuidCells &&
# Default to openafs.org cell
if [ ! -f /etc/openafs/ThisCell ]; then
echo "openafs.org" > /etc/openafs/ThisCell
- fi &&
+ fi &&
# Create cacheinfo file, 200Mb size
if [ ! -f /etc/openafs/cacheinfo ]; then
@@ -85,10 +86,10 @@
fi
# Copy conf and rc files
- sedit "s;^OPTIONS=.*;OPTIONS=\"-nosettime -fakestat\";" $SOURCE_DIRECTORY/src/afsd/afs.conf.linux &&
+ sedit "s;^OPTIONS=.*;OPTIONS=\"-nosettime -fakestat\";" $SOURCE_DIRECTORY/src/afsd/afs.conf.linux &&
if [ ! -f /etc/config.d/afs ]; then
install -p -m 644 $SOURCE_DIRECTORY/src/afsd/afs.conf.linux /etc/config.d/afs
- fi &&
+ fi &&
# Ugly but we need a new cellservdb everytime we run lin
rm -f $SOURCE_CACHE/$SOURCE2
More information about the Lunar-commits
mailing list