diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f5d4018 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +debian/.debhelper +debian/debhelper-build-stamp +debian/files +debian/publik-imio-industrialisation +debian/publik-imio-industrialisation.substvars diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..94727cf --- /dev/null +++ b/Makefile @@ -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)) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d0d15d8 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +publik-imio-industrialisation (0.1-1) unstable; urgency=low + + * Initial packaging. + + -- Frederic Peters Mon, 22 Feb 2021 20:11:30 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3875d79 --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: publik-imio-industrialisation +Section: web +Priority: optional +Maintainer: Frédéric Péters +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 diff --git a/debian/publik-imio-industrialisation.install b/debian/publik-imio-industrialisation.install new file mode 100644 index 0000000..dfad4de --- /dev/null +++ b/debian/publik-imio-industrialisation.install @@ -0,0 +1 @@ +debian/sudo-publik-indus /etc/sudoers.d diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..955dd78 --- /dev/null +++ b/debian/rules @@ -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 $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/sudo-publik-indus b/debian/sudo-publik-indus new file mode 100644 index 0000000..03fded6 --- /dev/null +++ b/debian/sudo-publik-indus @@ -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 +