Re: Debian package examples for Java software

Mechtilde Stehmann <[email protected]> Sat, 14 Sep 2024 21:49:44 +0200
Newsgroups gmane.linux.debian.devel.java
Message-ID <[email protected]>
Hello Peter,

Then I think

https://www.debian.org/devel/join/newmaint.en.html

is a good starting point.

Regards

Am 14.09.24 um 21:25 schrieb Peter Bittner:
>> If you tell us what you want to package, we can tell you a good example
>> out of more than 50.000 packages
> 
> I'm really looking for generic examples. My motivation is using a
> standard, widespread convention or otherwise popular tooling for
> deploying software (which - at work - is not open source). So that new
> developers don't need to learn "the process". When you see a "debian"
> folder in a repository you probably already guess that the project
> will build a .deb package. When you see a .deb package you can easily
> guess how it will be installed.
> 
> One of the softwares is a Java Web application (delivered to us as a
> .jar and some accompanying files) that is deployed into a JBoss
> application server preinstalled on the host. The other is actually not
> even Java software, it's a bunch of shell scripts and two Python CLI
> applications that are installed from an internal PyPI index. So, it's
> all about copying files somewhere and performing installation
> activities that are encapsulated in the .deb file.
> 
>>> location where it has write access. The scenario is, I have users that
>>> must install the software on a managed machine. The system
>>> administrators manage the operating system as such, the users install
>>> and run their software in user space.
>>
>> As far as I know NO WAY to do so.
> 
> Let me mention that for my use case it's sufficient that we assume
> there are no dependencies, or that if we have unresolved dependencies
> (e.g. most notably a JRE) the installation process aborts brutally.
> 
> Doing some research I found a few interesting discussions:
> - https://askubuntu.com/questions/339/how-can-i-install-a-package-without-root-access
> - https://askubuntu.com/questions/193695/installing-packages-into-local-directory
> 
> The two suggested solutions are using `--force-not-root` or simply
> unpacking the .deb archive file:
> 
>      dpkg -i --force-not-root --root=$HOME package.deb
>      ar p package.deb data.tar.xz | tar xJv --strip-components=2 -f -
> 
> The latter will certainly not run pre- or post-install scripts, which
> is one of the reasons I want to do the packaging, though. (Encapsulate
> the installation logic in the installation package itself!)
> 
> Now I would need a simple packaging setup to verify that those
> commands actually work for my use case.
> 
> Peter
> 

-- 
Mechtilde Stehmann
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F
OpenPGP_signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE8ON/Pch6SZgomTnn8od7uhQarX8FAmbl6NgACgkQ8od7uhQa
rX9Odw//bqkyl4gGbR2iIZzHcVIfRuDfH89+SVNQ3X3pqUS2WM4oekgla6eMnsDx
oevxm1pBR+LyLHlyIFFMFkmYfXdcJewnL6967RcPV4+gynU7xXniHD/6aihOEZjD
P7aRJVwQb9P+53DGxYhd0lkoK/cOS8nYCJO6rhrGLi/bVi04bjD3T7GdV1Cct6Ns
3XKYOQ8VDjqhNLOS7uhS9WaGZFsJKk1akUQSawaJ+aL9UPTxA8K6P0ADxP7PSAQe
cdJufkoUfcKhwN2pAcka/ppWmt/cWj5x8yLRRQENs59S3mqjzd0LjGYdrc77JGVg
DBybrAZ9sQNVYYS3savAXaRRnfrFaRUwX8LX/L/kjeqmP9kFSNfRTu2XLTaCyY1e
OUw3NTPxmDBEuW37/SjeTBKvRa1baNgpQMblrxv9dagezG4h7eD6E2dQTSuZI3Nn
1fHGmy1wg3MIhLslPoNOHVtFbyQg6lMNZ6Ey6nU7s9GBfoxDFw9dCMVIm4ikoGMm
sdQ8ARoG4bJ0nJ44O35zzrqCpvbIxC8/3Ncr4CzR76SSVrF3nLedCt7bOh/rmRst
mBX5oMZmdFvFW67bXNNaLoH8AE9miV+zMe/m0sID0m99dnTOdIi+b1GPDi7X2n2e
WNZmmKEyAalRwvgvNrKJFGZv9MAxi7XH+vaSxOg/VbuK2XL6nRY=
=Ywmh
-----END PGP SIGNATURE-----