Re: [Openvpn-users] Debian Jessie repository ?

2015-12-20 Thread Samuli Seppänen
Hi,

> My intention is to learn how to build OpenVPN for Debian/Ubuntu from source 
> and who is better placed to show me the method except you.

A good starting place for learning Debian packaging is this:



You should also be familiar with sbuild and schroot:





Without some basic knowledge of these technologies/tools you won't get 
very far. So start by reading the above and doing some simpler things 
like creating a small Debian package manually. If you jump right into 
sbuild_wrapper and you encounter any problems - which is very likely - 
you will be ill-equipped to deal with it. Learning all the stuff above 
will take quite a bit of time, so better be ready for it :).

> I have a question for you: What exactly are Debian control files that you had 
> mentioned in one of your earlier posts? You do not provide a definition of 
> the term in your guide to the packaging/build system on GitHub.

This is explained in the above articles. "Control" files is probably a 
misnomer, because there's only one "control" file. Perhaps "packaging 
files" would be a better name. In any case, here they are for Debian Jessie:



Most of the distros I build for have a (slightly) different set of these 
files. I tend to take whatever is in the distribution's own repository 
and adapt it slightly, instead of reinventing the wheel.

>> If you setup your own sbuild_wrapper instance, I suggest basing it on Debian 
>> 8 or a very recent Ubuntu version (15.10). This helps avoid issues with 
>> missing (pre-)build dependencies on the build rig
>> itself.
>
> Would you like to add the above advice to your guide on GitHub?

You make too much sense. Added.

-- 
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

--
___
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users


Re: [Openvpn-users] Debian Jessie repository ?

2015-12-18 Thread Sebastian Rubenstein
>Sent: Thursday, December 17, 2015 at 5:38 AM
>From: "Samuli Seppänen" <sam...@openvpn.net>
>To: "Florent B" <flor...@coppint.com>, openvpn-users@lists.sourceforge.net
>Subject: Re: [Openvpn-users] Debian Jessie repository ?
>
>I'm the one who builds the official Debian/Ubuntu packages for OpenVPN.

Thanks for your effort, Samuli, and also for letting us know that you're 
responsible for it.

>I'll see if I could produce packages the upcoming Friday. I suspect I
>can just borrow the control files from Debian and do a rebuild.

May I suggest that instead of building and rebuilding packages for Debian and 
Ubuntu yourself, why don't you teach us how to do it, that is, show us how to 
build reproducible versions from source. After all both Debian and Ubuntu are 
free and open source. In this way you free yourself from having to do such a 
task and the time that you save can be better spent on other projects.

What do you think?

**Quote attributed to Maimonides: Give a man a fish and you feed him for a day; 
teach a man to fish and you feed him for a lifetime.**

Regards.

Sebastien R.

--
___
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users


Re: [Openvpn-users] Debian Jessie repository ?

2015-12-18 Thread debbie10t
Hi
- Original Message - 
From: "Sebastian Rubenstein" <asdf123...@gmx.com>
To: ""Samuli Seppänen"" <sam...@openvpn.net>
Cc: <openvpn-users@lists.sourceforge.net>
Sent: Friday, December 18, 2015 9:49 AM
Subject: Re: [Openvpn-users] Debian Jessie repository ?


> >Sent: Thursday, December 17, 2015 at 5:38 AM
>>From: "Samuli Seppänen" <sam...@openvpn.net>
>>To: "Florent B" <flor...@coppint.com>, openvpn-users@lists.sourceforge.net
>>Subject: Re: [Openvpn-users] Debian Jessie repository ?
>>
>>I'm the one who builds the official Debian/Ubuntu packages for OpenVPN.
>
> Thanks for your effort, Samuli, and also for letting us know that you're
> responsible for it.
>
>>I'll see if I could produce packages the upcoming Friday. I suspect I
>>can just borrow the control files from Debian and do a rebuild.
>
> May I suggest that instead of building and rebuilding packages for Debian
> and Ubuntu yourself, why don't you teach us how to do it, that is, show us
> how to build reproducible versions from source. After all both Debian and
> Ubuntu are free and open source. In this way you free yourself from having
> to do such a task and the time that you save can be better spent on other
> projects.
>
> What do you think?
>
> **Quote attributed to Maimonides: Give a man a fish and you feed him for a
> day; teach a man to fish and you feed him for a lifetime.**
>

Compiling the source for Linux (Debian/Ubuntu) is fairly simple.
Cross compiling on Linux for Windows is a little more "painful" but still
achievable.

Documented here:
https://community.openvpn.net/openvpn/wiki/BuildingUsingGenericBuildsystem#Cross-compilingonNIXgenericsubdir


Regards



--
___
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users


Re: [Openvpn-users] Debian Jessie repository ?

2015-12-18 Thread Sebastian Rubenstein
> Sent: Friday, December 18, 2015 at 8:21 PM
> From: debbie...@gmail.com
> To: "Sebastian Rubenstein" <asdf123...@gmx.com>
> Cc: openvpn-users@lists.sourceforge.net
> Subject: Re: [Openvpn-users] Debian Jessie repository ?
>
> Compiling the source for Linux (Debian/Ubuntu) is fairly simple.
> Cross compiling on Linux for Windows is a little more "painful" but still
> achievable.

Hi,

Samuli mentioned something about Debian control files.

What are they? And how do I incorporate them into compiling from source for 
Debian/Ubuntu? (It's not mentioned in the "How-to" whose link you provided.)

Regards.

Sebastian R.


--
___
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users


Re: [Openvpn-users] Debian Jessie repository ?

2015-12-18 Thread Samuli Seppänen

>> Sent: Thursday, December 17, 2015 at 5:38 AM
>> From: "Samuli Seppänen" <sam...@openvpn.net>
>> To: "Florent B" <flor...@coppint.com>, openvpn-users@lists.sourceforge.net
>> Subject: Re: [Openvpn-users] Debian Jessie repository ?
>>
>> I'm the one who builds the official Debian/Ubuntu packages for OpenVPN.
>
> Thanks for your effort, Samuli, and also for letting us know that you're 
> responsible for it.
>
>> I'll see if I could produce packages the upcoming Friday. I suspect I
>> can just borrow the control files from Debian and do a rebuild.
>
> May I suggest that instead of building and rebuilding packages for Debian and 
> Ubuntu yourself, why don't you teach us how to do it, that is, show us how to 
> build reproducible versions from source. After all both Debian and Ubuntu are 
> free and open source. In this way you free yourself from having to do such a 
> task and the time that you save can be better spent on other projects.
>
> What do you think?

Hi,

The packaging/build system I wrote is available on GitHub:

<https://github.com/mattock/sbuild_wrapper>

I prefer to build the official packages them myself. However, adding 
support for new distributions requires some effort, and that development 
work can be done by others. So patches that improve the scripts, 
documentation or add more operating systems to the supported list are 
most welcome :).

That said, I managed to generate Debian 8 packages today and they are 
now in the official repository. Building was a bit of a hassle, because 
my build rig is on Debian 7 and some dependencies were missing.

If you setup your own sbuild_wrapper instance, I suggest basing it on 
Debian 8 or a very recent Ubuntu version (15.10). This helps avoid 
issues with missing (pre-)build dependencies on the build rig itself.

Best regards,

-- 
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

--
___
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users


Re: [Openvpn-users] Debian Jessie repository ?

2015-12-16 Thread Samuli Seppänen

> Hi everyone,
>
> I'm sorry if this question was already asked, but I didn't find any answer.
>
> Why Jessie is not present in http://swupdate.openvpn.net/apt/ repository ?
>
> Is it planned to be supported ?

Hi,

I'm the one who builds the official Debian/Ubuntu packages for OpenVPN.

I intend to support Debian 8 eventually, but so far there hasn't been a 
pressing need for it, because the version in Debian's own repos is 
fairly recent, and the fixes introduced in the 2.3.x tree have not been 
in the "must have" category. That said, quite a lot of useful stuff has 
started to accumulate in recent 2.3.x releases, and building packages 
for Debian 8 starts to make sense.

I'll see if I could produce packages the upcoming Friday. I suspect I 
can just borrow the control files from Debian and do a rebuild.

Best regards,

-- 
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

--
___
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users