summaryrefslogtreecommitdiff
path: root/build-recipe-collax
diff options
context:
space:
mode:
Diffstat (limited to 'build-recipe-collax')
-rw-r--r--build-recipe-collax64
1 files changed, 0 insertions, 64 deletions
diff --git a/build-recipe-collax b/build-recipe-collax
deleted file mode 100644
index 7729bc7..0000000
--- a/build-recipe-collax
+++ /dev/null
@@ -1,64 +0,0 @@
-#
-# Copyright 2015 Zarafa B.V. and its licensors
-#
-# This program is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free Software
-# Foundation; either version 2 or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
-# details.
-#
-
-recipe_setup_collax()
-{
- TOPDIR="/usr/src/packages"
- test "$DO_INIT_TOPDIR" != false && rm -Rf "$BUILD_ROOT/$TOPDIR"
- mkdir -p "$BUILD_ROOT/$TOPDIR"/{SOURCES,SOURCES.DEB,DEBS,OTHER}
- cp -p "$MYSRCDIR"/* "$BUILD_ROOT/$TOPDIR/SOURCES/"
- chown -R "$ABUILD_UID:$ABUILD_GID" "$BUILD_ROOT/$TOPDIR"
-}
-
-recipe_prepare_collax()
-{
- DEB_SOURCEDIR="$TOPDIR/SOURCES"
- DEB_DSCFILE="$RECIPEFILE"
- chmod -v +x "$BUILD_ROOT/$DEB_SOURCEDIR/build.collax"
- ln -fsv build.collax "$BUILD_ROOT/$DEB_SOURCEDIR/build"
-}
-
-collax_build()
-{
- local buildroot="$1"
-
- if test -n "$RUN_SHELL"; then
- chroot "$buildroot" su -
- ret=$?
- else
- chroot "$buildroot" su - $BUILD_USER -c \
- "cd $TOPDIR/SOURCES && ./build"
- ret=$?
- fi
- if test "$ret" = 0; then
- BUILD_SUCCEEDED=true
- fi
-}
-
-collax_move_build_result()
-{
- for f in "$BUILD_ROOT/$DEB_SOURCEDIR"/*.{deb,changes}; do
- test -f "$f" && mv -v "$f" "$BUILD_ROOT/$TOPDIR/DEBS/"
- done
-}
-
-recipe_build_collax()
-{
- collax_build "$BUILD_ROOT"
- collax_move_build_result
-}
-
-recipe_resultdirs_collax()
-{
- echo DEBS
-}