Hello,
I'm acutally working on creating a debian package for ubuntu.
To build the package I execute the following commands (with the content of the attached file in /home/joachim - somehow the file can't be attached to this message. But I can send it to you via email.)
# pwd
/home/joachim
# dpkg-deb --build openpetraorg-mono-0.2.10.0/debian
dpkg-deb: Paket »openpetraorg-mono« is built in »openpetraorg-mono-0.2.10.0/debian.deb«.
# lintian openpetraorg-mono-0.2.10.0/debian.deb
The problem that actually comes up is about where to install the openpetra-files.
Normally a user program would be installed to /usr/bin/openpetraorg/
According to lintian (and the debian policy) this folder must not have any sub-folders.
So where should then be put all the dlls?
Another solution would be putting the dlls in /usr/lib and the images in /usr/share/openpetraorg.
But then the program wouldn't find it's files any more.
I noticed that on the current OpenPetra.build some changes were made. bzr.openpetra.org:8088/loggerhea ... etra.build
The section "Todo on server" would be what the debian package installer would do?!
If I try to install openpetra into /usr/local/openpetraorg - as indicated in OpenPetra.build - I get the following lintian-messages:
...
openpetraorg/OrgNameWithoutSpace
W: openpetraorg: executable-not-elf-or-script usr/local/openpetraorg/OrgNameWithoutSpace/bin30/Ict.Petra.Client.MCommon.verification.dll
W: openpetraorg: executable-not-elf-or-script usr/local/openpetraorg/OrgNameWithoutSpace/bin30/Ict.Petra.Shared.dll
W: openpetraorg: executable-not-elf-or-script usr/local/openpetraorg/OrgNameWithoutSpace/bin30/Ict.Petra.Server.app.WebService.dll
...
E: openpetraorg: file-in-usr-local usr/local/openpetraorg/OrgNameWithoutSpace/bin30/ExcelLibrary.dll
W: openpetraorg: file-in-unusual-dir usr/local/openpetraorg/OrgNameWithoutSpace/bin30/ExcelLibrary.dll
E: openpetraorg: file-in-usr-local usr/local/openpetraorg/OrgNameWithoutSpace/bin30/ExportDataProgress.exe
W: openpetraorg: file-in-unusual-dir usr/local/openpetraorg/OrgNameWithoutSpace/bin30/ExportDataProgress.exe
...
What would you suggest?
Another question that I have is about how to backup the user-db.
In line 58 of bzr.openpetra.org:8088/loggerhea ... dalone.iss it says "; actual db will be copied to the user's userappdata directory". Where does this happen?
Would with debian package manager needed the database to be copied to a backup folder and after the (re)installation/update-process copied back?
Greetings
Joachim