diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-03-02 21:52:58 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-03-02 21:52:58 +0000 |
commit | 3f5de3273c9e103b4909802e339db06fe0b53312 (patch) | |
tree | 793ef66c9456665f7b472e214d79b1078fccebe8 /contrib/package/ffluci |
* new project: ff-luci - Freifunk Lua Configuration Interface
Diffstat (limited to 'contrib/package/ffluci')
-rw-r--r-- | contrib/package/ffluci/Makefile | 43 | ||||
-rwxr-xr-x | contrib/package/ffluci/ipkg/ffluci.postinst | 4 | ||||
l--------- | contrib/package/ffluci/src | 1 |
3 files changed, 48 insertions, 0 deletions
diff --git a/contrib/package/ffluci/Makefile b/contrib/package/ffluci/Makefile new file mode 100644 index 0000000000..12e811d2c2 --- /dev/null +++ b/contrib/package/ffluci/Makefile @@ -0,0 +1,43 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=ffluci +PKG_VERSION:=0.1 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +MAKE_ACTION:=dist-source + +include $(INCLUDE_DIR)/package.mk + +define Package/ffluci + SECTION:=admin + CATEGORY:=Administration + TITLE:=FFLuCI + DEPENDS:=+liblua +luafilesystem +haserl + MAINTAINER:=Steven Barth <steven-at-midlink-dot-org> +endef + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) + $(CP) ./src/* $(PKG_BUILD_DIR)/ -R +endef + +define Build/Configure +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) dist-source +endef + +define Package/ffluci/install + $(INSTALL_DIR) $(1)/usr/lib/lua + $(INSTALL_DIR) $(1)/www/cgi-bin + $(CP) $(PKG_BUILD_DIR)/dist/* $(1)/usr/lib/lua/ -R + $(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/ffluci $(1)/www/cgi-bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/index.cgi $(1)/www/cgi-bin + $(CP) -a ./ipkg/ffluci.postinst $(1)/CONTROL/postinst +endef + +$(eval $(call BuildPackage,ffluci)) diff --git a/contrib/package/ffluci/ipkg/ffluci.postinst b/contrib/package/ffluci/ipkg/ffluci.postinst new file mode 100755 index 0000000000..0dbac00eb7 --- /dev/null +++ b/contrib/package/ffluci/ipkg/ffluci.postinst @@ -0,0 +1,4 @@ +#!/bin/sh +PATTERN='/cgi-bin/ffluci/admin:root:$p$root' +grep $PATTERN ${IPKG_INSTROOT}/etc/httpd.conf >/dev/null 2>/dev/null || echo $PATTERN >> ${IPKG_INSTROOT}/etc/httpd.conf +[ -z ${IPKG_INSTROOT} ] && /etc/init.d/httpd restart diff --git a/contrib/package/ffluci/src b/contrib/package/ffluci/src new file mode 120000 index 0000000000..a8a4f8c212 --- /dev/null +++ b/contrib/package/ffluci/src @@ -0,0 +1 @@ +../../..
\ No newline at end of file |