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
Ivan Tyagov
slapos.package
Commits
310dfc21
Commit
310dfc21
authored
Sep 21, 2022
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Plain Diff
More improvements to generic
See merge request
nexedi/slapos.package!170
parents
36a1d228
249aedb0
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
171 additions
and
140 deletions
+171
-140
obs/_generic/build-scripts/00env.sh
obs/_generic/build-scripts/00env.sh
+14
-10
obs/_generic/build-scripts/10tarball_directory.sh
obs/_generic/build-scripts/10tarball_directory.sh
+33
-9
obs/_generic/build-scripts/20obs.sh
obs/_generic/build-scripts/20obs.sh
+7
-2
obs/_generic/compilation/10cache-zc-buildout.cfg.in
obs/_generic/compilation/10cache-zc-buildout.cfg.in
+24
-0
obs/_generic/compilation/20cache-and-use-libnetworkcache.cfg.in
...eneric/compilation/20cache-and-use-libnetworkcache.cfg.in
+26
-0
obs/_generic/compilation/30local_buildout.cfg.in
obs/_generic/compilation/30local_buildout.cfg.in
+1
-0
obs/_generic/compilation/40obs_buildout.cfg.in
obs/_generic/compilation/40obs_buildout.cfg.in
+0
-0
obs/_generic/distributions/_generic.spec.in
obs/_generic/distributions/_generic.spec.in
+51
-0
obs/fluent-bit/distributions/fluent-bit.spec.in
obs/fluent-bit/distributions/fluent-bit.spec.in
+0
-87
obs/fluent-bit/env.sh
obs/fluent-bit/env.sh
+6
-2
obs/lunzip/compilation/local_buildout.cfg.in
obs/lunzip/compilation/local_buildout.cfg.in
+0
-13
obs/lunzip/compilation/obs_buildout.cfg.in
obs/lunzip/compilation/obs_buildout.cfg.in
+0
-13
obs/lunzip/env.sh
obs/lunzip/env.sh
+1
-1
obs/mca--static/compilation/makefile-scripts/install.sh
obs/mca--static/compilation/makefile-scripts/install.sh
+0
-0
obs/mca--static/env.sh
obs/mca--static/env.sh
+8
-3
No files found.
obs/_generic/build-scripts/00env.sh
View file @
310dfc21
...
@@ -24,7 +24,7 @@ TARGET_DIR=$(realpath -m "$TARGET_DIR")
...
@@ -24,7 +24,7 @@ TARGET_DIR=$(realpath -m "$TARGET_DIR")
# Source package
# Source package
PACKAGE_SECTION
=
${
PACKAGE_SECTION
:-
utils
}
PACKAGE_SECTION
=
${
PACKAGE_SECTION
:-
utils
}
PACKAGE_PRIORITY
=
${
PACKAGE_PRIORITY
:-
optional
}
PACKAGE_PRIORITY
=
${
PACKAGE_PRIORITY
:-
optional
}
PACKAGE_BUILD_DEPENDENCIES
=
${
PACKAGE_BUILD_DEPENDENCIES
:-
debhelper
(>= 4.1.16), chrpath, python (>= 2.7),
}
PACKAGE_BUILD_DEPENDENCIES
=
${
PACKAGE_BUILD_DEPENDENCIES
:-
debhelper
, chrpath, python3 (>= 3.7) | python, python3-dev (>= 3.7) | python-dev
}
# Binary package
# Binary package
PACKAGE_ARCHITECTURE
=
${
PACKAGE_ARCHITECTURE
:-
any
}
PACKAGE_ARCHITECTURE
=
${
PACKAGE_ARCHITECTURE
:-
any
}
PACKAGE_DEPENDENCIES
=
${
PACKAGE_DEPENDENCIES
:-
\
$\
{misc
:Depends
\
}
,
\$\{
shlibs:Depends
\}
,
}
PACKAGE_DEPENDENCIES
=
${
PACKAGE_DEPENDENCIES
:-
\
$\
{misc
:Depends
\
}
,
\$\{
shlibs:Depends
\}
,
}
...
@@ -37,9 +37,6 @@ PACKAGE_URGENCY=${PACKAGE_URGENCY:-medium}
...
@@ -37,9 +37,6 @@ PACKAGE_URGENCY=${PACKAGE_URGENCY:-medium}
GIT_REPOSITORY
=
${
GIT_REPOSITORY
:-
https
://lab.nexedi.com/nexedi/slapos
}
GIT_REPOSITORY
=
${
GIT_REPOSITORY
:-
https
://lab.nexedi.com/nexedi/slapos
}
GIT_BRANCH_OR_COMMIT
=
${
GIT_BRANCH_OR_COMMIT
:-
master
}
GIT_BRANCH_OR_COMMIT
=
${
GIT_BRANCH_OR_COMMIT
:-
master
}
BUILDOUT_RELATIVE_PATH
=
${
BUILDOUT_RELATIVE_PATH
:-
software
/
$SOFTWARE_NAME
/software.cfg
}
BUILDOUT_RELATIVE_PATH
=
${
BUILDOUT_RELATIVE_PATH
:-
software
/
$SOFTWARE_NAME
/software.cfg
}
## Versions
SETUPTOOLS_VERSION
=
${
SETUPTOOLS_VERSION
:-
63
.2.0
}
ZC_BUILDOUT_VERSION
=
${
ZC_BUILDOUT_VERSION
:-
2
.7.1+slapos019
}
## OBS information
## OBS information
OBS_PROJECT
=
${
OBS_PROJECT
:-
home
:VIFIBnexedi:branches:home:VIFIBnexedi
}
OBS_PROJECT
=
${
OBS_PROJECT
:-
home
:VIFIBnexedi:branches:home:VIFIBnexedi
}
OBS_PACKAGE
=
${
OBS_PACKAGE
:-
$SOFTWARE_NAME
}
OBS_PACKAGE
=
${
OBS_PACKAGE
:-
$SOFTWARE_NAME
}
...
@@ -55,6 +52,13 @@ COMPILATION_FILES_GENERIC_DIR="$INITIAL_DIR/_generic/compilation"
...
@@ -55,6 +52,13 @@ COMPILATION_FILES_GENERIC_DIR="$INITIAL_DIR/_generic/compilation"
COMPILATION_FILES_SOFTWARE_DIR
=
"
$INITIAL_DIR
/
$SOFTWARE_NAME
/compilation"
COMPILATION_FILES_SOFTWARE_DIR
=
"
$INITIAL_DIR
/
$SOFTWARE_NAME
/compilation"
BUILD_DIR
=
"
$TARBALL_DIR
/build"
BUILD_DIR
=
"
$TARBALL_DIR
/build"
RUN_BUILDOUT_DIR
=
"
$BUILD_DIR
/
$TARGET_DIR
"
RUN_BUILDOUT_DIR
=
"
$BUILD_DIR
/
$TARGET_DIR
"
## Versions
# OLD_SETUPTOOLS_VERSION must be strictly older than SETUPTOOLS_VERSION
OLD_SETUPTOOLS_VERSION
=
44.1.0
SETUPTOOLS_VERSION
=
44.1.1
ZC_BUILDOUT_VERSION
=
2.7.1+slapos019
ZC_RECIPE_EGG_VERSION
=
2.0.3+slapos003
SLAPOS_LIBNETWORKCACHE_VERSION
=
0.25
DISTRIB_FILES_GENERIC_DIR
=
"
$INITIAL_DIR
/_generic/distributions"
DISTRIB_FILES_GENERIC_DIR
=
"
$INITIAL_DIR
/_generic/distributions"
DISTRIB_FILES_SOFTWARE_DIR
=
"
$INITIAL_DIR
/
$SOFTWARE_NAME
/distributions"
DISTRIB_FILES_SOFTWARE_DIR
=
"
$INITIAL_DIR
/
$SOFTWARE_NAME
/distributions"
BUILDOUT_DIR
=
"
$TARBALL_DIR
/slapos_repository"
BUILDOUT_DIR
=
"
$TARBALL_DIR
/slapos_repository"
...
@@ -63,12 +67,12 @@ BUILDOUT_ENTRY_POINT=$(realpath -m "$BUILDOUT_ENTRY_POINT")
...
@@ -63,12 +67,12 @@ BUILDOUT_ENTRY_POINT=$(realpath -m "$BUILDOUT_ENTRY_POINT")
OBS_DIR
=
"
$INITIAL_DIR
/
$OBS_PROJECT
/
$OBS_PACKAGE
"
OBS_DIR
=
"
$INITIAL_DIR
/
$OBS_PROJECT
/
$OBS_PACKAGE
"
## Regular expressions for templates
## Regular expressions for templates
NAME_REGEX
=
"s
§%SOFTWARE_NAME%§
$SOFTWARE_NAME
§g;s§%SOFTWARE_AND_VERSION%§
$SOFTWARE_AND_VERSION
§
g"
NAME_REGEX
=
"s
#%SOFTWARE_NAME%#
$SOFTWARE_NAME
#g;s#%SOFTWARE_AND_VERSION%#
$SOFTWARE_AND_VERSION
#
g"
VERSION_REGEX
=
"s
§%SOFTWARE_VERSION%§
$SOFTWARE_VERSION
§g;s§%DEBIAN_REVISION%§
$DEBIAN_REVISION
§g;s§%COMPOUND_VERSION%§
$COMPOUND_VERSION
§
g"
VERSION_REGEX
=
"s
#%SOFTWARE_VERSION%#
$SOFTWARE_VERSION
#g;s#%DEBIAN_REVISION%#
$DEBIAN_REVISION
#g;s#%COMPOUND_VERSION%#
$COMPOUND_VERSION
#
g"
BUILDOUT_REGEX
=
"s
§%SETUPTOOLS_VERSION%§
$SETUPTOOLS_VERSION
§g;s§%ZC_BUILDOUT_VERSION%§
$ZC_BUILDOUT_VERSION
§g;s§%ZC_RECIPE_EGG_VERSION%§
$ZC_RECIPE_EGG_VERSION
§
g"
BUILDOUT_REGEX
=
"s
#%SETUPTOOLS_VERSION%#
$SETUPTOOLS_VERSION
#g;s#%ZC_BUILDOUT_VERSION%#
$ZC_BUILDOUT_VERSION
#g;s#%ZC_RECIPE_EGG_VERSION%#
$ZC_RECIPE_EGG_VERSION
#g;s#%SLAPOS_LIBNETWORKCACHE%#
$SLAPOS_LIBNETWORKCACHE
#
g"
DIR_REGEX
=
"s
§%TARGET_DIR%§
$TARGET_DIR
§g;s§%BUILD_DIR%§
$BUILD_DIR
§g;s§%RUN_BUILDOUT_DIR%§
$RUN_BUILDOUT_DIR
§
g"
DIR_REGEX
=
"s
#%TARGET_DIR%#
$TARGET_DIR
#g;s#%BUILD_DIR%#
$BUILD_DIR
#g;s#%RUN_BUILDOUT_DIR%#
$RUN_BUILDOUT_DIR
#
g"
PATH_REGEX
=
"s
§%BUILDOUT_ENTRY_POINT%§
$BUILDOUT_ENTRY_POINT
§
g"
PATH_REGEX
=
"s
#%BUILDOUT_ENTRY_POINT%#
$BUILDOUT_ENTRY_POINT
#
g"
DISTRIB_REGEX
=
"s
§%MAINTAINER_NAME%§
$MAINTAINER_NAME
§g;s§%MAINTAINER_EMAIL%§
$MAINTAINER_EMAIL
§g;s§%CURRENT_DATE%§
$CURRENT_DATE
§g;s§%PACKAGE_SECTION%§
$PACKAGE_SECTION
§g;s§%PACKAGE_PRIORITY%§
$PACKAGE_PRIORITY
§g;s§%PACKAGE_BUILD_DEPENDENCIES%§
$PACKAGE_BUILD_DEPENDENCIES
§g;s§%PACKAGE_ARCHITECTURE%§
$PACKAGE_ARCHITECTURE
§g;s§%PACKAGE_DEPENDENCIES%§
$PACKAGE_DEPENDENCIES
§g;s§%PACKAGE_CONFLICTS%§
$PACKAGE_CONFLICTS
§g;s§%PACKAGE_SHORT_DESCRIPTION%§
$PACKAGE_SHORT_DESCRIPTION
§g;s§%PACKAGE_DISTRIBUTION_VALUE%§
$PACKAGE_DISTRIBUTION_VALUE
§g;s§%PACKAGE_URGENCY%§
$PACKAGE_URGENCY
§g;s§%PACKAGE_CHANGE_DETAILS%§
$PACKAGE_CHANGE_DETAILS
§g;s§%PACKAGE_DIRECTORIES%§
$PACKAGE_DIRECTORIES
§
g"
DISTRIB_REGEX
=
"s
#%MAINTAINER_NAME%#
$MAINTAINER_NAME
#g;s#%MAINTAINER_EMAIL%#
$MAINTAINER_EMAIL
#g;s#%CURRENT_DATE%#
$CURRENT_DATE
#g;s#%PACKAGE_SECTION%#
$PACKAGE_SECTION
#g;s#%PACKAGE_PRIORITY%#
$PACKAGE_PRIORITY
#g;s#%PACKAGE_BUILD_DEPENDENCIES%#
$PACKAGE_BUILD_DEPENDENCIES
#g;s#%PACKAGE_ARCHITECTURE%#
$PACKAGE_ARCHITECTURE
#g;s#%PACKAGE_DEPENDENCIES%#
$PACKAGE_DEPENDENCIES
#g;s#%PACKAGE_CONFLICTS%#
$PACKAGE_CONFLICTS
#g;s#%PACKAGE_SHORT_DESCRIPTION%#
$PACKAGE_SHORT_DESCRIPTION
#g;s#%PACKAGE_DISTRIBUTION_VALUE%#
$PACKAGE_DISTRIBUTION_VALUE
#g;s#%PACKAGE_URGENCY%#
$PACKAGE_URGENCY
#g;s#%PACKAGE_CHANGE_DETAILS%#
$PACKAGE_CHANGE_DETAILS
#g;s#%PACKAGE_DIRECTORIES%#
$PACKAGE_DIRECTORIES
#
g"
ALL_REGEX
=
$NAME_REGEX
";"
$VERSION_REGEX
";"
$BUILDOUT_REGEX
";"
$DIR_REGEX
";"
$PATH_REGEX
";"
$DISTRIB_REGEX
ALL_REGEX
=
$NAME_REGEX
";"
$VERSION_REGEX
";"
$BUILDOUT_REGEX
";"
$DIR_REGEX
";"
$PATH_REGEX
";"
$DISTRIB_REGEX
copy_and_solve_templates
()
{
copy_and_solve_templates
()
{
...
...
obs/_generic/build-scripts/10tarball_directory.sh
View file @
310dfc21
...
@@ -26,25 +26,49 @@ mkdir -p "$RUN_BUILDOUT_DIR"/{eggs,extends-cache,download-cache/dist}
...
@@ -26,25 +26,49 @@ mkdir -p "$RUN_BUILDOUT_DIR"/{eggs,extends-cache,download-cache/dist}
# with the one from <software_name>
# with the one from <software_name>
copy_and_solve_templates
"
$COMPILATION_FILES_GENERIC_DIR
"
"
$TARBALL_DIR
"
copy_and_solve_templates
"
$COMPILATION_FILES_GENERIC_DIR
"
"
$TARBALL_DIR
"
copy_and_solve_templates
"
$COMPILATION_FILES_SOFTWARE_DIR
"
"
$TARBALL_DIR
"
copy_and_solve_templates
"
$COMPILATION_FILES_SOFTWARE_DIR
"
"
$TARBALL_DIR
"
mv
"
$TARBALL_DIR
/local_buildout.cfg"
"
$RUN_BUILDOUT_DIR
/buildout.cfg"
# BUILDOUT: BOOTSTRAPING AND RUN
# BUILDOUT: BOOTSTRAPING AND RUN
### Download the bootstrap script
### Download the bootstrap script
mkdir
-p
"
$RUN_BUILDOUT_DIR
"
mkdir
-p
"
$RUN_BUILDOUT_DIR
"
cd
"
$RUN_BUILDOUT_DIR
"
cd
"
$RUN_BUILDOUT_DIR
"
wget https://
bootstrap.pypa.io/bootstrap-buildout
.py
wget https://
lab.nexedi.com/nexedi/slapos.buildout/raw/master/bootstrap/bootstrap
.py
### Run buildout
### Run buildout
# Note: it creates a lot of things in $RUN_BUILDOUT_DIR/eggs/ and uses software_release/ at some point
# Note: it creates a lot of things in $RUN_BUILDOUT_DIR/eggs/ and uses software_release/ at some point
# bootstrap buildout (creates $RUN_BUILDOUT_DIR/bin/buildout)
# 00) Bootstrap buildout with an old version.
python2.7
-S
bootstrap-buildout.py
\
# no --buildout-version option, so it uses an upstream version of buildout
--buildout-version
"
$ZC_BUILDOUT_VERSION
"
\
# creates $RUN_BUILDOUT_DIR/bin/buildout
--setuptools-version
"
$SETUPTOOLS_VERSION
"
\
echo
"[buildout]"
>
buildout.cfg
# dummy .cfg file only for boostraping
--setuptools-to-dir
eggs
-f
http://www.nexedi.org/static/packages/source/slapos.buildout/
echo
"Bootsrapping buildout..."
# run $RUN_BUILDOUT_DIR/bin/buildout (note that it modifies itself via rebootstrapping when compiling python)
python3
-S
bootstrap.py
\
./bin/buildout
-v
--setuptools-version
44.1.0
\
--setuptools-to-dir
eggs
# 10) Get newest version of zc.buildout and setuptools.
# note that we can't directly do setuptools + zc.buildout +
# slapos.libnetworkcache because buildout would be relaunched in the middle
# without the "-S" option to python
echo
"Downloading the desired version of setuptools and zc.buildout..."
cp
"
$TARBALL_DIR
"
/10cache-zc-buildout.cfg buildout.cfg
sed
-i
'1s/$/ -S/'
bin/buildout
sed
-i
"/def _satisfied(/s/
\(\b
source=
\)
None/
\1
1/"
eggs/zc.buildout-
*
/zc/buildout/easy_install.py
# no wheel
bin/buildout buildout:newest
=
true
-v
ls
download-cache/dist/
*
.whl
&&
{
echo
"There shouldn't be any wheel in download-cache"
;
exit
1
;
}
# 20) Compile a very simple buildout with networkcache.
echo
"Preparing networkcached zc.buildout..."
cp
"
$TARBALL_DIR
"
/20cache-and-use-libnetworkcache.cfg buildout.cfg
sed
-i
'1s/$/ -S/'
bin/buildout
bin/buildout buildout:newest
=
true
-v
# 30) Run $RUN_BUILDOUT_DIR/bin/buildout.
# note that it modifies itself via rebootstrapping when compiling python
# build locally everything with gcc to get download-cache and extends-cache ready
echo
"Finally running buildout for the local compilation..."
cp
"
$TARBALL_DIR
"
/30local_buildout.cfg buildout.cfg
bin/buildout buildout:newest
=
true
-v
### Fix the go/ directory.
### Fix the go/ directory.
...
...
obs/_generic/build-scripts/20obs.sh
View file @
310dfc21
...
@@ -15,21 +15,26 @@ cd "$INITIAL_DIR"
...
@@ -15,21 +15,26 @@ cd "$INITIAL_DIR"
# copy compilation files and override the files from _generic
# copy compilation files and override the files from _generic
# with the one from <software_name>
# with the one from <software_name>
copy_and_solve_templates
"
$DISTRIB_FILES_GENERIC_DIR
"
"
$OBS_DIR
"
copy_and_solve_templates
"
$DISTRIB_FILES_GENERIC_DIR
"
"
$OBS_DIR
"
mv
"
$OBS_DIR
"
/_generic.dsc
"
$OBS_DIR
/
$SOFTWARE_AND_VERSION
.dsc"
mv
"
$OBS_DIR
"
/_generic.dsc
"
$OBS_DIR
/
$SOFTWARE_NAME
.dsc"
mv
"
$OBS_DIR
"
/_generic.spec
"
$OBS_DIR
/
$SOFTWARE_NAME
.spec"
copy_and_solve_templates
"
$DISTRIB_FILES_SOFTWARE_DIR
"
"
$OBS_DIR
"
copy_and_solve_templates
"
$DISTRIB_FILES_SOFTWARE_DIR
"
"
$OBS_DIR
"
# ARCHIVES FILES
# ARCHIVES FILES
### Finalize the tarball directory preparation
### Finalize the tarball directory preparation
# switch to the buildout wrapper for OBS
# switch to the buildout wrapper for OBS
cp
"
$TARBALL_DIR
/obs_buildout.cfg"
"
$RUN_BUILDOUT_DIR
/buildout.cfg"
cp
"
$TARBALL_DIR
"
/40obs_buildout.cfg
"
$RUN_BUILDOUT_DIR
"
/buildout.cfg
# save the local $TARBALL_DIR path so that it is replaced by the $TARBALL_DIR path from OBS' VM
# save the local $TARBALL_DIR path so that it is replaced by the $TARBALL_DIR path from OBS' VM
echo
"
$TARBALL_DIR
"
>
"
$TARBALL_DIR
"
/local_tarball_directory_path
echo
"
$TARBALL_DIR
"
>
"
$TARBALL_DIR
"
/local_tarball_directory_path
# add a stamp so that OBS does not clean the local preparation before compiling
# add a stamp so that OBS does not clean the local preparation before compiling
touch
"
$TARBALL_DIR
/clean-stamp"
touch
"
$TARBALL_DIR
/clean-stamp"
# copy required eggs that are not cached
# clean the compilation related files
# clean the compilation related files
rm
-rf
"
$RUN_BUILDOUT_DIR
"
/
{
.installed.cfg,downloads,parts,eggs,develop-eggs,bin,rebootstrap
}
rm
-rf
"
$RUN_BUILDOUT_DIR
"
/
{
.installed.cfg,downloads,parts,eggs,develop-eggs,bin,rebootstrap
}
rm
-rf
"
$BUILDOUT_DIR
"
/.git
# lighten what is sent to OBS
# TODO: support extends-cache
### Prepare the archives for OBS
### Prepare the archives for OBS
# -C option allows to give tar an absolute path without archiving the directory from / (i.e. home/user/[...])
# -C option allows to give tar an absolute path without archiving the directory from / (i.e. home/user/[...])
tar
czf
"
$OBS_DIR
/
$SOFTWARE_AND_VERSION$ARCHIVE_EXT
"
-C
"
$INITIAL_DIR
/_tarballs"
"
$SOFTWARE_AND_VERSION
"
tar
czf
"
$OBS_DIR
/
$SOFTWARE_AND_VERSION$ARCHIVE_EXT
"
-C
"
$INITIAL_DIR
/_tarballs"
"
$SOFTWARE_AND_VERSION
"
...
...
obs/_generic/compilation/10cache-zc-buildout.cfg.in
0 → 100644
View file @
310dfc21
[buildout]
rootdir = %TARGET_DIRECTORY%
destdir = %BUILD_ROOT_DIRECTORY%
builddir = %BUILD_DIRECTORY%
extensions =
extends-cache = extends-cache
download-cache = download-cache
parts =
zc.buildout
# Add location for modified non-official slapos.buildout
find-links +=
http://www.nexedi.org/static/packages/source/
http://www.nexedi.org/static/packages/source/slapos.buildout/
[zc.buildout]
recipe = zc.recipe.egg
eggs =
zc.buildout
[versions]
setuptools = %SETUPTOOLS_VERSION%
zc.buildout = %ZC_BUILDOUT_VERSION%
zc.recipe.egg = %ZC_RECIPE_EGG_VERSION%
obs/_generic/compilation/20cache-and-use-libnetworkcache.cfg.in
0 → 100644
View file @
310dfc21
[buildout]
rootdir = %TARGET_DIRECTORY%
destdir = %BUILD_ROOT_DIRECTORY%
builddir = %BUILD_DIRECTORY%
extensions =
extends-cache = extends-cache
download-cache = download-cache
parts =
networkcached
# Add location for modified non-official slapos.buildout
find-links +=
http://www.nexedi.org/static/packages/source/
http://www.nexedi.org/static/packages/source/slapos.buildout/
[networkcached]
recipe = zc.recipe.egg
eggs =
slapos.libnetworkcache
zc.buildout
[versions]
setuptools = %SETUPTOOLS_VERSION%
zc.buildout = %ZC_BUILDOUT_VERSION%
slapos.libnetworkcache = %SLAPOS_LIBNETWORKCACHE%
zc.recipe.egg = %ZC_RECIPE_EGG_VERSION%
obs/_generic/compilation/
obs
_buildout.cfg.in
→
obs/_generic/compilation/
30local
_buildout.cfg.in
View file @
310dfc21
...
@@ -11,3 +11,4 @@ download-cache = download-cache
...
@@ -11,3 +11,4 @@ download-cache = download-cache
[versions]
[versions]
setuptools = %SETUPTOOLS_VERSION%
setuptools = %SETUPTOOLS_VERSION%
zc.buildout = %ZC_BUILDOUT_VERSION%
zc.buildout = %ZC_BUILDOUT_VERSION%
zc.recipe.egg = %ZC_RECIPE_EGG_VERSION%
obs/_generic/compilation/
local
_buildout.cfg.in
→
obs/_generic/compilation/
40obs
_buildout.cfg.in
View file @
310dfc21
File moved
obs/_generic/distributions/_generic.spec.in
0 → 100644
View file @
310dfc21
# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%define compound_version %SOFTWARE_VERSION%.%DEBIAN_REVISION%
%define unzipped_tarball %SOFTWARE_AND_VERSION%
Summary:%PACKAGE_SHORT_DESCRIPTION%
Name: %SOFTWARE_NAME%
Version:%{compound_version}
Release:%{compound_version}
Source0: %{unzipped_tarball}.tar.gz
Packager: %MAINTAINER_NAME% %MAINTAINER_EMAIL%
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: patch
BuildRequires: wget
BuildRequires: chrpath
BuildRequires: openssl-devel
%if 0%{?centos_version} <= 700 || 0%{?rhel_version} <= 700 || 0%{?suse_version} < 1300 || 0%{?sle_version} < 130000
BuildRequires: python
BuildRequires: python-devel
%else
BuildRequires: python3
BuildRequires: python3-devel
%endif
AutoReqProv: no
%prep
rm -rf $RPM_BUILD_DIR/%{unzipped_tarball}
zcat $RPM_SOURCE_DIR/%{unzipped_tarball}.tar.gz | tar -xvf -
%build
cd $RPM_BUILD_DIR/%{unzipped_tarball}
make
%install
cd $RPM_BUILD_DIR/%{unzipped_tarball}
%files
%defattr(-,root,root)
%pre
%post
%preun
%postun
obs/fluent-bit/distributions/fluent-bit.spec.in
deleted
100644 → 0
View file @
36a1d228
##############################################################################
#
# Copyright (c) 2010 Vifib SARL and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# 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 3
# of the License, 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.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%define compound_version 1.1
%define slapos_directory %SOFTWARE_AND_VERSION%
Summary:Client-side to deploy applications with SlapOS
Name: slapos-node
Version:%{compound_version}
Release:%{compound_version}
License:GPL
Group: Application/Network
Source0: %{slapos_directory}.tar.gz
URL: http://community.slapos.org/
Vendor: Vifib
Packager: Thomas Gambier <thomas.gambier@nexedi.com>
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: patch
BuildRequires: wget
BuildRequires: chrpath
BuildRequires: openssl-devel
%if 0%{?centos_version} <= 700 || 0%{?rhel_version} <= 700 || 0%{?suse_version} < 1300 || 0%{?sle_version} < 130000
BuildRequires: python
BuildRequires: python-devel
%else
BuildRequires: python3
BuildRequires: python3-devel
%endif
Requires: gcc-c++, make, patch, wget
AutoReqProv: no
%description
Special compilation of fluent-bit
%prep
rm -rf $RPM_BUILD_DIR/%{slapos_directory}
zcat $RPM_SOURCE_DIR/%{slapos_directory}.tar.gz | tar -xvf -
%build
cd $RPM_BUILD_DIR/%{slapos_directory}
make
%install
cd $RPM_BUILD_DIR/%{slapos_directory}
%files
%defattr(-,root,root)
%pre
%post
%preun
%postun
obs/fluent-bit/env.sh
View file @
310dfc21
# package containing fluent-bit
# package containing fluent-bit
export
SOFTWARE_NAME
=
fluent-bit
export
MAINTAINER_NAME
=
"Ophélie Gagnard"
export
MAINTAINER_NAME
=
"Ophélie Gagnard"
export
MAINTAINER_EMAIL
=
ophelie.gagnard@nexedi.com
export
MAINTAINER_EMAIL
=
ophelie.gagnard@nexedi.com
export
PACKAGE_BUILD_DEPENDENCIES
=
"debhelper, chrpath, python3 (>=3.7) | python, python3-dev (>= 3.7) | python-dev"
export
SOFTWARE_NAME
=
fluent-bit
# version format: <fluent-bit>+<slapos>
export
SOFTWARE_VERSION
=
1.9.7+1.0.277
export
GIT_BRANCH_OR_COMMIT
=
1.0.277
export
SETUPTOOLS_VERSION
=
44.1.1
export
SETUPTOOLS_VERSION
=
44.1.1
export
ZC_BUILDOUT_VERSION
=
2.7.1+slapos019
export
ZC_BUILDOUT_VERSION
=
2.7.1+slapos019
obs/lunzip/compilation/local_buildout.cfg.in
deleted
100644 → 0
View file @
36a1d228
[buildout]
rootdir = %TARGET_DIR%
destdir = %BUILD_DIR%
builddir = %RUN_BUILDOUT_DIR%
extends =
%BUILDOUT_ENTRY_POINT%
versions = versions
extends-cache = extends-cache
download-cache = download-cache
[versions]
setuptools = %SETUPTOOLS_VERSION%
zc.buildout = %ZC_BUILDOUT_VERSION%
obs/lunzip/compilation/obs_buildout.cfg.in
deleted
100644 → 0
View file @
36a1d228
[buildout]
rootdir = %TARGET_DIR%
destdir = %BUILD_DIR%
builddir = %RUN_BUILDOUT_DIR%
extends =
%BUILDOUT_ENTRY_POINT%
versions = versions
extends-cache = extends-cache
download-cache = download-cache
[versions]
setuptools = %SETUPTOOLS_VERSION%
zc.buildout = %ZC_BUILDOUT_VERSION%
obs/lunzip/env.sh
View file @
310dfc21
...
@@ -8,5 +8,5 @@ export MAINTAINER_EMAIL="ophelie.gagnard@nexedi.com"
...
@@ -8,5 +8,5 @@ export MAINTAINER_EMAIL="ophelie.gagnard@nexedi.com"
export
TARGET_DIR
=
"/"
export
TARGET_DIR
=
"/"
export
BUILDOUT_RELATIVE_PATH
=
component/lunzip/buildout.cfg
export
BUILDOUT_RELATIVE_PATH
=
component/lunzip/buildout.cfg
export
SETUPTOOLS_VERSION
=
44.1.1
export
SETUPTOOLS_VERSION
=
44.1.1
export
ZC_BUILDOUT_VERSION
=
2.7.1+slapos01
6
export
ZC_BUILDOUT_VERSION
=
2.7.1+slapos01
9
export
OBS_PROJECT
=
home:oph.nxd
export
OBS_PROJECT
=
home:oph.nxd
obs/
dep--
mca--static/compilation/makefile-scripts/install.sh
→
obs/mca--static/compilation/makefile-scripts/install.sh
View file @
310dfc21
File moved
obs/
dep--
mca--static/env.sh
→
obs/mca--static/env.sh
View file @
310dfc21
export
SOFTWARE_NAME
=
dep--mca--static
export
MAINTAINER_NAME
=
"Ophélie Gagnard"
export
MAINTAINER_NAME
=
Ophelie
export
MAINTAINER_EMAIL
=
ophelie.gagnard@nexedi.com
export
MAINTAINER_EMAIL
=
ophelie.gagnard@nexedi.com
export
SOFTWARE_NAME
=
mca--static
# version format: <mca>+<fluentbit-plugin>+<slapos>
export
SOFTWARE_VERSION
=
0.2h+0.1i+1.0.277
export
GIT_BRANCH_OR_COMMIT
=
1.0.277
export
PACKAGE_BUILD_DEPENDENCIES
=
"debhelper (>= 4.1.16), chrpath, wget, python (>= 2.7), python3 (>= 3.7), python3-dev (>= 3.7), golang (>= 2:1.15~1), cmake (>= 3.18)"
export
PACKAGE_BUILD_DEPENDENCIES
=
"debhelper (>= 4.1.16), chrpath, wget, python (>= 2.7), python3 (>= 3.7), python3-dev (>= 3.7), golang (>= 2:1.15~1), cmake (>= 3.18)"
export
BUILDOUT_RELATIVE_PATH
=
software/mca/dep--mca--static.cfg
export
BUILDOUT_RELATIVE_PATH
=
software/mca/dep--mca--static.cfg
export
SETUPTOOLS_VERSION
=
44.1.1
export
SETUPTOOLS_VERSION
=
44.1.1
export
ZC_BUILDOUT_VERSION
=
2.7.1+slapos01
6
export
ZC_BUILDOUT_VERSION
=
2.7.1+slapos01
9
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