add packaging (#77307)
This commit is contained in:
parent
d98ba1e978
commit
adfb614125
|
@ -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))
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
export DEB_BUILD_OPTIONS=nostrip
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@
|
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
Loading…
Reference in New Issue