2014-06-14 08:34:22 +02:00
|
|
|
#
|
2015-03-28 13:35:41 +01:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2014-06-14 08:34:22 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=haserl
|
2021-03-15 14:46:17 +01:00
|
|
|
PKG_VERSION:=0.9.36
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2014-06-14 08:34:22 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/haserl
|
2021-03-15 14:46:17 +01:00
|
|
|
PKG_HASH:=8f6048bfc77dfe8d1032aec2e708fddfa36d225c25d14b474f70ba7d6eefabc1
|
|
|
|
PKG_MAINTAINER:=
|
2014-08-09 14:42:09 +02:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2014-12-14 12:06:11 +01:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2024-02-02 18:37:33 +01:00
|
|
|
PKG_CPE_ID:=cpe:/a:haserl_project:haserl
|
2014-06-14 08:34:22 +02:00
|
|
|
|
2014-10-25 09:32:56 +02:00
|
|
|
PKG_CONFIG_DEPENDS:= \
|
|
|
|
CONFIG_HASERL_with_lua \
|
|
|
|
CONFIG_HASERL_shell_luac \
|
|
|
|
CONFIG_HASERL_shell_lua \
|
|
|
|
|
2014-06-14 08:34:22 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/haserl
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=A CGI wrapper to embed shell scripts in HTML documents
|
|
|
|
URL:=http://haserl.sourceforge.net/
|
|
|
|
MENU:=1
|
|
|
|
DEPENDS:= +HASERL_with_lua:liblua
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/haserl/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_HASERL_with_lua),y)
|
|
|
|
CONFIGURE_ARGS+=--with-lua
|
|
|
|
TARGET_LDFLAGS += -ldl
|
|
|
|
endif
|
|
|
|
ifneq ($(CONFIG_HASERL_shell_lua),y)
|
|
|
|
CONFIGURE_ARGS+=--disable-luashell
|
|
|
|
endif
|
|
|
|
ifneq ($(CONFIG_HASERL_shell_luac),y)
|
|
|
|
CONFIGURE_ARGS+=--disable-luacshell
|
|
|
|
endif
|
|
|
|
|
|
|
|
define Package/haserl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/haserl $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,haserl))
|