Skip to contentSkip to conversation

OS X packages - OpenVPN 2.1.1

Openvpn-devel Toby Thain 5 participants 24 messages Apr 25, 2010 – Apr 29, 2010

lore
Share & tools
lore

Toby Thain

author
#0 lore raw

Hi,

I have put together a generic packaging script for OS X (pkg/dmg), and created basic binary Installer packages for PowerPC and Intel. It's meant only for distributing the generic binary distribution, analogous to any other UNIX binary package. A small addition is a script which installs an OS X launchd service, net.openvpn.

The binary package can be combined with a separate per-client key pkg that installs configuration and keys and starts the launchd service (scripts also available for this, in key-package directory).

This may help people with simple deployments that include OS X clients. I have not linked to built packages, on the theory that there's little reason you should trust my builds. (If you have the Apple Developer Tools, and archives for openvpn and lzo, then creating the binary packages and disk image yourself, for whatever architecture you run, is as simple as 'make dmg'. Package build, install and run have been tested on 32-bit PowerPC and Intel.)

cc'd devel list in case there is any interest in adopting the packaging script(s), perhaps as contrib?

http://telegraphics.com.au/svn/openvpn-package/trunk/

--Toby

#1 lore raw

Hi Toby,

I for one appreciate your effort and would love to see this in the standard release process.

Kind regards,

Arnoud Vermeer

Quoted 35 lines · Toby Thain

Hi,

I have put together a generic packaging script for OS X (pkg/dmg), and created basic binary Installer packages for PowerPC and Intel. It's meant only for distributing the generic binary distribution, analogous to any other UNIX binary package. A small addition is a script which installs an OS X launchd service, net.openvpn.

The binary package can be combined with a separate per-client key pkg that installs configuration and keys and starts the launchd service (scripts also available for this, in key-package directory).

This may help people with simple deployments that include OS X clients. I have not linked to built packages, on the theory that there's little reason you should trust my builds. (If you have the Apple Developer Tools, and archives for openvpn and lzo, then creating the binary packages and disk image yourself, for whatever architecture you run, is as simple as 'make dmg'. Package build, install and run have been tested on 32-bit PowerPC and Intel.)

cc'd devel list in case there is any interest in adopting the packaging script(s), perhaps as contrib?

http://telegraphics.com.au/svn/openvpn-package/trunk/

--Toby

------------------------------------------------------------------------------
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#21 lore raw
In reply to Toby Thain

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 20 lines · Toby Thain

Hi,

I have put together a generic packaging script for OS X (pkg/dmg), and created basic binary Installer packages for PowerPC and Intel. It's meant only for distributing the generic binary distribution, analogous to any other UNIX binary package. A small addition is a script which installs an OS X launchd service, net.openvpn.

The binary package can be combined with a separate per-client key pkg that installs configuration and keys and starts the launchd service (scripts also available for this, in key-package directory).

This may help people with simple deployments that include OS X clients. I have not linked to built packages, on the theory that there's little reason you should trust my builds. (If you have the Apple Developer Tools, and archives for openvpn and lzo, then creating the binary packages and disk image yourself, for whatever architecture you run, is as simple as 'make dmg'. Package build, install and run have been tested on 32-bit PowerPC and Intel.)

Quoted 4 lines

cc'd devel list in case there is any interest in adopting the packaging script(s), perhaps as contrib?

http://telegraphics.com.au/svn/openvpn-package/trunk/

Even though I don't have a OSX box (nor I do I have any plans acquiring any), this looks pretty nice and cool!

Would it be any possibilities that you would be willing to try to twist this into the openvpn-testing.git tree? It would sure fit well into the contrib/ collection.

Maybe even do some research if it would be possible, appropriate and good to try to make autotools do a lot of this work automatically if requested? I'm not sure if this really is appropriate, but let's consider it at least.

Or that when running ./configure on an identified OSX box, that it would update the contrib/ Makefile so a user can just go into the contrib/ directory and run make to get a proper OSX package.

/me is just thinking out aloud :)

kind regards,

David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkvVelQACgkQDC186MBRfrpB3gCdEmal8SRyLhf/ZrK5Ub495zC+ k3oAoK1FcTi43h57qjqLCv5kpvdGVQtF
=FJ38
-----END PGP SIGNATURE-----

author
#22 lore raw
Quoted 36 lines · David Sommerseth

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 20 lines · Toby Thain

Hi,

I have put together a generic packaging script for OS X (pkg/dmg), and created basic binary Installer packages for PowerPC and Intel. It's meant only for distributing the generic binary distribution, analogous to any other UNIX binary package. A small addition is a script which installs an OS X launchd service, net.openvpn.

The binary package can be combined with a separate per-client key pkg that installs configuration and keys and starts the launchd service (scripts also available for this, in key-package directory).

This may help people with simple deployments that include OS X clients. I have not linked to built packages, on the theory that there's little reason you should trust my builds. (If you have the Apple Developer Tools, and archives for openvpn and lzo, then creating the binary packages and disk image yourself, for whatever architecture you run, is as simple as 'make dmg'. Package build, install and run have been tested on 32-bit PowerPC and Intel.)

Quoted 4 lines

cc'd devel list in case there is any interest in adopting the packaging script(s), perhaps as contrib?

http://telegraphics.com.au/svn/openvpn-package/trunk/

Even though I don't have a OSX box (nor I do I have any plans acquiring any), this looks pretty nice and cool!

Would it be any possibilities that you would be willing to try to twist this into the openvpn-testing.git tree? It would sure fit well into the contrib/ collection.

Quoted 8 lines

Maybe even do some research if it would be possible, appropriate and good to try to make autotools do a lot of this work automatically if requested? I'm not sure if this really is appropriate, but let's consider it at least.

Or that when running ./configure on an identified OSX box, that it would update the contrib/ Makefile so a user can just go into the contrib/ directory and run make to get a proper OSX package.

This latter is pretty much what I had in mind, for adapting to contrib. I think it will be easier than the autotools route (and my time for this is limited - from experience futzing with autotools can soak up a *lot* of time...) That said, I'd prefer to do it the *right* way, so I won't dismiss that route.

I am a git novice, so I don't think it will be ready for inclusion soon, but thankyou for the encouraging feedback, David. When I find some time I'll see if I can check out the testing branch and prepare a patch.

--Toby

Quoted 21 lines

/me is just thinking out aloud :)

kind regards,

David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkvVelQACgkQDC186MBRfrpB3gCdEmal8SRyLhf/ZrK5Ub495zC+ k3oAoK1FcTi43h57qjqLCv5kpvdGVQtF
=FJ38
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#23 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26/04/10 14:08, Toby Thain wrote:
[...snip...]

Quoted 21 lines
Quoted 12 lines
Quoted 4 lines

cc'd devel list in case there is any interest in adopting the packaging script(s), perhaps as contrib?

http://telegraphics.com.au/svn/openvpn-package/trunk/

Even though I don't have a OSX box (nor I do I have any plans acquiring any), this looks pretty nice and cool!

Would it be any possibilities that you would be willing to try to twist this into the openvpn-testing.git tree? It would sure fit well into the contrib/ collection.

Quoted 8 lines

Maybe even do some research if it would be possible, appropriate and good to try to make autotools do a lot of this work automatically if requested? I'm not sure if this really is appropriate, but let's consider it at least.

Or that when running ./configure on an identified OSX box, that it would update the contrib/ Makefile so a user can just go into the contrib/ directory and run make to get a proper OSX package.

Quoted 5 lines

This latter is pretty much what I had in mind, for adapting to contrib. I think it will be easier than the autotools route (and my time for this is limited - from experience futzing with autotools can soak up a *lot* of time...) That said, I'd prefer to do it the *right* way, so I won't dismiss that route.

Sure, no stress! Take the time you need, and you may start easier and modify it later on as well!

Quoted 3 lines

I am a git novice, so I don't think it will be ready for inclusion soon, but thankyou for the encouraging feedback, David. When I find some time I'll see if I can check out the testing branch and prepare a patch.

Fair enough! I've put together a very quick "git crash course", which might help you getting acquainted and started with git.

<http://www.secure-computing.net/wiki/index.php/OpenVPN/git_crash_course>

Also see the developers docs for more resources:

<http://www.secure-computing.net/wiki/index.php/OpenVPN/Developer_documentation>

I can especially recommend the ProGit Book (there is a link on the Developer docs page) It's a good starting point when you want to learn and/or understand more about git and its features.

kind regards,

David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkvVi2gACgkQDC186MBRfrrB8gCfayAZB1a2Qx3Qb6EVvLDSWggI 2DMAmwbYjPfYZvM+aVNTOUvW0fbs1HVN
=ZsNw
-----END PGP SIGNATURE-----

#2 lore raw
In reply to Arnoud Vermeer
Quoted 5 lines · Arnoud Vermeer

Hi Toby,

I for one appreciate your effort and would love to see this in the standard
release process.

Speaking of the standard release process there is still this thread:

Re: [Openvpn-devel] Unpackged Windows binaries? -- Problems building 2.1 rc15 on Windows XP

and its patch for releasing unpackaged MS Windows binaries; quite similar to what you're proposing for OS/X. There has been no response from this list regarding this for quite some time despite repeated requests, unless I missed something somewhere along the line.

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

#3 lore raw

[Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Karl O. Pinc
Quoted 5 lines · Arnoud Vermeer

Hi Toby,

I for one appreciate your effort and would love to see this in the standard
release process.

Speaking of the standard release process there is still this thread:

Quoted 8 lines

Re: [Openvpn-devel] Unpackged Windows binaries? -- Problems building 2.1 rc15 on Windows XP

and its patch for releasing unpackaged MS Windows binaries; quite similar to what you're proposing for OS/X. There has been no response from this list regarding this for quite some time despite repeated requests, unless I missed something somewhere along the line.

Hi Karl,

Thanks for pushing this. I am honestly not quite sure were we stand with that patch. And since I understand the Windows building least of all, I've refrained from going into details of this one so far. It has not been my intention of ignoring this patch. I'm primarily focusing on the platforms I happen to understand better, and hope others will chime in on the other issues.

But as responses are missing, I'll try to find some time in the near future (this week is crazily hectic for me) - to see if I can understand what your patch solves. That is a little bit unclear to me, as the patch I'm looking at seems to just make a tarball with compiled binaries ... Right now, I do not immediately see what problem that solves. But I'm pretty sure I'm overlooking something!

Btw, you mentioned in some of the threads that you would look at some of the docs for this as well. I remember vaguely something about another set of patches for HTML files - which I can't say I've seen in the source tree. That would be good to get into the tree together with this patch when I've looked at it a bit better.

kind regards,

David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkvVr+kACgkQDC186MBRfrrCZQCdF46SLpVlvXIIxZ/j+Jyl/JuS CegAni6GRYW/nSN6AuNmJK7Y0/CYqnBY
=HOVE
-----END PGP SIGNATURE-----

#4 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

Quoted 36 lines · David Sommerseth

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · Karl O. Pinc

Speaking of the standard release process there is still this

thread:

Quoted 2 lines

Re: [Openvpn-devel] Unpackged Windows binaries? -- Problems

building

Quoted 4 lines

2.1 rc15 on Windows XP

and its patch for releasing unpackaged MS Windows binaries; quite similar to what you're proposing for OS/X.

Thanks for pushing this. I am honestly not quite sure were we stand with that patch. And since I understand the Windows building least of
all, I've refrained from going into details of this one so far. It has
not been my intention of ignoring this patch. I'm primarily focusing on
the platforms I happen to understand better, and hope others will chime
in on the other issues.

But as responses are missing, I'll try to find some time in the near future (this week is crazily hectic for me) - to see if I can understand
what your patch solves. That is a little bit unclear to me, as the patch I'm looking at seems to just make a tarball with compiled binaries
... Right now, I do not immediately see what problem that solves. But
I'm pretty sure I'm overlooking something!

Quoted 8 lines

Btw, you mentioned in some of the threads that you would look at some of
the docs for this as well. I remember vaguely something about another
set of patches for HTML files - which I can't say I've seen in the source tree. That would be good to get into the tree together with this
patch when I've looked at it a bit better.

It's a packaging policy issue.

The problem addressed is that there only binaries available for MS Windows are pre-packaged in an installer executable. This means that anyone who wants stock binaries but a modified installer has to recompile from source.

There are many reasons why one would want a non-stock MS Windows installer -- the foremost being to include an OpenVPN configuration file that allows connections between pre-designated endpoints. One might want to go so far as to include certificates in the installation to secure the communications channel. ;-) Creating custom installation executables is relatively easy, especially as the OpenVPN code base includes a working config file that's used to make the installer OpenVPN distributes. But of course OpenVPN binaries are a requirement before packaging can be attempted.

Recompiling is both complicated and error prone. Historically there are a number of issues that make compiling difficult. I recall problems with mingw versions
when compiling on MS Windows and some other sort of problems when trying to cross compile from Linux. In any case it's clear that compiling will always be relatively complicated and time-consuming to setup in comparison with downloading binaries.

So, there are 2 patches. The first is to the OpenVPN build process. It produces unpackaged MS Windows binaries and (last you wrote) it works. The second patch is to the OpenVPN documentation. It documents that the binaries exist and when you want them. It does not apply because the OpenVPN website has since been
restructured. The doc patch needs to be re-worked
to put the text in the appropriate place.

But this only makes sense if OpenVPN _will_ release unpackaged MS Windows binaries. It makes sense to me; the project is already releasing unpackaged Linux binaries and it now talking about doing the same for OS/X binaries. There's clear utility. Regardless, this is a policy decision. Getting a resolution on packaging policy seems to me to be the first step.

If OpenVPN _won't'_ release unpackaged MS Windows binaries I'd like to know why so it would be nice if whomever moves this forward, as with any other patch, solicits more than a yes/no answer.

Regards,

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

#5 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

Quoted 2 lines · Karl O. Pinc

the project is already releasing unpackaged Linux
binaries

Really?

Quoted 1 line

and it now talking about doing the same for OS/X binaries.

Recently discussed work for contrib/ produces a .dmg, very much a package in my view.

Quoted 1 line

There's clear utility.

I guess it depends. I'm not sure that I agree that compilation is a much bigger bother than (cross-)compiling the NSIS installer..

But, I do agree with you that there is utility.

//Peter

#6 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

Quoted 5 lines · Peter Stuge
Quoted 2 lines · Karl O. Pinc

the project is already releasing unpackaged Linux
binaries

Really?

They seem to have stopped sometime after July 30 2008.

http://web.archive.org/web/20080730205524/openvpn.net/index.php/
downloads.html

It's hard to tell when because archive.org does not appear to be allowed to archive the site any longer. Or at least there's nothing more recent. (This seems silly. I wonder why.)

(I clearly haven't been downloading binaries in a while. Probably because I rely on my distro for binaries so they can do the systems integration and security patches, or I am getting development from CVS/git.

IMO people who don't rely on their distro for systems integration and security patches are asking for trouble. There are of course always reasons to make specific exceptions, RH comes to mind. :)

Is OpenVPN in RHEL6?)

Quoted 5 lines
Quoted 2 lines

and it now talking about doing the same for OS/X binaries.

Recently discussed work for contrib/ produces a .dmg, very much a package in my view.

Ok. I don't know much about .dmg. I thought they were basically tarballs by another name in that they just stick stuff somewhere. My Mac usage is sporadic, sorry.

Quoted 6 lines
Quoted 3 lines

There's clear utility.

I guess it depends. I'm not sure that I agree that compilation is a much bigger bother than (cross-)compiling the NSIS installer..

On Debian all I had to do was "aptitude install nsis" and then run it to make MS Windows installers. Plug and play, no compiling necessary.

Regards,

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

#7 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 2 lines · Karl O. Pinc
Quoted 1 line · Peter Stuge

Karl O. Pinc wrote:

[...snip...]

Quoted 5 lines

IMO people who don't rely on their distro for systems integration and security patches are asking for trouble. There are of course always reasons to make specific exceptions, RH comes to mind. :)

Is OpenVPN in RHEL6?)

Yes, I'm pretty sure it is. RHEL5 even shipped OpenVPN 2.1_rc15 for a long time as a stable release until OpenVPN released 2.1.1. In RHEL5.4/CentOS5.4, I'm pretty sure 2.1.1 is standard by now.

Those releases are also pretty much in sync with the upstream OpenVPN release. No extra security fixes which is not in OpenVPN - as it should be, IMHO. From what I've seen in the Fedora builds, it's mostly distro-specific adjustments added on top of the OpenVPN 2.1.1 tarball.

But I agree that using a distro-based installation, gives you the upgrades in a very convenient way. Automatically - and you get a reminder regularly.

Quoted 10 lines
Quoted 4 lines
Quoted 1 line

and it now talking about doing the same for OS/X binaries.

Recently discussed work for contrib/ produces a .dmg, very much a package in my view.

Ok. I don't know much about .dmg. I thought they were basically tarballs by another name in that they just stick stuff somewhere. My Mac usage is sporadic, sorry.

Quoted 1 line
Quoted 9 lines
Quoted 4 lines
Quoted 1 line

There's clear utility.

I guess it depends. I'm not sure that I agree that compilation is a much bigger bother than (cross-)compiling the NSIS installer..

On Debian all I had to do was "aptitude install nsis" and then run it to make MS Windows installers. Plug and play, no compiling necessary.

Just a little nitpick, when you run makensis, that's actually compilation of the installer - even when you're doing it on Linux. You get a Windows binary as the result.

kind regards,

David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkvWG5YACgkQDC186MBRfro2bQCfX3H740h3QErt8+fzPlwVNekk btIAn3RMwwuLQCfrrfe29SSW46nZP9Tp
=XOWD
-----END PGP SIGNATURE-----

author
#11 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

In reply to Karl O. Pinc
Quoted 53 lines · Karl O. Pinc
Quoted 36 lines · David Sommerseth

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · Karl O. Pinc

Speaking of the standard release process there is still this

thread:

Quoted 2 lines

Re: [Openvpn-devel] Unpackged Windows binaries? -- Problems

building

Quoted 4 lines

2.1 rc15 on Windows XP

and its patch for releasing unpackaged MS Windows binaries; quite similar to what you're proposing for OS/X.

Thanks for pushing this. I am honestly not quite sure were we stand with that patch. And since I understand the Windows building least of
all, I've refrained from going into details of this one so far. It has
not been my intention of ignoring this patch. I'm primarily focusing on
the platforms I happen to understand better, and hope others will chime
in on the other issues.

But as responses are missing, I'll try to find some time in the near future (this week is crazily hectic for me) - to see if I can understand
what your patch solves. That is a little bit unclear to me, as the patch I'm looking at seems to just make a tarball with compiled binaries
... Right now, I do not immediately see what problem that solves. But
I'm pretty sure I'm overlooking something!

Quoted 8 lines

Btw, you mentioned in some of the threads that you would look at some of
the docs for this as well. I remember vaguely something about another
set of patches for HTML files - which I can't say I've seen in the source tree. That would be good to get into the tree together with this
patch when I've looked at it a bit better.

It's a packaging policy issue.

The problem addressed is that there only binaries available for MS Windows are pre-packaged in an installer executable. This means that anyone who wants stock binaries but a modified installer has to recompile from source.

Quoted 6 lines

There are many reasons why one would want a non-stock MS Windows installer -- the foremost being to include an OpenVPN configuration file that allows connections between pre-designated endpoints. One might want to go so far as to include certificates in the installation to secure the communications channel. ;-)

For the OS X package, I chose to simply make two packages - one the generic binaries, and one for whatever configuration and keys are needed for a particular deployment. Could you do the same on Windows?

Quoted 7 lines

Creating custom installation executables is relatively easy, especially as the OpenVPN code base includes a working config file that's used to make the installer OpenVPN distributes. But of course OpenVPN binaries are a requirement before packaging can be attempted.

Quoted 5 lines

Recompiling is both complicated and error prone. Historically there are a number of issues that make compiling difficult. I recall problems with mingw versions
when compiling on MS Windows and some other sort of problems when trying to cross compile from Linux.

Just a FYI - the Visual Studio Express toolchain (32+64 bit) works well under WINE.

Quoted 4 lines

In any case it's
clear that compiling will always be relatively complicated and time-consuming to setup in comparison with downloading binaries.

Correct - while it is a lot easier on OS X (just ./configure; make), most users never install the Developer Tools and don't know how to use Terminal. So we have similar motivations.

Quoted 10 lines

So, there are 2 patches. The first is to the OpenVPN build process. It produces unpackaged MS Windows binaries and (last you wrote) it works. The second patch is to the OpenVPN documentation. It documents that the binaries exist and when you want them. It does not apply because the OpenVPN website has since been
restructured. The doc patch needs to be re-worked
to put the text in the appropriate place.

Quoted 5 lines

But this only makes sense if OpenVPN _will_ release unpackaged MS Windows binaries. It makes sense to me; the project is already releasing unpackaged Linux binaries and it now talking about doing the same for OS/X binaries.

I don't think unpackaged OS X binaries are very useful, which is why I created the pkg+dmg. I haven't explored whatever GUI & packaging enhancements have been done by third parties - overkill for my immediate simple deployment needs.

I *do* think that generic OS X binary pkgs are worthwhile including as part of the standard downloads.

--Toby

Quoted 21 lines

There's clear utility. Regardless,
this is a policy decision. Getting a resolution on packaging policy seems to me to be the first step.

If OpenVPN _won't'_ release unpackaged MS Windows binaries I'd like to know why so it would be nice if whomever moves this forward, as with any other patch, solicits more than a yes/no answer.

Regards,

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

------------------------------------------------------------------------------
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

author
#9 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

In reply to Karl O. Pinc
Quoted 28 lines · Karl O. Pinc
Quoted 5 lines · Peter Stuge
Quoted 2 lines · Karl O. Pinc

the project is already releasing unpackaged Linux
binaries

Really?

They seem to have stopped sometime after July 30 2008.

http://web.archive.org/web/20080730205524/openvpn.net/index.php/
downloads.html

It's hard to tell when because archive.org does not appear to be allowed to archive the site any longer. Or at least there's nothing more recent. (This seems silly. I wonder why.)

(I clearly haven't been downloading binaries in a while. Probably because I rely on my distro for binaries so they can do the systems integration and security patches, or I am getting development from CVS/git.

IMO people who don't rely on their distro for systems integration and security patches are asking for trouble. There are of course always reasons to make specific exceptions, RH comes to mind. :)

Is OpenVPN in RHEL6?)

Quoted 1 line
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

and it now talking about doing the same for OS/X binaries.

Recently discussed work for contrib/ produces a .dmg, very much a package in my view.

Ok. I don't know much about .dmg. I thought they were basically tarballs by another name in that they just stick stuff somewhere. My Mac usage is sporadic, sorry.

The Makefile produces both 'pkg' and 'dmg'. Dmg is just an OS X standard self-mounting single file archive which is a way of distributing the pkg. Generating a dmg is useful because the pkg is actually a file tree, not a single file, so inappropriate for downloading, attaching, etc.

Pkg is the package itself, which like any binary UNIX package is indeed a tarball by another name plus some metadata and scripts - but of course infinitely easier for non-technical end users (let alone compared to a source build).

--Toby

Quoted 24 lines
Quoted 7 lines
Quoted 4 lines

There's clear utility.

I guess it depends. I'm not sure that I agree that compilation is a much bigger bother than (cross-)compiling the NSIS installer..

On Debian all I had to do was "aptitude install nsis" and then run it to make MS Windows installers. Plug and play, no compiling necessary.

Regards,

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

------------------------------------------------------------------------------
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#12 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

In reply to Toby Thain
Quoted 11 lines · Toby Thain
Quoted 5 lines · Karl O. Pinc

The problem addressed is that there only binaries available for MS Windows are pre-packaged in an installer executable. This means that anyone who wants stock binaries but a modified installer has to recompile from source.

For the OS X package, I chose to simply make two packages - one the generic binaries, and one for whatever configuration and keys are needed for a particular deployment. Could you do the same on Windows?

Sure, but this greatly increases the complexity for the end-user. Just adding another installer at least doubles the complexity. A custom install can be one-click. The stock OpenVPN installer (last I looked) presented the user with many choices and is far more complex than a 1-click install.

Getting the users to do anything at all can be tricky (especially at the outlying ends of the pay scale). The less that can go wrong the better.

Quoted 10 lines
Quoted 5 lines

But this only makes sense if OpenVPN _will_ release unpackaged MS Windows binaries. It makes sense to me; the project is already releasing unpackaged Linux binaries and it now talking about doing the same for OS/X binaries.

I don't think unpackaged OS X binaries are very useful, which is why I

created the pkg+dmg.

I agree, because the Apple development kit is shipped, if not installed, on every Mac. (Last I looked.) And because ./configure ; make is painless. MS Windows on the other hand requires additional software
to compile anything. And the FOSS choices, which are the the ones most universally available, are non-trivial to install and use.

I'd bet cross compiling Un*x-to-Mac is easier too, but I have no experience to back that up.
Now that OpenVPN is accepting more patches cross compiling Un*x-to-MSWindows will probably get easier but it will never be easy.

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

#8 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

In reply to David Sommerseth
Quoted 10 lines · David Sommerseth
Quoted 4 lines · Karl O. Pinc

On Debian all I had to do was "aptitude install nsis" and then run it to make MS Windows installers. Plug and play, no compiling necessary.

Just a little nitpick, when you run makensis, that's actually compilation of the installer - even when you're doing it on Linux. You
get a Windows binary as the result.

As long as we're nitpicking... ;-)

That's interesting. I figured the nsis install scripts were interpreted and, if I thought about it at all, running makensis setup some data structures and did some linking.

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

author
#13 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

In reply to Karl O. Pinc
Quoted 11 lines · Karl O. Pinc
Quoted 7 lines · Toby Thain
Quoted 2 lines

I don't think unpackaged OS X binaries are very useful, which is why I

created the pkg+dmg.

I agree, because the Apple development kit is shipped, if not installed, on every Mac.

It ships on the DVD but most people never install it, of course.

Quoted 2 lines

(Last I looked.) And
because ./configure ; make is painless.

To use your argument from above -- imho much too complex for most end users. As well as requiring Apple Developer Tools (they have to go find the original DVD, which may or may not even be possible), this involves locating and downloading two source archives from two different sites, and configuring and building them both; beyond the pale for non-technical users, even though it's trivial for "us".

The pkg/dmg is, on the other hand, a genuine one click install. (Even if you have to do a 2nd key install, which pkg has to be built individually and distributed securely anyway.) It seems logical to me that an OS X binary dmg could be on the OpenVPN downloads page, giving a similar level of convenience to "yum install openvpn" or "apt-get install openvpn" or "emerge openvpn".

One thing that should *not*, in my opinion, be encouraged at all by OpenVPN, are third party package managers (MacPorts, Fink, Homebrew etc) as the binary route on OS X. That seems to do more harm than good.

Quoted 8 lines

MS Windows on
the other hand requires additional software
to compile anything. And the FOSS choices, which are the the ones most universally available, are non-trivial to install and use.

I'd bet cross compiling Un*x-to-Mac is easier too, but I have no experience to back that up.

Generally very simple, fwiw. It probably helps that OS X toolchain is gcc-based and many GNU utilities are standard.

Quoted 3 lines

Now that OpenVPN is accepting more patches cross compiling Un*x-to-MSWindows will probably get easier but it will never be easy.

If I were deploying it, rather than hacking on it, I would expect a binary installer to be available for my platform, at http://openvpn.net

--Toby

Quoted 5 lines

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

author
#14 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

Quoted 17 lines · Toby Thain
Quoted 11 lines · Karl O. Pinc
Quoted 7 lines · Toby Thain
Quoted 2 lines

I don't think unpackaged OS X binaries are very useful, which is why I

created the pkg+dmg.

I agree, because the Apple development kit is shipped, if not installed, on every Mac.

It ships on the DVD but most people never install it, of course.

Quoted 8 lines
Quoted 2 lines

(Last I looked.) And
because ./configure ; make is painless.

To use your argument from above -- imho much too complex for most end users. As well as requiring Apple Developer Tools (they have to go find the original DVD, which may or may not even be possible), this involves locating and downloading two source archives from two different sites, and configuring and building them both;

I left out some other items that the package includes:
– the XML service metadata (plist) that doesn't exist in the source distribution
– launchd service setup

So it's really well beyond the "end user" realm...

(More details: http://telegraphics.com.au/svn/openvpn-package/trunk/README
)

This is probably solved in other ways by 3rd party OpenVPN derivatives out there, but imho there should still be an 'official' binary installer.

--Toby

Quoted 4 lines

beyond the
pale for non-technical users, even though it's trivial for "us".

The pkg/dmg is, on the other hand, a genuine one click install.

#15 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

In reply to Toby Thain
Quoted 21 lines · Toby Thain
Quoted 5 lines · Karl O. Pinc
Quoted 4 lines · Toby Thain
Quoted 2 lines

I don't think unpackaged OS X binaries are very useful, which is

why

Quoted 6 lines
Quoted 3 lines

I

created the pkg+dmg.

I agree, because the Apple development kit is shipped, if not installed, on every Mac.

It ships on the DVD but most people never install it, of course.

Quoted 2 lines

(Last I looked.) And
because ./configure ; make is painless.

Quoted 7 lines

To use your argument from above -- imho much too complex for most end

users. As well as requiring Apple Developer Tools (they have to go find the original DVD, which may or may not even be possible), this involves locating and downloading two source archives from two different sites, and configuring and building them both; beyond the pale for non-technical users, even though it's trivial for "us".

I'm not following you here. I thought we were talking about whether unpackaged OS/X binaries were useful to anybody. The answer being no because developers and packagers are the only people who need them and developers and packagers can easily create OS/X binaries.

Quoted 5 lines

The pkg/dmg is, on the other hand, a genuine one click install. (Even

if you have to do a 2nd key install, which pkg has to be built individually and distributed securely anyway.)

Depending on the degree of security required it could be enough to key the server but not the client. It does not matter to my argument though, if you're going to make individualized packages for each user you may as well put everything required into the package you supply. Having to compile binaries for MS Windows becomes a big sticking point when making an all-inclusive MS Windows installer; because you're already making an installer you know how to do that and you've got a working example of the OpenVPN installer as a starting point.

Quoted 6 lines

It seems logical to me that an OS X binary dmg could be on the OpenVPN

downloads page, giving a similar level of convenience to "yum install

openvpn" or "apt-get install openvpn" or "emerge openvpn".

Sure. Packages can be useful to end-users.

Quoted 5 lines

One thing that should *not*, in my opinion, be encouraged at all by OpenVPN, are third party package managers (MacPorts, Fink, Homebrew etc) as the binary route on OS X. That seems to do more harm than good.

I have no opinion. I suppose it depends on the degree of systems integration provided by the 3rd party. I assume this is usually none, in which case there's no point and the end-user may as well get their packages straight from the source.

Quoted 5 lines

If I were deploying it, rather than hacking on it, I would expect a binary installer to be available for my platform, at
http://openvpn.net

I'd expect my distro provider to supply it, be sure it integrates with everything else, and support security fixes. YMMV. Of course this assume a distro. Users of commercial OSs are generally expected to arrange for their own systems integration and application support. In that case the typical user should follow your advice and get their packages direct from OpenVPN.

Which raises another issue. IMO OpenVPN is encouraging bad practices by supplying packages for distros that include OpenVPN. The typical user is more likely to have a bad OpenVPN experience, over time, when using packages obtained directly from OpenVPN than when using packages created by their distro, for the reasons outlined above and earlier in this thread. Some people may benefit from having the most recent OpenVPN and obtaining it straight from the project, but these people are also the most likely to be able to package it themselves. If this is all true then the OpenVPN project is doing it's userbase a dis-service by making, say, packages for Red Hat available for download because this is tacit encouragement of bad practice. At minimum there should be a warning to educate the naive user.

The situation is different for MS Windows and OS/X. Packages are needed for those platforms and whatever other commercial OSs the project wants to support.

There. Now I've wandered far from the original
topic and likely offended someone too.
Mission accomplished. :-P

Regards,

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

#10 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

In reply to Karl O. Pinc
Quoted 11 lines · Karl O. Pinc
Quoted 5 lines · Peter Stuge
Quoted 2 lines · Karl O. Pinc

the project is already releasing unpackaged Linux
binaries

Really?

They seem to have stopped sometime after July 30 2008.

http://web.archive.org/web/20080730205524/openvpn.net/index.php/
downloads.html

Sheesh Peter, you are right. That pages has source downloads and a MS Windows installer. And it's the same page I recall seeing forever.

Nothing anywhere about non-MSWindows binaries.

I completely mis-remembered, and didn't even see my mistake when I called up the old page. Sorry about that.

I seem to be making a habit of making false statements on this list. I'll see if I can fix that.

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

author
#16 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

In reply to Karl O. Pinc
Quoted 30 lines · Karl O. Pinc
Quoted 21 lines · Toby Thain
Quoted 5 lines · Karl O. Pinc
Quoted 4 lines · Toby Thain
Quoted 2 lines

I don't think unpackaged OS X binaries are very useful, which is

why

Quoted 6 lines
Quoted 3 lines

I

created the pkg+dmg.

I agree, because the Apple development kit is shipped, if not installed, on every Mac.

It ships on the DVD but most people never install it, of course.

Quoted 2 lines

(Last I looked.) And
because ./configure ; make is painless.

Quoted 7 lines

To use your argument from above -- imho much too complex for most end

users. As well as requiring Apple Developer Tools (they have to go find the original DVD, which may or may not even be possible), this involves locating and downloading two source archives from two different sites, and configuring and building them both; beyond the pale for non-technical users, even though it's trivial for "us".

Quoted 4 lines

I'm not following you here. I thought we were talking about whether unpackaged OS/X binaries were useful to anybody. The answer being no because developers and packagers are the only people who need them and developers and packagers can easily create OS/X binaries.

Ah, okay, then we are in agreement.

Quoted 11 lines
Quoted 9 lines

...

It seems logical to me that an OS X binary dmg could be on the OpenVPN

downloads page, giving a similar level of convenience to "yum install

openvpn" or "apt-get install openvpn" or "emerge openvpn".

Sure. Packages can be useful to end-users.

Right - or those organising deployments to them.

Quoted 25 lines
Quoted 6 lines

One thing that should *not*, in my opinion, be encouraged at all by OpenVPN, are third party package managers (MacPorts, Fink, Homebrew etc) as the binary route on OS X. That seems to do more harm than good.

I have no opinion. I suppose it depends on the degree of systems integration provided by the 3rd party. I assume this is usually none, in which case there's no point and the end-user may as well get their packages straight from the source.

Quoted 5 lines

If I were deploying it, rather than hacking on it, I would expect a binary installer to be available for my platform, at
http://openvpn.net

I'd expect my distro provider to supply it, be sure it integrates
with everything else, and support security fixes. ... The typical user is more likely to have a bad OpenVPN experience, over time, when using packages
obtained directly from OpenVPN than when using packages
created by their distro, for the reasons outlined above
and earlier in this thread. ...

Quoted 3 lines

The situation is different for MS Windows and OS/X. Packages are needed for those platforms and whatever other commercial OSs the project wants to support.

+1
Solaris 10 is another possibility. I have experience with this package flavour and could easily do the same job as I did for OS X, for contrib, at least, if not binary pkg.

Quoted 3 lines

There. Now I've wandered far from the original
topic and likely offended someone too.

Certainly not me.

--Toby

Quoted 9 lines

Mission accomplished. :-P

Regards,

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

#17 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

In reply to Karl O. Pinc
Quoted 2 lines · Karl O. Pinc

IMO OpenVPN is encouraging bad practices by supplying packages for distros that include OpenVPN.

Ideally the package for that distro as made by OpenVPN is always equivalent to the one made by the distributor.

What do I mean? I mean that I'm happy with .spec files and the likes, that make up the source code for a particular kind of binary package, being committed upstream.

And if they are, then it's of course fairly easy for upstream to use them, and to make packages which are at the very least compatible with the distribution.

And, I think that since it is downloaded from a site other than the distributor's, users who actually do grab packages "manually" will be able to tell the difference from a package delivered by the distributor.

//Peter

#18 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

Quoted 7 lines · Peter Stuge
Quoted 2 lines · Karl O. Pinc

IMO OpenVPN is encouraging bad practices by supplying packages for distros that include OpenVPN.

Ideally the package for that distro as made by OpenVPN is always equivalent to the one made by the distributor.

Quoted 7 lines

What do I mean? I mean that I'm happy with .spec files and the likes, that make up the source code for a particular kind of binary package, being committed upstream.

And if they are, then it's of course fairly easy for upstream to use them, and to make packages which are at the very least compatible with the distribution.

I agree.
It is useful for OpenVPN to distribute .spec files and equivalents for use by disto packagers.

Quoted 5 lines

And, I think that since it is downloaded from a site other than the distributor's, users who actually do grab packages "manually" will be able to tell the difference from a package delivered by the distributor.

The question is not whether users can tell the difference, it's whether users know enough to know the advantages of getting their packages from their distro. I believe that most users are unaware of these advantages because they have experience only with OSs that force them to arrange for their own systems integration. IMO the widespread failure to integrate disparate software and the consequent gradual degradation of so many systems, often ending in a disk wipe and OS re-install, demonstrates the extent of the problem. While OpenVPN's users are clearly the cream of the crop, hip, techo-savvy, and sporting
shiny white smiles, I don't believe they are immune
and the OpenVPN project should encourage them to make
good choices. This would help toward a good long-term OpenVPN experience. The current policy that makes pre-packaged downloads available without explanation
does nothing to encourage good sysadmin practice and
puts a bad choice one click away.

Giant problem? No. They'll always be plenty of ways
to make bad choices. I'd be ok with making distro specific packages available so long as you also tell the end-user they are probably better off without them. :)

Regards,

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

#19 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

In reply to Peter Stuge
Quoted 6 lines · Peter Stuge
Quoted 2 lines · Karl O. Pinc

IMO OpenVPN is encouraging bad practices by supplying packages for distros that include OpenVPN.

Ideally the package for that distro as made by OpenVPN is always equivalent to the one made by the distributor.

I'm writing again in case someone thinks this is a reason why it's fine for an end-user to get their OpenVPN from openvpn.net.

The problem is not the initial package installation. It's keeping up with changes over time. That's the big service that distro's provide. Installing a single non-distro application is no big deal. More than a few become a problem to keep up with to the point where eventually things stop working. Packages makes it easier to keep track of what's what and keep things updated, in comparison to ./configure; make; make install, but the point of diminishing returns is soon reached regardless.

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

#20 lore raw

Re: [Openvpn-devel] Unpackaged Windows binaries (Was: Re: [Openvpn-users] [ANN] OS X packages - OpenVPN 2.1.1)

In reply to David Sommerseth
Quoted 14 lines · David Sommerseth
Quoted 2 lines · Karl O. Pinc

Speaking of the standard release process there is still this

thread:

Quoted 2 lines

Re: [Openvpn-devel] Unpackged Windows binaries? -- Problems

building

Quoted 7 lines

2.1 rc15 on Windows XP

and its patch for releasing unpackaged MS Windows binaries; quite similar to what you're proposing for OS/X. There has been no response from this list regarding this for quite some time despite repeated requests, unless I missed something somewhere along the line.

For reference I'm linking to the original thread here.

http://thread.gmane.org/gmane.network.openvpn.devel/2566/focus=3171

I wrote Samuli Seppänen to get this link added to the trac entry for the upcoming IRC meeting as further reference, or alternately to get access to trac.
(The parent of this thread, before the subject was changed, is an agenda item but there's no reference to
the prior thread.) I have not heard
back so am writing here to be sure the link is available to anyone who needs it for the meeting.

Karl <[email protected]...>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein