ed4279bfdd5e269f7924a6c1ff509ae80e2b5e52
[project/luci.git] / contrib / package / haserl-lua / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=haserl-lua
10 PKG_VERSION:=0.9.24
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=http://dev.leipzig.freifunk.net/svn/ff-luci/trunk/contrib/package-source/ \
15 http://firmware.freifunk-halle.net/ffluci/package-source/
16 PKG_MD5SUM:=b004005594b84e35839b1d5c330f8e03
17
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/haserl-lua
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=A CGI wrapper to embed shell scripts in HTML documents
25 URL:=http://haserl.sourceforge.net/
26 DEPENDS:=+liblua-luci
27 endef
28
29 CONFIGURE_ARGS += \
30 --with-lua
31
32 define Package/haserl-lua/install
33 $(INSTALL_DIR) $(1)/usr/bin
34 $(STRIP) $(PKG_BUILD_DIR)/src/haserl
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/haserl $(1)/usr/bin/
36 echo "Replaces: haserl" >> $(1)/CONTROL/control
37 echo "Conflicts: haserl" >> $(1)/CONTROL/control
38 endef
39
40 $(eval $(call BuildPackage,haserl-lua))