mirror of
https://github.com/YunoHost/yunohost-portal.git
synced 2024-09-03 20:06:23 +02:00
Add debian/ folder
This commit is contained in:
parent
136ad443f5
commit
65ce3f683f
5 changed files with 88 additions and 0 deletions
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
yunohost-admin (12.0) unstable; urgency=low
|
||||
|
||||
Initial commit to add debian build
|
||||
|
||||
-- Alexandre Aubin <alex.aubin@mailoo.org> Sun, 30 Jul 2023 17:30:56 +0200
|
15
debian/control
vendored
Normal file
15
debian/control
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
Source: yunohost-portal
|
||||
Section: utils
|
||||
Priority: extra
|
||||
Maintainer: YunoHost Contributors <contrib@yunohost.org>
|
||||
Build-Depends: debhelper (>=12), debhelper-compat (= 13)
|
||||
, nodejs (>=10.15.2), git, curl
|
||||
Standards-Version: 3.9.6
|
||||
Homepage: https://yunohost.org/
|
||||
|
||||
Package: yunohost-portal
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}
|
||||
, yunohost (>= 11.2)
|
||||
Description: user portal designed for yunohost
|
||||
A minimalist user portal designed to be interfaced with YunoHost.
|
1
debian/install
vendored
Normal file
1
debian/install
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.output/public/* usr/share/yunohost/portal
|
36
debian/postinst
vendored
Normal file
36
debian/postinst
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
do_configure() {
|
||||
|
||||
# Set document root permissions
|
||||
chown -R root:root /usr/share/yunohost/portal
|
||||
}
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postinst> `configure' <most-recently-configured-version>
|
||||
# * <old-postinst> `abort-upgrade' <new version>
|
||||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
|
||||
# <new-version>
|
||||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
|
||||
# <failed-install-package> <version> `removing'
|
||||
# <conflicting-package> <version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
do_configure
|
||||
;;
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
31
debian/rules
vendored
Executable file
31
debian/rules
vendored
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# Get package version
|
||||
# dpkg-parsechangelog > 1.17 could use dpkg-parsechangelog --show-field Version
|
||||
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
|
||||
|
||||
# Define temporary debian directory
|
||||
TMPDIR = $$(pwd)/debian/yunohost-portal
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_build:
|
||||
/usr/bin/curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
|
||||
/usr/bin/curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /etc/apt/trusted.gpg.d/yarn.gpg >/dev/null
|
||||
echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x bullseye main' > /etc/apt/sources.list.d/nodesource.list
|
||||
echo "deb [signed-by=/etc/apt/trusted.gpg.d/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
|
||||
/usr/bin/apt update
|
||||
/usr/bin/apt install nodejs yarn -y
|
||||
yarn install
|
||||
yarn build
|
||||
|
||||
|
||||
override_dh_clean:
|
||||
dh_clean
|
||||
rm -rf node_modules
|
||||
rm -rf .output
|
Loading…
Reference in a new issue