freewrt_1_0
freewrt_2_0
| Line | |
|---|
| 1 | # $Id: Makefile 3201 2006-02-09 08:59:52Z nbd $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=webif
|
|---|
| 6 | PKG_VERSION:=0.2
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | include $(TOPDIR)/package/rules.mk
|
|---|
| 11 |
|
|---|
| 12 | $(eval $(call PKG_template,WEBIF,webif,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 13 |
|
|---|
| 14 | $(WRKBUILD)/.prepared:
|
|---|
| 15 | mkdir -p ${WRKBUILD}
|
|---|
| 16 | touch $@
|
|---|
| 17 |
|
|---|
| 18 | $(WRKBUILD)/.configured:
|
|---|
| 19 | touch $@
|
|---|
| 20 |
|
|---|
| 21 | $(WRKBUILD)/.built:
|
|---|
| 22 | $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/webif-page src/webif-page.c
|
|---|
| 23 | $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/bstrip src/bstrip.c
|
|---|
| 24 | $(STRIP) $(WRKBUILD)/webif-page $(WRKBUILD)/bstrip
|
|---|
| 25 | touch $@
|
|---|
| 26 |
|
|---|
| 27 | $(IPKG_WEBIF):
|
|---|
| 28 | cp -a ./files/www ./files/usr $(IDIR_WEBIF)/
|
|---|
| 29 | install -d $(IDIR_WEBIF)/usr/bin
|
|---|
| 30 | install -m0755 $(WRKBUILD)/webif-page $(IDIR_WEBIF)/usr/bin/webif-page
|
|---|
| 31 | install -m0755 $(WRKBUILD)/bstrip $(IDIR_WEBIF)/usr/bin/bstrip
|
|---|
| 32 | install -d $(IDIR_WEBIF)/etc/init.d
|
|---|
| 33 | install -m0755 ./files/S50httpd $(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)
|
|---|
| 37 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.