source: freewrt/package/webif/Makefile@ 63f60c2

freewrt_1_0 freewrt_2_0
Last change on this file since 63f60c2 was 63f60c2, checked in by Thorsten Glaser <tg@…>, 19 years ago

bump package patchlevel for markus@
after revision 641-643's changes

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

  • Property mode set to 100644
File size: 1.2 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 -d $(IDIR_WEBIF)/usr/bin
33 install -m0755 $(WRKBUILD)/webif-page $(IDIR_WEBIF)/usr/bin/webif-page
34 install -m0755 $(WRKBUILD)/bstrip $(IDIR_WEBIF)/usr/bin/bstrip
35 ln -sf /www/index.html $(IDIR_WEBIF)/www/index.asp
36 install -d $(IDIR_WEBIF)/etc/init.d
37 install -m0755 ./files/httpd.init $(IDIR_WEBIF)/etc/init.d/S50httpd
38 find $(IDIR_WEBIF) -name CVS -o -name .svn | xargs rm -rf
39 $(IPKG_BUILD) $(IDIR_WEBIF) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.