XtreemFS is a distributed file system software which can be used to build highly available file system installations without a single point of failure. It is designed to work well over wide area networks, has built in SSL support and can in theory scale to thousands of storage and metadata servers. The server-side metadata and directory services are written in Java. The mount client is written in C++ and uses FUSE.
28 lines
670 B
Text
28 lines
670 B
Text
#!/bin/sh
|
|
#
|
|
# $NetBSD: INSTALL,v 1.1.1.1 2011/11/08 01:42:14 tnn2 Exp $
|
|
|
|
add_uuid() {
|
|
if ! test -f "$1"; then
|
|
return 0
|
|
fi
|
|
if grep "^[[:blank:]]*uuid[[:blank:]]*=" "$1" > /dev/null; then
|
|
return 0
|
|
fi
|
|
UUIDGEN=`which uuidgen`
|
|
if [ "$UUIDGEN" = "" ]; then
|
|
echo "WARNING: uuidgen(1) not found, please add uuids to your xtreemfs configuration files manually."
|
|
return 0
|
|
fi
|
|
echo "" >> "$1"
|
|
echo "# uuid generated by pkgsrc" >> "$1"
|
|
echo "uuid = `$UUIDGEN`" >> "$1"
|
|
}
|
|
|
|
case ${STAGE} in
|
|
POST-INSTALL)
|
|
add_uuid "${PKG_SYSCONFDIR}/dirconfig.properties"
|
|
add_uuid "${PKG_SYSCONFDIR}/mrcconfig.properties"
|
|
add_uuid "${PKG_SYSCONFDIR}/osdconfig.properties"
|
|
;;
|
|
esac
|