Project

General

Profile

Issue #3344

Strongswan debian package generation

Added by Jean-Luc Jordan about 2 months ago. Updated about 2 months ago.

Status:
Feedback
Priority:
Low
Assignee:
-
Category:
-
Affected version:
5.8.1
Resolution:

Description

Hi,

Is there any documentation about the generation of strongswan debian package please ?
I wish generate a strongswan 5.8.1 debian package. I am working on Debian Buster release.

After the installation of the strongswan 5.8.1, I execute the command
"strongswan/packages/strongswan/sudo make clean;sudo make"
But there is an error:
"mv ../../strongswan-5.0.1dr1.tar.gz build/strongswan-5.0.1dr1.tar.gz
no file"
Indeed there is the file ../../strongswan-5.8.1.tar.gz but no file ../../strongswan-5.0.1dr1.tar.gz.
If I have understood, the files "strongswan/packages/strongswan/Makefile" and "strongswan/packages/strongswan/debian/changelog"
have to be updated with the correct version number (VERSION:=5.8.1 instead of VERSION:=5.0.1dr1 for Makefile
and "strongswan (5.8.1)" instead of "strongswan (5.0.1dr1)").
Is it correct ?
After I relaunch the command make,
there is an error
"Unmet build dependencies: libnm-glib-dev (>= 0.9) libmysqlclient-dev."
I am working with Debian Buster release.
And there is no package libnm-glib-dev and libmysqlclient-dev.
I assume that the correct packages are libnm-dev and libmariadbclient-dev
to be changed in the file "strongswan/packages/strongswan/debian/control".
Is it correct ?
With this update, there is an error in the signature step.
To specify no signature, I have updated the file "strongswan/packages/strongswan/Makefile"
with the option "-us -uc" of the command "debuild -S".
Is it correct ?
Finally if I relaunch the Makefile,
it is finished with the generation of the file build/strongswan_5.8.1.dsc.
But it is not a debian package, it is a source package.
Is it correct?

Thanks in advance for your help,
Kind Regards,
Jean-Luc J

Associated revisions

Revision 17fc6234 (diff)
Added by Tobias Brunner about 1 month ago

Remove obsolete packages directory

These Debian package sources have not been updated for years and are
severely out-of-date. Since the Debian packages are properly
maintained nowadays, we don't have to provide our own package sources
to serve as examples.

References #3344.

History

#1 Updated by Tobias Brunner about 2 months ago

  • Status changed from New to Feedback

Is there any documentation about the generation of strongswan debian package please ?

Not that I'm aware. But I'm sure you'll find general information in the Debian docs.

After the installation of the strongswan 5.8.1, I execute the command
"strongswan/packages/strongswan/sudo make clean;sudo make"

make? Where exactly did you get these sources? Did you have a look at the Makefile?

But there is an error:
"mv ../../strongswan-5.0.1dr1.tar.gz build/strongswan-5.0.1dr1.tar.gz
no file"

5.0.1? Where does that come from?

If I have understood, the files "strongswan/packages/strongswan/Makefile" and "strongswan/packages/strongswan/debian/changelog"
have to be updated with the correct version number (VERSION:=5.8.1 instead of VERSION:=5.0.1dr1 for Makefile

Really, where are these files from?

"Unmet build dependencies: libnm-glib-dev (>= 0.9) libmysqlclient-dev."

There are build dependencies for the package (as it will build many plugins etc.). If you don't need these, modify the rules file to disable the features and remove the respective build dependencies from the control file. It's usually also helpful to use something like sbuild to build the packages in a separate chroot environment.

And there is no package libnm-glib-dev and libmysqlclient-dev.

You are probably working with very old package sources (would explain the 5.0.1). See here for current information about the packages.

Is it correct?

Probably not. Refer to the Debian docs.

Anyway, the question is, why not just use the existing Debian packages?

#2 Updated by Jean-Luc Jordan about 2 months ago

Hi Tobias,

Thanks for your answer.
As I am using a specific configuration and version of strongswan,
I need to generate my own strongswan debian package.

I thought that Strongswan manages its debian package in the directory
https://github.com/strongswan/strongswan/tree/master/packages/strongswan
and a strongswan document concerning the generation of the strongswan debian package could be available
from that directory.

But if I have understood the only available document is the debian package manual.

Then what is the aim of the following directory if it is not used to generate in local a strongswan debian package ?
https://github.com/strongswan/strongswan/tree/master/packages/strongswan

Kind Regards,
Jean-Luc J

#3 Updated by Tobias Brunner about 2 months ago

I thought that Strongswan manages its debian package in the directory
https://github.com/strongswan/strongswan/tree/master/packages/strongswan

Ah, I see. These have not been maintained for years.

Then what is the aim of the following directory if it is not used to generate in local a strongswan debian package ?

I guess these files served as examples back when they were added over decade ago. But there really isn't any reason for them to exist anymore. Sorry for the confusion, I'll remove them soon.

Also available in: Atom PDF