Message ID | 1495663577-4622-1-git-send-email-julien@vdg.name |
---|---|
State | Changes Requested |
Headers | show |
Hi Julien, Le 25/05/2017 à 00:06, Julien Viard de Galbert a écrit : > Signed-off-by: Julien Viard de Galbert <julien@vdg.name> > --- > package/Config.in | 1 + > package/easy-rsa/Config.in | 11 +++++++++++ > package/easy-rsa/easy-rsa.hash | 2 ++ > package/easy-rsa/easy-rsa.mk | 18 ++++++++++++++++++ > 4 files changed, 32 insertions(+) > create mode 100644 package/easy-rsa/Config.in > create mode 100644 package/easy-rsa/easy-rsa.hash > create mode 100644 package/easy-rsa/easy-rsa.mk > > diff --git a/package/Config.in b/package/Config.in > index 71bd44a..6f71a08 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -934,6 +934,7 @@ menu "Crypto" > source "package/botan/Config.in" > source "package/ca-certificates/Config.in" > source "package/cryptodev/Config.in" > + source "package/easy-rsa/Config.in" > source "package/gcr/Config.in" > source "package/gnutls/Config.in" > source "package/libassuan/Config.in" > diff --git a/package/easy-rsa/Config.in b/package/easy-rsa/Config.in > new file mode 100644 > index 0000000..7a063cd > --- /dev/null > +++ b/package/easy-rsa/Config.in > @@ -0,0 +1,11 @@ > +config BR2_PACKAGE_EASY_RSA > + bool "easy-rsa" BR2_PACKAGE_OPENSSL must be selected here since BR2_PACKAGE_OPENSSL_BIN depend on it. Also, add a comment to say that's a runtime dependency. easy-rsa script use openssl binaries. > + select BR2_PACKAGE_OPENSSL_BIN > + help > + Simple shell based CA utility There is no dependency of the type of the default shell ? It can be bash, dash, mksh, zsh, ash. > + This package eases the creation of certificates, for example > + for openvpn clients. > + > + This was formerly part of the openvpn package. > + > + https://github.com/OpenVPN/easy-rsa > diff --git a/package/easy-rsa/easy-rsa.hash b/package/easy-rsa/easy-rsa.hash > new file mode 100644 > index 0000000..e2d658a > --- /dev/null > +++ b/package/easy-rsa/easy-rsa.hash > @@ -0,0 +1,2 @@ > +# Locally computed: (after verifying gpg sig) > +sha512 d20f646e33ec803444dfcd446553f1d6001227fedec93280c212b34cccee11b184599f1b2ae6a3ce9cf6c9ac52f2b840ebb645536df6ddf55382fa25c22df81f EasyRSA-3.0.1.tgz > diff --git a/package/easy-rsa/easy-rsa.mk b/package/easy-rsa/easy-rsa.mk > new file mode 100644 > index 0000000..384e4b1 > --- /dev/null > +++ b/package/easy-rsa/easy-rsa.mk > @@ -0,0 +1,18 @@ > +################################################################################ > +# > +# easy-rsa > +# > +################################################################################ > + > +EASY_RSA_VERSION = 3.0.1 > +EASY_RSA_SOURCE = EasyRSA-$(EASY_RSA_VERSION).tgz > +EASY_RSA_SITE = https://github.com/OpenVPN/easy-rsa/releases/download/$(EASY_RSA_VERSION) > + > +define EASY_RSA_INSTALL_TARGET_CMDS > + $(INSTALL) -D -m 0755 $(@D)/easyrsa $(TARGET_DIR)/usr/bin > + $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/easy-rsa/x509-types This can be done with a simple mkdir -p $(TARGET_DIR)/etc/easy-rsa/x509-types > + $(INSTALL) -D -m 0644 $(@D)/x509-types/* $(TARGET_DIR)/etc/easy-rsa/x509-types > + $(INSTALL) -T -m 0644 $(@D)/vars.example $(TARGET_DIR)/etc/easy-rsa/vars Usually -T option is not used to copy a simple file. Best regards, Romain > +endef > + > +$(eval $(generic-package)) >
On Fri, May 26, 2017 at 11:25:14PM +0200, Romain Naour wrote: > Hi Julien, > > Le 25/05/2017 à 00:06, Julien Viard de Galbert a écrit : > > Signed-off-by: Julien Viard de Galbert <julien@vdg.name> > > --- > > package/Config.in | 1 + > > package/easy-rsa/Config.in | 11 +++++++++++ > > package/easy-rsa/easy-rsa.hash | 2 ++ > > package/easy-rsa/easy-rsa.mk | 18 ++++++++++++++++++ > > 4 files changed, 32 insertions(+) > > create mode 100644 package/easy-rsa/Config.in > > create mode 100644 package/easy-rsa/easy-rsa.hash > > create mode 100644 package/easy-rsa/easy-rsa.mk > > > > diff --git a/package/Config.in b/package/Config.in > > index 71bd44a..6f71a08 100644 > > --- a/package/Config.in > > +++ b/package/Config.in > > @@ -934,6 +934,7 @@ menu "Crypto" > > source "package/botan/Config.in" > > source "package/ca-certificates/Config.in" > > source "package/cryptodev/Config.in" > > + source "package/easy-rsa/Config.in" > > source "package/gcr/Config.in" > > source "package/gnutls/Config.in" > > source "package/libassuan/Config.in" > > diff --git a/package/easy-rsa/Config.in b/package/easy-rsa/Config.in > > new file mode 100644 > > index 0000000..7a063cd > > --- /dev/null > > +++ b/package/easy-rsa/Config.in > > @@ -0,0 +1,11 @@ > > +config BR2_PACKAGE_EASY_RSA > > + bool "easy-rsa" > > BR2_PACKAGE_OPENSSL must be selected here since BR2_PACKAGE_OPENSSL_BIN depend > on it. > > Also, add a comment to say that's a runtime dependency. > easy-rsa script use openssl binaries. > OK will do. > > + select BR2_PACKAGE_OPENSSL_BIN > > + help > > + Simple shell based CA utility > > There is no dependency of the type of the default shell ? > It can be bash, dash, mksh, zsh, ash. > It's working fine with busybox sh. so I guess posix sh should be ok... I should test the other shells to be sure. is there a way to depend on posix shell (to avoid csh for instance) ? > > + This package eases the creation of certificates, for example > > + for openvpn clients. > > + > > + This was formerly part of the openvpn package. > > + > > + https://github.com/OpenVPN/easy-rsa > > diff --git a/package/easy-rsa/easy-rsa.hash b/package/easy-rsa/easy-rsa.hash > > new file mode 100644 > > index 0000000..e2d658a > > --- /dev/null > > +++ b/package/easy-rsa/easy-rsa.hash > > @@ -0,0 +1,2 @@ > > +# Locally computed: (after verifying gpg sig) > > +sha512 d20f646e33ec803444dfcd446553f1d6001227fedec93280c212b34cccee11b184599f1b2ae6a3ce9cf6c9ac52f2b840ebb645536df6ddf55382fa25c22df81f EasyRSA-3.0.1.tgz > > diff --git a/package/easy-rsa/easy-rsa.mk b/package/easy-rsa/easy-rsa.mk > > new file mode 100644 > > index 0000000..384e4b1 > > --- /dev/null > > +++ b/package/easy-rsa/easy-rsa.mk > > @@ -0,0 +1,18 @@ > > +################################################################################ > > +# > > +# easy-rsa > > +# > > +################################################################################ > > + > > +EASY_RSA_VERSION = 3.0.1 > > +EASY_RSA_SOURCE = EasyRSA-$(EASY_RSA_VERSION).tgz > > +EASY_RSA_SITE = https://github.com/OpenVPN/easy-rsa/releases/download/$(EASY_RSA_VERSION) > > + > > +define EASY_RSA_INSTALL_TARGET_CMDS > > + $(INSTALL) -D -m 0755 $(@D)/easyrsa $(TARGET_DIR)/usr/bin > > + $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/easy-rsa/x509-types > > This can be done with a simple mkdir -p $(TARGET_DIR)/etc/easy-rsa/x509-types OK I thought using install was better to ensure the permissions > > > + $(INSTALL) -D -m 0644 $(@D)/x509-types/* $(TARGET_DIR)/etc/easy-rsa/x509-types > > + $(INSTALL) -T -m 0644 $(@D)/vars.example $(TARGET_DIR)/etc/easy-rsa/vars > > Usually -T option is not used to copy a simple file. > here I'm renaming vars.example to vars during the copy... will double check ! also further testing showed I missed a file will be in v2. Thanks for the review ! Best Regards Julien VdG > Best regards, > Romain > > > +endef > > + > > +$(eval $(generic-package)) > >
diff --git a/package/Config.in b/package/Config.in index 71bd44a..6f71a08 100644 --- a/package/Config.in +++ b/package/Config.in @@ -934,6 +934,7 @@ menu "Crypto" source "package/botan/Config.in" source "package/ca-certificates/Config.in" source "package/cryptodev/Config.in" + source "package/easy-rsa/Config.in" source "package/gcr/Config.in" source "package/gnutls/Config.in" source "package/libassuan/Config.in" diff --git a/package/easy-rsa/Config.in b/package/easy-rsa/Config.in new file mode 100644 index 0000000..7a063cd --- /dev/null +++ b/package/easy-rsa/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_EASY_RSA + bool "easy-rsa" + select BR2_PACKAGE_OPENSSL_BIN + help + Simple shell based CA utility + This package eases the creation of certificates, for example + for openvpn clients. + + This was formerly part of the openvpn package. + + https://github.com/OpenVPN/easy-rsa diff --git a/package/easy-rsa/easy-rsa.hash b/package/easy-rsa/easy-rsa.hash new file mode 100644 index 0000000..e2d658a --- /dev/null +++ b/package/easy-rsa/easy-rsa.hash @@ -0,0 +1,2 @@ +# Locally computed: (after verifying gpg sig) +sha512 d20f646e33ec803444dfcd446553f1d6001227fedec93280c212b34cccee11b184599f1b2ae6a3ce9cf6c9ac52f2b840ebb645536df6ddf55382fa25c22df81f EasyRSA-3.0.1.tgz diff --git a/package/easy-rsa/easy-rsa.mk b/package/easy-rsa/easy-rsa.mk new file mode 100644 index 0000000..384e4b1 --- /dev/null +++ b/package/easy-rsa/easy-rsa.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# easy-rsa +# +################################################################################ + +EASY_RSA_VERSION = 3.0.1 +EASY_RSA_SOURCE = EasyRSA-$(EASY_RSA_VERSION).tgz +EASY_RSA_SITE = https://github.com/OpenVPN/easy-rsa/releases/download/$(EASY_RSA_VERSION) + +define EASY_RSA_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/easyrsa $(TARGET_DIR)/usr/bin + $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/easy-rsa/x509-types + $(INSTALL) -D -m 0644 $(@D)/x509-types/* $(TARGET_DIR)/etc/easy-rsa/x509-types + $(INSTALL) -T -m 0644 $(@D)/vars.example $(TARGET_DIR)/etc/easy-rsa/vars +endef + +$(eval $(generic-package))
Signed-off-by: Julien Viard de Galbert <julien@vdg.name> --- package/Config.in | 1 + package/easy-rsa/Config.in | 11 +++++++++++ package/easy-rsa/easy-rsa.hash | 2 ++ package/easy-rsa/easy-rsa.mk | 18 ++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 package/easy-rsa/Config.in create mode 100644 package/easy-rsa/easy-rsa.hash create mode 100644 package/easy-rsa/easy-rsa.mk