Compare commits
25 Commits
develop
...
dist/ubunt
Author | SHA1 | Date |
---|---|---|
wpetit | 14151e4841 | |
wpetit | 07a5a34476 | |
wpetit | 00a300cd00 | |
wpetit | e5315fe9d0 | |
wpetit | f5ed5a746a | |
wpetit | 164377ec08 | |
wpetit | 9cdacf70a0 | |
wpetit | fb37bb0e98 | |
wpetit | 59dcb4c18a | |
wpetit | 61ef77cf16 | |
wpetit | acde7436da | |
wpetit | b3d458ebac | |
wpetit | 5284633e7f | |
wpetit | 5c77f22c26 | |
wpetit | 204d6869ec | |
wpetit | 35683a4584 | |
wpetit | 64dd215038 | |
wpetit | d8192e6953 | |
wpetit | 4d3175a25e | |
wpetit | ca7b8aac47 | |
wpetit | 971bf25f16 | |
wpetit | a2ab012c5f | |
wpetit | fb815c4d83 | |
wpetit | 88a0a5bebe | |
wpetit | f54b579ae3 |
|
@ -0,0 +1 @@
|
||||||
|
9
|
|
@ -0,0 +1,14 @@
|
||||||
|
Source: gengitkan
|
||||||
|
Section: unknown
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: William Petit <wpetit@cadoles.com>
|
||||||
|
Build-Depends: debhelper (>= 8.0.0), wget, ca-certificates, tar
|
||||||
|
Standards-Version: 3.9.4
|
||||||
|
Homepage: http://forge.cadoles.com/wpetit/gengitkan
|
||||||
|
Vcs-Git: http://forge.cadoles.com/wpetit/gengitkan.git
|
||||||
|
Vcs-Browser: http://forge.cadoles.com/wpetit/gengitkan
|
||||||
|
|
||||||
|
Package: gengitkan
|
||||||
|
Architecture: amd64
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Description: Application type "Kanboard" connectée à Gitea
|
|
@ -0,0 +1 @@
|
||||||
|
var/lib/gengitkan
|
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Application type "Kanboard" connectée à Gitea
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Environment=GENGITKAN_HTTP_PUBDIR=/usr/share/gengitkan/public
|
||||||
|
Environment=GENGITKAN_DATA_DBPATH=/var/lib/gengitkan/data.db
|
||||||
|
ExecStart=/usr/bin/gengitkan -workdir /usr/share/gengitkan -config /etc/gengitkan/server.conf
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -0,0 +1,54 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
# -*- makefile -*-
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
export DH_VERBOSE=1
|
||||||
|
|
||||||
|
GO_VERSION := 1.13.5
|
||||||
|
OS := linux
|
||||||
|
ARCH := amd64
|
||||||
|
GOPATH=$(HOME)/go
|
||||||
|
|
||||||
|
ifeq (, $(shell which go 2>/dev/null))
|
||||||
|
override_dh_auto_build: install-go
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq (, $(shell which node 2>/dev/null))
|
||||||
|
override_dh_auto_build: install-nodejs
|
||||||
|
endif
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with systemd
|
||||||
|
|
||||||
|
override_dh_auto_build: $(GOPATH)
|
||||||
|
cd client && npm install
|
||||||
|
GOPATH=$(GOPATH) PATH="$(PATH):/usr/local/go/bin:$(GOPATH)/bin" go mod vendor
|
||||||
|
GOPATH=$(GOPATH) PATH="$(PATH):/usr/local/go/bin:$(GOPATH)/bin" ARCH_TARGETS=$(ARCH) make release
|
||||||
|
|
||||||
|
$(GOPATH):
|
||||||
|
mkdir -p $(GOPATH)
|
||||||
|
|
||||||
|
install-go:
|
||||||
|
wget https://dl.google.com/go/go$(GO_VERSION).$(OS)-$(ARCH).tar.gz
|
||||||
|
tar -C /usr/local -xzf go$(GO_VERSION).$(OS)-$(ARCH).tar.gz
|
||||||
|
|
||||||
|
install-nodejs:
|
||||||
|
wget -O- https://deb.nodesource.com/setup_12.x | bash -
|
||||||
|
apt-get install -y nodejs
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
|
||||||
|
mkdir -p debian/gengitkan/usr/share/gengitkan
|
||||||
|
mkdir -p debian/gengitkan/etc/gengitkan
|
||||||
|
mkdir -p debian/gengitkan/usr/bin
|
||||||
|
|
||||||
|
cp -r release/server-$(OS)-$(ARCH)/* debian/gengitkan/usr/share/gengitkan/
|
||||||
|
|
||||||
|
mv debian/gengitkan/usr/share/gengitkan/bin/server debian/gengitkan/usr/bin/gengitkan
|
||||||
|
mv debian/gengitkan/usr/share/gengitkan/server.conf debian/gengitkan/etc/gengitkan/server.conf
|
||||||
|
|
||||||
|
install -d debian/gengitkan
|
||||||
|
|
||||||
|
override_dh_strip:
|
||||||
|
|
||||||
|
override_dh_auto_test:
|
|
@ -0,0 +1 @@
|
||||||
|
3.0 (native)
|
Loading…
Reference in New Issue