georchestra / georchestra-cas-server

Apache License 2.0
0 stars 3 forks source link

introducing a gradle plugin to be able to build a debian package #2

Closed pmauduit closed 2 years ago

pmauduit commented 2 years ago

Still missing: configuration of the different variables: https://github.com/nebula-plugins/gradle-ospackage-plugin/wiki/Deb-Plugin#task-usage

pmauduit commented 2 years ago

Here is the current status of the gradle plugin integration:

% ./gradlew clean deb
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 12s
10 actionable tasks: 9 executed, 1 up-to-date

% find . -name *.deb
./build/distributions/georchestra-cas_99.debian-packaging.202201260410~6755576_all.deb

% dpkg-deb --contents ./build/distributions/georchestra-cas_99.debian-packaging.202201260410~6755576_all.deb
drwxr-xr-x pmauduit/0        0 2022-01-26 16:10 ./usr/
drwxr-xr-x pmauduit/0        0 2022-01-26 16:10 ./usr/share/
drwxr-xr-x pmauduit/0        0 2022-01-26 16:10 ./usr/share/lib/
drwxr-xr-x pmauduit/0        0 2022-01-26 16:10 ./usr/share/lib/georchestra-cas/
-rw-r--r-- pmauduit/0 109546716 2022-01-26 16:10 ./usr/share/lib/georchestra-cas/cas.war
drwxr-xr-x pmauduit/0         0 2022-01-26 16:10 ./etc/
drwxr-xr-x pmauduit/0         0 2022-01-26 16:10 ./etc/georchestra/
-rw-r--r-- pmauduit/0      3299 2022-01-26 16:10 ./etc/georchestra/cas.properties
drwxr-xr-x pmauduit/0         0 2022-01-26 16:10 ./etc/georchestra/log4j/
-rw-r--r-- pmauduit/0      3016 2022-01-26 16:10 ./etc/georchestra/log4j/log4j.xml
lrw-r--r-- root/root          0 2022-01-26 16:10 ./usr/share/lib/georchestra-cas/cas-generic.war -> /usr/share/lib/georchestra-cas/cas.war

maybe the permissions / ownership are not perfect right now

pmauduit commented 2 years ago

Also we are using the georchestra/datadir git repository on master, which does not include the expected configuration for this version of CAS.