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>
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2008-2015 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=at
|
|
PKG_VERSION:=3.2.2
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=https://salsa.debian.org/debian/at.git
|
|
PKG_SOURCE_VERSION:=release/3.2.2
|
|
PKG_MIRROR_HASH=93f7f99c4242dbc5218907981e32f74ddb5e09c5b7922617c8d84c16920f488d
|
|
|
|
PKG_MAINTAINER:=Phil Eichinger <phil@zankapfel.net>
|
|
PKG_LICENSE:=GPL-2.0-or-later GPL-3.0-or-later ISC
|
|
PKG_LICENSE_FILES:=COPYING Copyright
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/at
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
DEPENDS:=+libelf
|
|
TITLE:=Delayed job execution and batch processing
|
|
URL:=http://packages.debian.org/stable/at
|
|
endef
|
|
|
|
define Package/at/description
|
|
At and batch read shell commands from standard input storing them as a job to
|
|
be scheduled for execution in the future.
|
|
endef
|
|
|
|
export SENDMAIL=/bin/true
|
|
EXTRA_CFLAGS:=-DNEED_YYWRAP -I$(PKG_BUILD_DIR) \
|
|
$(TARGET_LDFLAGS)
|
|
|
|
CONFIGURE_ARGS+= \
|
|
--prefix=/usr \
|
|
--without-selinux \
|
|
--with-daemon_username=nobody \
|
|
--with-daemon_groupname=nogroup \
|
|
--with-jobdir=/var/spool/cron/atjobs \
|
|
--with-atspool=/var/spool/cron/atspool
|
|
|
|
CONFIGURE_VARS += \
|
|
ac_cv_header_security_pam_appl_h=no
|
|
|
|
define Package/at/install
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/sbin $(1)/etc/init.d/
|
|
$(INSTALL_BIN) ./files/atd.init $(1)/etc/init.d/atd
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/at $(1)/usr/bin
|
|
ln -sf at $(1)/usr/bin/atq
|
|
ln -sf at $(1)/usr/bin/atrm
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/atd $(1)/usr/sbin
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,at))
|