Commit bea2b07a authored by Ophélie Gagnard's avatar Ophélie Gagnard

WIP: Generate the debian files automatically from templates.

parent 1803ffd5
......@@ -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_without_gcc.cfg.in > $TEMPLATE_DIR/tmp/buildout_without_gcc.cfg
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/
%SOFTWARE_NAME% (%COMPOUND_VERSION%) UNRELEASED; urgency=medium
* Initial release. (Closes: #XXXXXX)
-- test <test@debian> Tue, 25 Jan 2022 18:27:17 +0100
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
/opt/%SOFTWARE_NAME%/bin/
/opt/%SOFTWARE_NAME%/lib/
/opt/%SOFTWARE_NAME%/etc/
#!/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
#!/bin/sh
sed "s|%SOFTWARE_NAME%|test|g" dirs.in
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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment