diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2013-05-27 22:36:39 +0200 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2013-05-27 23:01:30 +0200 |
commit | 871aa3ec8c59a964940af18d3ec462c797482785 (patch) | |
tree | 8492d0e98ede203810dfea6bcfe0ceecedd13bcf /flx/remount | |
parent | add ebuild for a clam client to server support (diff) | |
download | portage-871aa3ec8c59a964940af18d3ec462c797482785.tar.xz |
Add formilux tools/init-scripts
Diffstat (limited to 'flx/remount')
-rw-r--r-- | flx/remount/Manifest | 10 | ||||
-rw-r--r-- | flx/remount/files/0.1.31-remove-strip-diet.diff | 61 | ||||
-rw-r--r-- | flx/remount/files/0.1.31-respect-CFLAGS-LDFLAGS.diff | 15 | ||||
-rw-r--r-- | flx/remount/files/0.1.31-warning-cast.diff | 23 | ||||
-rw-r--r-- | flx/remount/files/0.1.31-warning-implicit-declaration.diff | 11 | ||||
-rw-r--r-- | flx/remount/files/0.1.34-remove-strip-diet.diff | 61 | ||||
-rw-r--r-- | flx/remount/files/0.1.34-respect-CFLAGS-LDFLAGS.diff | 15 | ||||
-rw-r--r-- | flx/remount/files/0.1.34-warning-cast.diff | 23 | ||||
-rw-r--r-- | flx/remount/files/0.1.34-warning-implicit-declaration.diff | 11 | ||||
-rw-r--r-- | flx/remount/remount-0.1.31.ebuild | 39 | ||||
-rw-r--r-- | flx/remount/remount-0.1.34.ebuild | 39 |
11 files changed, 308 insertions, 0 deletions
diff --git a/flx/remount/Manifest b/flx/remount/Manifest new file mode 100644 index 00000000..74f8ee69 --- /dev/null +++ b/flx/remount/Manifest @@ -0,0 +1,10 @@ +AUX 0.1.31-remove-strip-diet.diff 1915 RMD160 f7f319c295fac8620d442a4badb3e828dd8564f0 SHA1 9cafb471cdfb8ca41f5b0ad672d3bb4e2a025f75 SHA256 9612ee7854e2b147b03d02c308a13d09d44c2beb074ebcb2428b5a4ff2deca05 +AUX 0.1.31-respect-CFLAGS-LDFLAGS.diff 475 RMD160 35a236b73139a6d898a2bdbc68d9ecc92315cdd9 SHA1 752b4d9002c15a39c087df0ea87d34bd7275a0ad SHA256 920e0fc923f915a3bb0a59ae401cd4f6f4c7b2aca57786c821e61cec4248873e +AUX 0.1.31-warning-cast.diff 550 RMD160 3ac238246cca1fa8ce85f0934c5cb75701ccf516 SHA1 6235310139694be7658494404fcfb525aff6befb SHA256 49050466db1280ad8a3e9c3c0c56e0ac8623d5fd3f8e00577ce9341f49e6992f +AUX 0.1.31-warning-implicit-declaration.diff 292 RMD160 d9e597983b4b1b85f520f10e5e632565cb294697 SHA1 bcca77487f9258abaf519fe475746e8123efd213 SHA256 db1cd3f07b6a0bad1a197d231832d01fab49f2237384feea076e7fc613254d59 +AUX 0.1.34-remove-strip-diet.diff 1924 RMD160 67d96d92bd6ce3aa6f9a5788855fd2e17c6bd9fc SHA1 7936b624eec038a07789602bb9dc9e388bec1b50 SHA256 b870b2d12347d2ec27bd060d72c997b3abe67fc47b5c27cd597510c69b92ffaa +AUX 0.1.34-respect-CFLAGS-LDFLAGS.diff 475 RMD160 35a236b73139a6d898a2bdbc68d9ecc92315cdd9 SHA1 752b4d9002c15a39c087df0ea87d34bd7275a0ad SHA256 920e0fc923f915a3bb0a59ae401cd4f6f4c7b2aca57786c821e61cec4248873e +AUX 0.1.34-warning-cast.diff 550 RMD160 3ac238246cca1fa8ce85f0934c5cb75701ccf516 SHA1 6235310139694be7658494404fcfb525aff6befb SHA256 49050466db1280ad8a3e9c3c0c56e0ac8623d5fd3f8e00577ce9341f49e6992f +AUX 0.1.34-warning-implicit-declaration.diff 292 RMD160 d9e597983b4b1b85f520f10e5e632565cb294697 SHA1 bcca77487f9258abaf519fe475746e8123efd213 SHA256 db1cd3f07b6a0bad1a197d231832d01fab49f2237384feea076e7fc613254d59 +EBUILD remount-0.1.31.ebuild 762 RMD160 a3b2014909dc9d7b229a13158eb39bea6727d4e3 SHA1 1ac7dd7632cca04904f5dc2b16933173d13c6743 SHA256 b1e3bfef185a99b0afd9c0523f475d3e9a176008c109a86f0026f31eea57fc8e +EBUILD remount-0.1.34.ebuild 762 RMD160 a3b2014909dc9d7b229a13158eb39bea6727d4e3 SHA1 1ac7dd7632cca04904f5dc2b16933173d13c6743 SHA256 b1e3bfef185a99b0afd9c0523f475d3e9a176008c109a86f0026f31eea57fc8e diff --git a/flx/remount/files/0.1.31-remove-strip-diet.diff b/flx/remount/files/0.1.31-remove-strip-diet.diff new file mode 100644 index 00000000..18e9ea09 --- /dev/null +++ b/flx/remount/files/0.1.31-remove-strip-diet.diff @@ -0,0 +1,61 @@ +diff --git a/include/rules.make b/include/rules.make +index 58d0af1..68bfbd6 100644 +--- a/include/rules.make ++++ b/include/rules.make +@@ -1,30 +1,16 @@ + CC ?= gcc +-STRIP ?= strip +-OBJDUMP ?= objdump +-SSTRIP ?= sstrip +-DIET ?= diet +- +-CC_ORIG := $(CC) +-override CC := $(DIET) $(CC) + + CFLAGS=$(GCC_ARCH_SMALL) $(GCC_CPU_SMALL) $(GCC_OPT_SMALL) + #-mpreferred-stack-boundary=2 -malign-jumps=0 -malign-loops=0 -malign-functions=0 -Os -march=i386 -mcpu=i386 +-LDFLAGS=-s -Wl,--gc-sections ++LDFLAGS=-Wl,--gc-sections + + all: $(OBJS) + + %: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< +- $(STRIP) -x --strip-unneeded -R .comment -R .note $@ +- $(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true +- $(OBJDUMP) -h $@ | grep -q '\.sbss[ ]*00000000' && $(STRIP) -R .sbss $@ || true +- -if [ -n "$(SSTRIP)" ]; then $(SSTRIP) $@ ; fi + + %-debug: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -DDEBUG -o $@ $< +- $(STRIP) -x --strip-unneeded -R .comment -R .note $@ +- $(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true +- $(OBJDUMP) -h $@ | grep -q '\.sbss[ ]*00000000' && $(STRIP) -R .sbss $@ || true + + clean: + @rm -f *.[ao] *~ core +diff --git a/wd/Makefile b/wd/Makefile +index 58650df..8350b33 100644 +--- a/wd/Makefile ++++ b/wd/Makefile +@@ -4,6 +4,3 @@ CFLAGS+=-fomit-frame-pointer + + %: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< +- $(STRIP) -x --strip-unneeded -R .comment -R .note $@ +- $(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true +- sstrip $@ +diff --git a/remount/Makefile b/remount/Makefile +index 71633d5..3887b5f 100644 +--- a/remount/Makefile ++++ b/remount/Makefile +@@ -4,9 +4,3 @@ CFLAGS+=-fomit-frame-pointer + + remountw : remountr + ln -s $^ $@ +- +-%: %.c +- $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< +- $(STRIP) -x --strip-unneeded -R .comment -R .note $@ +- $(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true +- sstrip $@ diff --git a/flx/remount/files/0.1.31-respect-CFLAGS-LDFLAGS.diff b/flx/remount/files/0.1.31-respect-CFLAGS-LDFLAGS.diff new file mode 100644 index 00000000..8ac81836 --- /dev/null +++ b/flx/remount/files/0.1.31-respect-CFLAGS-LDFLAGS.diff @@ -0,0 +1,15 @@ +diff --git a/include/rules.make b/include/rules.make +index f373aad..1f95cd1 100644 +--- a/include/rules.make ++++ b/include/rules.make +@@ -1,8 +1,8 @@ + CC ?= gcc + +-CFLAGS=$(GCC_ARCH_SMALL) $(GCC_CPU_SMALL) $(GCC_OPT_SMALL) ++CFLAGS += $(GCC_ARCH_SMALL) $(GCC_CPU_SMALL) $(GCC_OPT_SMALL) + #-mpreferred-stack-boundary=2 -malign-jumps=0 -malign-loops=0 -malign-functions=0 -Os -march=i386 -mcpu=i386 +-LDFLAGS=-Wl,--gc-sections ++LDFLAGS += -Wl,--gc-sections + + all: $(OBJS) + diff --git a/flx/remount/files/0.1.31-warning-cast.diff b/flx/remount/files/0.1.31-warning-cast.diff new file mode 100644 index 00000000..97e86393 --- /dev/null +++ b/flx/remount/files/0.1.31-warning-cast.diff @@ -0,0 +1,23 @@ +diff --git a/remount/remountr.c b/remount/remountr.c +index 2a38f22..13c270d 100644 +--- a/remount/remountr.c ++++ b/remount/remountr.c +@@ -12,15 +12,15 @@ int main (int argc, char **argv) { + char *flag, *mntpnt; + + if (argv[0][strlen(argv[0])-1] == 'w') +- flag = wo_str; ++ flag = (char *)wo_str; + else +- flag = ro_str; ++ flag = (char *)ro_str; + + setreuid(0, 0); + if (argc > 1) + mntpnt = argv[1]; + else +- mntpnt = slash_str; ++ mntpnt = (char *)slash_str; + + return execl(mount_str, mount_str, flag, remount_str, mntpnt, NULL); + } diff --git a/flx/remount/files/0.1.31-warning-implicit-declaration.diff b/flx/remount/files/0.1.31-warning-implicit-declaration.diff new file mode 100644 index 00000000..ac469e99 --- /dev/null +++ b/flx/remount/files/0.1.31-warning-implicit-declaration.diff @@ -0,0 +1,11 @@ +diff --git a/remount/remountr.c b/remount/remountr.c +index f45c39a..2a38f22 100644 +--- a/remount/remountr.c ++++ b/remount/remountr.c +@@ -1,4 +1,6 @@ + #include <stdio.h> ++#include <string.h> ++#include <unistd.h> + + const char mount_str[] = "/bin/mount"; + const char remount_str[] = "remount"; diff --git a/flx/remount/files/0.1.34-remove-strip-diet.diff b/flx/remount/files/0.1.34-remove-strip-diet.diff new file mode 100644 index 00000000..414295d0 --- /dev/null +++ b/flx/remount/files/0.1.34-remove-strip-diet.diff @@ -0,0 +1,61 @@ +diff --git a/include/rules.make b/include/rules.make +index 99bff82..f373aad 100644 +--- a/include/rules.make ++++ b/include/rules.make +@@ -1,30 +1,16 @@ + CC ?= gcc +-STRIP ?= strip +-OBJDUMP ?= objdump +-SSTRIP ?= sstrip +-DIET ?= diet +- +-CC_ORIG := $(CC) +-override CC := $(DIET) $(CC) + + CFLAGS=$(GCC_ARCH_SMALL) $(GCC_CPU_SMALL) $(GCC_OPT_SMALL) + #-mpreferred-stack-boundary=2 -malign-jumps=0 -malign-loops=0 -malign-functions=0 -Os -march=i386 -mcpu=i386 +-LDFLAGS=-s -Wl,--gc-sections ++LDFLAGS=-Wl,--gc-sections + + all: $(OBJS) + + %: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< +- $(STRIP) -x --strip-unneeded -R .comment -R .note $@ +- $(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true +- $(OBJDUMP) -h $@ | grep -q '\.sbss[ ]*00000000' && $(STRIP) -R .sbss $@ || true +- #-if [ -n "$(SSTRIP)" ]; then $(SSTRIP) $@ ; fi + + %-debug: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -DDEBUG -o $@ $< +- $(STRIP) -x --strip-unneeded -R .comment -R .note $@ +- $(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true +- $(OBJDUMP) -h $@ | grep -q '\.sbss[ ]*00000000' && $(STRIP) -R .sbss $@ || true + + clean: + @rm -f *.[ao] *~ core +diff --git a/wd/Makefile b/wd/Makefile +index ed8a82c..8350b33 100644 +--- a/wd/Makefile ++++ b/wd/Makefile +@@ -4,6 +4,3 @@ CFLAGS+=-fomit-frame-pointer + + %: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< +- $(STRIP) -x --strip-unneeded -R .comment -R .note $@ +- $(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true +- #$(SSTRIP) $@ +diff --git a/remount/Makefile b/remount/Makefile +index 740f38f..3887b5f 100644 +--- a/remount/Makefile ++++ b/remount/Makefile +@@ -4,9 +4,3 @@ CFLAGS+=-fomit-frame-pointer + + remountw : remountr + ln -s $^ $@ +- +-%: %.c +- $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< +- $(STRIP) -x --strip-unneeded -R .comment -R .note $@ +- $(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true +- #$(SSTRIP) $@ diff --git a/flx/remount/files/0.1.34-respect-CFLAGS-LDFLAGS.diff b/flx/remount/files/0.1.34-respect-CFLAGS-LDFLAGS.diff new file mode 100644 index 00000000..8ac81836 --- /dev/null +++ b/flx/remount/files/0.1.34-respect-CFLAGS-LDFLAGS.diff @@ -0,0 +1,15 @@ +diff --git a/include/rules.make b/include/rules.make +index f373aad..1f95cd1 100644 +--- a/include/rules.make ++++ b/include/rules.make +@@ -1,8 +1,8 @@ + CC ?= gcc + +-CFLAGS=$(GCC_ARCH_SMALL) $(GCC_CPU_SMALL) $(GCC_OPT_SMALL) ++CFLAGS += $(GCC_ARCH_SMALL) $(GCC_CPU_SMALL) $(GCC_OPT_SMALL) + #-mpreferred-stack-boundary=2 -malign-jumps=0 -malign-loops=0 -malign-functions=0 -Os -march=i386 -mcpu=i386 +-LDFLAGS=-Wl,--gc-sections ++LDFLAGS += -Wl,--gc-sections + + all: $(OBJS) + diff --git a/flx/remount/files/0.1.34-warning-cast.diff b/flx/remount/files/0.1.34-warning-cast.diff new file mode 100644 index 00000000..97e86393 --- /dev/null +++ b/flx/remount/files/0.1.34-warning-cast.diff @@ -0,0 +1,23 @@ +diff --git a/remount/remountr.c b/remount/remountr.c +index 2a38f22..13c270d 100644 +--- a/remount/remountr.c ++++ b/remount/remountr.c +@@ -12,15 +12,15 @@ int main (int argc, char **argv) { + char *flag, *mntpnt; + + if (argv[0][strlen(argv[0])-1] == 'w') +- flag = wo_str; ++ flag = (char *)wo_str; + else +- flag = ro_str; ++ flag = (char *)ro_str; + + setreuid(0, 0); + if (argc > 1) + mntpnt = argv[1]; + else +- mntpnt = slash_str; ++ mntpnt = (char *)slash_str; + + return execl(mount_str, mount_str, flag, remount_str, mntpnt, NULL); + } diff --git a/flx/remount/files/0.1.34-warning-implicit-declaration.diff b/flx/remount/files/0.1.34-warning-implicit-declaration.diff new file mode 100644 index 00000000..ac469e99 --- /dev/null +++ b/flx/remount/files/0.1.34-warning-implicit-declaration.diff @@ -0,0 +1,11 @@ +diff --git a/remount/remountr.c b/remount/remountr.c +index f45c39a..2a38f22 100644 +--- a/remount/remountr.c ++++ b/remount/remountr.c +@@ -1,4 +1,6 @@ + #include <stdio.h> ++#include <string.h> ++#include <unistd.h> + + const char mount_str[] = "/bin/mount"; + const char remount_str[] = "remount"; diff --git a/flx/remount/remount-0.1.31.ebuild b/flx/remount/remount-0.1.31.ebuild new file mode 100644 index 00000000..296a32e6 --- /dev/null +++ b/flx/remount/remount-0.1.31.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +inherit git-2 toolchain-funcs eutils + +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_COMMIT="v${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare () +{ + epatch "${FILESDIR}"/${PV}-remove-strip-diet.diff + epatch "${FILESDIR}"/${PV}-respect-CFLAGS-LDFLAGS.diff + epatch "${FILESDIR}"/${PV}-warning-implicit-declaration.diff + epatch "${FILESDIR}"/${PV}-warning-cast.diff + + tc-export CC +} + +src_compile () +{ + emake -C remount +} + +src_install () +{ + dobin remount/remount{r,w} +} diff --git a/flx/remount/remount-0.1.34.ebuild b/flx/remount/remount-0.1.34.ebuild new file mode 100644 index 00000000..296a32e6 --- /dev/null +++ b/flx/remount/remount-0.1.34.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +inherit git-2 toolchain-funcs eutils + +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_COMMIT="v${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare () +{ + epatch "${FILESDIR}"/${PV}-remove-strip-diet.diff + epatch "${FILESDIR}"/${PV}-respect-CFLAGS-LDFLAGS.diff + epatch "${FILESDIR}"/${PV}-warning-implicit-declaration.diff + epatch "${FILESDIR}"/${PV}-warning-cast.diff + + tc-export CC +} + +src_compile () +{ + emake -C remount +} + +src_install () +{ + dobin remount/remount{r,w} +} |