[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New package: ITP or RFP ?



Ramūnas Keliuotis <ramunas.keliuotis@nordsec.com> writes:

> Hi,
>
> Thank you for the information, I was looking through Debian guides for a while.
> Will review your given links as well.
>
> Now I need answers to questions:
> 1. Is it ok for source code to be in Github? or do I need a Salsa
> account?

If you're asking if everything can be maintained on one branch, the
answer is that it will be easier to maintain a correct Debian package if
you dedicate a branch to it.  Also, when configuring a branch it's
trivially easy to dedicate a different remote for the debian packaging
branch.  More on this later.

The three most common workflows (in no particular order) are: 1. Use
'gbp import-orig --uscan' to download a tarball of the most recent
upstream release, and merge that to the Debian packaging branch.
2. Merge git tags to the Debian packaging branch. 3. The "packaging
branch only" approach, which only has the "debian" subdir.

> 2. Do I need to create a source package? *.dsc

dpkg-buildpackage, debuild, sbuild, etc. will create this for you.

https://wiki.debian.org/Packaging/SourcePackage#The_definition_of_a_source_package

> 3. How to implement build /scripts?
> Now we are using bash scripts and preconfigured docker containers.
> But dh scripts should be used, so, how to start using them?
> I have installed Debian SID. I know that all dependencies must be there.

https://www.debian.org/doc/manuals/developers-reference/tools.html#dh-make

Your package will not have internet access when it is built, so all
dependencies must be in debian/control.

> 4. Also, we are using our own open source rust libraries
> https://github.com/NordSecurity/libtelio
> https://github.com/NordSecurity/libdrop
> Maybe there is there a Debin Rust packaging team as well?

Yes, if these are not in Debian then they will need to be packaged
first.

> Would be good to get reference to sample package - observe its build
> configuration.

I would follow the Developers Reference, use dh_make, and then compare
the results with another package.  Add "deb-src" lines to
/etc/apt/sources.list enables easy access to source with a simple
"debcheckout" or "apt source openvpn".

https://wiki.debian.org/Mentors

Have fun!
Nicholas

Attachment: signature.asc
Description: PGP signature


Reply to: