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
bea2b07a
Commit
bea2b07a
authored
Mar 11, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Generate the debian files automatically from templates.
parent
1803ffd5
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
70 additions
and
0 deletions
+70
-0
obs/generic/build-scripts/template_stage.sh
obs/generic/build-scripts/template_stage.sh
+11
-0
obs/generic/templates/debian_default/changelog.in
obs/generic/templates/debian_default/changelog.in
+5
-0
obs/generic/templates/debian_default/compat
obs/generic/templates/debian_default/compat
+1
-0
obs/generic/templates/debian_default/control.in
obs/generic/templates/debian_default/control.in
+24
-0
obs/generic/templates/debian_default/copyright
obs/generic/templates/debian_default/copyright
+1
-0
obs/generic/templates/debian_default/dirs.in
obs/generic/templates/debian_default/dirs.in
+3
-0
obs/generic/templates/debian_default/rules
obs/generic/templates/debian_default/rules
+17
-0
obs/generic/templates/debian_default/source/format
obs/generic/templates/debian_default/source/format
+1
-0
obs/generic/templates/debian_default/test.sh
obs/generic/templates/debian_default/test.sh
+2
-0
obs/generic/templates/default.dsc.in
obs/generic/templates/default.dsc.in
+5
-0
No files found.
obs/generic/build-scripts/template_stage.sh
View file @
bea2b07a
...
@@ -9,3 +9,14 @@ mkdir -p $TEMPLATE_DIR/tmp/
...
@@ -9,3 +9,14 @@ mkdir -p $TEMPLATE_DIR/tmp/
sed
$ALL_REGEX
$TEMPLATE_DIR
/buildout_with_gcc.cfg.in
>
$TEMPLATE_DIR
/tmp/buildout_with_gcc.cfg
sed
$ALL_REGEX
$TEMPLATE_DIR
/buildout_with_gcc.cfg.in
>
$TEMPLATE_DIR
/tmp/buildout_with_gcc.cfg
sed
$ALL_REGEX
$TEMPLATE_DIR
/buildout_without_gcc.cfg.in
>
$TEMPLATE_DIR
/tmp/buildout_without_gcc.cfg
sed
$ALL_REGEX
$TEMPLATE_DIR
/buildout_without_gcc.cfg.in
>
$TEMPLATE_DIR
/tmp/buildout_without_gcc.cfg
sed
$ALL_REGEX
$TEMPLATE_DIR
/Makefile.in
>
$TEMPLATE_DIR
/tmp/Makefile
sed
$ALL_REGEX
$TEMPLATE_DIR
/Makefile.in
>
$TEMPLATE_DIR
/tmp/Makefile
# debian directory
mkdir
-p
$TEMPLATE_DIR
/tmp/debian/
sed
$ALL_REGEX
$TEMPLATE_DIR
/default.dsc.in
>
$TEMPLATE_DIR
/tmp/
$SOFTWARE_AND_VERSION
.dsc
sed
$ALL_REGEX
$TEMPLATE_DIR
/debian_default/changelog.in
>
$TEMPLATE_DIR
/tmp/debian/changelog
sed
$ALL_REGEX
$TEMPLATE_DIR
/debian_default/control.in
>
$TEMPLATE_DIR
/tmp/debian/control
sed
$ALL_REGEX
$TEMPLATE_DIR
/debian_default/dirs.in
>
$TEMPLATE_DIR
/tmp/debian/dirs
cp
-r
$TEMPLATE_DIR
/debian_default/
{
compat,copyright,rules,source
}
$TEMPLATE_DIR
/tmp/debian/
# TODO: do it with "find" instead?
#find $TEMPLATE_DIR/debian_defaults/ -type f -name * -exec sed $ALL_REGEX {} + > $TEMPLATE_DIR/tmp/debian/
obs/generic/templates/debian_default/changelog.in
0 → 100644
View file @
bea2b07a
%SOFTWARE_NAME% (%COMPOUND_VERSION%) UNRELEASED; urgency=medium
* Initial release. (Closes: #XXXXXX)
-- test <test@debian> Tue, 25 Jan 2022 18:27:17 +0100
obs/generic/templates/debian_default/compat
0 → 100644
View file @
bea2b07a
10
obs/generic/templates/debian_default/control.in
0 → 100644
View file @
bea2b07a
Source: %SOFTWARE_NAME%
Maintainer: Francois Gagnard <francois.gagnard@nexedi.com>
Section: net
Priority: optional
Build-Depends: debhelper,
chrpath,
python
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: %SOFTWARE_NAME% packaging test
obs/generic/templates/debian_default/copyright
0 → 100644
View file @
bea2b07a
obs/generic/templates/debian_default/dirs.in
0 → 100644
View file @
bea2b07a
/opt/%SOFTWARE_NAME%/bin/
/opt/%SOFTWARE_NAME%/lib/
/opt/%SOFTWARE_NAME%/etc/
obs/generic/templates/debian_default/rules
0 → 100755
View file @
bea2b07a
#!/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/templates/debian_default/source/format
0 → 100644
View file @
bea2b07a
3.0 (quilt)
obs/generic/templates/debian_default/test.sh
0 → 100755
View file @
bea2b07a
#!/bin/sh
sed
"s|%SOFTWARE_NAME%|test|g"
dirs.in
obs/generic/templates/default.dsc.in
0 → 100644
View file @
bea2b07a
Format: 3.0 (native)
Source: %SOFTWARE_NAME%
Architecture: any
Version: %SOFTWARE_VERSION%
Build-Depends: debhelper (>= 4.1.16), chrpath, po-debconf, wget, python (>= 2.7)
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