From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] rsh-redone: new package for rsh/rlogin clients
Date: Tue, 07 Dec 2010 12:07:26 +0100 [thread overview]
Message-ID: <87r5dtu9ht.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <1290145224-21076-1-git-send-email-vapier@gentoo.org> (Mike Frysinger's message of "Fri, 19 Nov 2010 00:40:24 -0500")
>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:
Hi,
Mike> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike> ---
Mike> v2
Mike> - the install target didn't work quite right in the empty case
Mike> +# this is incomplete in the source
Mike> +#config BR2_PACKAGE_RSH_REDONE_RCP
Mike> +# bool "rcp"
Mike> +# depends on BR2_PACKAGE_RSH_REDONE
Mike> +
Mike> +config BR2_PACKAGE_RSH_REDONE_RLOGIN
Mike> + bool "rlogin"
Mike> + depends on BR2_PACKAGE_RSH_REDONE
Mike> +
Mike> +# requires PAM
Mike> +#config BR2_PACKAGE_RSH_REDONE_RLOGIND
Mike> +# bool "rlogind"
Mike> +# depends on BR2_PACKAGE_RSH_REDONE
Mike> +
Mike> +config BR2_PACKAGE_RSH_REDONE_RSH
Mike> + bool "rsh"
Mike> + depends on BR2_PACKAGE_RSH_REDONE
Mike> +
Mike> +# requires PAM
Mike> +#config BR2_PACKAGE_RSH_REDONE_RSHD
Mike> +# bool "rshd"
Mike> +# depends on BR2_PACKAGE_RSH_REDONE
How useful is this without the server part?
Mike> +define RSH_REDONE_BUILD_CMDS
Mike> + $(MAKE) CC="$(TARGET_CC)" -C $(@D) BIN="$(rsh-redone-bin-y)" SBIN="$(rsh-redone-sbin-y)"
Mike> +endef
You seem to be missing TARGET_CFLAGS / TARGET_LDFLAGS?
Mike> +
Mike> +define RSH_REDONE_INSTALL_TARGET_CMDS
Mike> + if [ -n "$(rsh-redone-bin-y)$(rsh-redone-sbin-y)" ] ; then \
Mike> + $(RSH_REDONE_BUILD_CMDS) DESTDIR=$(TARGET_DIR) \
Mike> + $(if $(rsh-redone-bin-y),install-bin) \
Mike> + $(if $(rsh-redone-sbin-y),install-sbin); \
Mike> + fi
Mike> +endef
Does this do anything else than just copying the binaries? If not, it
might be simpler to just do a
for i in $(rsh-redone-bin-y); do $(INSTALL) -m 755 -D $$i $(TARGET_DIR)/usr/bin/$$i; done
for i in $(rsh-redone-sbin-y); do $(INSTALL) -m 755 -D $$i $(TARGET_DIR)/usr/sbin/$$i; done
Mike> +
Mike> +define RSH_REDONE_UNINSTALL_TARGET_CMDS
Mike> + rm -f $(patsubst %,$(TARGET_DIR)/usr/bin/%,$(rsh-redone-bin-y))
Mike> + rm -f $(patsubst %,$(TARGET_DIR)/usr/sbin/%,$(rsh-redone-sbin-y))
We normally use addprefix rather than patsubst.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2010-12-07 11:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 23:20 [Buildroot] [PATCH] rsh-redone: new package for rsh/rlogin clients Mike Frysinger
2010-11-19 5:40 ` [Buildroot] [PATCH v2] " Mike Frysinger
2010-12-07 11:07 ` Peter Korsgaard [this message]
2010-12-07 20:54 ` Mike Frysinger
2010-12-07 21:20 ` Peter Korsgaard
2010-12-07 21:30 ` Mike Frysinger
2010-12-07 21:03 ` [Buildroot] [PATCH v3] " Mike Frysinger
2010-12-08 22:32 ` Peter Korsgaard
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=87r5dtu9ht.fsf@macbook.be.48ers.dk \
--to=jacmet@uclibc.org \
--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