From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] aiccu: new package
Date: Wed, 04 Sep 2013 18:38:26 +0200 [thread overview]
Message-ID: <52276202.6010508@mind.be> (raw)
In-Reply-To: <1378165788-7386-1-git-send-email-rommel@layer-7.net>
On 09/03/13 01:49, Michael Rommel wrote:
> Automatic IPv6 Connectivity Configuration Utility for users of a
> IPv6 tunnel broker, developed by sixxs.net
>
> Signed-off-by: Michael Rommel <rommel@layer-7.net>
> ---
> package/Config.in | 1 +
> package/aiccu/Config.in | 21 ++++
> .../aiccu/aiccu-0001-gnutls-and-uclibc-fixes.patch | 104 ++++++++++++++++++++
> .../aiccu-0002-install-correct-init-script.patch | 17 ++++
> package/aiccu/aiccu.mk | 26 +++++
> 5 files changed, 169 insertions(+)
> create mode 100644 package/aiccu/Config.in
> create mode 100644 package/aiccu/aiccu-0001-gnutls-and-uclibc-fixes.patch
Did you upstream this patch?
> create mode 100644 package/aiccu/aiccu-0002-install-correct-init-script.patch
[snip]
> diff --git a/package/aiccu/aiccu-0002-install-correct-init-script.patch b/package/aiccu/aiccu-0002-install-correct-init-script.patch
> new file mode 100644
> index 0000000..15e9268
> --- /dev/null
> +++ b/package/aiccu/aiccu-0002-install-correct-init-script.patch
> @@ -0,0 +1,17 @@
> +Makefile: remove hardcoded .debian part from install command, debian
> + version does not work under buildroot
> +
> +Signed-off-by: Michael Rommel <rommel@layer-7.net>
> +
> +diff -purN aiccu_20070115.orig/Makefile aiccu_20070115/Makefile
> +--- aiccu_20070115.orig/Makefile 2007-01-11 01:29:33.000000000 +0100
> ++++ aiccu_20070115/Makefile 2013-09-03 00:47:06.153662575 +0200
> +@@ -86,7 +86,7 @@ ifeq ($(shell echo "A${RPM_BUILD_ROOT}")
> + @cp doc/HOWTO ${DESTDIR}${dirdoc}
> + @echo "Installing Debian-style init.d"
> + @mkdir -p ${DESTDIR}${diretc}init.d
> +- @cp doc/${PROJECT}.init.debian ${DESTDIR}${diretc}init.d/${PROJECT}
> ++ @cp doc/${PROJECT}.init ${DESTDIR}${diretc}init.d/${PROJECT}
The init script should be called Sxxaiccu (replace xx by an appropriate
number). And you can do the required chmod here as well. Or better yet,
use 'install -D -m 0755' (which removes the need for mkdir as well).
However, I propose to instead install it manually from the .mk file
(using the _INSTALL_INIT_SYSV variable) and to remove the incorrect init
script in a post-install hook. Maybe there's even a target to install
just the interesting bits and skip the howto and init scripts?
> + else
> + @echo "Installing Redhat-style init.d"
> + @mkdir -p ${DESTDIR}${diretc}init.d
> diff --git a/package/aiccu/aiccu.mk b/package/aiccu/aiccu.mk
> new file mode 100644
> index 0000000..0eb605b
> --- /dev/null
> +++ b/package/aiccu/aiccu.mk
> @@ -0,0 +1,26 @@
> +################################################################################
> +#
> +# aiccu
> +#
> +################################################################################
> +
> +AICCU_VERSION = 20070115
Ouch, that's old...
> +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)" -C $(@D) all
> +endef
> +
> +define AICCU_INSTALL_TARGET_CMDS
> + $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
> +endef
> +
> +define AICCU_PERMISSIONS
> + /etc/init.d/aiccu f 4755 0 0 - - - - -
Does it really have to be setuid? That is very weird for an init script.
Regards,
Arnout
> +endef
> +
> +$(eval $(generic-package))
>
--
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
next prev parent reply other threads:[~2013-09-04 16:38 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-02 23:49 [Buildroot] [PATCH 1/1] aiccu: new package Michael Rommel
2013-09-04 16:38 ` Arnout Vandecappelle [this message]
2013-09-04 20:50 ` Michael Rommel
2013-09-05 8:13 ` Thomas Petazzoni
2013-09-05 22:03 ` Michael Rommel
-- strict thread matches above, loose matches on Subject: below --
2013-09-05 21:56 Michael Rommel
2013-09-07 20:56 ` Thomas De Schampheleire
2013-09-08 11:39 ` Thomas De Schampheleire
2013-09-11 6:07 ` Arnout Vandecappelle
[not found] ` <150C0AB5-B4C6-4379-9FEE-9819278AAF69@layer-7.net>
[not found] ` <CAAXf6LWetaF-1wTWvhad-gKFc0CwLrqTKjgM_F9Seou+Pm=UWg@mail.gmail.com>
2013-09-08 15:28 ` Michael Rommel
2013-09-08 17:46 ` Thomas De Schampheleire
2013-09-08 18:28 ` Michael Rommel
2013-09-09 8:41 ` Thomas De Schampheleire
2013-09-08 21:58 Michael Rommel
2013-09-11 18:34 ` Michael Rommel
2013-09-11 19:52 ` Thomas De Schampheleire
2013-09-11 21:22 ` Arnout Vandecappelle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52276202.6010508@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox