add packaging (#77307)

This commit is contained in:
Frédéric Péters 2023-05-05 06:45:24 +02:00
parent d98ba1e978
commit adfb614125
6 changed files with 72 additions and 0 deletions

44
Makefile Normal file
View File

@ -0,0 +1,44 @@
VERSION=`git describe | sed 's/^v//; s/-/./g'`
NAME = gitea-eo-custom
prefix = /usr
all:
install:
mkdir -p $(DESTDIR)$(prefix)/lib/gitlab-eo-custom/
cp -r scripts $(DESTDIR)$(prefix)/lib/gitlab-eo-custom/
mkdir -p $(DESTDIR)$(prefix)/../var/lib/gitlab/custom/
cp -r public $(DESTDIR)$(prefix)/../var/lib/gitlab/custom/
cp -r templates $(DESTDIR)$(prefix)/../var/lib/gitlab/custom/
DIST_FILES = \
Makefile \
LICENSE \
README.md \
scripts \
public \
templates
clean:
rm -rf sdist
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
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 @@
gitea-eo-custom (0-1) unstable; urgency=low
* Initial release
-- Frederic Peters <fpeters@entrouvert.com> Sun, 26 Feb 2023 12:42:38 +0100

10
debian/control vendored Normal file
View File

@ -0,0 +1,10 @@
Source: gitea-eo-custom
Maintainer: info@entrouvert.com
Section: web
Priority: optional
Build-Depends: debhelper-compat (= 12), python3-all
Standards-Version: 3.9.6
Package: gitea-eo-custom
Architecture: amd64
Description: Custom style/pages for gitea

5
debian/gitea-eo-custom.cron.d vendored Normal file
View File

@ -0,0 +1,5 @@
MAILTO=root
LANG=C.UTF-8
*/5 * * * * gitea /usr/bin/python3 /usr/lib/gitlab-eo-custom/scripts/lag.py > /var/www/html/lag.html
*/5 * * * * gitea /usr/bin/python3 /usr/lib/gitlab-eo-custom/scripts/reviews.py > /var/www/html/reviews.html

7
debian/rules vendored Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/make -f
export DEB_BUILD_OPTIONS=nostrip
#export DH_VERBOSE=1
%:
dh $@

1
debian/source/format vendored Normal file
View File

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