Browse Source

Ajout fichiers pour packaging debian

develop
William Petit 2 years ago
parent
commit
887896e221
7 changed files with 65 additions and 0 deletions
  1. 15
    0
      Makefile
  2. 6
    0
      configure
  3. 1
    0
      debian/compat
  4. 14
    0
      debian/control
  5. 11
    0
      debian/marang.service
  6. 17
    0
      debian/rules
  7. 1
    0
      debian/source/format

+ 15
- 0
Makefile View File

@@ -0,0 +1,15 @@
1
+DESTDIR=./
2
+INSTALL_LOCATION=$(DESTDIR)/opt/marang
3
+
4
+build:
5
+	npm install --production
6
+
7
+install:
8
+	mkdir -p $(INSTALL_LOCATION)
9
+	cp -r handlers $(INSTALL_LOCATION)/
10
+	cp -r bin $(INSTALL_LOCATION)/
11
+	cp -r client $(INSTALL_LOCATION)/
12
+	cp -r lib $(INSTALL_LOCATION)/
13
+	cp -r node_modules $(INSTALL_LOCATION)/
14
+	cp package.json $(INSTALL_LOCATION)/
15
+	cp app.js $(INSTALL_LOCATION)/

+ 6
- 0
configure View File

@@ -0,0 +1,6 @@
1
+#!/usr/bin/env bash
2
+
3
+apt-get update
4
+apt-get install --yes --no-install-recommends curl ca-certificates
5
+curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
6
+apt-get install --yes nodejs

+ 1
- 0
debian/compat View File

@@ -0,0 +1 @@
1
+9

+ 14
- 0
debian/control View File

@@ -0,0 +1,14 @@
1
+Source: marang
2
+Section: unknown
3
+Priority: optional
4
+Maintainer: William Petit <wpetit@cadoles.com>
5
+Build-Depends: debhelper (>= 8.0.0), dh-systemd (>= 1.5)
6
+Standards-Version: 3.9.4
7
+Homepage:
8
+Vcs-Git: https://forge.cadoles.com/Cadoles/Marang.git
9
+Vcs-Browser: https://forge.cadoles.com/Cadoles/Marang
10
+
11
+Package: marang
12
+Architecture: amd64
13
+Description: Serveur de webhook
14
+Depends: nodejs (>= 6.10.0), init-system-helpers (>= 1.22)

+ 11
- 0
debian/marang.service View File

@@ -0,0 +1,11 @@
1
+[Unit]
2
+Description=Marang - Webhooks server
3
+After=network-online.target
4
+
5
+[Service]
6
+Type=simple
7
+ExecStart=/usr/bin/node /opt/marang/app.js
8
+Restart=Always
9
+
10
+[Install]
11
+WantedBy=multi-user.target

+ 17
- 0
debian/rules View File

@@ -0,0 +1,17 @@
1
+#!/usr/bin/make -f
2
+# -*- makefile -*-
3
+
4
+# Uncomment this to turn on verbose mode.
5
+export DH_VERBOSE=1
6
+
7
+%:
8
+	dh $@ --with systemd
9
+
10
+override_dh_makeshlibs:
11
+	# Disabled
12
+
13
+override_dh_shlibdeps:
14
+	# Disabled
15
+
16
+override_dh_strip:
17
+	# Disabled

+ 1
- 0
debian/source/format View File

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

Loading…
Cancel
Save