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
|
||||
Section: utils
|
||||
Priority: extra
|
||||
Maintainer: Adrien Beudin <beudbeud@yunohost.org>
|
||||
Build-Depends: debhelper (>=8.0.0)
|
||||
Standards-Version: 3.9.1
|
||||
Maintainer: YunoHost Contributors <contrib@yunohost.org>
|
||||
Build-Depends: debhelper (>=9)
|
||||
Standards-Version: 3.9.6
|
||||
Homepage: https://yunohost.org/
|
||||
|
||||
Package: yunohost-admin
|
||||
Architecture: all
|
||||
Homepage: http://yunohost.org/
|
||||
Conflicts: yunohost-apps-admin
|
||||
Replaces: yunohost-apps-admin
|
||||
Depends: yunohost
|
||||
Description: Yunohost admin interface
|
||||
Yunohost admin interface
|
||||
Depends: ${misc:Depends}
|
||||
, yunohost (>= 2.3.0)
|
||||
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.
|
||||
|
|
1332
debian/copyright
vendored
1332
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/
|
44
debian/postinst
vendored
44
debian/postinst
vendored
|
@ -1,13 +1,37 @@
|
|||
#!/bin/bash
|
||||
if [ ! -f /usr/share/yunohost/admin/ca.crt ];
|
||||
then
|
||||
ln -s /etc/ssl/certs/ca-yunohost_crt.pem /usr/share/yunohost/admin/ca.crt
|
||||
fi
|
||||
chown -R www-data: /usr/share/yunohost/admin
|
||||
|
||||
if [ $(lsb_release -c | awk '{print $2}') = jessie ];
|
||||
then
|
||||
service yunohost-api stop
|
||||
fi
|
||||
set -e
|
||||
|
||||
service yunohost-api restart
|
||||
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
|
||||
fi
|
||||
}
|
||||
|
||||
# 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
|
||||
|
|
11
debian/rules
vendored
11
debian/rules
vendored
|
@ -8,11 +8,18 @@
|
|||
# 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-admin
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_install:
|
||||
override_dh_auto_install:
|
||||
# Replace VERSION with current package version to prevent web browser
|
||||
# to serve old css/js files
|
||||
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