More work on Debian packaging
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
Alias /yms /usr/share/yms/webgui
|
||||||
|
|
||||||
|
<Directory /usr/share/yms/webgui>
|
||||||
|
AllowOverride None
|
||||||
|
Require all granted
|
||||||
|
|
||||||
|
<FilesMatch "\.inc$">
|
||||||
|
Require all denied
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
|
DirectoryIndex index.php
|
||||||
|
</Directory>
|
||||||
@@ -20,6 +20,7 @@ INSERT INTO settings (userid, sno, valint) VALUES
|
|||||||
|
|
||||||
/* setting descriptions */
|
/* setting descriptions */
|
||||||
INSERT INTO settings (userid, sno, valstr) VALUES
|
INSERT INTO settings (userid, sno, valstr) VALUES
|
||||||
|
(-1, 0, 'database schema version'),
|
||||||
(-1, 1, 'vessel id'),
|
(-1, 1, 'vessel id'),
|
||||||
(-1, 2, 'date format'),
|
(-1, 2, 'date format'),
|
||||||
(-1, 3, 'user menu'),
|
(-1, 3, 'user menu'),
|
||||||
|
|||||||
Vendored
+2
@@ -7,4 +7,6 @@ db_input high yms/db-name || true
|
|||||||
db_input high yms/db-user || true
|
db_input high yms/db-user || true
|
||||||
db_input high yms/db-password || true
|
db_input high yms/db-password || true
|
||||||
|
|
||||||
|
db_input high yms/webgui || true
|
||||||
|
|
||||||
db_go
|
db_go
|
||||||
|
|||||||
Vendored
+7
-1
@@ -12,11 +12,17 @@ Package: yms
|
|||||||
Architecture: all
|
Architecture: all
|
||||||
Depends:
|
Depends:
|
||||||
mariadb-server,
|
mariadb-server,
|
||||||
|
httpd,
|
||||||
python3,
|
python3,
|
||||||
python3-gi,
|
python3-gi,
|
||||||
gir1.2-gtk-3.0,
|
gir1.2-gtk-3.0,
|
||||||
gir1.2-rsvg-2.0,
|
gir1.2-rsvg-2.0,
|
||||||
python3-mysqldb,
|
python3-mysqldb,
|
||||||
python3-bcrypt
|
python3-bcrypt,
|
||||||
|
php (>= 8.0),
|
||||||
|
php-mysql,
|
||||||
|
php-xml,
|
||||||
|
gettext,
|
||||||
|
mupdf-tools
|
||||||
Description: Yacht Management Software
|
Description: Yacht Management Software
|
||||||
Yacht management software with native GTK GUI and web interface.
|
Yacht management software with native GTK GUI and web interface.
|
||||||
|
|||||||
Vendored
+3
@@ -26,3 +26,6 @@ yms.desktop usr/share/applications/
|
|||||||
|
|
||||||
# Idesktop link file
|
# Idesktop link file
|
||||||
yms.lnk usr/share/yms/
|
yms.lnk usr/share/yms/
|
||||||
|
|
||||||
|
# Webserver
|
||||||
|
config/apache/yms.conf /etc/apache2/conf-available/
|
||||||
|
|||||||
Vendored
+6
@@ -27,4 +27,10 @@ else
|
|||||||
mariadb "${DB_NAME}" < /usr/share/yms/db/minimal.sql
|
mariadb "${DB_NAME}" < /usr/share/yms/db/minimal.sql
|
||||||
echo "Database schema initialized."
|
echo "Database schema initialized."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
db_get yms/webgui
|
||||||
|
if [ "$RET" = "true" ]; then
|
||||||
|
# use web gui, depends on available web server
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Vendored
+1
@@ -17,6 +17,7 @@ override_dh_install:
|
|||||||
install -D -m 0755 debian/yms-launcher debian/yms/usr/bin/yms
|
install -D -m 0755 debian/yms-launcher debian/yms/usr/bin/yms
|
||||||
dh_install
|
dh_install
|
||||||
sed -i 's#@PREFIX@#/usr#g' debian/yms/usr/share/applications/yms.desktop
|
sed -i 's#@PREFIX@#/usr#g' debian/yms/usr/share/applications/yms.desktop
|
||||||
|
sed -i 's#@PREFIX@#/usr#g' debian/yms/usr/share/yms/yms.lnk
|
||||||
|
|
||||||
# Installation is handled by debian/install
|
# Installation is handled by debian/install
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
|
|||||||
Vendored
+9
@@ -14,3 +14,12 @@ Template: yms/db-password
|
|||||||
Type: password
|
Type: password
|
||||||
Description: Web GUI database password:
|
Description: Web GUI database password:
|
||||||
Please enter the password for the YMS web interface database user.
|
Please enter the password for the YMS web interface database user.
|
||||||
|
|
||||||
|
Template: yms/webgui
|
||||||
|
Type: boolean
|
||||||
|
Default: false
|
||||||
|
Description: Enable the YMS web interface?
|
||||||
|
The YMS package includes a web interface that can be served
|
||||||
|
by a web server.
|
||||||
|
.
|
||||||
|
Do you want to enable the web interface?
|
||||||
|
|||||||
Reference in New Issue
Block a user