at: bump to version 3.2.1
[feed/packages.git] / utils / at / Makefile
1 #
2 # Copyright (C) 2008-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=at
11 PKG_VERSION:=3.2.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=https://salsa.debian.org/debian/at.git
17 PKG_SOURCE_VERSION:=release/3.2.1
18 PKG_MIRROR_HASH=c37feb425e7d310f29b4c8dffd846b8a3b410ff6e88a6563f0ecaa636fb22cc2
19
20 PKG_MAINTAINER:=Phil Eichinger <phil@zankapfel.net>
21 PKG_LICENSE:=GPL-2.0-or-later GPL-3.0-or-later ISC
22 PKG_LICENSE_FILES:=COPYING Copyright
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/at
27 SECTION:=utils
28 CATEGORY:=Utilities
29 DEPENDS:=+libelf
30 TITLE:=Delayed job execution and batch processing
31 URL:=http://packages.debian.org/stable/at
32 endef
33
34 define Package/at/description
35 At and batch read shell commands from standard input storing them as a job to
36 be scheduled for execution in the future.
37 endef
38
39 export SENDMAIL=/bin/true
40 EXTRA_CFLAGS:=-DNEED_YYWRAP -I$(PKG_BUILD_DIR) \
41 $(TARGET_LDFLAGS)
42
43 CONFIGURE_ARGS+= \
44 --prefix=/usr \
45 --without-selinux \
46 --with-daemon_username=nobody \
47 --with-daemon_groupname=nogroup \
48 --with-jobdir=/var/spool/cron/atjobs \
49 --with-atspool=/var/spool/cron/atspool
50
51 CONFIGURE_VARS += \
52 ac_cv_header_security_pam_appl_h=no
53
54 define Package/at/install
55 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/sbin $(1)/etc/init.d/
56 $(INSTALL_BIN) ./files/atd.init $(1)/etc/init.d/atd
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/at $(1)/usr/bin
58 ln -sf at $(1)/usr/bin/atq
59 ln -sf at $(1)/usr/bin/atrm
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/atd $(1)/usr/sbin
61 endef
62
63 $(eval $(call BuildPackage,at))