freewrt_1_0
freewrt_2_0
|
Last change
on this file since 6be9a4d9 was 6be9a4d9, checked in by Thorsten Glaser <tg@…>, 19 years ago |
|
let the user decide which of the available shells he
wants as /bin/sh - not only these included with busybox
(ash and mksh are probably the only ones which will
work, but like this I won't affect any existing con-
figuration)
git-svn-id: svn://www.freewrt.org/trunk/freewrt@437 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
1.3 KB
|
| Rev | Line | |
|---|
| [f6a55cb] | 1 | # $FreeWRT$
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME= mksh
|
|---|
| [8641ba2] | 6 | PKG_VERSION= 27.4
|
|---|
| [6be9a4d9] | 7 | PKG_RELEASE= 5
|
|---|
| [8641ba2] | 8 | PKG_SOURCE= ${PKG_NAME}-R27e.cpio.gz
|
|---|
| 9 | PKG_MD5SUM= 2eeb5c5fab32cc7a20ca3c7c2c6fda46
|
|---|
| [8fb2c78] | 10 |
|
|---|
| 11 | PKG_SOURCE_URL= http://mirbsd.mirsolutions.de/MirOS/dist/mir/mksh/ \
|
|---|
| 12 | http://miros.unixforge.de/MirOS/dist/mir/mksh/
|
|---|
| [c5f2acf] | 13 | WRKSRC= ${WRKDIR}/$(PKG_NAME)
|
|---|
| [f6a55cb] | 14 |
|
|---|
| 15 | include $(TOPDIR)/package/rules.mk
|
|---|
| 16 |
|
|---|
| 17 | $(eval $(call PKG_template,MKSH,mksh,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 18 |
|
|---|
| [d419478] | 19 | $(WRKBUILD)/.configured:
|
|---|
| [f6a55cb] | 20 | @touch $@
|
|---|
| 21 |
|
|---|
| [8fb2c78] | 22 | CPPFLAGS_TO_PASS:= -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include \
|
|---|
| 23 | -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE \
|
|---|
| 24 | -D_FILE_OFFSET_BITS=64 -DNEED_COMPAT
|
|---|
| 25 |
|
|---|
| [d419478] | 26 | $(WRKBUILD)/.built:
|
|---|
| 27 | (cd ${WRKBUILD}; \
|
|---|
| [f6a55cb] | 28 | CC='${TARGET_CC}' \
|
|---|
| 29 | CFLAGS='${TARGET_CFLAGS}' \
|
|---|
| [8fb2c78] | 30 | CPPFLAGS='${CPPFLAGS_TO_PASS}' \
|
|---|
| [f6a55cb] | 31 | LDFLAGS='-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib' \
|
|---|
| [8fb2c78] | 32 | SRCS='compat.c' \
|
|---|
| 33 | sh Build.sh -d -r -q -x)
|
|---|
| [d419478] | 34 | rm -rf $(WRKINST)
|
|---|
| 35 | mkdir -p $(WRKINST)/bin
|
|---|
| 36 | install -c -m 755 ${WRKBUILD}/mksh ${WRKINST}/bin/mksh
|
|---|
| [f6a55cb] | 37 | @touch $@
|
|---|
| 38 |
|
|---|
| 39 | $(IPKG_MKSH):
|
|---|
| 40 | install -d -m 0755 $(IDIR_MKSH)/bin
|
|---|
| [d419478] | 41 | $(CP) $(WRKINST)/bin/mksh $(IDIR_MKSH)/bin/
|
|---|
| [f6a55cb] | 42 | $(RSTRIP) $(IDIR_MKSH)
|
|---|
| [6be9a4d9] | 43 | ifeq (${FWRT_PACKAGE_MKSH_AS_BINSH},y)
|
|---|
| 44 | cd $(IDIR_MKSH)/bin/; ln -sf mksh sh
|
|---|
| 45 | endif
|
|---|
| 46 | ifeq (${FWRT_PACKAGE_MKSH_AS_BINASH},y)
|
|---|
| 47 | cd $(IDIR_MKSH)/bin/; ln -sf mksh ash
|
|---|
| 48 | endif
|
|---|
| [f6a55cb] | 49 | $(IPKG_BUILD) $(IDIR_MKSH) $(PACKAGE_DIR)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.