All of lore.kernel.org
 help / color / mirror / Atom feed
* Addition of the Coyote Linux distro and HAProxy
@ 2009-03-30  5:10 Joshua Jackson
  2009-03-30  5:11 ` Joshua Jackson
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Joshua Jackson @ 2009-03-30  5:10 UTC (permalink / raw)
  To: openembedded-devel

I have decided to use OE as the base for the next release of a 10 year old
distribution named "Coyote Linux". After a couple weeks of tinkering and
waiting many, long hours for compiles to either succeed or fail - I have put
together my first patch.

The attached patch adds a distribution config for Coyote Linux v4 and adds
the HAProxy recipe. This is my first submission to the project so please let
me know if there is anything I need to change about the supplied patch or
any other process I should be following.
Note - this will not compile until the tinylogin problem is fixed. For local
testing, I replaced the login manager selection in the base image class with
"busybox" instead of "tinylogin".  Tinylogin will work perfectly once the
recipe is updated to download and build the source.

As I am working on this project full time at the moment, I will be
submitting regular updates to the distribution config and adding new recipes
for needed applications.

The file is a standard, unified diff against the vanilla OE tree (pulled
just before this email as sent).

Coyote Linux distro information is available on the web site
http://www.coyotelinux.com

--
Joshua Jackson
Vortech Consulting, LLC


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Addition of the Coyote Linux distro and HAProxy
  2009-03-30  5:10 Addition of the Coyote Linux distro and HAProxy Joshua Jackson
@ 2009-03-30  5:11 ` Joshua Jackson
  2009-03-30  6:56   ` Khem Raj
  2009-03-30  5:22 ` Tom Rini
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Joshua Jackson @ 2009-03-30  5:11 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 89 bytes --]

Helps if I actually attach a patch file...
--
Joshua Jackson
Vortech Consulting, LLC

[-- Attachment #2: add-coyote-haproxy.patch --]
[-- Type: application/octet-stream, Size: 8737 bytes --]

diff --exclude .git -uNr openembedded-vanilla/conf/checksums.ini openembedded/conf/checksums.ini
--- openembedded-vanilla/conf/checksums.ini	2009-03-30 00:33:47.000000000 -0400
+++ openembedded/conf/checksums.ini	2009-03-30 00:22:26.000000000 -0400
@@ -1,3 +1,7 @@
+[http://haproxy.1wt.eu/download/1.3/src/haproxy-1.3.17.tar.gz]
+md5=423ad955828a2de1803410a4405696f2
+sha256=347f238250f03b202857ea24a3ebd75465b689d8c45c5347032c501e2e971877
+
 [http://www.directfb.org/downloads/Extras/++DFB-0.9.25.tar.gz]
 md5=c6a2705f6210d8ede50a947b375f1c0b
 sha256=b3dbf01563dd60d63cff543ea8cd0c885381e78ecbbab8ff176e46df3f198a88
diff --exclude .git -uNr openembedded-vanilla/conf/distro/coyote.conf openembedded/conf/distro/coyote.conf
--- openembedded-vanilla/conf/distro/coyote.conf	1969-12-31 19:00:00.000000000 -0500
+++ openembedded/conf/distro/coyote.conf	2009-03-30 00:40:11.000000000 -0400
@@ -0,0 +1,97 @@
+#############################################################################
+#@TYPE: Distribution
+#@NAME: Coyote
+#@DESCRIPTION: Coyote Linux Distribution Configuration
+#
+#@COMMENT: This distribution configuration is used for Coyote Linux v4
+#############################################################################
+
+DISTRO_NAME = "coyote"
+#DISTRO_VERSION = ".dev-snapshot-${SRCDATE}"
+DISTRO_VERSION="4.0b1"
+DISTRO_TYPE = "release"
+#DISTRO_TYPE = "debug"
+
+#PR = "1"
+
+# Ensure some form of release config, so error out if someone thinks he knows better
+DISTRO_CHECK := "${@bb.data.getVar("DISTRO_VERSION",d,1) or bb.fatal('Remove this line or set a dummy DISTRO_VERSION")
+
+DISTRO_FEATURES = "ext2 squashfs"
+
+INHERIT += "debian"
+
+INHERIT += "packaged-staging"
+
+# Chose the packaging system
+INHERIT += "package_ipk"
+IMAGE_FSTYPES = "squashfs ext2 tar.gz"
+
+require conf/distro/include/sane-feed.inc
+PREFERRED_PKG_FORMAT ?= "ipk"
+require conf/distro/include/sane-feed-${PREFERRED_PKG_FORMAT}.inc
+
+# If we're using an .ipk based rootfs, we want to have opkg-nogpg installed so postinst script can run
+IPKG_VARIANT = "opkg-nogpg"
+
+#############################################################################
+# IMAGES
+#############################################################################
+# Name the generated images in a sane way
+IMAGE_NAME = "${DISTRO_NAME}-${IMAGE_BASENAME}-${PREFERRED_LIBC}-${PREFERRED_PKG_FORMAT}-${DISTRO_VERSION}-${MACHINE}"
+CACHE ?= "${TMPDIR}/cache/${PREFERRED_LIBC}/${MACHINE}"
+DEPLOY_DIR ?= "${TMPDIR}/deploy/${PREFERRED_LIBC}"
+DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}"
+
+KERNEL = "kernel26"
+MACHINE_KERNEL_VERSION = "2.6.29"
+
+#############################################################################
+# TOOLCHAIN
+#############################################################################
+PREFERRED_LIBC = "glibc"
+
+require conf/distro/include/sane-toolchain.inc
+
+PREFERRED_PROVIDER_task-bootstrap = "task-bootstrap"
+PREFERRED_PROVIDER_virtual/db = "db3"
+PREFERRED_PROVIDER_virtual/db-native = "db3-native"
+
+
+#PREFERRED_PROVIDER_avahi = "avahi"
+#PREFERRED_PROVIDER_gconf = "gconf-dbus"
+#PREFERRED_PROVIDER_gtk+ = "gtk+"
+#PREFERRED_PROVIDER_libgpewidget = "libgpewidget"
+#PREFERRED_PROVIDER_virtual/libsdl = "libsdl-x11"
+PREFERRED_PROVIDER_virtual/libx11 = "diet-x11"
+
+#############################################################################
+# PREFERRED VERSIONS
+#############################################################################
+
+require conf/distro/include/sane-srcdates.inc
+require conf/distro/include/sane-srcrevs.inc
+
+#require conf/distro/include/preferred-e-versions.inc
+#require conf/distro/include/preferred-xorg-versions-X11R7.4-updates.inc
+#require conf/distro/include/preferred-xorg-versions-X11R7.4.inc
+
+#PREFERRED_VERSION_mono = "1.9.1+2.2-rc1"
+#PREFERRED_VERSION_mono = "svn"
+
+PREFERRED_VERSION_glibc = "2.5"
+PREFERRED_VERSION_glibc-cross = "2.5"
+PREFERRED_VERSION_glibc-cross-sdk = "2.5"
+PREFERRED_VERSION_glibc-cross-initial = "2.5"
+PREFERRED_VERSION_glibc-cross-intermediate = "2.5"
+
+PREFERRED_VERSION_linux = "2.6.29"
+
+
+#############################################################################
+# CONTENTS
+#############################################################################
+
+# Ship extra debug utils in the rootfs when doing a debug build 
+#DISTRO_EXTRA_APPS ?= ""
+#DISTRO_EXTRA_APPS += '${@base_conditional("DISTRO_TYPE", "release", "", "task-cli-tools-debug",d)}'
diff --exclude .git -uNr openembedded-vanilla/recipes/haproxy/files/haproxy.conf openembedded/recipes/haproxy/files/haproxy.conf
--- openembedded-vanilla/recipes/haproxy/files/haproxy.conf	1969-12-31 19:00:00.000000000 -0500
+++ openembedded/recipes/haproxy/files/haproxy.conf	2009-03-30 00:43:38.000000000 -0400
@@ -0,0 +1,28 @@
+global
+        log 127.0.0.1   local0
+        log 127.0.0.1   local1 notice
+        maxconn 4096
+        #chroot /home/haproxy
+        #uid 508
+        #gid 508
+        daemon
+
+defaults
+        log     global
+        mode    http
+        option  httplog
+        option  dontlognull
+        option  forwardfor
+        retries 3
+        option  redispatch
+        maxconn 2000
+        contimeout      5000
+        clitimeout      50000
+        srvtimeout      50000
+        stats enable
+
+listen stats :8888
+        mode http
+        balance source
+        stats uri /
+
diff --exclude .git -uNr openembedded-vanilla/recipes/haproxy/files/init openembedded/recipes/haproxy/files/init
--- openembedded-vanilla/recipes/haproxy/files/init	1969-12-31 19:00:00.000000000 -0500
+++ openembedded/recipes/haproxy/files/init	2009-03-30 00:55:26.000000000 -0400
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# haproxy	init.d script for haproxy
+#
+# You *must* create or update the /etc/haproxy/haproxy.conf file for
+# this to work properly
+CONF=/etc/haproxy/haproxy.conf
+PIDFILE=/var/run/haproxy.pid
+
+case "$1" in
+  start)
+	echo -n "Starting haproxy: "
+	start-stop-daemon --start -x /usr/bin/haproxy -- -D -f "${CONF}" -p "${PIDFILE}" "$@"
+	echo "done"
+	;;
+  stop)
+	echo -n "Stopping haproxy: "
+	start-stop-daemon --stop -s 3 -p "${PIDFILE}"
+	echo "done"
+	;;
+  restart|reload)
+	echo -n "Restarting haproxy: "
+	start-stop-daemon --stop -s 3 -p "${PIDFILE}"
+	start-stop-daemon --start -x /usr/bin/haproxy -- -D -f "${CONF}" -p "${PIDFILE}" "$@"
+	echo "done"
+	;;
+  *)
+	echo "haproxy: haproxy { start | stop | restart | reload }" >&2
+	exit 1
+	;;
+esac
+
+exit 0
diff --exclude .git -uNr openembedded-vanilla/recipes/haproxy/files/Makefile.patch openembedded/recipes/haproxy/files/Makefile.patch
--- openembedded-vanilla/recipes/haproxy/files/Makefile.patch	1969-12-31 19:00:00.000000000 -0500
+++ openembedded/recipes/haproxy/files/Makefile.patch	2009-03-29 23:59:21.000000000 -0400
@@ -0,0 +1,20 @@
+--- haproxy/Makefile.orig	2009-03-29 23:55:04.000000000 -0400
++++ haproxy/Makefile	2009-03-29 23:56:55.000000000 -0400
+@@ -60,7 +60,7 @@
+ 
+ #### Installation options.
+ DESTDIR =
+-PREFIX = /usr/local
++PREFIX = /usr
+ SBINDIR = $(PREFIX)/sbin
+ MANDIR = $(PREFIX)/share/man
+ DOCDIR = $(PREFIX)/doc/haproxy
+@@ -70,7 +70,7 @@
+ # following list (use the default "generic" if uncertain) :
+ #    generic, linux22, linux24, linux24e, linux26, solaris,
+ #    freebsd, openbsd, custom
+-TARGET =
++TARGET = linux26
+ 
+ #### TARGET CPU
+ # Use CPU=<cpu_name> to optimize for a particular CPU, among the following
diff --exclude .git -uNr openembedded-vanilla/recipes/haproxy/haproxy_1.3.17.bb openembedded/recipes/haproxy/haproxy_1.3.17.bb
--- openembedded-vanilla/recipes/haproxy/haproxy_1.3.17.bb	1969-12-31 19:00:00.000000000 -0500
+++ openembedded/recipes/haproxy/haproxy_1.3.17.bb	2009-03-30 00:01:06.000000000 -0400
@@ -0,0 +1,34 @@
+# HAProxy from haproxy.1wt.eu
+DESCRIPTION = "A TCP/HTTP load balancer"
+HOMEPAGE = "http://haproxy.1wt.eu/"
+SECTION = "console/network"
+PRIORITY = "optional"
+LICENSE = "GPL"
+PR = "r1"
+
+SRC_URI = "http://haproxy.1wt.eu/download/1.3/src/haproxy-1.3.17.tar.gz"
+SRC_URI += "file://init"
+SRC_URI += "file://haproxy.conf"
+SRC_URI += "file://Makefile.patch;patch=1"
+
+INITSCRIPT_NAME = "haproxy"
+# No dependencies, so just go in at the standard level (20)
+INITSCRIPT_PARAMS = "defaults"
+
+# The configuration file must be edited...
+CONFFILES_${PN} = "${sysconfdir}/haproxy/haproxy.conf"
+
+inherit autotools update-rc.d
+
+PACKAGES += "haproxy"
+
+do_compile() {
+    oe_runmake TARGET=linux26 PREFIX=/usr
+}
+
+do_install_append() {
+	install -d "${D}${sysconfdir}/init.d"
+	install -c -m 755 ${WORKDIR}/init "${D}${sysconfdir}/init.d/haproxy"
+	install -d "${D}${sysconfdir}/haproxy"
+	install -c -m 644 ${WORKDIR}/haproxy.conf "${D}${sysconfdir}/haproxy/haproxy.conf"
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Addition of the Coyote Linux distro and HAProxy
  2009-03-30  5:10 Addition of the Coyote Linux distro and HAProxy Joshua Jackson
  2009-03-30  5:11 ` Joshua Jackson
@ 2009-03-30  5:22 ` Tom Rini
  2009-03-30 12:05 ` Otavio Salvador
  2009-03-30 17:54 ` Leon Woestenberg
  3 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2009-03-30  5:22 UTC (permalink / raw)
  To: openembedded-devel

On Mon, Mar 30, 2009 at 01:10:10AM -0400, Joshua Jackson wrote:

> I have decided to use OE as the base for the next release of a 10 year old
> distribution named "Coyote Linux". After a couple weeks of tinkering and
> waiting many, long hours for compiles to either succeed or fail - I have put
> together my first patch.
> 
> The attached patch adds a distribution config for Coyote Linux v4 and adds
> the HAProxy recipe. This is my first submission to the project so please let
> me know if there is anything I need to change about the supplied patch or
> any other process I should be following.

The first suggestion would be to send the new recipe separate from the
distro conf.  A very quick skim of the patch and the recipe looked fine,
tho.

-- 
Tom Rini



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Addition of the Coyote Linux distro and HAProxy
  2009-03-30  5:11 ` Joshua Jackson
@ 2009-03-30  6:56   ` Khem Raj
  0 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2009-03-30  6:56 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

On Sunday 29 March 2009 22:11:33 Joshua Jackson wrote:
> Helps if I actually attach a patch file...
> --
> Joshua Jackson
> Vortech Consulting, LLC
> 

You do not chose binutils and gcc in conf file. So it will pick whatever bitbake decides. IMO you should
use a preferred version

For glibc 

+PREFERRED_VERSION_glibc = "2.5"
+PREFERRED_VERSION_glibc-cross = "2.5"
+PREFERRED_VERSION_glibc-cross-sdk = "2.5"
+PREFERRED_VERSION_glibc-cross-initial = "2.5"
+PREFERRED_VERSION_glibc-cross-intermediate = "2.5"

I think you only need PREFERRED_VERSION_glibc and PREFERRED_VERSION_glibc-initial 

-- 
Khem Raj

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 204 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Addition of the Coyote Linux distro and HAProxy
  2009-03-30  5:10 Addition of the Coyote Linux distro and HAProxy Joshua Jackson
  2009-03-30  5:11 ` Joshua Jackson
  2009-03-30  5:22 ` Tom Rini
@ 2009-03-30 12:05 ` Otavio Salvador
  2009-03-30 17:54 ` Leon Woestenberg
  3 siblings, 0 replies; 6+ messages in thread
From: Otavio Salvador @ 2009-03-30 12:05 UTC (permalink / raw)
  To: openembedded-devel

Joshua Jackson <jjackson@vortech.net> writes:

Hello Joshua,

[...]

> The file is a standard, unified diff against the vanilla OE tree (pulled
> just before this email as sent).

[...]

Please send patches in git format; you can take a look on how to do that
at 'git format-patch --help'. This allow us to apply it easily.

Another thing, please split your changes in logical patches.

As you said that your distro is borning, from OE POV, I suggest you to
use a branch to work on that and maybe put it somewhere for review and
full merge once instead of in progress patches.

-- 
Otavio Salvador                  O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Addition of the Coyote Linux distro and HAProxy
  2009-03-30  5:10 Addition of the Coyote Linux distro and HAProxy Joshua Jackson
                   ` (2 preceding siblings ...)
  2009-03-30 12:05 ` Otavio Salvador
@ 2009-03-30 17:54 ` Leon Woestenberg
  3 siblings, 0 replies; 6+ messages in thread
From: Leon Woestenberg @ 2009-03-30 17:54 UTC (permalink / raw)
  To: openembedded-devel

Hello Joshua,

On Mon, Mar 30, 2009 at 7:10 AM, Joshua Jackson <jjackson@vortech.net> wrote:
> I have decided to use OE as the base for the next release of a 10 year old
> distribution named "Coyote Linux". After a couple weeks of tinkering and
>
Haha, roads join again!

In fact I have stolen some patches from Coyote Linux a long time ago,
so you are welcome to steal back :-)

Good choice, we are sure that after the learning curve you will have a
good ride.

Regards,
-- 
Leon



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-30 17:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-30  5:10 Addition of the Coyote Linux distro and HAProxy Joshua Jackson
2009-03-30  5:11 ` Joshua Jackson
2009-03-30  6:56   ` Khem Raj
2009-03-30  5:22 ` Tom Rini
2009-03-30 12:05 ` Otavio Salvador
2009-03-30 17:54 ` Leon Woestenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.