Initial commit

This commit is contained in:
root
2020-03-20 02:25:33 +01:00
commit d5d35b3e0f
11 changed files with 131 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
turnserverauth (1.0-1) stable; urgency=medium
* Initial release.
-- Benoit LORAND <benoit.lorand@blorand.org> Fri, 20 Mar 2020 01:40:00 +0100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
10

17
debian/control vendored Normal file
View File

@ -0,0 +1,17 @@
Source: turnserverauth
Maintainer: Benoit LORAND <benoit.lorand@blorand.fr>
Section: misc
Priority: optional
Standards-Version: 3.9.2
Build-Depends: debhelper (>= 9)
Package: turnserverauth
Architecture: all
Depends: ${shlibs:Depends},
${misc:Depends},
nodejs,
npm
Suggests: nginx
Section: BLORAND
Priority: optional
Description: WebService pour distribuer des authentifications éphémères TURN

0
debian/copyright vendored Normal file
View File

28
debian/postinst vendored Executable file
View File

@ -0,0 +1,28 @@
#! /bin/bash
set -e
case "$1" in
configure)
npm --prefix /opt/turnserverauth/ install hmacsha1
systemctl daemon-reload
systemctl --now enable turnserverauth.service
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0

9
debian/rules vendored Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_install:
install -D -m 0644 turnserverauth.js $$(pwd)/debian/turnserverauth/opt/turnserverauth/turnserverauth.js
install -D -m 0644 turnserverauth $$(pwd)/debian/turnserverauth/etc/default/turnserverauth
install -D -m 0644 turnserverauth.service $$(pwd)/debian/turnserverauth/lib/systemd/system/turnserverauth.service

1
debian/source/format vendored Normal file
View File

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