source: freewrt/package/webif/Makefile@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was 0543ddc, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

mv firewall init to webif. still not ready to work with webif.
as default we need something more simple as an example.
I have learned real operating systems, like Debian GNU/Linux
and OpenBSD have no default firewall.

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

  • Property mode set to 100644
File size: 1.7 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:= webif
10PKG_VERSION:= 0.2
11PKG_RELEASE:= 4
12
13include $(TOPDIR)/mk/package.mk
14
15$(eval $(call PKG_template,WEBIF,webif,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
16
17$(WRKBUILD)/.prepared:
18 mkdir -p ${WRKBUILD}
19 touch $@
20
21$(WRKBUILD)/.configured:
22 touch $@
23
24$(WRKBUILD)/.built:
25 $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/webif-page src/webif-page.c
26 $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/bstrip src/bstrip.c
27 $(STRIP) $(WRKBUILD)/webif-page $(WRKBUILD)/bstrip
28 touch $@
29
30$(IPKG_WEBIF):
31 cd files; pax -rw www usr $(IDIR_WEBIF)/
32 $(INSTALL_DIR) $(IDIR_WEBIF)/usr/bin
33 $(INSTALL_DIR) $(IDIR_WEBIF)/sbin
34 $(INSTALL_BIN) $(WRKBUILD)/webif-page $(IDIR_WEBIF)/usr/bin/webif-page
35 $(INSTALL_BIN) $(WRKBUILD)/bstrip $(IDIR_WEBIF)/usr/bin/bstrip
36 $(INSTALL_BIN) ./files/ifup $(IDIR_WEBIF)/sbin/ifup.nvram
37 $(INSTALL_BIN) ./files/ifdown $(IDIR_WEBIF)/sbin/ifdown.nvram
38 ln -sf /www/index.html $(IDIR_WEBIF)/www/index.asp
39 $(INSTALL_DIR) $(IDIR_WEBIF)/etc/init.d
40 $(INSTALL_BIN) ./files/httpd.init $(IDIR_WEBIF)/etc/init.d/S50httpd-webif
41 $(INSTALL_BIN) ./files/network.init $(IDIR_WEBIF)/etc/init.d/S40net-webif
42 $(INSTALL_BIN) ./files/dnsmasq.init $(IDIR_WEBIF)/etc/init.d/S50dns-webif
43 $(INSTALL_BIN) ./files/firewall.init $(IDIR_WEBIF)/etc/init.d/S45fw-webif
44 $(INSTALL_DATA) ./files/dnsmasq.conf $(IDIR_WEBIF)/etc/dnsmasq.conf-webif
45 $(INSTALL_DATA) ./files/network-nvram.sh $(IDIR_WEBIF)/etc/
46 find $(IDIR_WEBIF) -name CVS -o -name .svn | xargs rm -rf
47 $(IPKG_BUILD) $(IDIR_WEBIF) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.