Commit d28025ae authored by Christian Mohrbacher's avatar Christian Mohrbacher

all: introduced major.minor version in deb build scripts

parent 1fd91849
__NAME__ (__VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__) stable; urgency=low
__NAME__ (__BEEGFS_DEB_FULLVERSION__) stable; urgency=low
* initial native debian packaging
* please see http://www.beegfs.com for changelog
-- BeeGFS Maintainers <packages@beegfs.com> Wed, 16 Mar 2011 15:47:00 +0100
-- BeeGFS Maintainers <packages@beegfs.com> __CURRENT_TIME__
......@@ -17,16 +17,6 @@ build: build-stamp
build-stamp: $(QUILT_STAMPFN) configure-stamp
dh_testdir
# make BEEGFS_VERSION='__BEEGFS_VERSION__' \
# VER='__VER__' \
# RELEASE_STR='__RELEASE_STR__' \
# BEEGFS_COMMON_PATH='__BEEGFS_COMMON_PATH__' \
# BEEGFS_OPENTK_PATH='__BEEGFS_OPENTK_PATH__' \
# USER_CXXFLAGS='__USER_CXXFLAGS__' \
# USER_LDFLAGS='__USER_LDFLAGS__' \
# -j4
touch build-stamp
......@@ -35,13 +25,6 @@ clean:
dh_testroot
rm -f build-stamp configure-stamp
# make BEEGFS_VERSION='__BEEGFS_VERSION__' \
# VER='__VER__' \
# RELEASE_STR='__RELEASE_STR__' \
# BEEGFS_COMMON_PATH='__BEEGFS_COMMON_PATH__' \
# BEEGFS_OPENTK_PATH='__BEEGFS_OPENTK_PATH__' \
# clean
dh_clean
install: build
......
......@@ -12,19 +12,32 @@ BEEGFS_COMMON_PATH=${BEEGFS_COMMON_PATH:-`readlink -f ../../beegfs_common`}
CHANGELOG="debian/changelog"
RULES="debian/rules"
CURRENT_TIME=`date "+%a, %d %b %Y %H:%M:%S %z"`
# parse BeeGFS version for debian versioning
BEEGFS_DEB_MAJOR=`echo ${BEEGFS_VERSION} | cut -d . -f 1`
BEEGFS_DEB_MINOR=`echo ${BEEGFS_VERSION} | cut -d - -f 1 | cut -d . -f 2`
BEEGFS_DEB_REL_SUFFIX=`echo ${BEEGFS_VERSION}- | cut -d - -f 2`
EPOCH=${BEEGFS_DEB_MAJOR}
if [ ! -z ${BEEGFS_DEB_REL_SUFFIX} ]; then
# prepend "~" to the suffix, so final version will look like this:
# "beegfs-XXX-6.0-debian8~beta1"
BEEGFS_DEB_REL_SUFFIX="~${BEEGFS_DEB_REL_SUFFIX}"
fi
BEEGFS_DEB_FULLVERSION=${EPOCH}:${BEEGFS_DEB_MAJOR}.${BEEGFS_DEB_MINOR}${BEEGFS_DEB_REL_SUFFIX}-debian${DEBIAN_VERSION}
sed \
-e "s/__NAME__/$NAME/g" \
-e "s/__VER__/$VER/" \
-e "s/__RELEASE_STR__/$RELEASE_STR/" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__NAME__/$NAME/g" \
-e "s/__BEEGFS_DEB_FULLVERSION__/${BEEGFS_DEB_FULLVERSION}/g" \
-e "s/__CURRENT_TIME__/${CURRENT_TIME}/g" \
${CHANGELOG}.in > ${CHANGELOG}
sed \
-e "s#__BEEGFS_COMMON_PATH__#$BEEGFS_COMMON_PATH#g" \
-e "s#__BEEGFS_OPENTK_PATH__#$BEEGFS_OPENTK_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/__USER_CXXFLAGS__/$USER_CXXFLAGS/g" \
-e "s/__USER_LDFLAGS__/$USER_LDFLAGS/g" \
......@@ -32,13 +45,10 @@ sed \
chmod +x debian/rules
#cp debian/package.lintian-overrides.in debian/${NAME}.lintian-overrides
#sed -i -e "s/__NAME__/$NAME/g" debian/${NAME}.lintian-overrides
# build the package and supress lintian warnings. Lintian in Lenny cannot
# do that itself yet
# NOTE: package not signed yet! (-us -uc)
debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
yes | debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
debuild clean
if [ -z "$DEBIAN_ARCHIVE_DIR" ]; then
......
__NAME__ (__VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__) stable; urgency=low
__NAME__ (__BEEGFS_DEB_FULLVERSION__) stable; urgency=low
* initial native debian packaging
* please see http://www.beegfs.com for changelog
-- BeeGFS Maintainers <packages@beegfs.com> Wed, 12 Nov 2013 13:42:00 +0100
-- BeeGFS Maintainers <packages@beegfs.com> __CURRENT_TIME__
......@@ -19,8 +19,6 @@ build-stamp: $(QUILT_STAMPFN) configure-stamp
dh_testdir
make BEEGFS_VERSION='__BEEGFS_VERSION__' \
VER='__VER__' \
RELEASE_STR='__RELEASE_STR__' \
BEEGFS_COMMON_PATH='__BEEGFS_COMMON_PATH__' \
BEEGFS_OPENTK_PATH='__BEEGFS_OPENTK_PATH__' \
BEEGFS_THIRDPARTY_PATH='__BEEGFS_THIRDPARTY_PATH__' \
......
......@@ -15,11 +15,25 @@ BEEGFS_THIRDPARTY_PATH=${BEEGFS_THIRDPARTY_PATH:-`readlink -f ../../fhgfs_thirdp
CHANGELOG="debian/changelog"
RULES="debian/rules"
CURRENT_TIME=`date "+%a, %d %b %Y %H:%M:%S %z"`
# parse BeeGFS version for debian versioning
BEEGFS_DEB_MAJOR=`echo ${BEEGFS_VERSION} | cut -d . -f 1`
BEEGFS_DEB_MINOR=`echo ${BEEGFS_VERSION} | cut -d - -f 1 | cut -d . -f 2`
BEEGFS_DEB_REL_SUFFIX=`echo ${BEEGFS_VERSION}- | cut -d - -f 2`
if [ ! -z ${BEEGFS_DEB_REL_SUFFIX} ]; then
# prepend "~" to the suffix, so final version will look like this:
# "beegfs-XXX-6.0-debian8~beta1"
BEEGFS_DEB_REL_SUFFIX="~${BEEGFS_DEB_REL_SUFFIX}"
fi
BEEGFS_DEB_FULLVERSION=${EPOCH}:${BEEGFS_DEB_MAJOR}.${BEEGFS_DEB_MINOR}${BEEGFS_DEB_REL_SUFFIX}-debian${DEBIAN_VERSION}
sed \
-e "s/__NAME__/$NAME/g" \
-e "s/__VER__/$VER/" \
-e "s/__RELEASE_STR__/$RELEASE_STR/" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__NAME__/$NAME/g" \
-e "s/__BEEGFS_DEB_FULLVERSION__/${BEEGFS_DEB_FULLVERSION}/g" \
-e "s/__CURRENT_TIME__/${CURRENT_TIME}/g" \
${CHANGELOG}.in > ${CHANGELOG}
sed \
......@@ -27,8 +41,6 @@ sed \
-e "s#__BEEGFS_OPENTK_PATH__#$BEEGFS_OPENTK_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/__USER_CXXFLAGS__/$USER_CXXFLAGS/g" \
-e "s/__USER_LDFLAGS__/$USER_LDFLAGS/g" \
......@@ -39,12 +51,11 @@ sed \
chmod +x debian/rules
#cp debian/package.lintian-overrides.in debian/${NAME}.lintian-overrides
#sed -i -e "s/__NAME__/$NAME/g" debian/${NAME}.lintian-overrides
# build the package and supress lintian warnings. Lintian in Lenny cannot
# do that itself yet
# NOTE: package not signed yet! (-us -uc)
debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
yes | debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
debuild clean
if [ -z "$DEBIAN_ARCHIVE_DIR" ]; then
......
__NAME__ (__VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__) stable; urgency=low
__NAME__ (__BEEGFS_DEB_FULLVERSION__) stable; urgency=low
* initial native debian packaging
* please see http://www.beegfs.com for changelog
-- BeeGFS Maintainers <packages@beegfs.com> Thu, 26 Feb 2015 17:02:00 +0100
-- BeeGFS Maintainers <packages@beegfs.com> __CURRENT_TIME__
......@@ -7,7 +7,7 @@ Standards-Version: 3.8.0
Package: beeond
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, beeond-thirdparty-gpl (= __VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__), beegfs-utils (= __VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__), beegfs-mgmtd (= __VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__), beegfs-meta (= __VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__), beegfs-storage (= __VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__), beegfs-client (= __VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__), beegfs-helperd (= __VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__)
Depends: ${shlibs:Depends}, ${misc:Depends}, beeond-thirdparty-gpl (= __BEEGFS_DEB_FULLVERSION__), beegfs-utils (= __BEEGFS_DEB_FULLVERSION__), beegfs-mgmtd (= __BEEGFS_DEB_FULLVERSION__), beegfs-meta (= __BEEGFS_DEB_FULLVERSION__), beegfs-storage (= __BEEGFS_DEB_FULLVERSION__), beegfs-client (= __BEEGFS_DEB_FULLVERSION__), beegfs-helperd (= __BEEGFS_DEB_FULLVERSION__)
Description: BeeOND
This package contains BeeOND.
......@@ -12,17 +12,30 @@ CHANGELOG="debian/changelog"
RULES="debian/rules"
CONTROL="debian/control"
CURRENT_TIME=`date "+%a, %d %b %Y %H:%M:%S %z"`
# parse BeeGFS version for debian versioning
BEEGFS_DEB_MAJOR=`echo ${BEEGFS_VERSION} | cut -d . -f 1`
BEEGFS_DEB_MINOR=`echo ${BEEGFS_VERSION} | cut -d - -f 1 | cut -d . -f 2`
BEEGFS_DEB_REL_SUFFIX=`echo ${BEEGFS_VERSION}- | cut -d - -f 2`
EPOCH=${BEEGFS_DEB_MAJOR}
if [ ! -z ${BEEGFS_DEB_REL_SUFFIX} ]; then
# prepend "~" to the suffix, so final version will look like this:
# "beegfs-XXX-6.0-debian8~beta1"
BEEGFS_DEB_REL_SUFFIX="~${BEEGFS_DEB_REL_SUFFIX}"
fi
BEEGFS_DEB_FULLVERSION=${EPOCH}:${BEEGFS_DEB_MAJOR}.${BEEGFS_DEB_MINOR}${BEEGFS_DEB_REL_SUFFIX}-debian${DEBIAN_VERSION}
sed \
-e "s/__NAME__/$NAME/g" \
-e "s/__VER__/$VER/g" \
-e "s/__RELEASE_STR__/$RELEASE_STR/g" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__NAME__/$NAME/g" \
-e "s/__BEEGFS_DEB_FULLVERSION__/${BEEGFS_DEB_FULLVERSION}/g" \
-e "s/__CURRENT_TIME__/${CURRENT_TIME}/g" \
${CHANGELOG}.in > ${CHANGELOG}
sed \
-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/__USER_CXXFLAGS__/$USER_CXXFLAGS/g" \
-e "s/__USER_LDFLAGS__/$USER_LDFLAGS/g" \
......@@ -31,9 +44,7 @@ sed \
${RULES}.in > ${RULES}
sed \
-e "s/__VER__/$VER/g" \
-e "s/__RELEASE_STR__/$RELEASE_STR/g" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__BEEGFS_DEB_FULLVERSION__/${BEEGFS_DEB_FULLVERSION}/g" \
${CONTROL}.in > ${CONTROL}
chmod +x debian/rules
......@@ -41,7 +52,7 @@ chmod +x debian/rules
# build the package and supress lintian warnings. Lintian in Lenny cannot
# do that itself yet
# NOTE: package not signed yet! (-us -uc)
debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
yes | debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
debuild clean
if [ -z "$DEBIAN_ARCHIVE_DIR" ]; then
......
__NAME__ (__VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__) stable; urgency=low
__NAME__ (__BEEGFS_DEB_FULLVERSION__) stable; urgency=low
* initial native debian packaging
* please see http://www.beegfs.com for changelog
-- BeeGFS Maintainers <packages@beegfs.com> Wed, 01 Jul 2015 15:47:00 +0100
-- BeeGFS Maintainers <packages@beegfs.com> __CURRENT_TIME__
......@@ -12,17 +12,30 @@ CHANGELOG="debian/changelog"
RULES="debian/rules"
CONTROL="debian/control"
CURRENT_TIME=`date "+%a, %d %b %Y %H:%M:%S %z"`
# parse BeeGFS version for debian versioning
BEEGFS_DEB_MAJOR=`echo ${BEEGFS_VERSION} | cut -d . -f 1`
BEEGFS_DEB_MINOR=`echo ${BEEGFS_VERSION} | cut -d - -f 1 | cut -d . -f 2`
BEEGFS_DEB_REL_SUFFIX=`echo ${BEEGFS_VERSION}- | cut -d - -f 2`
EPOCH=${BEEGFS_DEB_MAJOR}
if [ ! -z ${BEEGFS_DEB_REL_SUFFIX} ]; then
# prepend "~" to the suffix, so final version will look like this:
# "beegfs-XXX-6.0-debian8~beta1"
BEEGFS_DEB_REL_SUFFIX="~${BEEGFS_DEB_REL_SUFFIX}"
fi
BEEGFS_DEB_FULLVERSION=${EPOCH}:${BEEGFS_DEB_MAJOR}.${BEEGFS_DEB_MINOR}${BEEGFS_DEB_REL_SUFFIX}-debian${DEBIAN_VERSION}
sed \
-e "s/__NAME__/$NAME/g" \
-e "s/__VER__/$VER/g" \
-e "s/__RELEASE_STR__/$RELEASE_STR/g" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__NAME__/$NAME/g" \
-e "s/__BEEGFS_DEB_FULLVERSION__/${BEEGFS_DEB_FULLVERSION}/g" \
-e "s/__CURRENT_TIME__/${CURRENT_TIME}/g" \
${CHANGELOG}.in > ${CHANGELOG}
sed \
-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/__USER_CXXFLAGS__/$USER_CXXFLAGS/g" \
-e "s/__USER_LDFLAGS__/$USER_LDFLAGS/g" \
......@@ -31,9 +44,7 @@ sed \
${RULES}.in > ${RULES}
sed \
-e "s/__VER__/$VER/g" \
-e "s/__RELEASE_STR__/$RELEASE_STR/g" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__BEEGFS_DEB_FULLVERSION__/${BEEGFS_DEB_FULLVERSION}/g" \
${CONTROL}.in > ${CONTROL}
chmod +x debian/rules
......@@ -41,7 +52,7 @@ chmod +x debian/rules
# build the package and supress lintian warnings. Lintian in Lenny cannot
# do that itself yet
# NOTE: package not signed yet! (-us -uc)
debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
yes | debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
debuild clean
if [ -z "$DEBIAN_ARCHIVE_DIR" ]; then
......
__NAME__ (__VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__) stable; urgency=low
__NAME__ (__BEEGFS_DEB_FULLVERSION__) stable; urgency=low
* initial native debian packaging
* please see http://www.beegfs.com for changelog
-- BeeGFS Maintainers <packages@beegfs.com> Wed, 01 Jul 2015 15:47:00 +0100
-- BeeGFS Maintainers <packages@beegfs.com> __CURRENT_TIME__
......@@ -12,17 +12,29 @@ CHANGELOG="debian/changelog"
RULES="debian/rules"
CONTROL="debian/control"
CURRENT_TIME=`date "+%a, %d %b %Y %H:%M:%S %z"`
# parse BeeGFS version for debian versioning
BEEGFS_DEB_MAJOR=`echo ${BEEGFS_VERSION} | cut -d . -f 1`
BEEGFS_DEB_MINOR=`echo ${BEEGFS_VERSION} | cut -d - -f 1 | cut -d . -f 2`
BEEGFS_DEB_REL_SUFFIX=`echo ${BEEGFS_VERSION}- | cut -d - -f 2`
EPOCH=${BEEGFS_DEB_MAJOR}
if [ ! -z ${BEEGFS_DEB_REL_SUFFIX} ]; then
# prepend "~" to the suffix, so final version will look like this:
# "beegfs-XXX-6.0-debian8~beta1"
BEEGFS_DEB_REL_SUFFIX="~${BEEGFS_DEB_REL_SUFFIX}"
fi
BEEGFS_DEB_FULLVERSION=${EPOCH}:${BEEGFS_DEB_MAJOR}.${BEEGFS_DEB_MINOR}${BEEGFS_DEB_REL_SUFFIX}-debian${DEBIAN_VERSION}
sed \
-e "s/__NAME__/$NAME/g" \
-e "s/__VER__/$VER/g" \
-e "s/__RELEASE_STR__/$RELEASE_STR/g" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__NAME__/$NAME/g" \
-e "s/__BEEGFS_DEB_FULLVERSION__/${BEEGFS_DEB_FULLVERSION}/g" \
-e "s/__CURRENT_TIME__/${CURRENT_TIME}/g" \
${CHANGELOG}.in > ${CHANGELOG}
sed \
-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/__USER_CXXFLAGS__/$USER_CXXFLAGS/g" \
-e "s/__USER_LDFLAGS__/$USER_LDFLAGS/g" \
......@@ -31,9 +43,7 @@ sed \
${RULES}.in > ${RULES}
sed \
-e "s/__VER__/$VER/g" \
-e "s/__RELEASE_STR__/$RELEASE_STR/g" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__BEEGFS_DEB_FULLVERSION__/${BEEGFS_DEB_FULLVERSION}/g" \
${CONTROL}.in > ${CONTROL}
chmod +x debian/rules
......@@ -41,7 +51,7 @@ chmod +x debian/rules
# build the package and supress lintian warnings. Lintian in Lenny cannot
# do that itself yet
# NOTE: package not signed yet! (-us -uc)
debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
yes | debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
debuild clean
if [ -z "$DEBIAN_ARCHIVE_DIR" ]; then
......
__NAME__ (__VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__) stable; urgency=low
__NAME__ (__BEEGFS_DEB_FULLVERSION__) stable; urgency=low
* initial native debian packaging
* please see http://www.beegfs.com for changelog
-- BeeGFS Maintainers <packages@beegfs.com> Wed, 16 Mar 2011 15:47:00 +0100
-- BeeGFS Maintainers <packages@beegfs.com> __CURRENT_TIME__
......@@ -25,8 +25,6 @@ build-stamp: $(QUILT_STAMPFN) configure-stamp
dh_testdir
make BEEGFS_VERSION='__BEEGFS_VERSION__' \
VER='__VER__' \
RELEASE_STR='__RELEASE_STR__' \
BEEGFS_COMMON_PATH='__BEEGFS_COMMON_PATH__' \
BEEGFS_OPENTK_PATH='__BEEGFS_OPENTK_PATH__' \
BEEGFS_THIRDPARTY_PATH='__BEEGFS_THIRDPARTY_PATH__' \
......
#!/bin/bash
set -e
#set -e
NAME="beegfs-admon"
......@@ -17,11 +17,26 @@ ADMON_GUI_PATH=${ADMON_GUI_PATH:-`readlink -f ../../beegfs_admon_gui`}
CHANGELOG="debian/changelog"
RULES="debian/rules"
CURRENT_TIME=`date "+%a, %d %b %Y %H:%M:%S %z"`
# parse BeeGFS version for debian versioning
BEEGFS_DEB_MAJOR=`echo ${BEEGFS_VERSION} | cut -d . -f 1`
BEEGFS_DEB_MINOR=`echo ${BEEGFS_VERSION} | cut -d - -f 1 | cut -d . -f 2`
BEEGFS_DEB_REL_SUFFIX=`echo ${BEEGFS_VERSION}- | cut -d - -f 2`
EPOCH=${BEEGFS_DEB_MAJOR}
if [ ! -z ${BEEGFS_DEB_REL_SUFFIX} ]; then
# prepend "~" to the suffix, so final version will look like this:
# "beegfs-XXX-6.0-debian8~beta1"
BEEGFS_DEB_REL_SUFFIX="~${BEEGFS_DEB_REL_SUFFIX}"
fi
BEEGFS_DEB_FULLVERSION=${EPOCH}:${BEEGFS_DEB_MAJOR}.${BEEGFS_DEB_MINOR}${BEEGFS_DEB_REL_SUFFIX}-debian${DEBIAN_VERSION}
sed \
-e "s/__NAME__/$NAME/" \
-e "s/__VER__/$VER/" \
-e "s/__RELEASE_STR__/$RELEASE_STR/" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__NAME__/$NAME/g" \
-e "s/__BEEGFS_DEB_FULLVERSION__/${BEEGFS_DEB_FULLVERSION}/g" \
-e "s/__CURRENT_TIME__/${CURRENT_TIME}/g" \
${CHANGELOG}.in > ${CHANGELOG}
sed \
......@@ -30,8 +45,6 @@ sed \
-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#__ADMON_GUI_PATH__#$ADMON_GUI_PATH#g" \
-e "s#__JAVA_HOME__#$JAVA_HOME#g" \
......@@ -47,7 +60,7 @@ chmod +x debian/rules
# build the package and supress lintian warnings. Lintian in Lenny cannot
# do that itself yet
# NOTE: package not signed yet! (-us -uc)
debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
yes | debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
if [ ! -f ../*.deb ]; then
echo
echo "Build failed!"
......
......@@ -6,7 +6,7 @@ DATE=`date +%F|tr - .`.`date +%T| tr -d :`
dir=`dirname $0`
MAJOR_VER=`${dir}/../beegfs-version --print_major_version`
RELEASE_STR=`${dir}/../beegfs-version --print_release_version`
MINOR_VER=`${dir}/../beegfs-version --print_minor_version`
packages="beegfs_helperd beegfs_meta beegfs_mgmtd beegfs_storage beegfs_utils \
beegfs_common_package beegfs_client_devel beeond beeond_thirdparty_gpl"
......@@ -65,7 +65,7 @@ DRY_RUN=0
CLEAN_ONLY=0
CLIENT_ONLY=0
while getopts "hcds:v:DCxj:p:" opt; do
while getopts "hcdm:v:DCxj:p:" opt; do
case $opt in
h)
print_usage
......@@ -77,8 +77,8 @@ while getopts "hcds:v:DCxj:p:" opt; do
d)
DRY_RUN=1
;;
s)
RELEASE_STR="$OPTARG"
m)
MINOR_VER="$OPTARG"
;;
v)
MAJOR_VER="$OPTARG"
......@@ -122,11 +122,9 @@ else
packages=$client_packages
fi
BEEGFS_VERSION="${MAJOR_VER}-${RELEASE_STR}"
BEEGFS_VERSION="${MAJOR_VER}.${MINOR_VER}"
echo
run_cmd "export VER=${MAJOR_VER}"
run_cmd "export RELEASE_STR=$RELEASE_STR"
run_cmd "export BEEGFS_VERSION=$BEEGFS_VERSION"
echo
......@@ -160,7 +158,6 @@ make_dep_lib()
pwd
run_cmd "make -C ${lib}/${EXTRA_DIR}/build clean --silent >/dev/null"
run_cmd "make -C ${lib}/${EXTRA_DIR}/build -j $make_concurrency --silent >/dev/null"
}
# clean packages up here first, do not do it below, as we need
......
......@@ -3,11 +3,12 @@
set -e
dir=`dirname $0`
source ${dir}/make-packages-common.sh
BEEGFS_VERSION_PATH=$(readlink -f ${dir}/../beegfs-version)
export BEEGFS_VERSION_PATH
source ${dir}/make-packages-common.sh
echo "Writing RPMs to $PACKAGEDIR"
logfile="/tmp/build_log.$RANDOM" # SUSE does not have tempfile?
......@@ -33,3 +34,4 @@ echo "Wrote RPMs to $PACKAGEDIR"
echo
rm -f $logfile
__NAME__ (__VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__) stable; urgency=low
__NAME__ (__BEEGFS_DEB_FULLVERSION__) stable; urgency=low
* initial native debian packaging
* please see http://www.beegfs.com for changelog
-- BeeGFS Maintainers <packages@beegfs.com> Wed, 16 Mar 2011 15:47:00 +0100
-- BeeGFS Maintainers <packages@beegfs.com> __CURRENT_TIME__
......@@ -5,13 +5,13 @@ DEB_BUILD_ROOT = debian/__NAME__
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
CLIENT_DIR=/opt/beegfs/src/client/beegfs_client_module___VER__
CLIENT_COMPAT_DIR=/opt/beegfs/src/client/beegfs_client_compat_module___VER__
CLIENT_DIR=/opt/beegfs/src/client/beegfs_client_module___BEEGFS_DEB_MAJOR__
CLIENT_COMPAT_DIR=/opt/beegfs/src/client/beegfs_client_compat_module___BEEGFS_DEB_MAJOR__
# Remove the dot in the version string, the kernel does not accept it
# as module name.
COMPAT_FSTYPE=$(shell echo beegfs-__VER__ | sed -e 's/\.//')
COMPAT_FSTYPE=$(shell echo beegfs-__BEEGFS_DEB_MAJOR___ | sed -e 's/\.//')
configure: configure-stamp
configure-stamp:
......@@ -36,9 +36,7 @@ clean:
make \
RELEASE_PATH=$(DEB_BUILD_ROOT)/opt/beegfs/src/client \
BEEGFS_VERSION=__BEEGFS_VERSION__ \
VER='__VER__' \
RELEASE_STR='__RELEASE_STR__' \
BEEGFS_VERSION=__BEEGFS_VERSION__ \
KDIR='__KDIR__' \
USER_CXXFLAGS='__USER_CXXFLAGS__' \
USER_LDFLAGS='__USER_LDFLAGS__' \
......@@ -56,17 +54,15 @@ install: build
make \
RELEASE_PATH=$(DEB_BUILD_ROOT)/opt/beegfs/src/client \
BEEGFS_VERSION=__BEEGFS_VERSION__ \
VER='__VER__' \
RELEASE_STR='__RELEASE_STR__' \
KDIR='__KDIR__' \
WITHOUT_OPENTK=1 V=1 -j __MAKE_CONCURRENCY__ prepare_release
# for compat package
mkdir -p $(DEB_BUILD_ROOT)-compat-__VER__/opt/beegfs/src/client
cp -a $(DEB_BUILD_ROOT)/$(CLIENT_DIR) $(DEB_BUILD_ROOT)-compat-__VER__/$(CLIENT_COMPAT_DIR)
mkdir -p $(DEB_BUILD_ROOT)-compat-__BEEGFS_DEB_MAJOR__/opt/beegfs/src/client
cp -a $(DEB_BUILD_ROOT)/$(CLIENT_DIR) $(DEB_BUILD_ROOT)-compat-__BEEGFS_DEB_MAJOR__/$(CLIENT_COMPAT_DIR)
# set the compat fstype
echo ${COMPAT_FSTYPE} > $(DEB_BUILD_ROOT)-compat-__VER__/$(CLIENT_COMPAT_DIR)/build/beegfs.fstype
echo ${COMPAT_FSTYPE} > $(DEB_BUILD_ROOT)-compat-__BEEGFS_DEB_MAJOR__/$(CLIENT_COMPAT_DIR)/build/beegfs.fstype
install -D dist/etc/init.d/__NAME__.init debian/__NAME__.init
......
......@@ -16,42 +16,53 @@ CONTROL="debian/control"
PREUNINST="debian/beegfs-client.prerm"
PREUNINST_COMPAT="debian/beegfs-client-compat.prerm"
CURRENT_TIME=`date "+%a, %d %b %Y %H:%M:%S %z"`
# parse BeeGFS version for debian versioning
BEEGFS_DEB_MAJOR=`echo ${BEEGFS_VERSION} | cut -d . -f 1`
BEEGFS_DEB_MINOR=`echo ${BEEGFS_VERSION} | cut -d . -f 2`
BEEGFS_DEB_REL_SUFFIX=`echo ${BEEGFS_VERSION}- | cut -d - -f 2`
if [ ! -z ${BEEGFS_DEB_REL_SUFFIX} ]; then
# prepend "~" to the suffix, so final version will look like this:
# "beegfs-XXX-6.0-debian8~beta1"
BEEGFS_DEB_REL_SUFFIX="~${BEEGFS_DEB_REL_SUFFIX}"
fi
BEEGFS_DEB_FULLVERSION=${EPOCH}:${BEEGFS_DEB_MAJOR}.${BEEGFS_DEB_MINOR}${BEEGFS_DEB_REL_SUFFIX}-debian${DEBIAN_VERSION}
if [ -z "$KDIR" ]; then
KVER=`uname -r`
KDIR="/lib/modules/${KVER}/build /usr/src/linux-headers-${KVER}"
fi
sed \
-e "s/__NAME__/$NAME/g" \
-e "s/__VER__/$VER/g" \
-e "s/__RELEASE_STR__/$RELEASE_STR/g" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__NAME__/$NAME/g" \
-e "s/__BEEGFS_DEB_FULLVERSION__/${BEEGFS_DEB_FULLVERSION}/g" \
-e "s/__CURRENT_TIME__/${CURRENT_TIME}/g" \
${CHANGELOG}.in > ${CHANGELOG}
sed \
-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#__KDIR__#$KDIR#g" \
-e "s/__USER_CXXFLAGS__/$USER_CXXFLAGS/g" \
-e "s/__USER_LDFLAGS__/$USER_LDFLAGS/g" \
-e "s/__MAKE_CONCURRENCY__/$CONCURRENCY/g" \
-e "s/__BEEGFS_VERSION__/${BEEGFS_VERSION}/g" \
-e "s/__BEEGFS_DEB_MAJOR__/${BEEGFS_DEB_MAJOR}/g" \
-e "s/__NAME__/${NAME}/g" \
-e "s#__KDIR__#${KDIR}#g" \
-e "s/__USER_CXXFLAGS__/${USER_CXXFLAGS}/g" \
-e "s/__USER_LDFLAGS__/${USER_LDFLAGS}/g" \
-e "s/__MAKE_CONCURRENCY__/${CONCURRENCY}/g" \
${RULES}.in > ${RULES}
sed \
-e "s/__VER__/$VER/g" \
-e "s/__RELEASE_STR__/$RELEASE_STR/g" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__VER__/${BEEGFS_DEB_MAJOR}.${BEEGFS_DEB_MINOR}/g" \
-e "s/__DEBIAN_VERSION__/${DEBIAN_VERSION}/g" \
${CONTROL}.in > ${CONTROL}
sed \
-e "s/__VER__/$VER/g" \
-e "s/__VER__/${BEEGFS_DEB_MAJOR}.${BEEGFS_DEB_MINOR}/g" \
${PREUNINST}.in > ${PREUNINST}
sed \
-e "s/__VER__/$VER/g" \
-e "s/__VER__/${BEEGFS_DEB_MAJOR}.${BEEGFS_DEB_MINOR}/g" \
${PREUNINST_COMPAT}.in > ${PREUNINST_COMPAT}
chmod +x debian/rules
......
__NAME__ (__VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__) stable; urgency=low
__NAME__ (__BEEGFS_DEB_FULLVERSION__) stable; urgency=low
* initial native debian packaging
* please see http://www.beegfs.com for changelog
-- BeeGFS Maintainers <packages@beegfs.com> Wed, 16 Mar 2011 15:47:00 +0100
-- BeeGFS Maintainers <packages@beegfs.com> __CURRENT_TIME__
......@@ -14,21 +14,33 @@ BEEGFS_FSCK_PATH=${BEEGFS_FSCK_PATH:-`readlink -f ../../beegfs_fsck`}
CHANGELOG="debian/changelog"
RULES="debian/rules"
CURRENT_TIME=`date "+%a, %d %b %Y %H:%M:%S %z"`
# parse BeeGFS version for debian versioning
BEEGFS_DEB_MAJOR=`echo ${BEEGFS_VERSION} | cut -d . -f 1`
BEEGFS_DEB_MINOR=`echo ${BEEGFS_VERSION} | cut -d - -f 1 | cut -d . -f 2`
BEEGFS_DEB_REL_SUFFIX=`echo ${BEEGFS_VERSION}- | cut -d - -f 2`
if [ ! -z ${BEEGFS_DEB_REL_SUFFIX} ]; then
# prepend "~" to the suffix, so final version will look like this:
# "beegfs-XXX-6.0-debian8~beta1"
BEEGFS_DEB_REL_SUFFIX="~${BEEGFS_DEB_REL_SUFFIX}"
fi
BEEGFS_DEB_FULLVERSION=${EPOCH}:${BEEGFS_DEB_MAJOR}.${BEEGFS_DEB_MINOR}${BEEGFS_DEB_REL_SUFFIX}-debian${DEBIAN_VERSION}
sed \
-e "s/__NAME__/$NAME/g" \
-e "s/__VER__/$VER/" \
-e "s/__RELEASE_STR__/$RELEASE_STR/" \
-e "s/__DEBIAN_VERSION__/$DEBIAN_VERSION/g" \
-e "s/__NAME__/$NAME/g" \
-e "s/__BEEGFS_DEB_FULLVERSION__/${BEEGFS_DEB_FULLVERSION}/g" \
-e "s/__CURRENT_TIME__/${CURRENT_TIME}/g" \
${CHANGELOG}.in > ${CHANGELOG}
sed \
-e "s#__BEEGFS_COMMON_PATH__#$BEEGFS_COMMON_PATH#g" \
-e "s#__BEEGFS_OPENTK_PATH__#$BEEGFS_OPENTK_PATH#g" \
-e "s#__BEEGFS_ONLINE_CFG_PATH__#$BEEGFS_ONLINE_CFG_PATH#g" \
-e "s#__BEEGFS_FSCK_PATH__#$BEEGFS_FSCK_PATH#g" \
-e "s#__BEEGFS_FSCK_PATH__#$BEEGFS_FSCK_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/__USER_CXXFLAGS__/$USER_CXXFLAGS/g" \
-e "s/__USER_LDFLAGS__/$USER_LDFLAGS/g" \
......@@ -36,13 +48,10 @@ sed \
chmod +x debian/rules
#cp debian/package.lintian-overrides.in debian/${NAME}.lintian-overrides
#sed -i -e "s/__NAME__/$NAME/g" debian/${NAME}.lintian-overrides
# build the package and supress lintian warnings. Lintian in Lenny cannot
# do that itself yet
# NOTE: package not signed yet! (-us -uc)
debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
yes | debuild -us -uc 2>&1 | egrep -v "dir-or-file-in-opt | file-in-unusual-dir"
debuild clean
if [ -z "$DEBIAN_ARCHIVE_DIR" ]; then
......
__NAME__ (__VER__.__RELEASE_STR__.debian__DEBIAN_VERSION__) stable; urgency=low
__NAME__ (__BEEGFS_DEB_FULLVERSION__) stable; urgency=low
* initial native debian packaging