* [Buildroot] [PATCH 1/1] package/pound: new package
@ 2016-02-05 22:43 Bernd Kuhls
2016-02-21 22:13 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2016-02-05 22:43 UTC (permalink / raw)
To: buildroot
Makefile needs to be fixed to avoid an error during install:
/usr/bin/install: cannot change ownership of
'/home/bernd/buildroot/buildroot/output/target/usr/sbin/pound':
Operation not permitted
Makefile:60: recipe for target 'install' failed
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/Config.in | 1 +
package/pound/Config.in | 18 ++++++++++++++++++
package/pound/pound.hash | 2 ++
package/pound/pound.mk | 24 ++++++++++++++++++++++++
4 files changed, 45 insertions(+)
create mode 100644 package/pound/Config.in
create mode 100644 package/pound/pound.hash
create mode 100644 package/pound/pound.mk
diff --git a/package/Config.in b/package/Config.in
index 2da3a83..2a231ec 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1425,6 +1425,7 @@ endif
source "package/p910nd/Config.in"
source "package/phidgetwebservice/Config.in"
source "package/portmap/Config.in"
+ source "package/pound/Config.in"
source "package/pppd/Config.in"
source "package/pptp-linux/Config.in"
source "package/proftpd/Config.in"
diff --git a/package/pound/Config.in b/package/pound/Config.in
new file mode 100644
index 0000000..91c29ea
--- /dev/null
+++ b/package/pound/Config.in
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_POUND
+ bool "pound"
+ depends on !BR2_STATIC_LIBS
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_USE_MMU # fork()
+ select BR2_PACKAGE_OPENSSL
+ help
+ The Pound program is a reverse proxy, load balancer and HTTPS
+ front-end for Web server(s). Pound was developed to enable
+ distributing the load among several Web-servers and to allow
+ for a convenient SSL wrapper for those Web servers that do not
+ offer it natively.
+
+ http://www.apsis.ch/pound
+
+comment "pound needs a toolchain w/ dynamic library, threads"
+ depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_USE_MMU
diff --git a/package/pound/pound.hash b/package/pound/pound.hash
new file mode 100644
index 0000000..6908b90
--- /dev/null
+++ b/package/pound/pound.hash
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 cdfbf5a7e8dc8fbbe0d6c1e83cd3bd3f2472160aac65684bb01ef661c626a8e4 Pound-2.7.tgz
diff --git a/package/pound/pound.mk b/package/pound/pound.mk
new file mode 100644
index 0000000..46f8244
--- /dev/null
+++ b/package/pound/pound.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# pound
+#
+################################################################################
+
+POUND_VERSION = 2.7
+POUND_SITE = http://www.apsis.ch/pound
+POUND_SOURCE = Pound-$(POUND_VERSION).tgz
+POUND_LICENSE = GPLv3+
+POUND_LICENSE_FILES = GPL.txt
+POUND_DEPENDENCIES = openssl
+
+ifeq ($(BR2_PACKAGE_PCRE),y)
+POUND_DEPENDENCIES += pcre
+endif
+
+# Do not set user/group for the installed binaries.
+define POUND_FIX_INSTALL
+ $(SED) 's/-o proxy -g proxy//g' $(@D)/Makefile
+endef
+POUND_POST_CONFIGURE_HOOKS += POUND_FIX_INSTALL
+
+$(eval $(autotools-package))
--
2.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/pound: new package
2016-02-05 22:43 [Buildroot] [PATCH 1/1] package/pound: new package Bernd Kuhls
@ 2016-02-21 22:13 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-02-21 22:13 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Fri, 5 Feb 2016 23:43:12 +0100, Bernd Kuhls wrote:
> +POUND_VERSION = 2.7
> +POUND_SITE = http://www.apsis.ch/pound
> +POUND_SOURCE = Pound-$(POUND_VERSION).tgz
> +POUND_LICENSE = GPLv3+
> +POUND_LICENSE_FILES = GPL.txt
> +POUND_DEPENDENCIES = openssl
Unfortunately, nobody will be able to distribute binaries of this
program. The GPLv3 is incompatible with the OpenSSL license. The
authors of Pound should have planned an exception to the GPLv3, but I
haven't seen any indication of this.
I've nonetheless applied the package since well, it's not our
responsibility, but GPLv3+OpenSSL -> not good.
> +# Do not set user/group for the installed binaries.
> +define POUND_FIX_INSTALL
> + $(SED) 's/-o proxy -g proxy//g' $(@D)/Makefile
> +endef
> +POUND_POST_CONFIGURE_HOOKS += POUND_FIX_INSTALL
I've removed this and instead passed:
--with-owner=$(shell id -un) \
--with-group=$(shell id -gn)
So that we install with the current user/group, which is guaranteed to
work fine. And all files get anyway re-assigned to root when creating
the final image.
Applied to next with this change!
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-21 22:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-05 22:43 [Buildroot] [PATCH 1/1] package/pound: new package Bernd Kuhls
2016-02-21 22:13 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox