Commit de773aba authored by Christian Mohrbacher's avatar Christian Mohrbacher

modified build and script directories (change from fhgfs* to beegfs*)

parent fa305677
# This is the fhgfs_admon makefile.
# This is the beegfs_admon makefile.
# It creates an ELF executable.
#
# Use "make help" to find out about configuration options.
SHELL := /bin/bash
EXE = fhgfs-admon
EXE = beegfs-admon
FHGFS_VERSION_PATH ?= ../../fhgfs-version
FHGFS_COMMON_PATH ?= ../../fhgfs_common/
FHGFS_OPENTK_PATH ?= ../../fhgfs_opentk_lib/
FHGFS_THIRDPARTY_PATH ?= ../../fhgfs_thirdparty/
ADMON_GUI_PATH ?= ../../fhgfs_admon_gui/
BEEGFS_VERSION_PATH ?= ../../beegfs-version
BEEGFS_COMMON_PATH ?= ../../beegfs_common/
BEEGFS_OPENTK_PATH ?= ../../beegfs_opentk_lib/
BEEGFS_THIRDPARTY_PATH ?= ../../beegfs_thirdparty/
ADMON_GUI_PATH ?= ../../beegfs_admon_gui/
SQLITE_INC_PATH ?= $(FHGFS_THIRDPARTY_PATH)/source/sqlite
OPENSSL_INC_PATH ?= $(FHGFS_THIRDPARTY_PATH)/source/openssl/include
CPPUNIT_INC_PATH ?= $(FHGFS_THIRDPARTY_PATH)/source/cppunit_install/usr/local/include
TICPP_INC_PATH ?= $(FHGFS_THIRDPARTY_PATH)/source/ticpp
MONGOOSE_INC_PATH ?= $(FHGFS_THIRDPARTY_PATH)/source/mongoose
SQLITE_INC_PATH ?= $(BEEGFS_THIRDPARTY_PATH)/source/sqlite
OPENSSL_INC_PATH ?= $(BEEGFS_THIRDPARTY_PATH)/source/openssl/include
CPPUNIT_INC_PATH ?= $(BEEGFS_THIRDPARTY_PATH)/source/cppunit_install/usr/local/include
TICPP_INC_PATH ?= $(BEEGFS_THIRDPARTY_PATH)/source/ticpp
MONGOOSE_INC_PATH ?= $(BEEGFS_THIRDPARTY_PATH)/source/mongoose
ANT_FINDBUGS_LIB ?= $(shell cd $(FHGFS_THIRDPARTY_PATH) && pwd)/source/findbugs/lib/findbugs-ant.jar
ANT_FINDBUGS_LIB ?= $(shell cd $(BEEGFS_THIRDPARTY_PATH) && pwd)/source/findbugs/lib/findbugs-ant.jar
# JAVA_HOME will be honoured automatically by 'ant'
CXX = g++
CC = gcc
CXXFLAGS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DTIXML_USE_TICPP \
-I../source -I$(FHGFS_OPENTK_PATH)/include -I$(FHGFS_COMMON_PATH)/source \
-I../source -I$(BEEGFS_OPENTK_PATH)/include -I$(BEEGFS_COMMON_PATH)/source \
-isystem $(SQLITE_INC_PATH) -isystem $(OPENSSL_INC_PATH) \
-isystem $(CPPUNIT_INC_PATH) -isystem $(TICPP_INC_PATH) \
-isystem $(MONGOOSE_INC_PATH) -pthread -Wall -fmessage-length=0 \
......@@ -34,20 +34,20 @@ CXXFLAGS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DTIXML_USE_TICPP \
-ggdb3 $(USER_CXXFLAGS)
CXXFLAGS_RELEASE = -O3 -Wuninitialized
CXXFLAGS_DEBUG = -O0 -ggdb3 -D_FORTIFY_SOURCE=2 \
-DFHGFS_DEBUG -DDEBUG_READWRITE -DDEBUG_MUTEX_LOCKING -DDEBUG_REFCOUNT \
-DBEEGFS_DEBUG -DDEBUG_READWRITE -DDEBUG_MUTEX_LOCKING -DDEBUG_REFCOUNT \
-DDEBUG_BACKTRACE -DLOG_DEBUG_MESSAGES
THIRDPARTY_LIBS = $(FHGFS_THIRDPARTY_PATH)/build/libcppunit.a \
$(FHGFS_THIRDPARTY_PATH)/build/libsqlite3.a \
$(FHGFS_THIRDPARTY_PATH)/build/libssl.a \
$(FHGFS_THIRDPARTY_PATH)/build/libcrypto.a \
$(FHGFS_THIRDPARTY_PATH)/build/libticpp.a \
$(FHGFS_THIRDPARTY_PATH)/build/libmongoose.a
THIRDPARTY_LIBS = $(BEEGFS_THIRDPARTY_PATH)/build/libcppunit.a \
$(BEEGFS_THIRDPARTY_PATH)/build/libsqlite3.a \
$(BEEGFS_THIRDPARTY_PATH)/build/libssl.a \
$(BEEGFS_THIRDPARTY_PATH)/build/libcrypto.a \
$(BEEGFS_THIRDPARTY_PATH)/build/libticpp.a \
$(BEEGFS_THIRDPARTY_PATH)/build/libmongoose.a
FHGFS_OPENTK = $(FHGFS_OPENTK_PATH)/build/libfhgfs-opentk.a
BEEGFS_OPENTK = $(BEEGFS_OPENTK_PATH)/build/libbeegfs-opentk.a
LDFLAGS = -L$(FHGFS_COMMON_PATH)/build \
-pthread -lrt -lfhgfs-common $(FHGFS_OPENTK) \
LDFLAGS = -L$(BEEGFS_COMMON_PATH)/build \
-pthread -lrt -lbeegfs-common $(BEEGFS_OPENTK) \
$(THIRDPARTY_LIBS) -rdynamic $(USER_LDFLAGS)
LDFLAGS_RELASE =-O3 -ldl
......@@ -60,7 +60,7 @@ CLEANUP_OBJECTS = $(shell find ../source -name '*.o')
DEPENDENCY_FILES = $(shell find ../source -name '*.d')
ifeq ($(FHGFS_DEBUG),)
ifeq ($(BEEGFS_DEBUG),)
CXXFLAGS += $(CXXFLAGS_RELEASE)
LDFLAGS += $(LDFLAGS_RELASE)
else
......@@ -74,14 +74,14 @@ ifeq ($(STRIP),)
STRIP=strip
endif
# fhgfs version
# "override", because we don't want FHGFS_VERSION(_CODE) from the environment.
# beegfs version
# "override", because we don't want BEEGFS_VERSION(_CODE) from the environment.
# VER and RELEASE_STR are the variables that can be set by the environment.
override FHGFS_VERSION := $(shell bash -c \
"VER=$(VER) RELEASE_STR=$(RELEASE_STR) $(FHGFS_VERSION_PATH) --print_version")
override FHGFS_VERSION_CODE := $(shell bash -c \
"VER=$(VER) RELEASE_STR=$(RELEASE_STR) $(FHGFS_VERSION_PATH) --print_version_code")
CXXFLAGS += -DFHGFS_VERSION=\"$(FHGFS_VERSION)\" -DFHGFS_VERSION_CODE=$(FHGFS_VERSION_CODE)
override BEEGFS_VERSION := $(shell bash -c \
"VER=$(VER) RELEASE_STR=$(RELEASE_STR) $(BEEGFS_VERSION_PATH) --print_version")
override BEEGFS_VERSION_CODE := $(shell bash -c \
"VER=$(VER) RELEASE_STR=$(RELEASE_STR) $(BEEGFS_VERSION_PATH) --print_version_code")
CXXFLAGS += -DBEEGFS_VERSION=\"$(BEEGFS_VERSION)\" -DBEEGFS_VERSION_CODE=$(BEEGFS_VERSION_CODE)
all: admon
......@@ -96,11 +96,11 @@ admon_gui:
popd # ADMON_GUI_PATH
test_version:
@# just call the fhgfs-version script to check whether it returns an error. the script output is
@# just call the beegfs-version script to check whether it returns an error. the script output is
@# used in other places of this makefile and we want to make sure that we don't mess up version
@# tags in the binary with script errors.
@echo "fhgfs version check..."
@$(FHGFS_VERSION_PATH) --verbose
@echo "beegfs version check..."
@$(BEEGFS_VERSION_PATH) --verbose
$(EXE): libs $(OBJECTS)
$(CXX) -o $(EXE) $(OBJECTS) $(LDFLAGS)
......@@ -114,22 +114,22 @@ strip:
$(DISTCC) $(CXX) $(CXXFLAGS) -o$(@) -c $(@:.o=.cpp)
sqlite:
pushd $(FHGFS_THIRDPARTY_PATH)/build && \
pushd $(BEEGFS_THIRDPARTY_PATH)/build && \
$(MAKE) sqlite && \
popd
openssl:
pushd $(FHGFS_THIRDPARTY_PATH)/build && \
pushd $(BEEGFS_THIRDPARTY_PATH)/build && \
$(MAKE) openssl && \
popd
mongoose:
pushd $(FHGFS_THIRDPARTY_PATH)/build && \
pushd $(BEEGFS_THIRDPARTY_PATH)/build && \
$(MAKE) mongoose && \
popd
ticpp:
pushd $(FHGFS_THIRDPARTY_PATH)/build && \
pushd $(BEEGFS_THIRDPARTY_PATH)/build && \
$(MAKE) ticpp && \
popd
......@@ -146,24 +146,24 @@ deb:
help:
@echo 'Optional Arguments:'
@echo ' FHGFS_DEBUG=1:'
@echo ' BEEGFS_DEBUG=1:'
@echo ' Enables debug information and symbols.'
@echo ' CXX=<compiler>:'
@echo ' Specifies a c++ compiler.'
@echo ' DISTCC=distcc:'
@echo ' Enables the usage of distcc.'
@echo ' FHGFS_COMMON_PATH=<path>:'
@echo ' Path to the fhgfs_common directory.'
@echo ' FHGFS_OPENTK_PATH=<path>:'
@echo ' Path to the fhgfs_opentk_lib directory.'
@echo ' FHGFS_THIRDPARTY_PATH=<path>:'
@echo ' Path to the fhgfs_thirdparty directory.'
@echo ' BEEGFS_COMMON_PATH=<path>:'
@echo ' Path to the beegfs_common directory.'
@echo ' BEEGFS_OPENTK_PATH=<path>:'
@echo ' Path to the beegfs_opentk_lib directory.'
@echo ' BEEGFS_THIRDPARTY_PATH=<path>:'
@echo ' Path to the beegfs_thirdparty directory.'
@echo ' JAVA_HOME=<path>'
@echo ' Path to Java JDK installation (optional)'
@echo ' FHGFS_SETUP_PATH=<path>'
@echo ' Path to the fhgfs_setup directory'
@echo ' BEEGFS_SETUP_PATH=<path>'
@echo ' Path to the beegfs_setup directory'
@echo ' ADMON_GUI_PATH=<path>'
@echo ' Path to the fhgfs_admon_gui directory'
@echo ' Path to the beegfs_admon_gui directory'
@echo 'targets:'
@echo ' all (default) - compile the code'
@echo ' rpm - create an rpm package'
......
%define release_str %RELEASE_STR%
%define ver %VER%
%define buildarch %BUILDARCH%
%define FHGFS_OPENTK_PATH %FHGFS_OPENTK_PATH%
%define FHGFS_COMMON_PATH %FHGFS_COMMON_PATH%
%define FHGFS_COMMON_PACKAGE_PATH %FHGFS_COMMON_PACKAGE_PATH%
%define FHGFS_THIRDPARTY_PATH %FHGFS_THIRDPARTY_PATH%
%define FHGFS_SETUP_PATH %FHGFS_SETUP_PATH%
%define BEEGFS_OPENTK_PATH %BEEGFS_OPENTK_PATH%
%define BEEGFS_COMMON_PATH %BEEGFS_COMMON_PATH%
%define BEEGFS_COMMON_PACKAGE_PATH %BEEGFS_COMMON_PACKAGE_PATH%
%define BEEGFS_THIRDPARTY_PATH %BEEGFS_THIRDPARTY_PATH%
%define BEEGFS_SETUP_PATH %BEEGFS_SETUP_PATH%
%define ADMON_GUI_PATH %ADMON_GUI_PATH%
%define FHGFS_VERSION %VER%-%RELEASE_STR%
%define BEEGFS_VERSION %VER%-%RELEASE_STR%
%define MAKE_CONCURRENCY %MAKE_CONCURRENCY%
%define NEED_DEBUG_DEFINE %NEED_DEBUG_DEFINE%
......@@ -42,24 +42,24 @@
%endif
#
# fhgfs-admon creator
# beegfs-admon creator
#
Summary: FhGFS administration and monitoring daemon
Summary: BeeGFS administration and monitoring daemon
Name: %NAME%
Version: %{ver}.%{release_str}
Release: %release
License: FhGFS EULA
License: BeeGFS EULA
Group: Software/Other
Source: %NAME%-%{ver}-%{release_str}.tgz
URL: http://www.fhgfs.com
URL: http://www.beegfs.com
Vendor: Fraunhofer ITWM
BuildRoot: %{_tmppath}/%NAME%-root
BuildArch: %{buildarch}
conflicts: fhgfs-suse, fhgfs-rh
conflicts: beegfs-suse, beegfs-rh
#requires:
%description
The package contains the FhGFS admon daemon.
The package contains the BeeGFS admon daemon.
%if %{NEED_DEBUG_DEFINE}
......@@ -82,10 +82,10 @@ if [ -z "__ADMON_GUI_EXTERNAL_JAR_PATH__" ]; then
fi
# build daemon
make FHGFS_OPENTK_PATH=%{FHGFS_OPENTK_PATH} \
FHGFS_VERSION=%{FHGFS_VERSION} \
FHGFS_COMMON_PATH=%{FHGFS_COMMON_PATH} \
FHGFS_THIRDPARTY_PATH=%{FHGFS_THIRDPARTY_PATH} \
make BEEGFS_OPENTK_PATH=%{BEEGFS_OPENTK_PATH} \
BEEGFS_VERSION=%{BEEGFS_VERSION} \
BEEGFS_COMMON_PATH=%{BEEGFS_COMMON_PATH} \
BEEGFS_THIRDPARTY_PATH=%{BEEGFS_THIRDPARTY_PATH} \
-j%{MAKE_CONCURRENCY} \
admon
......@@ -93,14 +93,14 @@ make FHGFS_OPENTK_PATH=%{FHGFS_OPENTK_PATH} \
%install
cd build
echo "mkdir RPM_BUILD_ROOT (${RPM_BUILD_ROOT})"
mkdir -p ${RPM_BUILD_ROOT}/etc/fhgfs
cp -a dist/etc/*.conf ${RPM_BUILD_ROOT}/etc/fhgfs/
mkdir -p ${RPM_BUILD_ROOT}/etc/beegfs
cp -a dist/etc/*.conf ${RPM_BUILD_ROOT}/etc/beegfs/
mkdir -p ${RPM_BUILD_ROOT}/etc/init.d/
#add license file of fhgfs-admon and of the fhgfs-admon-gui
mkdir -p ${RPM_BUILD_ROOT}/opt/fhgfs/LICENSE/fhgfs-admon/gui
install -D dist/LICENSE ${RPM_BUILD_ROOT}/opt/fhgfs/LICENSE/fhgfs-admon/
install -D %{ADMON_GUI_PATH}/license/* ${RPM_BUILD_ROOT}/opt/fhgfs/LICENSE/fhgfs-admon/gui
#add license file of beegfs-admon and of the beegfs-admon-gui
mkdir -p ${RPM_BUILD_ROOT}/opt/beegfs/LICENSE/beegfs-admon/gui
install -D dist/LICENSE ${RPM_BUILD_ROOT}/opt/beegfs/LICENSE/beegfs-admon/
install -D %{ADMON_GUI_PATH}/license/* ${RPM_BUILD_ROOT}/opt/beegfs/LICENSE/beegfs-admon/gui
#if [ -f /etc/redhat-release ]; then
# INITSCRIPT="dist/etc/init.d/%NAME%.init.rh"
......@@ -115,31 +115,31 @@ INITSCRIPT="dist/etc/init.d/%NAME%.init"
install -D $INITSCRIPT ${RPM_BUILD_ROOT}/etc/init.d/%NAME%
#add the genric part of the init script from the common package
GENERIC_INITSCRIPT=%{FHGFS_COMMON_PACKAGE_PATH}/build/dist/etc/init.d/fhgfs-service.init
GENERIC_INITSCRIPT=%{BEEGFS_COMMON_PACKAGE_PATH}/build/dist/etc/init.d/beegfs-service.init
cat $GENERIC_INITSCRIPT >> ${RPM_BUILD_ROOT}/etc/init.d/%NAME%
install -D %NAME% ${RPM_BUILD_ROOT}/opt/fhgfs/sbin/%NAME%
install -D %NAME% ${RPM_BUILD_ROOT}/opt/beegfs/sbin/%NAME%
install -D dist/etc/default/%NAME% ${RPM_BUILD_ROOT}/etc/default/%NAME%
COMMON_SCRIPT_PATH=%{FHGFS_COMMON_PACKAGE_PATH}/scripts/etc/fhgfs/lib
COMMON_SCRIPT_PATH=%{BEEGFS_COMMON_PACKAGE_PATH}/scripts/etc/beegfs/lib
install -D ${COMMON_SCRIPT_PATH}/start-stop-functions \
${RPM_BUILD_ROOT}/etc/fhgfs/lib/start-stop-functions.fhgfs-admon
${RPM_BUILD_ROOT}/etc/beegfs/lib/start-stop-functions.beegfs-admon
install -D ${COMMON_SCRIPT_PATH}/init-multi-mode \
${RPM_BUILD_ROOT}/etc/fhgfs/lib/init-multi-mode.fhgfs-admon
${RPM_BUILD_ROOT}/etc/beegfs/lib/init-multi-mode.beegfs-admon
mkdir -p ${RPM_BUILD_ROOT}/opt/fhgfs/setup
cp -R %{FHGFS_SETUP_PATH}/source/* ${RPM_BUILD_ROOT}/opt/fhgfs/setup
find ${RPM_BUILD_ROOT}/opt/fhgfs/setup -name .svn | xargs rm -Rf
mkdir -p ${RPM_BUILD_ROOT}/opt/beegfs/setup
cp -R %{BEEGFS_SETUP_PATH}/source/* ${RPM_BUILD_ROOT}/opt/beegfs/setup
find ${RPM_BUILD_ROOT}/opt/beegfs/setup -name .svn | xargs rm -Rf
# those directories exist in SVN checkouts, but not in hg checkouts
mkdir -p ${RPM_BUILD_ROOT}/opt/fhgfs/setup/{rpms,tmp}
mkdir -p ${RPM_BUILD_ROOT}/opt/beegfs/setup/{rpms,tmp}
# add admon gui
mkdir -p ${RPM_BUILD_ROOT}/opt/fhgfs/%NAME%-gui
mkdir -p ${RPM_BUILD_ROOT}/opt/beegfs/%NAME%-gui
DEST_JAR=${RPM_BUILD_ROOT}/opt/fhgfs/%NAME%-gui/%NAME%-gui.jar
DEST_JAR=${RPM_BUILD_ROOT}/opt/beegfs/%NAME%-gui/%NAME%-gui.jar
if [ -z "__ADMON_GUI_EXTERNAL_JAR_PATH__" ]; then
install %{ADMON_GUI_PATH}/dist/%NAME%-gui.jar ${DEST_JAR}
else
......@@ -147,16 +147,16 @@ else
fi
# we need a directory for the admon db
mkdir -p ${RPM_BUILD_ROOT}/var/lib/fhgfs
mkdir -p ${RPM_BUILD_ROOT}/var/lib/beegfs
# we need a directory for the mongoose document root
mkdir -p ${RPM_BUILD_ROOT}/var/lib/fhgfs/www
mkdir -p ${RPM_BUILD_ROOT}/var/lib/beegfs/www
%post
if [ "$1" = 1 ]; then
chkconfig %NAME% on
fi
hostname > /opt/fhgfs/setup/info/management
hostname > /opt/beegfs/setup/info/management
%preun
if [ "$1" = 0 ]; then
......@@ -166,21 +166,21 @@ fi
%files
%defattr(-,root,root)
%config(noreplace) /etc/fhgfs/*
%config(noreplace) /etc/beegfs/*
%config(noreplace) /etc/default/%NAME%
/etc/init.d/%NAME%
/opt/fhgfs/sbin/%NAME%
/opt/fhgfs/%NAME%-gui/%NAME%-gui.jar
/opt/fhgfs/setup/fhgfs*
%dir /opt/fhgfs/LICENSE/
/opt/fhgfs/LICENSE/fhgfs-admon/*
/opt/fhgfs/LICENSE/fhgfs-admon/gui/*
%dir /opt/fhgfs/setup/info
%dir /opt/fhgfs/setup/rpms
%dir /opt/fhgfs/setup/tmp/
%dir /var/lib/fhgfs
%config(noreplace) /opt/fhgfs/setup/info/*
%config(noreplace) /opt/fhgfs/setup/confs*
%dir /etc/fhgfs/lib/
/etc/fhgfs/lib/*
/opt/beegfs/sbin/%NAME%
/opt/beegfs/%NAME%-gui/%NAME%-gui.jar
/opt/beegfs/setup/beegfs*
%dir /opt/beegfs/LICENSE/
/opt/beegfs/LICENSE/beegfs-admon/*
/opt/beegfs/LICENSE/beegfs-admon/gui/*
%dir /opt/beegfs/setup/info
%dir /opt/beegfs/setup/rpms
%dir /opt/beegfs/setup/tmp/
%dir /var/lib/beegfs
%config(noreplace) /opt/beegfs/setup/info/*
%config(noreplace) /opt/beegfs/setup/confs*
%dir /etc/beegfs/lib/
/etc/beegfs/lib/*
PACK_SUMMARY="FhGFS Admon"
PACK_NAME="fhgfs_admon"
BINARY_NAME="fhgfs_admon"
PACK_SUMMARY="BeeGFS Admon"
PACK_NAME="beegfs_admon"
BINARY_NAME="beegfs_admon"
CMAKE_PATH=/tmp/cmake-2.8.1
CPACK=${CMAKE_PATH}/bin/cpack
......
......@@ -2,5 +2,5 @@ __NAME__ (__VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__) stable; urgency=low
* initial native debian packaging
-- FhGFS Maintainers <packages@fhgfs.com> Wed, 16 Mar 2011 15:47:00 +0100
-- BeeGFS Maintainers <packages@beegfs.com> Wed, 16 Mar 2011 15:47:00 +0100
Source: fhgfs-admon
Source: beegfs-admon
Section: misc
Priority: optional
Maintainer: FhGFS Maintainers <packages@fhgfs.com>
Maintainer: BeeGFS Maintainers <packages@beegfs.com>
Build-Depends: debhelper (>= 7.0.0), lsb-release, java6-sdk, ant
Standards-Version: 3.8.0
Package: fhgfs-admon
Package: beegfs-admon
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Conflicts: fhgfs-debian
Description: FhGFS admon daemon and java frontend.
This package contains the optional FhGFS admon daemon and java frontend.
Admon and java frontend allow to configure and monitor FhGFS.
Conflicts: beegfs-debian
Description: BeeGFS admon daemon and java frontend.
This package contains the optional BeeGFS admon daemon and java frontend.
Admon and java frontend allow to configure and monitor BeeGFS.
Package: fhgfs-admon-dbg
Package: beegfs-admon-dbg
Architecture: any
Section: debug
Priority: extra
Depends: fhgfs-admon (= ${binary:Version}), ${misc:Depends}
Description: debugging symbols for fhgfs-admon
The package contains the debugging symbols for fhgfs-admon
Depends: beegfs-admon (= ${binary:Version}), ${misc:Depends}
Description: debugging symbols for beegfs-admon
The package contains the debugging symbols for beegfs-admon
Files: *
Copyright: Fraunhofer ITWM
License: FhGFS EULA
License: BeeGFS EULA
The complete text of this license can be found at
http://www.fhgfs.com/docs/FraunhoferFS_EULA.txt
http://www.beegfs.com/docs/FraunhoferFS_EULA.txt
#!/usr/bin/make -f
DEB_BUILD_ROOT = debian/__NAME__
FHGFS_COMMON_PACKAGE_PATH = __FHGFS_COMMON_PACKAGE_PATH__
BEEGFS_COMMON_PACKAGE_PATH = __BEEGFS_COMMON_PACKAGE_PATH__
ADMON_GUI_PATH = __ADMON_GUI_PATH__
DEST_JAR = $(DEB_BUILD_ROOT)/opt/fhgfs/__NAME__-gui/__NAME__-gui.jar
GENERIC_INITSCRIPT = $(FHGFS_COMMON_PACKAGE_PATH)/build/dist/etc/init.d/fhgfs-service.init
COMMON_SCRIPT_PATH = ${FHGFS_COMMON_PACKAGE_PATH}/scripts/etc/fhgfs/lib
DEST_JAR = $(DEB_BUILD_ROOT)/opt/beegfs/__NAME__-gui/__NAME__-gui.jar
GENERIC_INITSCRIPT = $(BEEGFS_COMMON_PACKAGE_PATH)/build/dist/etc/init.d/beegfs-service.init
COMMON_SCRIPT_PATH = ${BEEGFS_COMMON_PACKAGE_PATH}/scripts/etc/beegfs/lib
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
......@@ -24,15 +24,15 @@ build: build-stamp
build-stamp: $(QUILT_STAMPFN) configure-stamp
dh_testdir
make FHGFS_VERSION='__FHGFS_VERSION__' \
make BEEGFS_VERSION='__BEEGFS_VERSION__' \
VER='__VER__' \
RELEASE_STR='__RELEASE_STR__' \
FHGFS_COMMON_PATH='__FHGFS_COMMON_PATH__' \
FHGFS_OPENTK_PATH='__FHGFS_OPENTK_PATH__' \
FHGFS_THIRDPARTY_PATH='__FHGFS_THIRDPARTY_PATH__' \
BEEGFS_COMMON_PATH='__BEEGFS_COMMON_PATH__' \
BEEGFS_OPENTK_PATH='__BEEGFS_OPENTK_PATH__' \
BEEGFS_THIRDPARTY_PATH='__BEEGFS_THIRDPARTY_PATH__' \
USER_CXXFLAGS='__USER_CXXFLAGS__' \
USER_LDFLAGS='__USER_LDFLAGS__' \
FHGFS_DEBUG='__FHGFS_DEBUG__' \
BEEGFS_DEBUG='__BEEGFS_DEBUG__' \
-j __MAKE_CONCURRENCY__ \
admon
......@@ -65,30 +65,30 @@ install: build
#add the genric part of the init script from the common package
cat $(GENERIC_INITSCRIPT) >> debian/__NAME__.init
install -D __NAME__ $(DEB_BUILD_ROOT)/opt/fhgfs/sbin/__NAME__
install -D __NAME__ $(DEB_BUILD_ROOT)/opt/beegfs/sbin/__NAME__
install -D -m644 dist/etc/default/__NAME__ debian/__NAME__.default
install -D -m644 dist/etc/__NAME__.conf $(DEB_BUILD_ROOT)/etc/fhgfs/__NAME__.conf
install -D -m644 dist/etc/__NAME__.conf $(DEB_BUILD_ROOT)/etc/beegfs/__NAME__.conf
# add license file of fhgfs-admon and of the fhgfs-admon-gui
mkdir -p $(DEB_BUILD_ROOT)/opt/fhgfs/LICENSE/fhgfs-admon/gui
install -D dist/LICENSE $(DEB_BUILD_ROOT)/opt/fhgfs/LICENSE/fhgfs-admon/
install -D $(ADMON_GUI_PATH)/license/* $(DEB_BUILD_ROOT)/opt/fhgfs/LICENSE/fhgfs-admon/gui
# add license file of beegfs-admon and of the beegfs-admon-gui
mkdir -p $(DEB_BUILD_ROOT)/opt/beegfs/LICENSE/beegfs-admon/gui
install -D dist/LICENSE $(DEB_BUILD_ROOT)/opt/beegfs/LICENSE/beegfs-admon/
install -D $(ADMON_GUI_PATH)/license/* $(DEB_BUILD_ROOT)/opt/beegfs/LICENSE/beegfs-admon/gui
mkdir -p $(DEB_BUILD_ROOT)/etc/fhgfs/lib/
mkdir -p $(DEB_BUILD_ROOT)/etc/beegfs/lib/
install -D $(COMMON_SCRIPT_PATH)/init-multi-mode \
$(DEB_BUILD_ROOT)/etc/fhgfs/lib/init-multi-mode.fhgfs-admon
$(DEB_BUILD_ROOT)/etc/beegfs/lib/init-multi-mode.beegfs-admon
install -D $(COMMON_SCRIPT_PATH)/start-stop-functions \
$(DEB_BUILD_ROOT)/etc/fhgfs/lib/start-stop-functions.fhgfs-admon
$(DEB_BUILD_ROOT)/etc/beegfs/lib/start-stop-functions.beegfs-admon
mkdir -p $(DEB_BUILD_ROOT)/opt/fhgfs/setup
cp -R __FHGFS_SETUP_PATH__/source/* $(DEB_BUILD_ROOT)/opt/fhgfs/setup/
find $(DEB_BUILD_ROOT)/opt/fhgfs/setup -name .svn | xargs rm -Rf
mkdir -p $(DEB_BUILD_ROOT)/opt/beegfs/setup
cp -R __BEEGFS_SETUP_PATH__/source/* $(DEB_BUILD_ROOT)/opt/beegfs/setup/
find $(DEB_BUILD_ROOT)/opt/beegfs/setup -name .svn | xargs rm -Rf
# those directories exist in SVN checkouts, but not in hg checkouts
mkdir -p $(DEB_BUILD_ROOT)/opt/fhgfs/setup/{rpms,tmp}
mkdir -p $(DEB_BUILD_ROOT)/opt/beegfs/setup/{rpms,tmp}
# add admon gui
mkdir -p $(DEB_BUILD_ROOT)/opt/fhgfs/__NAME__-gui
mkdir -p $(DEB_BUILD_ROOT)/opt/beegfs/__NAME__-gui
if [ -z "__ADMON_GUI_EXTERNAL_JAR_PATH__" ]; then \
install __ADMON_GUI_PATH__/dist/__NAME__-gui.jar $(DEST_JAR); \
else \
......@@ -96,10 +96,10 @@ install: build
fi
# admon database directory
mkdir -p $(DEB_BUILD_ROOT)/var/lib/fhgfs
mkdir -p $(DEB_BUILD_ROOT)/var/lib/beegfs
# mongoose document root
mkdir -p $(DEB_BUILD_ROOT)/var/lib/fhgfs/www
mkdir -p $(DEB_BUILD_ROOT)/var/lib/beegfs/www
# Build architecture-independent files here.
binary-indep:
......
FhGFS and the FhGFS Setup are licensed under the terms of the FhGFS End User License Agreement (see http://www.fhgfs.com for more information).
BeeGFS and the BeeGFS Setup are licensed under the terms of the BeeGFS End User License Agreement (see http://www.beegfs.com for more information).
FhGFS also uses the following third party components:
BeeGFS also uses the following third party components:
- Mongoose (http://code.google.com/p/mongoose/), which is licensed under the MIT License (http://www.opensource.org/licenses/mit-license.php).
- TinyXML++ (http://code.google.com/p/ticpp/), which is licensed under the MIT License (http://www.opensource.org/licenses/mit-license.php).
......
# This is a config file for the Fraunhofer parallel file system Admon daemon.
# http://www.fhgfs.com
# http://www.beegfs.com
# --- [Table of Contents] ---
......@@ -22,7 +22,7 @@ sysMgmtdHost =
logLevel = 2
logNoDate = false
logStdFile = /var/log/fhgfs-admon.log
logStdFile = /var/log/beegfs-admon.log
logNumLines = 50000
logNumRotatedFiles = 2
......@@ -41,7 +41,7 @@ runDaemonized = true
httpPort = 8000
queryInterval = 5
databaseFile = /var/lib/fhgfs/fhgfs-admon.db
databaseFile = /var/lib/beegfs/beegfs-admon.db
clearDatabase = false
mailEnabled = false
......@@ -58,7 +58,7 @@ mailCheckIntervalTimeSec = 30
#
# Use the command line argument "cfgFile=/etc/anotherconfig.conf" to
# specify a different config file for fhgfs_admon.
# specify a different config file for beegfs_admon.
# All other options in this file can also be used as command line
# arguments, overriding the corresponding config file values.
......@@ -81,7 +81,7 @@ mailCheckIntervalTimeSec = 30
# [logStdFile]
# The path and filename of the log file for standard log messages. If no name
# is specified, the messages will be written to the console.
# Default: /var/log/fhgfs-admon.log
# Default: /var/log/beegfs-admon.log
# [logNumLines]
# The maximum number of lines per log file.
......@@ -186,7 +186,7 @@ mailCheckIntervalTimeSec = 30
# [databaseFile]
# The path to the database file.
# Default: /var/lib/fhgfs/fhgfs-admon.db
# Default: /var/lib/beegfs/beegfs-admon.db
# [clearDatabase]
# Defines whether the database file should be deleted on startup.
......
......@@ -5,10 +5,10 @@ START_SERVICE="YES"
# Set to "YES" if you want to start multiple admon daemons with different
# configuration files on this machine.
#
# Create a subdirectory with the ending ".d" in "/etc/fhgfs/" for every config
# Create a subdirectory with the ending ".d" in "/etc/beegfs/" for every config
# file. The subdirectory name will be used to identify a particular daemon
# instance for init script start/stop.
#
# Example: /etc/fhgfs/scratch.d/fhgfs-admon.conf
# $ /etc/init.d/fhgfs-admon start scratch
# Example: /etc/beegfs/scratch.d/beegfs-admon.conf
# $ /etc/init.d/beegfs-admon start scratch
MULTI_MODE="NO"
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: fhgfs-admon
# Provides: beegfs-admon
# Required-Start:
# Should-Start: $network
# Required-Stop:
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: FhGFS Admon
# Description: Start FhGFS Admon
# Short-Description: BeeGFS Admon
# Description: Start BeeGFS Admon
### END INIT INFO
APP_NAME="FhGFS Admon"
SERVICE_NAME=fhgfs-admon
APP_NAME="BeeGFS Admon"
SERVICE_NAME=beegfs-admon
# source function library
# we want to have single fhgfs-admon package without any dependency
# we want to have single beegfs-admon package without any dependency
# so we include this file ourself, but with a different name than
# in the fhgfs-common package
. /etc/fhgfs/lib/start-stop-functions.fhgfs-admon
. /etc/fhgfs/lib/init-multi-mode.fhgfs-admon
# in the beegfs-common package
. /etc/beegfs/lib/start-stop-functions.beegfs-admon
. /etc/beegfs/lib/init-multi-mode.beegfs-admon
......@@ -2,7 +2,7 @@
if [ "${JAVA_HOME}" = "" ]
then
java -jar /opt/fhgfs/fhgfs_admon_gui.jar
java -jar /opt/beegfs/beegfs_admon_gui.jar
else
${JAVA_HOME}/bin/java -jar /opt/fhgfs/fhgfs_admon_gui.jar
${JAVA_HOME}/bin/java -jar /opt/beegfs/beegfs_admon_gui.jar
fi
......@@ -2,18 +2,18 @@
set -e
NAME="fhgfs-admon"
NAME="beegfs-admon"
source ../../fhgfs-version
source ../../beegfs-version
CONCURRENCY=${MAKE_CONCURRENCY:-4}
FHGFS_OPENTK_PATH=${FHGFS_OPENTK_PATH:-`readlink -f ../../fhgfs_opentk_lib`}
FHGFS_COMMON_PATH=${FHGFS_COMMON_PATH:-`readlink -f ../../fhgfs_common`}
FHGFS_COMMON_PACKAGE_PATH=${FHGFS_COMMON_PACKAGE_PATH:-`readlink -f ../../fhgfs_common_package`}
FHGFS_THIRDPARTY_PATH=${FHGFS_THIRDPARTY_PATH:-`readlink -f ../../fhgfs_thirdparty`}
FHGFS_SETUP_PATH=${FHGFS_SETUP_PATH:-`readlink -f ../../fhgfs_setup`}
ADMON_GUI_PATH=${ADMON_GUI_PATH:-`readlink -f ../../fhgfs_admon_gui`}
BEEGFS_OPENTK_PATH=${BEEGFS_OPENTK_PATH:-`readlink -f ../../beegfs_opentk_lib`}
BEEGFS_COMMON_PATH=${BEEGFS_COMMON_PATH:-`readlink -f ../../beegfs_common`}
BEEGFS_COMMON_PACKAGE_PATH=${BEEGFS_COMMON_PACKAGE_PATH:-`readlink -f ../../beegfs_common_package`}
BEEGFS_THIRDPARTY_PATH=${BEEGFS_THIRDPARTY_PATH:-`readlink -f ../../beegfs_thirdparty`}
BEEGFS_SETUP_PATH=${BEEGFS_SETUP_PATH:-`readlink -f ../../beegfs_setup`}
ADMON_GUI_PATH=${ADMON_GUI_PATH:-`readlink -f ../../beegfs_admon_gui`}
CHANGELOG="debian/changelog"
RULES="debian/rules"
......@@ -26,21 +26,21 @@ sed \
${CHANGELOG}.in > ${CHANGELOG}
sed \
-e "s#__FHGFS_OPENTK_PATH__#$FHGFS_OPENTK_PATH#g" \
-e "s#__FHGFS_COMMON_PATH__#$FHGFS_COMMON_PATH#g" \
-e "s#__FHGFS_COMMON_PACKAGE_PATH__#$FHGFS_COMMON_PACKAGE_PATH#g" \
-e "s#__FHGFS_THIRDPARTY_PATH__#$FHGFS_THIRDPARTY_PATH#g" \
-e "s/__FHGFS_VERSION__/$FHGFS_VERSION/g" \
-e "s#__BEEGFS_OPENTK_PATH__#$BEEGFS_OPENTK_PATH#g" \
-e "s#__BEEGFS_COMMON_PATH__#$BEEGFS_COMMON_PATH#g" \
-e "s#__BEEGFS_COMMON_PACKAGE_PATH__#$BEEGFS_COMMON_PACKAGE_PATH#g" \
-e "s#__BEEGFS_THIRDPARTY_PATH__#$BEEGFS_THIRDPARTY_PATH#g" \
-e "s/__BEEGFS_VERSION__/$BEEGFS_VERSION/g" \
-e "s/__VER__/$VER/g" \
-e "s/__RELEASE_STR__/$RELEASE_STR/g" \
-e "s/__NAME__/$NAME/g" \
-e "s#__FHGFS_SETUP_PATH__#$FHGFS_SETUP_PATH#g" \
-e "s#__BEEGFS_SETUP_PATH__#$BEEGFS_SETUP_PATH#g" \
-e "s#__ADMON_GUI_PATH__#$ADMON_GUI_PATH#g" \