freewrt_1_0
freewrt_2_0
| 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 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| 9 | PKG_NAME:= webif
|
|---|
| 10 | PKG_VERSION:= 0.2
|
|---|
| 11 | PKG_RELEASE:= 4
|
|---|
| 12 |
|
|---|
| 13 | include $(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.