Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos.package
Commits
7ec50de8
Commit
7ec50de8
authored
Mar 21, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit.
parent
7b7f699e
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
182 additions
and
2 deletions
+182
-2
obs/generic/build-scripts/build_tree.sh
obs/generic/build-scripts/build_tree.sh
+1
-1
obs/generic/build-scripts/configuration_information.sh
obs/generic/build-scripts/configuration_information.sh
+1
-1
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/changelog
...n-specifics/light-build-dependencies_mca/debian/changelog
+5
-0
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/compat
...tion-specifics/light-build-dependencies_mca/debian/compat
+1
-0
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/control
...ion-specifics/light-build-dependencies_mca/debian/control
+28
-0
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/copyright
...n-specifics/light-build-dependencies_mca/debian/copyright
+1
-0
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/dirs
...bution-specifics/light-build-dependencies_mca/debian/dirs
+5
-0
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/rules
...ution-specifics/light-build-dependencies_mca/debian/rules
+17
-0
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/source/format
...ecifics/light-build-dependencies_mca/debian/source/format
+1
-0
obs/generic/distribution-specifics/light-build-dependencies_mca/mca_1-1.dsc
...bution-specifics/light-build-dependencies_mca/mca_1-1.dsc
+11
-0
obs/generic/templates/compilation-templates/light-build-dependencies_mca/Makefile.in
...lation-templates/light-build-dependencies_mca/Makefile.in
+95
-0
obs/generic/templates/compilation-templates/light-build-dependencies_mca/local_buildout.cfg.in
...plates/light-build-dependencies_mca/local_buildout.cfg.in
+16
-0
No files found.
obs/generic/build-scripts/build_tree.sh
View file @
7ec50de8
...
@@ -7,7 +7,7 @@ cd $INITIAL_DIR
...
@@ -7,7 +7,7 @@ cd $INITIAL_DIR
mkdir
-p
$TARBALL_DIR
mkdir
-p
$TARBALL_DIR
# Re-downloading the software release to pack
# Re-downloading the software release to pack
#cp -r /home/test/other-projects/model/1wip_simplify-fluentbit_my-slapos .
#cp -r /home/test/other-projects/model/1wip_simplify-fluentbit_my-slapos .
cp
-r
/home/test/other-projects/model/mca.my-slapos
$TARBALL_DIR
/software_release
cp
-r
/home/test/other-projects/model/
light-build-dependencies_
mca.my-slapos
$TARBALL_DIR
/software_release
#cp -r /home/test/other-projects/new_slapos.package/sid.fluentbit.my-slapos $TARBALL_DIR
#cp -r /home/test/other-projects/new_slapos.package/sid.fluentbit.my-slapos $TARBALL_DIR
#mv $TARBALL_DIR/mca.my-slapos $TARBALL_DIR/software_release
#mv $TARBALL_DIR/mca.my-slapos $TARBALL_DIR/software_release
...
...
obs/generic/build-scripts/configuration_information.sh
View file @
7ec50de8
...
@@ -9,7 +9,7 @@ INITIAL_DIR="$(pwd)"/
...
@@ -9,7 +9,7 @@ INITIAL_DIR="$(pwd)"/
SOFTWARE_VERSION
=
1
SOFTWARE_VERSION
=
1
#RECIPE_VERSION=1
#RECIPE_VERSION=1
DEBIAN_REVISION
=
1
DEBIAN_REVISION
=
1
SOFTWARE_NAME
=
example
SOFTWARE_NAME
=
mca
# For the version format, see: https://www.debian.org/doc/manuals/debian-faq/pkg-basics.en.html#pkgname
# For the version format, see: https://www.debian.org/doc/manuals/debian-faq/pkg-basics.en.html#pkgname
# here, in <foo>_<VersionNumber>-<DebianRevisionNumber>_<DebianArchitecture>.deb
# here, in <foo>_<VersionNumber>-<DebianRevisionNumber>_<DebianArchitecture>.deb
...
...
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/changelog
0 → 100644
View file @
7ec50de8
mca (1-1) UNRELEASED; urgency=medium
* Initial release. (Closes: #XXXXXX)
-- test <test@debian> Tue, 25 Jan 2022 18:27:17 +0100
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/compat
0 → 100644
View file @
7ec50de8
10
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/control
0 → 100644
View file @
7ec50de8
Source: mca
Maintainer: Francois Gagnard <francois.gagnard@nexedi.com>
Section: net
Priority: optional
Build-Depends: debhelper (>= 4.1.16),
chrpath,
wget,
python (>= 2.7),
python3 (>= 3.7),
python3-dev (>= 3.7),
golang (>= 2:1.15)
Package: mca
Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends},
ucf,
uml-utilities,
# slapgrid-sr needed by most recipes
libc6-dev | libc-dev,
gcc | c-compiler,
g++ | c++-compiler,
make,
patch,
# devperm manager plugin wants to use lsblk
util-linux
Conflicts:
Description: mca packaging test
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/copyright
0 → 100644
View file @
7ec50de8
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/dirs
0 → 100644
View file @
7ec50de8
/opt/mca_1-1/bin/
/opt/mca_1-1/include/
/opt/mca_1-1/etc/
/opt/mca_1-1/lib/
/opt/mca_1-1/share/
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/rules
0 → 100755
View file @
7ec50de8
#!/usr/bin/make -f
#export DH_VERBOSE=1
PACKAGE = $(shell dh_listpackages)
TMP = $(CURDIR)/debian/$(PACKAGE)
%:
dh $@
override_dh_installdebconf:
override_dh_makeshlibs:
dh_makeshlibs -n
override_dh_shlibdeps:
dh_shlibdeps -- -x$(PACKAGE)
rm -f $(TMP)/DEBIAN/shlibs
obs/generic/distribution-specifics/light-build-dependencies_mca/debian/source/format
0 → 100644
View file @
7ec50de8
3.0 (quilt)
obs/generic/distribution-specifics/light-build-dependencies_mca/mca_1-1.dsc
0 → 100644
View file @
7ec50de8
Format: 3.0 (native)
Source: mca
Architecture: any
Version: 1
Build-Depends: debhelper (>= 4.1.16),
chrpath,
wget,
python (>= 2.7),
python3 (>= 3.7),
python3-dev (>= 3.7),
golang (>= 2:1.15)
obs/generic/templates/compilation-templates/light-build-dependencies_mca/Makefile.in
0 → 100644
View file @
7ec50de8
PY
=
$(PYTHON)
#INSTALL_DIR = $(DESTDIR)/opt/test
#TARGET_DIR = /opt/slapos
# This templates are replaced by build-scripts/template_stage.sh
# according to the values and regular expressions defined in
# build-scripts/configuration_information.sh
# The variable TARGET_DIR is pretty useless atm
TARGET_DIR
=
%TARGET_DIR%
TARBALL_DIR
=
$(
shell
pwd
)
BUILD_DIR
=
$(TARBALL_DIR)
/build
INSTALL_DIR
=
$(DESTDIR)$(TARGET_DIR)
RUN_BUILDOUT_DIR
=
$(BUILD_DIR)$(TARGET_DIR)
#PATCHES_DIR := $(shell pwd)/patches
# get the path of the BUILD_DIR of the first build (performed to prepare the cache for OBS)
OLD_TARBALL_DIR
:=
$(
shell
cat
local_build_directory
)
#Use to get path of buildout correct
#ORIGINAL_DIRECTORY := $(shell cat ./original_directory)
all
:
build
build
:
build-stamp
build-stamp
:
@
echo
"Fixing buildout path to
$(TARBALL_DIR)
rather than
$(OLD_TARBALL_DIR)
for buildout"
################################################################################
# grep -rIl '$(OLD_DIRECTORY)' $(BUILD_DIR) 2> /dev/null | \
# xargs sed -i 's#$(OLD_DIRECTORY)#$(BUILD_DIR)#g' || \
# echo "No path to fix."
################################################################################
ls
-l
$(RUN_BUILDOUT_DIR)
# DEBUG
ls
-l
$(RUN_BUILDOUT_DIR)/bin/
# DEBUG
cd
$(RUN_BUILDOUT_DIR);
sed
-i
's#$(OLD_TARBALL_DIR)#$(TARBALL_DIR)#g'
buildout.cfg
bin/*
echo
RUN_BUILDOUT_DIR
=
$(RUN_BUILDOUT_DIR)
\;
PY
=
$(PY)
cd
$(RUN_BUILDOUT_DIR)
&&
\
$(PY)
./bin/buildout
-v
@touch
build-stamp
clean
:
# TODO: implement a proper cleaning
#rm -rf
$(BUILD_DIR)
rm
-f
*
-stamp
install
:
all
# mkdir
mkdir
-p
$(INSTALL_DIR)
/bin
mkdir
-p
$(INSTALL_DIR)
/etc/
mkdir
-p
$(INSTALL_DIR)
/include/
mkdir
-p
$(INSTALL_DIR)
/lib/
mkdir
-p
$(INSTALL_DIR)
/share/
# cp
#cp `find $(RUN_BUILDOUT_DIR) | grep -e "^$(RUN_BUILDOUT_DIR)/[^/][^/]*/bin/*` $(DESTDIR)/usr/bin/
# bin
# no "-r" option to "cp" because there must be no subdirectories
# see https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s04.html
# and https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s13.html
-cp
$(RUN_BUILDOUT_DIR)/parts/mca/bin/*
$(INSTALL_DIR)/bin/
# etc
-cp
-r
$(RUN_BUILDOUT_DIR)/parts/mca/etc/*
$(INSTALL_DIR)/etc/
-cp
-r
$(RUN_BUILDOUT_DIR)/parts/openssl/etc/*
$(INSTALL_DIR)/etc/
# remove links to certs in parts/ca-certificates/[...]: not supported for now
-rm
-rf
$(INSTALL_DIR)/etc/ssl/certs
# include
-cp
-r
$(RUN_BUILDOUT_DIR)/parts/fluentbit-plugin-wendelin/include/*
$(INSTALL_DIR)/include/
-cp
-r
$(RUN_BUILDOUT_DIR)/parts/openssl/include/*
$(INSTALL_DIR)/include/
# lib
-cp
-r
$(RUN_BUILDOUT_DIR)/parts/openssl/lib/*
$(INSTALL_DIR)/lib/
# TODO: the next "cp" line is temporary renaming the library and this should be fixed asap
# the fix has to be made primarily in the MCA project
-cp
$(RUN_BUILDOUT_DIR)/parts/fluentbit-plugin-wendelin/lib/libfluentbit_wendelin.so
$(INSTALL_DIR)/lib/fluentbit_wendelin.so
# TODO: then next "cp" is a workaroung because libcrypto.so or libcrypto.a from slapos doesn't work
# this should be fixed asap
-cp
/lib/x86_64-linux-gnu/libcrypto.so.1.1
$(INSTALL_DIR)/lib/
# share
-cp
-r
$(RUN_BUILDOUT_DIR)/parts/mca/share/*
$(INSTALL_DIR)/share/
-cp
-r
$(RUN_BUILDOUT_DIR)/parts/openssl/share/*
$(INSTALL_DIR)/share/
-cp
-r
$(RUN_BUILDOUT_DIR)/parts/fluentbit-plugin-wendelin/share/*
$(INSTALL_DIR)/share/
# DEBUG
ls
-Rl
$(INSTALL_DIR)/bin/
# DEBUG
ls
-Rl
$(INSTALL_DIR)/etc/
# DEBUG
ls
-Rl
$(INSTALL_DIR)/include/
# DEBUG
ls
-Rl
$(INSTALL_DIR)/lib/
# DEBUG
ls
-Rl
$(INSTALL_DIR)/share/
# DEBUG
.PHONY
:
build all clean install
obs/generic/templates/compilation-templates/light-build-dependencies_mca/local_buildout.cfg.in
0 → 100644
View file @
7ec50de8
[buildout]
rootdir = %TARGET_DIR%
destdir = %BUILD_DIR%
builddir = %RUN_BUILDOUT_DIR%
extends =
%SR_PATH%
versions = versions
extends-cache = extends-cache
download-cache = download-cache
[versions]
setuptools = 44.1.1
# Use SlapOS patched zc.buildout
zc.buildout = 2.7.1+slapos016
# Use SlapOS patched zc.recipe.egg (zc.recipe.egg 2.x is for Buildout 2)
zc.recipe.egg = 2.0.3+slapos003
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment