[Buildroot] [PATCHv3 01/74] vsftpd: use <pkg>_INSTALL_INIT_SYSV and rename init script
Yann E. MORIN
yann.morin.1998 at free.fr
Sun Nov 30 14:45:14 UTC 2014
Thomas, All,
On 2014-11-30 15:17 +0100, Thomas Petazzoni spake thusly:
> This commit changes the vsftpd package to use the
> <pkg>_INSTALL_INIT_SYSV mechanism to install its init script, and
> renames the init script in the Buildroot source tree to match how it's
> named on the target.
>
> Also, the init script is now installed unconditionally, as is done in
> most packages.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Regards,
Yann E. MORIN.
> ---
> package/vsftpd/{vsftpd-init => S70vsftpd} | 0
> package/vsftpd/vsftpd.mk | 7 ++++---
> 2 files changed, 4 insertions(+), 3 deletions(-)
> rename package/vsftpd/{vsftpd-init => S70vsftpd} (100%)
>
> diff --git a/package/vsftpd/vsftpd-init b/package/vsftpd/S70vsftpd
> similarity index 100%
> rename from package/vsftpd/vsftpd-init
> rename to package/vsftpd/S70vsftpd
> diff --git a/package/vsftpd/vsftpd.mk b/package/vsftpd/vsftpd.mk
> index cab5afb..1c468ed 100644
> --- a/package/vsftpd/vsftpd.mk
> +++ b/package/vsftpd/vsftpd.mk
> @@ -43,15 +43,16 @@ define VSFTPD_BUILD_CMDS
> LDFLAGS="$(TARGET_LDFLAGS)" LIBS="$(VSFTPD_LIBS)" -C $(@D)
> endef
>
> +define VSFTPD_INSTALL_INIT_SYSV
> + $(INSTALL) -D -m 755 package/vsftpd/S70vsftpd $(TARGET_DIR)/etc/init.d/S70vsftpd
> +endef
> +
> define VSFTPD_INSTALL_TARGET_CMDS
> $(INSTALL) -D -m 755 $(@D)/vsftpd $(TARGET_DIR)/usr/sbin/vsftpd
> $(INSTALL) -D -m 644 $(@D)/vsftpd.8 \
> $(TARGET_DIR)/usr/share/man/man8/vsftpd.8
> $(INSTALL) -D -m 644 $(@D)/vsftpd.conf.5 \
> $(TARGET_DIR)/usr/share/man/man5/vsftpd.conf.5
> - test -f $(TARGET_DIR)/etc/init.d/S70vsftpd || \
> - $(INSTALL) -D -m 755 package/vsftpd/vsftpd-init \
> - $(TARGET_DIR)/etc/init.d/S70vsftpd
> test -f $(TARGET_DIR)/etc/vsftpd.conf || \
> $(INSTALL) -D -m 644 $(@D)/vsftpd.conf \
> $(TARGET_DIR)/etc/vsftpd.conf
> --
> 2.1.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
More information about the buildroot
mailing list