xref: /OK3568_Linux_fs/buildroot/package/rsh-redone/rsh-redone.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# rsh-redone
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunRSH_REDONE_VERSION = 85
8*4882a593SmuzhiyunRSH_REDONE_SOURCE = rsh-redone_$(RSH_REDONE_VERSION).orig.tar.gz
9*4882a593SmuzhiyunRSH_REDONE_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/r/rsh-redone
10*4882a593SmuzhiyunRSH_REDONE_LICENSE = GPL-2.0
11*4882a593SmuzhiyunRSH_REDONE_LICENSE_FILES = rsh.c
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunRSH_REDONE_BINS-y =
14*4882a593SmuzhiyunRSH_REDONE_BINS-$(BR2_PACKAGE_RSH_REDONE_RLOGIN) += rlogin
15*4882a593SmuzhiyunRSH_REDONE_BINS-$(BR2_PACKAGE_RSH_REDONE_RSH) += rsh
16*4882a593SmuzhiyunRSH_REDONE_SBINS-y =
17*4882a593SmuzhiyunRSH_REDONE_SBINS-$(BR2_PACKAGE_RSH_REDONE_RLOGIND) += in.rlogind
18*4882a593SmuzhiyunRSH_REDONE_SBINS-$(BR2_PACKAGE_RSH_REDONE_RSHD) += in.rshd
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunRSH_REDONE_MAKE_FLAGS = \
21*4882a593Smuzhiyun	BIN="$(RSH_REDONE_BINS-y)" SBIN="$(RSH_REDONE_SBINS-y)"
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunifneq ($(BR2_PACKAGE_RSH_REDONE_RSHD)$(BR2_PACKAGE_RSH_REDONE_RLOGIND),)
24*4882a593SmuzhiyunRSH_REDONE_DEPENDENCIES += linux-pam
25*4882a593Smuzhiyunendif
26*4882a593Smuzhiyun
27*4882a593Smuzhiyundefine RSH_REDONE_BUILD_CMDS
28*4882a593Smuzhiyun	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(RSH_REDONE_MAKE_FLAGS)
29*4882a593Smuzhiyunendef
30*4882a593Smuzhiyun
31*4882a593Smuzhiyundefine RSH_REDONE_INSTALL_TARGET_CMDS
32*4882a593Smuzhiyun	$(if $(RSH_REDONE_BINS-y)$(RSH_REDONE_SBINS-y),
33*4882a593Smuzhiyun		$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(RSH_REDONE_MAKE_FLAGS) DESTDIR=$(TARGET_DIR) \
34*4882a593Smuzhiyun			$(if $(RSH_REDONE_BINS-y),install-bin) \
35*4882a593Smuzhiyun			$(if $(RSH_REDONE_SBINS-y),install-sbin))
36*4882a593Smuzhiyunendef
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun$(eval $(generic-package))
39