source: freewrt/package/fwcf/Makefile@ ca629a6

freewrt_1_0 freewrt_2_0
Last change on this file since ca629a6 was 89869ca, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

add fwcf 1.0.3, new features fwcf status, reboot/halt hooks are generating a warning if uncommitted changes exist in /etc

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@2249 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.3 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME= fwcf
10PKG_VERSION= 1.03
11PKG_RELEASE= 1
12PKG_MD5SUM= d1b0e1731c14f839a0b52bfc9d6a467a
13PKG_SOURCE_URL= http://www.freewrt.org/distfiles/ \
14 http://www.mirbsd.org/dist/hosted/fwcf/ \
15 http://pub.allbsd.org/dist/hosted/fwcf/
16WRKSRC= ${WRKDIR}/${PKG_NAME}
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,FWCF,fwcf,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22$(WRKBUILD)/.configured:
23 touch $@
24
25CFLAGS= ${TARGET_CFLAGS} ${TARGET_CPPFLAGS} -I${STAGING_DIR}/usr/include
26
27$(WRKBUILD)/.built:
28 env \
29 CC="${TARGET_CC}" \
30 CFLAGS="${CFLAGS}" \
31 LDFLAGS="${TARGET_LDFLAGS} -L${STAGING_DIR}/usr/lib" \
32 $(MAKE) -C $(WRKBUILD) all
33 ${BASH} ${TOPDIR}/scripts/strip-script.sh ./files/hook >${WRKBUILD}/hook
34 touch $@
35
36$(IPKG_FWCF):
37 $(INSTALL_DIR) $(IDIR_FWCF)/sbin
38 $(INSTALL_BIN) $(WRKBUILD)/fwcf.helper.out $(IDIR_FWCF)/sbin/fwcf.helper
39 $(INSTALL_BIN) $(WRKSRC)/fwcf.sh $(IDIR_FWCF)/sbin/fwcf
40 ${INSTALL_BIN} ${WRKBUILD}/hook ${IDIR_FWCF}/sbin/halt
41 cd ${IDIR_FWCF}/sbin && ln -sf halt reboot && ln -sf halt poweroff
42 $(RSTRIP) $(IDIR_FWCF)
43 $(IPKG_BUILD) $(IDIR_FWCF) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.