Skip to contentSkip to conversation

aiccu: new package

PATCH Superseded Michael Rommel 3 participants 4 messages Sep 8, 2013 – Sep 11, 2013

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aiccu: new package

Automatic IPv6 Connectivity Configuration Utility for users of a IPv6 tunnel broker, developed by sixxs.net

---
 package/Config.in                                  |    1 +
 package/aiccu/Config.in                            |   21 ++++
 .../aiccu/aiccu-0001-gnutls-and-uclibc-fixes.patch |  104 ++++++++++++++++++++
 .../aiccu/aiccu-0002-makefile-target-strip.patch   |   23 +++++
 package/aiccu/aiccu.mk                             |   32 ++++++
 5 files changed, 181 insertions(+)
 create mode 100644 package/aiccu/Config.in
 create mode 100644 package/aiccu/aiccu-0001-gnutls-and-uclibc-fixes.patch
 create mode 100644 package/aiccu/aiccu-0002-makefile-target-strip.patch
 create mode 100644 package/aiccu/aiccu.mk
package/Config.in +1 -0
index 7a0ef68..c1e5da0 100644
@@ -716,6 +716,7 @@ source "package/sound-theme-freedesktop/Config.in"
 endmenu
 
 menu "Networking applications"
+source "package/aiccu/Config.in"
 source "package/aircrack-ng/Config.in"
 source "package/argus/Config.in"
 source "package/arptables/Config.in"
package/aiccu/Config.in new file +21 -0
new file mode 100644
index 0000000..1c6f554
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_AICCU
+	bool "aiccu"
+	depends on BR2_INET_IPV6
+	depends on BR2_USE_WCHAR
+	select BR2_PACKAGE_GNUTLS
+	help
+	  SixXS Automatic IPv6 Connectivity Client Utility
+
+	  AICCU (Automatic IPv6 Connectivity Client Utility) makes it
+	  easy for users to get IPv6 connectivity. After having
+	  requested an account, tunnel and optionally a subnet, AICCU
+	  can be used to automatically configure the tunnel. AICCU
+	  supports TIC (Tunnel Information & Control protocol), which it
+	  uses for retrieving the tunnel configuration information,
+	  AYIYA, which allows tunnels to be created even behind
+	  firewalls and NAT's.
+
+	  http://www.sixxs.net/tools/aiccu/
+
+comment "aiccu requires a toolchain with IPv6 and WCHAR support"
+	depends on !(BR2_INET_IPV6 && BR2_USE_WCHAR)
package/aiccu/aiccu-0001-gnutls-and-uclibc-fixes.patch new file +104 -0

104 lines not on this page · raw message

package/aiccu/aiccu-0002-makefile-target-strip.patch new file +23 -0
new file mode 100644
index 0000000..49183e4
@@ -0,0 +1,23 @@
+Makefile: exchanged the hardcoded strip command with a variable based one
+
+Signed-off-by: Michael Rommel <[email protected]>
+
+--- aiccu_20070115.orig/unix-console/Makefile	2007-01-15 12:04:27.000000000 +0100
++++ aiccu_20070115/unix-console/Makefile	2013-09-08 17:00:33.004727305 +0200
+@@ -28,6 +28,7 @@ CWARNS += -W -Wall -Wshadow -Wpointer-ar
+ CFLAGS	+= $(CWARNS) -D_GNU_SOURCE
+ CC      = @gcc
+ RM      = rm
++STRIP   = strip
+ 
+ # Add -O3 when nothing is specified yet
+ ifeq ($(shell echo $(CFLAGS) | grep -c "\-O"),0)
+@@ -147,7 +148,7 @@ aiccu:	$(OBJS) ${SRCS} ${INCS}
+ 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)
+ ifeq ($(shell echo $(CFLAGS) | grep -c "DEBUG"),0)
+ ifeq ($(shell echo "$(RPM_OPT_FLAGS)" | wc -c),1)
+-	strip $@
++	$(STRIP) $@
+ endif
+ endif
+ 
package/aiccu/aiccu.mk new file +32 -0
new file mode 100644
index 0000000..c9862c1
@@ -0,0 +1,32 @@
+################################################################################
+#
+# aiccu
+#
+################################################################################
+
+AICCU_VERSION = 20070115
+AICCU_SOURCE = aiccu_$(AICCU_VERSION).tar.gz
+AICCU_SITE = http://www.sixxs.net/archive/sixxs/aiccu/unix/
+AICCU_LICENSE = SixXS License, concise redistribution license
+AICCU_LICENSE_FILES = doc/LICENSE
+AICCU_DEPENDENCIES = gnutls
+
+define AICCU_BUILD_CMDS
+	$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" STRIP="$(TARGET_STRIP)" -C $(@D) all
+endef
+
+define AICCU_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/unix-console/aiccu \
+		$(TARGET_DIR)/usr/sbin/aiccu
+	[ -f $(TARGET_DIR)/etc/aiccu.conf ] || \
+		$(INSTALL) -D -m 0644 $(@D)/doc/aiccu.conf \
+		$(TARGET_DIR)/etc/aiccu.conf
+endef
+
+define AICCU_INSTALL_INIT_SYSV
+	[ -f $(TARGET_DIR)/etc/init.d/S50aiccu ] || \
+		$(INSTALL) -D -m 0755 $(@D)/doc/aiccu.init \
+		$(TARGET_DIR)/etc/init.d/S50aiccu
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 aiccu: new package

Dear Thomas,

Quoted 17 lines · Arnout Vandecappelle
Quoted 9 lines · Thomas De Schampheleire

I tried compiling on a powerpc target, but this unfortunately failed:

strip aiccu
strip: Unable to recognise the format of the input file `aiccu'
make[2]: *** [aiccu] Error 1
make[2]: Leaving directory `/home/tdescham/repo/contrib/buildroot-review/output/build/aiccu-20070115/unix-console'

Quoted 6 lines

The aiccu/unix-console/Makefile hardcodes the 'strip' command, but this should be the cross-strip, provided by buildroot through TARGET_STRIP. I think that aiccu should be patched to use STRIP, which defaults to 'strip', and aiccu.mk in buildroot should then pass the right STRIP command.
This patch could then also be upstreamed...

Quoted 4 lines

Actually, it is better to remove the strip completely. We strip the target directory in a final step, so that you still have unstripped binaries in the build and staging directories. Most packages leave it up to the distro to strip the binaries - which makes it possible to build foo-dbg packages that have the debug symbols.

Regards,
Arnout

Since the mailinglist was down, Arnouts comment came in after I submitted the latest version of the patch (I will add numbering in the future).

He proposes to make the patch leave off the strip command completely. Since I think no upstream patches will be made, it is a matter of your guidance.

@Thomas: If you too think it shall be left off, I'll send a new version. I can follow the argument of having a debug version around in the build tree.

Let me know and you'll get a new version (which will be v5, if I counted correctly).

@Arnout: you made comment regarding use of the toolchains from the autobuilders. I do not fully understand what you mean, do you refer to these:
http://autobuild.buildroot.net/toolchains/configs/free-electrons/
configurations and suggest, that I set up some of these cross compilers to test packages I submit first, if they work under these configs? Which would be the most important ones - I do not have so much space to accomodate them all, so if I must focus on 3-5, which should I take?

Thanks,

Michael.

Signature · 1 line
Michael Rommel, Erlangen, Germany
Quoted 5 lines · Michael Rommel

Automatic IPv6 Connectivity Configuration Utility for users of a IPv6 tunnel broker, developed by sixxs.net

---

#2 lore raw

PATCH 1/1 aiccu: new package

Hi Michael,

Op 11-sep.-2013 20:35 schreef "Michael Rommel" <[email protected]> het volgende:

Quoted 13 lines

Dear Thomas,

Quoted 8 lines · Arnout Vandecappelle
Quoted 7 lines · Thomas De Schampheleire

I tried compiling on a powerpc target, but this unfortunately failed:

strip aiccu
strip: Unable to recognise the format of the input file `aiccu' make[2]: *** [aiccu] Error 1
make[2]: Leaving directory

`/home/tdescham/repo/contrib/buildroot-review/output/build/aiccu-20070115/unix-console'

Quoted 10 lines
Quoted 10 lines
Quoted 8 lines

The aiccu/unix-console/Makefile hardcodes the 'strip' command, but this should be the cross-strip, provided by buildroot through TARGET_STRIP. I think that aiccu should be patched to use STRIP, which defaults to 'strip', and aiccu.mk in buildroot should then pass the right STRIP command.
This patch could then also be upstreamed...

Actually, it is better to remove the strip completely. We strip the

target directory in a final step, so that you still have unstripped binaries in the build and staging directories. Most packages leave it up to the distro to strip the binaries - which makes it possible to build foo-dbg packages that have the debug symbols.

Quoted 6 lines
Quoted 3 lines

Regards,
Arnout

Since the mailinglist was down, Arnouts comment came in after I submitted

the

Quoted 11 lines

latest version of the patch (I will add numbering in the future).

He proposes to make the patch leave off the strip command completely. Since I think no upstream patches will be made, it is a matter of your guidance.

@Thomas: If you too think it shall be left off, I'll send a new version. I can follow the argument of having a debug version around in the build tree.

Let me know and you'll get a new version (which will be v5, if I counted

correctly).

Quoted 1 line

Yes, I think Arnout has a good point so I would follow his advice.

Best regards,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130911/51c35343/attachment-0001.html>

#3 lore raw

PATCH 1/1 aiccu: new package

In reply to Michael Rommel
Quoted 7 lines · Michael Rommel

@Arnout: you made comment regarding use of the toolchains from the autobuilders. I do not fully understand what you mean, do you refer to these:
http://autobuild.buildroot.net/toolchains/configs/free-electrons/
configurations and suggest, that I set up some of these cross compilers to test packages I submit first, if they work under these configs? Which would be the most important ones - I do not have so much space to accomodate them all, so if I must focus on 3-5, which should I take?

I actually mean e.g.
http://autobuild.buildroot.org/toolchains/tarballs/br-powerpc-e500mc-full-2013.05-1.tar.bz2
- it has IPv6 and largefile, nothing else.

One uClibc build is probably sufficient. If something else is wrong it
will come out of the autobuilders.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F