summaryrefslogtreecommitdiff
path: root/sys-apps
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2011-07-23 00:42:37 +0200
committerBertrand Jacquin <beber@meleeweb.net>2011-07-23 00:42:37 +0200
commita1b397bfb73c112477875a98d6a0048ff08d8798 (patch)
tree481a441b266dfc0ea5138dd1fce53f3084d65fbf /sys-apps
parenttcptraceroute: make it cross compile (diff)
downloadportage-a1b397bfb73c112477875a98d6a0048ff08d8798.tar.xz
flx
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/flx-bash/flx-bash-0.ebuild25
-rw-r--r--sys-apps/flx-etc/flx-etc-0.ebuild23
-rw-r--r--sys-apps/flx-flx/flx-flx-0.1.31.ebuild36
-rw-r--r--sys-apps/flx-genrules/flx-genrules-0.ebuild28
-rw-r--r--sys-apps/flx-init/flx-init-0.1.31.ebuild36
-rw-r--r--sys-apps/flx-monitor/flx-monitor-0.ebuild28
-rw-r--r--sys-apps/flx-remount/files/remount-sstrip.diff8
-rw-r--r--sys-apps/flx-remount/flx-remount-0.1.31.ebuild41
-rw-r--r--sys-apps/flx-service/flx-service-0.ebuild24
-rw-r--r--sys-apps/flx/files/flx-0.6.7-BJA-cast.diff110
-rw-r--r--sys-apps/flx/files/flx-0.6.7-BJA-gcc-2.9-define.diff29
-rw-r--r--sys-apps/flx/files/flx-0.6.7-BJA-quoted-FLX_poptions.diff21
-rw-r--r--sys-apps/flx/files/flx-0.6.7-BJA-warnings.diff46
-rw-r--r--sys-apps/flx/flx-0.6.7.ebuild41
-rw-r--r--sys-apps/flxutils/files/remount-sstrip.diff8
-rw-r--r--sys-apps/flxutils/flxutils-0.1.31.ebuild73
16 files changed, 577 insertions, 0 deletions
diff --git a/sys-apps/flx-bash/flx-bash-0.ebuild b/sys-apps/flx-bash/flx-bash-0.ebuild
new file mode 100644
index 00000000..321c21d7
--- /dev/null
+++ b/sys-apps/flx-bash/flx-bash-0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit subversion
+
+DESCRIPTION="Monitor"
+HOMEPAGE="http://svn.exosec.local"
+ESVN_REPO_URI="http://svn.exosec.local/exosec/utm-gateway/components/config/root/etc/profile.d"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_install ()
+{
+ insinto /etc/profile.d
+ doins completion.sh
+ doins terminal.sh
+}
+
diff --git a/sys-apps/flx-etc/flx-etc-0.ebuild b/sys-apps/flx-etc/flx-etc-0.ebuild
new file mode 100644
index 00000000..dc174456
--- /dev/null
+++ b/sys-apps/flx-etc/flx-etc-0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit subversion
+
+DESCRIPTION="Monitor"
+HOMEPAGE="http://svn.exosec.local"
+ESVN_REPO_URI="http://svn.exosec.local/dev/exceliance/products/aloha/trunk/components/update-scripts"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_install ()
+{
+ into /
+ dosbin save-etc
+}
diff --git a/sys-apps/flx-flx/flx-flx-0.1.31.ebuild b/sys-apps/flx-flx/flx-flx-0.1.31.ebuild
new file mode 100644
index 00000000..931329d7
--- /dev/null
+++ b/sys-apps/flx-flx/flx-flx-0.1.31.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit git
+
+DESCRIPTION="Formilux Tools"
+HOMEPAGE="http://master.formilux.org/git/dist/src/flxutils.git"
+EGIT_REPO_URI="http://master.formilux.org/git/dist/src/flxutils.git"
+EGIT_TREE="v${PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/dietlibc"
+RDEPEND=""
+
+mPN="flx"
+
+src_compile ()
+{
+ export DIET="/usr/bin/diet"
+ export OBJDUMP="$(tc-getPROG OBJDUMP objdump ${CHOST})"
+ export STRIP="$(tc-getSTRIP)"
+
+ emake -C ${mPN} || die "emake ${mPN} failed"
+}
+
+src_install ()
+{
+ into /usr
+ dobin flx/flx
+ dodoc flx/{AUTHORS,ChangeLog,NOTES,README,TODO}
+}
diff --git a/sys-apps/flx-genrules/flx-genrules-0.ebuild b/sys-apps/flx-genrules/flx-genrules-0.ebuild
new file mode 100644
index 00000000..7fa7aa67
--- /dev/null
+++ b/sys-apps/flx-genrules/flx-genrules-0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit subversion
+
+DESCRIPTION="genrules"
+HOMEPAGE="http://svn.exosec.local"
+ESVN_REPO_URI="http://svn.exosec.local/exosec/utm-gateway/components/genrules"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_compile ()
+{
+ mv genrules-big genrules
+}
+
+src_install ()
+{
+ dosbin genrules
+}
+
diff --git a/sys-apps/flx-init/flx-init-0.1.31.ebuild b/sys-apps/flx-init/flx-init-0.1.31.ebuild
new file mode 100644
index 00000000..f3dc77e4
--- /dev/null
+++ b/sys-apps/flx-init/flx-init-0.1.31.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit git
+
+DESCRIPTION="Formilux Tools"
+HOMEPAGE="http://master.formilux.org/git/dist/src/flxutils.git"
+EGIT_REPO_URI="http://master.formilux.org/git/dist/src/flxutils.git"
+EGIT_TREE="v${PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/dietlibc"
+RDEPEND=""
+
+src_compile ()
+{
+ export DIET="/usr/bin/diet"
+ export OBJDUMP="$(tc-getPROG OBJDUMP objdump ${CHOST})"
+ export STRIP="$(tc-getSTRIP)"
+
+ emake -C init \
+ SSTRIP=\"\" || die "emake init failed"
+ mv init/init init/flx-init
+}
+
+src_install ()
+{
+ into /
+ dosbin init/flx-init
+ dodoc init/{README,README.2}
+}
diff --git a/sys-apps/flx-monitor/flx-monitor-0.ebuild b/sys-apps/flx-monitor/flx-monitor-0.ebuild
new file mode 100644
index 00000000..77a35bab
--- /dev/null
+++ b/sys-apps/flx-monitor/flx-monitor-0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit subversion
+
+DESCRIPTION="Monitor"
+HOMEPAGE="http://svn.exosec.local"
+ESVN_REPO_URI="http://svn.exosec.local/exosec/utm-gateway/components/init-scripts/root"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_compile ()
+{
+ mv monitor-bin monitor
+}
+
+src_install ()
+{
+ dosbin monitor
+}
+
diff --git a/sys-apps/flx-remount/files/remount-sstrip.diff b/sys-apps/flx-remount/files/remount-sstrip.diff
new file mode 100644
index 00000000..a9ca6ef5
--- /dev/null
+++ b/sys-apps/flx-remount/files/remount-sstrip.diff
@@ -0,0 +1,8 @@
+--- remount/Makefile.ori 2009-04-24 13:54:14.000000000 +0200
++++ remount/Makefile 2009-04-24 13:54:59.000000000 +0200
+@@ -9,4 +9,4 @@
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
+ $(STRIP) -x --strip-unneeded -R .comment -R .note $@
+ $(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true
+- sstrip $@
++ -if [ -n "$(SSTRIP)" ]; then $(SSTRIP) $@ ; fi
diff --git a/sys-apps/flx-remount/flx-remount-0.1.31.ebuild b/sys-apps/flx-remount/flx-remount-0.1.31.ebuild
new file mode 100644
index 00000000..886f0f05
--- /dev/null
+++ b/sys-apps/flx-remount/flx-remount-0.1.31.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit git
+
+DESCRIPTION="Formilux Tools"
+HOMEPAGE="http://master.formilux.org/git/dist/src/flxutils.git"
+EGIT_REPO_URI="http://master.formilux.org/git/dist/src/flxutils.git"
+EGIT_TREE="v${PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/dietlibc"
+RDEPEND=""
+
+src_unpack ()
+{
+ git_src_unpack
+
+ cd ${S}
+ epatch "${FILESDIR}"/remount-sstrip.diff
+}
+
+src_compile ()
+{
+ export DIET="/usr/bin/diet"
+ export OBJDUMP="$(tc-getPROG OBJDUMP objdump ${CHOST})"
+ export STRIP="$(tc-getSTRIP)"
+
+ emake -C remount \
+ SSTRIP=\"\" || die "emake remount failed"
+}
+
+src_install ()
+{
+ dobin remount/remount{r,w}
+}
diff --git a/sys-apps/flx-service/flx-service-0.ebuild b/sys-apps/flx-service/flx-service-0.ebuild
new file mode 100644
index 00000000..d457068d
--- /dev/null
+++ b/sys-apps/flx-service/flx-service-0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit subversion
+
+DESCRIPTION="Monitor"
+HOMEPAGE="http://svn.exosec.local"
+ESVN_REPO_URI="http://svn.exosec.local/exosec/utm-gateway/components/init-scripts/root"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_install ()
+{
+ into /
+ dosbin service
+}
+
diff --git a/sys-apps/flx/files/flx-0.6.7-BJA-cast.diff b/sys-apps/flx/files/flx-0.6.7-BJA-cast.diff
new file mode 100644
index 00000000..5dcc297e
--- /dev/null
+++ b/sys-apps/flx/files/flx-0.6.7-BJA-cast.diff
@@ -0,0 +1,110 @@
+--- fct1.c.ori 2009-04-23 17:25:23.000000000 +0200
++++ fct1.c 2009-04-23 17:37:29.000000000 +0200
+@@ -45,7 +45,7 @@
+ PFERROR("readlink(%s)", path);
+ } else {
+ temp[l] = 0;
+- desc->link = strdup(temp);
++ desc->link = (unsigned char*)strdup(temp);
+ desc->md5 = checksum_md5_from_data(temp, l);
+ }
+ }
+@@ -92,13 +92,13 @@
+ PFERROR("readlink(%s)",path);
+ } else {
+ temp[l] = 0;
+- if (!f1->link) f1->link = strdup(temp);
+- if (!f2->link) f2->link = strdup(temp);
++ if (!f1->link) f1->link = (unsigned char*)strdup(temp);
++ if (!f2->link) f2->link = (unsigned char*)strdup(temp);
+ if (!f1->md5) f1->md5 = checksum_md5_from_data(temp, l);
+ if (!f2->md5) f2->md5 = checksum_md5_from_data(temp, l);
+ }
+ }
+- if (strcmp(f1->link, f2->link))
++ if (strcmp((const char*)f1->link, (const char*)f2->link))
+ diff |= DIFF_LINK; /* links differ */
+ }
+ }
+@@ -222,10 +222,10 @@
+
+
+ /* build an MD5 checksum from data in file */
+-char *checksum_md5_from_file(char *file) {
++unsigned char *checksum_md5_from_file(char *file) {
+ int fd;
+ ssize_t size;
+- char *checksum_md5 = NULL, blk[BUFFER_LENGTH];
++ unsigned char *checksum_md5 = NULL, *blk[BUFFER_LENGTH];
+ MD5_CTX md5_ctx;
+
+ if ((fd = open(file, O_RDONLY)) < 0 ) {
+@@ -234,7 +234,7 @@
+ else {
+ MD5_Init(&md5_ctx);
+ while ((size = read(fd, blk, BUFFER_LENGTH)) > 0)
+- MD5_Update(&md5_ctx, blk, size);
++ MD5_Update(&md5_ctx, (const void*)blk, size);
+ close(fd);
+ // if size = -1, there is a read error, don't do anything
+ if (size == 0) { // last read is null
+@@ -246,12 +246,12 @@
+ }
+
+ /* build an MD5 checksum from a string */
+-char *checksum_md5_from_data(char *data, int len) {
+- char *checksum_md5 = 0;
++unsigned char *checksum_md5_from_data(char *data, int len) {
++ unsigned char *checksum_md5 = 0;
+ MD5_CTX md5_ctx;
+
+ MD5_Init(&md5_ctx);
+- MD5_Update(&md5_ctx, data, len);
++ MD5_Update(&md5_ctx, (const void*)data, len);
+ checksum_md5 = MALLOC(16);
+ MD5_Final(checksum_md5, &md5_ctx);
+ return (checksum_md5);
+@@ -365,7 +365,7 @@
+ s += sprintf(blk+s, "%s", backslashed_str(path, " \\\n()\t"));
+
+ if (S_ISLNK(st->st_mode) && info->link)
+- s += sprintf(blk+s, " %s", backslashed_str(info->link, " \\\n()\t"));
++ s += sprintf(blk+s, " %s", backslashed_str((char*)info->link, " \\\n()\t"));
+ }
+ else {
+ if (IS(Options, GOPT_HUMAN_READABLE))
+--- input_file.c.ori 2009-04-23 17:22:17.000000000 +0200
++++ input_file.c 2009-04-23 17:24:09.000000000 +0200
+@@ -127,7 +127,7 @@
+ if (rpath) *rpath = p1;
+ break;
+ case 8: /* link */
+- (*desc)->link = strdup(p1);
++ (*desc)->link = (unsigned char*)strdup(p1);
+ break;
+ }
+ }
+--- input_fs.c.ori 2009-04-23 17:24:21.000000000 +0200
++++ input_fs.c 2009-04-23 17:34:05.000000000 +0200
+@@ -46,7 +46,7 @@
+ PFERROR("readlink(%s)", path);
+ } else {
+ temp[l] = 0;
+- desc->link = strdup(temp);
++ desc->link = (unsigned char*)strdup(temp);
+ desc->md5 = checksum_md5_from_data(temp, l);
+ }
+ }
+--- flx.h.ori 2009-04-23 17:42:49.000000000 +0200
++++ flx.h 2009-04-23 17:26:52.000000000 +0200
+@@ -214,8 +214,8 @@
+
+
+ extern int browse_over_path(char *path, void *(*fct)(), void *data) ;
+-extern char *checksum_md5_from_file(char *file) ;
+-extern char *checksum_md5_from_data(char *data, int len) ;
++extern unsigned char *checksum_md5_from_file(char *file) ;
++extern unsigned char *checksum_md5_from_data(char *data, int len) ;
+ extern char *end_field(char *line) ;
+ extern int mkdir_with_parent(char *pathname, mode_t mode) ;
+ extern char *build_line(char *path, char *filename, t_file_desc *info) ;
diff --git a/sys-apps/flx/files/flx-0.6.7-BJA-gcc-2.9-define.diff b/sys-apps/flx/files/flx-0.6.7-BJA-gcc-2.9-define.diff
new file mode 100644
index 00000000..1a133adf
--- /dev/null
+++ b/sys-apps/flx/files/flx-0.6.7-BJA-gcc-2.9-define.diff
@@ -0,0 +1,29 @@
+--- utils.h.ori 2009-04-23 16:34:45.000000000 +0200
++++ utils.h 2009-04-23 17:16:23.000000000 +0200
+@@ -56,7 +56,7 @@
+
+ #define BUFFLEN BUFFER_LENGTH
+
+-#define PFERROR(str...) PFERROR2(##str, 0)
++#define PFERROR(str...) PFERROR2(str, 0)
+ #define PFERROR2(str, p...) pferror("%s:%d: " str, __FILE__, __LINE__, ##p)
+ #define HEXTODEC(a) (('0'<=(a) && (a)<='9')?(a)-'0':(a)-'a'+10)
+
+@@ -71,7 +71,7 @@
+ #define POOL_ALLOC(type) ({ \
+ void *p; \
+ if ((p = pool_##type) == NULL) \
+- p = malloc(sizeof(##type)); \
++ p = malloc(sizeof(type)); \
+ else { \
+ pool_##type = *(void **)pool_##type; \
+ } \
+@@ -94,7 +94,7 @@
+ #define POOL_INIT_PROTO(type) extern type *pool_##type
+
+ #else
+-#define POOL_ALLOC(type) (calloc(1,sizeof(##type)));
++#define POOL_ALLOC(type) (calloc(1,sizeof(type)));
+ #define POOL_FREE(type, ptr) (free(ptr));
+ #define POOL_INIT
+ #endif /* MEM_OPTIM */
diff --git a/sys-apps/flx/files/flx-0.6.7-BJA-quoted-FLX_poptions.diff b/sys-apps/flx/files/flx-0.6.7-BJA-quoted-FLX_poptions.diff
new file mode 100644
index 00000000..92c71534
--- /dev/null
+++ b/sys-apps/flx/files/flx-0.6.7-BJA-quoted-FLX_poptions.diff
@@ -0,0 +1,21 @@
+--- main.c.ori 2009-04-23 16:28:35.000000000 +0200
++++ main.c 2009-04-23 16:29:10.000000000 +0200
+@@ -36,12 +36,12 @@
+
+
+ t_param FLX_poptions[] = {
+- { 0, NULL, 0xFFFF, 0, "sign -h|<options> input [...]
+- sign data" },
+- { 0, NULL, 0xFFFF, 0, "check -h|<options> src1 src2
+- check difference between src1 and src2" },
+- { 0, NULL, 0xFFFF, 0, "check -h|<options> src1 [...] , src2 [...]
+- check difference between srcs1 and srcs2" },
++ { 0, NULL, 0xFFFF, 0, "sign -h|<options> input [...]"
++ "sign data" },
++ { 0, NULL, 0xFFFF, 0, "check -h|<options> src1 src2"
++ "check difference between src1 and src2" },
++ { 0, NULL, 0xFFFF, 0, "check -h|<options> src1 [...] , src2 [...]"
++ "check difference between srcs1 and srcs2" },
+ { 0, NULL, 0, 0}
+ };
+
diff --git a/sys-apps/flx/files/flx-0.6.7-BJA-warnings.diff b/sys-apps/flx/files/flx-0.6.7-BJA-warnings.diff
new file mode 100644
index 00000000..736b16ce
--- /dev/null
+++ b/sys-apps/flx/files/flx-0.6.7-BJA-warnings.diff
@@ -0,0 +1,46 @@
+--- arg.c.ori 2009-04-23 16:32:31.000000000 +0200
++++ arg.c 2009-04-23 16:32:52.000000000 +0200
+@@ -1,6 +1,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdarg.h>
++#include <stdlib.h>
+
+ #include "flx.h"
+ #include "arg.h"
+--- check.c.ori 2009-04-23 17:27:44.000000000 +0200
++++ check.c 2009-04-23 17:27:55.000000000 +0200
+@@ -23,6 +23,7 @@
+
+ #include <string.h>
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #include "flx.h"
+ #include "check.h"
+--- output.c.ori 2009-04-23 17:20:26.000000000 +0200
++++ output.c 2009-04-23 17:21:25.000000000 +0200
+@@ -1,4 +1,5 @@
+ #include <string.h>
++#include <stdlib.h>
+ #include "utils.h"
+ #include "flx.h"
+ #include "output.h"
+--- utils.c.ori 2009-04-23 16:32:02.000000000 +0200
++++ utils.c 2009-04-23 16:48:19.000000000 +0200
+@@ -5,6 +5,7 @@
+ #include <sys/types.h>
+ #include <fcntl.h>
+ #include <stdarg.h>
++#include <stdlib.h>
+
+ #include "utils.h"
+
+--- input.c.ori 2009-04-23 17:21:43.000000000 +0200
++++ input.c 2009-04-23 17:21:54.000000000 +0200
+@@ -1,4 +1,5 @@
+ #include <string.h>
++#include <stdlib.h>
+ #include "utils.h"
+ #include "source_type.h"
+ #include "input.h"
diff --git a/sys-apps/flx/flx-0.6.7.ebuild b/sys-apps/flx/flx-0.6.7.ebuild
new file mode 100644
index 00000000..80474dcb
--- /dev/null
+++ b/sys-apps/flx/flx-0.6.7.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit git
+
+DESCRIPTION="Tool to have an image of the filesystem"
+HOMEPAGE="http://master.formilux.org/git/dist/src/flx.git"
+EGIT_REPO_URI="http://master.formilux.org/git/dist/src/flx.git"
+EGIT_TREE="v${PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack ()
+{
+ git_src_unpack
+
+ cd ${S}
+ epatch "${FILESDIR}"/${P}-BJA-quoted-FLX_poptions.diff
+ epatch "${FILESDIR}"/${P}-BJA-warnings.diff
+ epatch "${FILESDIR}"/${P}-BJA-gcc-2.9-define.diff
+ epatch "${FILESDIR}"/${P}-BJA-cast.diff
+}
+
+src_compile ()
+{
+ emake || die "emake failed"
+}
+
+src_install ()
+{
+ dobin flx
+ dodoc AUTHORS NOTES README TODO
+}
+
diff --git a/sys-apps/flxutils/files/remount-sstrip.diff b/sys-apps/flxutils/files/remount-sstrip.diff
new file mode 100644
index 00000000..a9ca6ef5
--- /dev/null
+++ b/sys-apps/flxutils/files/remount-sstrip.diff
@@ -0,0 +1,8 @@
+--- remount/Makefile.ori 2009-04-24 13:54:14.000000000 +0200
++++ remount/Makefile 2009-04-24 13:54:59.000000000 +0200
+@@ -9,4 +9,4 @@
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
+ $(STRIP) -x --strip-unneeded -R .comment -R .note $@
+ $(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true
+- sstrip $@
++ -if [ -n "$(SSTRIP)" ]; then $(SSTRIP) $@ ; fi
diff --git a/sys-apps/flxutils/flxutils-0.1.31.ebuild b/sys-apps/flxutils/flxutils-0.1.31.ebuild
new file mode 100644
index 00000000..6f87639c
--- /dev/null
+++ b/sys-apps/flxutils/flxutils-0.1.31.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit git
+
+DESCRIPTION="Formilux Tools"
+HOMEPAGE="http://master.formilux.org/git/dist/src/flxutils.git"
+EGIT_REPO_URI="http://master.formilux.org/git/dist/src/flxutils.git"
+EGIT_TREE="v${PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="flx init remount"
+
+DEPEND="dev-libs/dietlibc"
+RDEPEND=""
+
+src_unpack ()
+{
+ git_src_unpack
+
+ cd ${S}
+ epatch "${FILESDIR}"/remount-sstrip.diff
+}
+
+src_compile ()
+{
+ export DIET="/usr/bin/diet"
+ export OBJDUMP="$(tc-getPROG OBJDUMP objdump ${CHOST})"
+ export STRIP="$(tc-getSTRIP)"
+
+ use flx && {
+ cd ${S}/flx
+ emake || die "emake flx failed"
+ }
+
+ use init && {
+ cd ${S}/init
+ emake \
+ SSTRIP=\"\" || die "emake init failed"
+ }
+
+ use remount && {
+ cd ${S}/remount
+ emake \
+ SSTRIP=\"\" || die "emake remount failed"
+ }
+}
+
+src_install ()
+{
+ use init && {
+ into /
+ dosbin init/init
+ dodoc init/{README,README.2}
+ }
+
+ into /usr
+ use flx && {
+ dobin flx/flx
+ dodoc flx/{AUTHORS,ChangeLog,NOTES,README,TODO}
+ }
+
+ use remount && {
+ dobin remount/remount{r,w}
+ }
+ dobin scripts/pkg
+
+ dodoc README ChangeLog
+ dodoc scripts/NOTES
+}