mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Update and review Debian packaging
This commit is contained in:
parent
5895dcdcce
commit
fd76587ba0
7 changed files with 732 additions and 679 deletions
2
debian/compat
vendored
2
debian/compat
vendored
|
@ -1 +1 @@
|
||||||
8
|
9
|
||||||
|
|
20
debian/control
vendored
20
debian/control
vendored
|
@ -1,15 +1,21 @@
|
||||||
Source: yunohost-admin
|
Source: yunohost-admin
|
||||||
Section: utils
|
Section: utils
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Maintainer: Adrien Beudin <beudbeud@yunohost.org>
|
Maintainer: YunoHost Contributors <contrib@yunohost.org>
|
||||||
Build-Depends: debhelper (>=8.0.0)
|
Build-Depends: debhelper (>=9)
|
||||||
Standards-Version: 3.9.1
|
Standards-Version: 3.9.6
|
||||||
|
Homepage: https://yunohost.org/
|
||||||
|
|
||||||
Package: yunohost-admin
|
Package: yunohost-admin
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Homepage: http://yunohost.org/
|
|
||||||
Conflicts: yunohost-apps-admin
|
Conflicts: yunohost-apps-admin
|
||||||
Replaces: yunohost-apps-admin
|
Replaces: yunohost-apps-admin
|
||||||
Depends: yunohost
|
Depends: ${misc:Depends}
|
||||||
Description: Yunohost admin interface
|
, yunohost (>= 2.3.0)
|
||||||
Yunohost admin interface
|
Description: web administration interface for yunohost
|
||||||
|
YunoHost aims to make self-hosting accessible to everyone. It configures
|
||||||
|
an email, Web and IM server alongside a LDAP base. It also provides
|
||||||
|
facilities to manage users, domains, apps and so.
|
||||||
|
.
|
||||||
|
This package contains a JavaScript web client for the YunoHost API which
|
||||||
|
allows to administrate the server.
|
||||||
|
|
990
debian/copyright
vendored
990
debian/copyright
vendored
File diff suppressed because it is too large
Load diff
1
debian/install
vendored
1
debian/install
vendored
|
@ -1 +0,0 @@
|
||||||
src/* /usr/share/yunohost/admin/
|
|
42
debian/postinst
vendored
42
debian/postinst
vendored
|
@ -1,13 +1,37 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if [ ! -f /usr/share/yunohost/admin/ca.crt ];
|
|
||||||
then
|
set -e
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
# make the CA available from the web interface
|
||||||
|
if [ ! -f /usr/share/yunohost/admin/ca.crt ]; then
|
||||||
ln -s /etc/ssl/certs/ca-yunohost_crt.pem /usr/share/yunohost/admin/ca.crt
|
ln -s /etc/ssl/certs/ca-yunohost_crt.pem /usr/share/yunohost/admin/ca.crt
|
||||||
fi
|
fi
|
||||||
chown -R www-data: /usr/share/yunohost/admin
|
}
|
||||||
|
|
||||||
if [ $(lsb_release -c | awk '{print $2}') = jessie ];
|
# summary of how this script can be called:
|
||||||
then
|
# * <postinst> `configure' <most-recently-configured-version>
|
||||||
service yunohost-api stop
|
# * <old-postinst> `abort-upgrade' <new version>
|
||||||
fi
|
# * <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
|
||||||
|
|
||||||
service yunohost-api restart
|
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
|
||||||
|
|
11
debian/rules
vendored
11
debian/rules
vendored
|
@ -8,11 +8,18 @@
|
||||||
# dpkg-parsechangelog > 1.17 could use dpkg-parsechangelog --show-field Version
|
# dpkg-parsechangelog > 1.17 could use dpkg-parsechangelog --show-field Version
|
||||||
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
|
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
|
||||||
|
|
||||||
|
# Define temporary debian directory
|
||||||
|
TMPDIR = $$(pwd)/debian/yunohost-admin
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
override_dh_install:
|
override_dh_auto_install:
|
||||||
# Replace VERSION with current package version to prevent web browser
|
# Replace VERSION with current package version to prevent web browser
|
||||||
# to serve old css/js files
|
# to serve old css/js files
|
||||||
sed -i 's/VERSION/$(DEBVERS)/g' src/index.html
|
sed -i 's/VERSION/$(DEBVERS)/g' src/index.html
|
||||||
dh_install
|
|
||||||
|
# Install source files and set permissions
|
||||||
|
mkdir -p $(TMPDIR)/usr/share/yunohost
|
||||||
|
cp -r src $(TMPDIR)/usr/share/yunohost/admin
|
||||||
|
chown -R www-data $(TMPDIR)/usr/share/yunohost/admin
|
||||||
|
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3.0 (native)
|
Loading…
Add table
Reference in a new issue