add packaging

This commit is contained in:
Frédéric Péters 2021-02-26 12:28:16 +01:00
parent 9872cf7347
commit a2ec664595
9 changed files with 97 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
debian/.debhelper
debian/debhelper-build-stamp
debian/files
debian/publik-imio-industrialisation
debian/publik-imio-industrialisation.substvars

48
Makefile Normal file
View File

@ -0,0 +1,48 @@
VERSION=`git describe | sed 's/^v//; s/-/./g' `
NAME="publik-imio-industrialisation"
prefix = /usr
clean:
rm -rf sdist
DIST_FILES = \
Makefile \
authentic \
combo \
hobo \
passerelle \
wcs
dist: clean
-mkdir sdist
rm -rf sdist/$(NAME)-$(VERSION)
mkdir -p sdist/$(NAME)-$(VERSION)
for i in $(DIST_FILES); do \
cp -R "$$i" sdist/$(NAME)-$(VERSION); \
done
install:
mkdir -p $(DESTDIR)$(prefix)/lib/python3/dist-packages/authentic2/management/commands/
-cp authentic/*.py $(DESTDIR)$(prefix)/lib/python3/dist-packages/authentic2/management/commands/
mkdir -p $(DESTDIR)$(prefix)/lib/python3/dist-packages/combo/data/management/commands/
cp combo/*.py $(DESTDIR)$(prefix)/lib/python3/dist-packages/combo/data/management/commands/
mkdir -p $(DESTDIR)$(prefix)/lib/python3/dist-packages/hobo/environment/management/commands/
cp hobo/*.py $(DESTDIR)$(prefix)/lib/python3/dist-packages/hobo/environment/management/commands/
mkdir -p $(DESTDIR)$(prefix)/lib/python3/dist-packages/passerelle/base/management/commands/
-cp passerelle/*.py $(DESTDIR)$(prefix)/lib/python3/dist-packages/passerelle/base/management/commands/
mkdir -p $(DESTDIR)$(prefix)/lib/python3/dist-packages/wcs/ctl/
cp wcs/*.py $(DESTDIR)$(prefix)/lib/python3/dist-packages/wcs/ctl/
dist-bzip2: dist
-mkdir sdist
cd sdist && tar cfj ../sdist/$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
version:
@(echo $(VERSION))
name:
@(echo $(NAME))
fullname:
@(echo $(NAME)-$(VERSION))

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
publik-imio-industrialisation (0.1-1) unstable; urgency=low
* Initial packaging.
-- Frederic Peters <fpeters@entrouvert.com> Mon, 22 Feb 2021 20:11:30 +0100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
10

12
debian/control vendored Normal file
View File

@ -0,0 +1,12 @@
Source: publik-imio-industrialisation
Section: web
Priority: optional
Maintainer: Frédéric Péters <fpeters@entrouvert.com>
Build-Depends: debhelper (>= 10)
Standards-Version: 3.9.4
Homepage: https://git.entrouvert.org/publik-imio-industrialisation.git
Package: publik-imio-industrialisation
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Publik iMio Industrialiastion Commands

View File

@ -0,0 +1 @@
debian/sudo-publik-indus /etc/sudoers.d

13
debian/rules vendored Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

11
debian/sudo-publik-indus vendored Normal file
View File

@ -0,0 +1,11 @@
hobo ALL=(wcs)NOPASSWD:/usr/bin/wcsctl
hobo ALL=(wcs)NOPASSWD:/usr/bin/wcs-manage
hobo ALL=(authentic-multitenant)NOPASSWD:/usr/bin/authentic2-multitenant-manage
hobo ALL=(combo)NOPASSWD:/usr/bin/combo-manage
hobo ALL=(passerelle)NOPASSWD:/usr/bin/passerelle-manage
hobo ALL=(fargo)NOPASSWD:/usr/bin/fargo-manage
hobo ALL=(welco)NOPASSWD:/usr/bin/welco-manage
hobo ALL=(chrono)NOPASSWD:/usr/bin/chrono-manage
hobo ALL=(bijoe)NOPASSWD:/usr/bin/bijoe-manage
hobo ALL=(hobo)NOPASSWD:/usr/bin/hobo-manage