source: freewrt/package/mksh/Makefile@ f2e3b63e

freewrt_1_0 freewrt_2_0
Last change on this file since f2e3b63e was f2e3b63e, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • adding mksh to /etc/shells is no longer necessary as of r441
  • while here, instead of patching /etc/profile on mksh postinstall time, add a hook for /etc/mkshrc reading to standard /etc/profile and create that; bump mksh patchlevel note: the next _upstream_ mksh version will already come with a sample ~/.mkshrc which we will install (patched appropriately) as /etc/mkshrc (read from within our /etc/profile, not by mksh default) then, to get rid of the postinstall script as well

git-svn-id: svn://www.freewrt.org/trunk/freewrt@442 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.3 KB
Line 
1# $FreeWRT$
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME= mksh
6PKG_VERSION= 27.4
7PKG_RELEASE= 6
8PKG_SOURCE= ${PKG_NAME}-R27e.cpio.gz
9PKG_MD5SUM= 2eeb5c5fab32cc7a20ca3c7c2c6fda46
10
11PKG_SOURCE_URL= http://mirbsd.mirsolutions.de/MirOS/dist/mir/mksh/ \
12 http://miros.unixforge.de/MirOS/dist/mir/mksh/
13WRKSRC= ${WRKDIR}/$(PKG_NAME)
14
15include $(TOPDIR)/package/rules.mk
16
17$(eval $(call PKG_template,MKSH,mksh,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19$(WRKBUILD)/.configured:
20 @touch $@
21
22CPPFLAGS_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
26$(WRKBUILD)/.built:
27 (cd ${WRKBUILD}; \
28 CC='${TARGET_CC}' \
29 CFLAGS='${TARGET_CFLAGS}' \
30 CPPFLAGS='${CPPFLAGS_TO_PASS}' \
31 LDFLAGS='-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib' \
32 SRCS='compat.c' \
33 sh Build.sh -d -r -q -x)
34 rm -rf $(WRKINST)
35 mkdir -p $(WRKINST)/bin
36 install -c -m 755 ${WRKBUILD}/mksh ${WRKINST}/bin/mksh
37 @touch $@
38
39$(IPKG_MKSH):
40 install -d -m 0755 $(IDIR_MKSH)/bin
41 $(CP) $(WRKINST)/bin/mksh $(IDIR_MKSH)/bin/
42 $(RSTRIP) $(IDIR_MKSH)
43ifeq (${FWRT_PACKAGE_MKSH_AS_BINSH},y)
44 cd $(IDIR_MKSH)/bin/; ln -sf mksh sh
45endif
46ifeq (${FWRT_PACKAGE_MKSH_AS_BINASH},y)
47 cd $(IDIR_MKSH)/bin/; ln -sf mksh ash
48endif
49 $(IPKG_BUILD) $(IDIR_MKSH) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.