freewrt_1_0
freewrt_2_0
| Line | |
|---|
| 1 | # $FreeWRT$
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=webif
|
|---|
| 6 | PKG_VERSION:=0.2
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 |
|
|---|
| 9 | include $(TOPDIR)/package/rules.mk
|
|---|
| 10 |
|
|---|
| 11 | $(eval $(call PKG_template,WEBIF,webif,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 12 |
|
|---|
| 13 | $(WRKBUILD)/.prepared:
|
|---|
| 14 | mkdir -p ${WRKBUILD}
|
|---|
| 15 | touch $@
|
|---|
| 16 |
|
|---|
| 17 | $(WRKBUILD)/.configured:
|
|---|
| 18 | touch $@
|
|---|
| 19 |
|
|---|
| 20 | $(WRKBUILD)/.built:
|
|---|
| 21 | $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/webif-page src/webif-page.c
|
|---|
| 22 | $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/bstrip src/bstrip.c
|
|---|
| 23 | $(STRIP) $(WRKBUILD)/webif-page $(WRKBUILD)/bstrip
|
|---|
| 24 | touch $@
|
|---|
| 25 |
|
|---|
| 26 | $(IPKG_WEBIF):
|
|---|
| 27 | cd files; pax -rw www usr $(IDIR_WEBIF)/
|
|---|
| 28 | install -d $(IDIR_WEBIF)/usr/bin
|
|---|
| 29 | install -m0755 $(WRKBUILD)/webif-page $(IDIR_WEBIF)/usr/bin/webif-page
|
|---|
| 30 | install -m0755 $(WRKBUILD)/bstrip $(IDIR_WEBIF)/usr/bin/bstrip
|
|---|
| 31 | ln -sf /www/index.html $(IDIR_WEBIF)/www/index.asp
|
|---|
| 32 | install -d $(IDIR_WEBIF)/etc/init.d
|
|---|
| 33 | install -m0755 ./files/httpd.init $(IDIR_WEBIF)/etc/init.d/S50httpd
|
|---|
| 34 | find $(IDIR_WEBIF) -name CVS | xargs rm -rf
|
|---|
| 35 | find $(IDIR_WEBIF) -name .svn | xargs rm -rf
|
|---|
| 36 | $(IPKG_BUILD) $(IDIR_WEBIF) $(PACKAGE_DIR)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.